forked from sushi-labs/sushiswap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
413 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/sushi/src/router/liquidity-providers/AerodromeSlipstream.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { PublicClient } from 'viem' | ||
import { ChainId } from '../../chain/index.js' | ||
import { LiquidityProviders } from './LiquidityProvider.js' | ||
import { VelodromeSlipstreamBaseProvider } from './VelodromeSlipstreamBase.js' | ||
|
||
export class AerodromeSlipstreamProvider extends VelodromeSlipstreamBaseProvider { | ||
constructor(chainId: ChainId, web3Client: PublicClient) { | ||
const factory = { | ||
[ChainId.BASE]: '0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A', | ||
} as const | ||
const customSwapFeeModule = { | ||
[ChainId.BASE]: '0xF4171B0953b52Fa55462E4d76ecA1845Db69af00', | ||
} as const | ||
const poolImplementation = { | ||
[ChainId.BASE]: '0xeC8E5342B19977B4eF8892e02D8DAEcfa1315831', | ||
} as const | ||
const tickLens = { | ||
[ChainId.BASE]: '0x3e1116ea5034f5d73a7b530071709d54a4109f5f', | ||
} as const | ||
super( | ||
chainId, | ||
web3Client, | ||
factory, | ||
tickLens, | ||
poolImplementation, | ||
customSwapFeeModule, | ||
) | ||
} | ||
getType(): LiquidityProviders { | ||
return LiquidityProviders.AerodromeSlipstream | ||
} | ||
getPoolProviderName(): string { | ||
return 'AerodromeSlipstream' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/sushi/src/router/liquidity-providers/VelodromeSlipstream.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { PublicClient } from 'viem' | ||
import { ChainId } from '../../chain/index.js' | ||
import { LiquidityProviders } from './LiquidityProvider.js' | ||
import { VelodromeSlipstreamBaseProvider } from './VelodromeSlipstreamBase.js' | ||
|
||
export class VelodromeSlipstreamProvider extends VelodromeSlipstreamBaseProvider { | ||
constructor(chainId: ChainId, web3Client: PublicClient) { | ||
const factory = { | ||
[ChainId.OPTIMISM]: '0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F', | ||
} as const | ||
const customSwapFeeModule = { | ||
[ChainId.OPTIMISM]: '0x7361E9079920fb75496E9764A2665d8ee5049D5f', | ||
} as const | ||
const poolImplementation = { | ||
[ChainId.OPTIMISM]: '0xc28aD28853A547556780BEBF7847628501A3bCbb', | ||
} as const | ||
const tickLens = { | ||
[ChainId.OPTIMISM]: '0x49C6FDCb3D5b2CecD8baff66c8e94b9B261ad925', | ||
} as const | ||
super( | ||
chainId, | ||
web3Client, | ||
factory, | ||
tickLens, | ||
poolImplementation, | ||
customSwapFeeModule, | ||
) | ||
} | ||
getType(): LiquidityProviders { | ||
return LiquidityProviders.VelodromeSlipstream | ||
} | ||
getPoolProviderName(): string { | ||
return 'VelodromeSlipstream' | ||
} | ||
} |
Oops, something went wrong.