Skip to content

Commit

Permalink
Merge pull request paraswap#408 from paraswap/aburkut/back-1122-thena…
Browse files Browse the repository at this point in the history
…-fusion

BACK-1122: Integrate ThenaFusion (ThenaV2) on BSC
  • Loading branch information
aburkut authored Jun 26, 2023
2 parents e0afe26 + 11cfb80 commit f9cde08
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 232 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.22.3",
"version": "2.23.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
2 changes: 2 additions & 0 deletions src/dex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import { Hashflow } from './hashflow/hashflow';
import { SolidlyEthereum } from './solidly/solidly-ethereum';
import { MaverickV1 } from './maverick-v1/maverick-v1';
import { QuickSwapV3 } from './quickswap/quickswap-v3';
import { ThenaFusion } from './quickswap/thena-fusion';
import { ZyberSwapV3 } from './quickswap/zyberswap-v3';
import { CamelotV3 } from './quickswap/camelot-v3';
import { TraderJoeV2 } from './trader-joe-v2';
Expand All @@ -86,6 +87,7 @@ const LegacyDexes = [
DodoV1,
DodoV2,
QuickSwapV3,
ThenaFusion,
ZyberSwapV3,
CamelotV3,
SpiritSwapV3,
Expand Down
11 changes: 10 additions & 1 deletion src/dex/quickswap/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@ export const QuickSwapConfig: DexConfigMap<DexParams> = {
'0x6ec6c9c8091d160c0aa74b2b14ba9c1717e95093bd3ac085cee99a49aab294a4',
},
},
ThenaFusion: {
[Network.BSC]: {
factoryAddress: '0x306F06C147f064A010530292A1EB6737c3e378e4',
router: '0x327Dd3208f0bCF590A66110aCB6e5e6941A4EfA0',
quoteAddress: '0xeA68020D6A9532EeC42D4dB0f92B83580c39b2cA',
initCode:
'0xd61302e7691f3169f5ebeca3a0a4ab8f7f998c01e55ec944e62cfb1109fd2736',
},
},
QuickSwapV3: {
[Network.POLYGON]: {
factoryAddress: '0x411b0fAcC3489691f28ad58c47006AF5E3Ab3A28',
router: '0xf5b509bb0909a69b1c207e495f687a596c168e12',
quoteAddress: '0xa15f0d7377b2a0c0c10db057f641bed21028fc89',
initCode:
'0xfa2ad44b9e39d38a7d396bb44a41ea957ac7b622c5c6afdc285728c300b3382a',
'0x6ec6c9c8091d160c0aa74b2b14ba9c1717e95093bd3ac085cee99a49aab294a4',
},
},
SpiritSwapV3: {
Expand Down
Loading

0 comments on commit f9cde08

Please sign in to comment.