Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Dec 6, 2022
1 parent c84f7b9 commit 1ba9cc6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synapseprotocol/sdk",
"version": "0.95.1-alpha.64",
"version": "0.95.1-alpha.65",
"description": "Synapse Protocol's NodeJS SDK.",
"repository": "github.com/synapsecns/sdk",
"author": "synapsecns",
Expand Down
3 changes: 2 additions & 1 deletion src/bridge/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@ export namespace Bridge {
Tokens.USDC.id,
Tokens.USDT.id,
Tokens.DAI.id,
Tokens.WBTC.id
Tokens.WBTC.id,
Tokens.WAVAX.id
])
if (chainIdTo === ChainId.ETH) {
easyRedeems.push(Tokens.WETH.id)
Expand Down
2 changes: 2 additions & 0 deletions src/swappools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,14 @@ export namespace SwapPools {
[SwapType.WBTC]: [Tokens.WBTC],
[SwapType.KLAY]: KLAY_Pool.poolTokens,
[SwapType.JEWEL]: [Tokens.JEWEL],
[SwapType.AVAX]: [Tokens.WAVAX],
},
swappableSwapGroups: {
[SwapType.ETH]: {poolTokens: [Tokens.ETH, Tokens.WETH], swapType: SwapType.ETH},
[SwapType.WBTC]: {poolTokens: [Tokens.WBTC], swapType: SwapType.WBTC},
[SwapType.KLAY]: KLAY_Pool,
[SwapType.JEWEL]: JEWEL_POOL,
[SwapType.AVAX]: WAVAX_Pool,
},
},
};
Expand Down
3 changes: 2 additions & 1 deletion src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ export namespace Tokens {
[ChainId.MOONBEAM]: "0xA1f8890E39b4d8E33efe296D698fe42Fb5e59cC3",
[ChainId.AVALANCHE]: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
[ChainId.DFK]: "0xB57B60DeBDB0b8172bb6316a9164bd3C695F133a",
[ChainId.HARMONY]: "0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6" // synAVAX, but here for compat.
[ChainId.HARMONY]: "0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6", // synAVAX, but here for compat.
[ChainId.KLAYTN]: "0xCd8fE44A29Db9159dB36f96570d7A4d91986f528"
},
swapType: SwapType.AVAX,
underlyingToken: AVAX,
Expand Down
4 changes: 3 additions & 1 deletion test/synapsebridge/getEstimatedBridgeOutput-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ describe("SynapseBridge - getEstimatedBridgeOutput tests", function(this: Mocha.
makeTestCase(Tokens.NETH, Tokens.DFK_ETH, ChainId.AVALANCHE, ChainId.DFK),
makeTestCase(Tokens.DFK_ETH, Tokens.WETH, ChainId.DFK, ChainId.OPTIMISM),
makeTestCase(Tokens.DFK_ETH, Tokens.NETH, ChainId.DFK, ChainId.FANTOM),
makeTestCase(Tokens.GAS_JEWEL, Tokens.JEWEL, ChainId.DFK, ChainId.KLAYTN)
makeTestCase(Tokens.GAS_JEWEL, Tokens.JEWEL, ChainId.DFK, ChainId.KLAYTN),
makeTestCase(Tokens.WAVAX, Tokens.WAVAX, ChainId.DFK, ChainId.KLAYTN),
makeTestCase(Tokens.WAVAX, Tokens.WAVAX, ChainId.KLAYTN, ChainId.DFK)
].forEach((tc: TestCase) => {
const [describeTitle, bridgeOutputTestTitle, transactionTestTitle, approveTestTitle] = makeTestName(tc);

Expand Down

0 comments on commit 1ba9cc6

Please sign in to comment.