Skip to content

Commit

Permalink
feat: add SyncSwap pool adapter (consensys-vertical-apps#119)
Browse files Browse the repository at this point in the history
* feat: add SyncSwap pool adapter

* refactors

---------

Co-authored-by: amedrontadora <[email protected]>
Co-authored-by: Bernardo Garces Chapero <[email protected]>
  • Loading branch information
3 people authored Jan 5, 2024
1 parent c49410d commit 9a4e279
Show file tree
Hide file tree
Showing 23 changed files with 6,928 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adapters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { Protocol } from './protocols'
import { StargatePoolAdapter } from './stargate/products/pool/stargatePoolAdapter'
import { StargateVestingAdapter } from './stargate/products/vesting/stargateVestingAdapter'
import { SwellSwEthAdapter } from './swell/products/sw-eth/swellSwEthAdapter'
import { SyncswapPoolAdapter } from './syncswap/products/pool/syncswapPoolAdapter'
import { UniswapV3PoolAdapter } from './uniswap-v3/products/pool/uniswapV3PoolAdapter'

export const supportedProtocols: Record<
Expand Down Expand Up @@ -162,4 +163,8 @@ export const supportedProtocols: Record<
[Protocol.ChimpExchange]: {
[Chain.Linea]: [ChimpExchangePoolAdapter],
},

[Protocol.SyncSwap]: {
[Chain.Linea]: [SyncswapPoolAdapter],
},
}
2 changes: 2 additions & 0 deletions src/adapters/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { testCases as pricesTestCases } from './prices/tests/testCases'
import { Protocol } from './protocols'
import { testCases as stargateTestCases } from './stargate/tests/testCases'
import { testCases as swellTestCases } from './swell/tests/testCases'
import { testCases as syncSwapTestCases } from './syncswap/tests/testCases'
import { testCases as uniswapV3TestCases } from './uniswap-v3/tests/testCases'

const TEST_TIMEOUT = 300000
Expand All @@ -39,6 +40,7 @@ function runAllTests() {
runProtocolTests(Protocol.Swell, swellTestCases)
runProtocolTests(Protocol.Convex, convexTestCases)
runProtocolTests(Protocol.Prices, pricesTestCases)
runProtocolTests(Protocol.SyncSwap, syncSwapTestCases)
runProtocolTests(Protocol.IZiSwap, iZiSwapTestCases)
runProtocolTests(Protocol.ChimpExchange, chimpExchangeTestCases)
}
Expand Down
1 change: 1 addition & 0 deletions src/adapters/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Protocol = {
Swell: 'swell',
Convex: 'convex',
Prices: 'prices',
SyncSwap: 'syncswap',
IZiSwap: 'iziswap',
ChimpExchange: 'chimp-exchange',
} as const
Expand Down
Loading

0 comments on commit 9a4e279

Please sign in to comment.