From b9e73b4b53e8ece0973476316739fe7ebe499353 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 26 Nov 2024 21:03:36 -0800 Subject: [PATCH] Add BSC and RSK to DEXs --- CHANGELOG.md | 3 +++ src/swap/defi/lifi.ts | 1 + src/swap/defi/thorchain/swapkit.ts | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b117a59..beffa23d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- added: (Lifi) Add RSK +- added: (SwapKit) Add Binance Smart Chain + ## 2.15.0 (2024-12-02) - added: (Exolix) Support Zcash buys diff --git a/src/swap/defi/lifi.ts b/src/swap/defi/lifi.ts index 7b290087..8b665899 100644 --- a/src/swap/defi/lifi.ts +++ b/src/swap/defi/lifi.ts @@ -113,6 +113,7 @@ const MAINNET_CODE_TRANSCRIPTION: StringMap = { okexchain: 'OKT', optimism: 'OPT', polygon: 'POL', + rsk: 'RSK', solana: 'SOL', velas: 'VEL', zksync: 'ERA' diff --git a/src/swap/defi/thorchain/swapkit.ts b/src/swap/defi/thorchain/swapkit.ts index df43fc76..20511be9 100644 --- a/src/swap/defi/thorchain/swapkit.ts +++ b/src/swap/defi/thorchain/swapkit.ts @@ -131,8 +131,9 @@ let exchangeInfo: ExchangeInfo | undefined let exchangeInfoLastUpdate: number = 0 const tokenProxyMap: { [currencyPluginId: string]: string } = { - ethereum: '0xf892fef9da200d9e84c9b0647ecff0f34633abe8', - avalanche: '0x69ba883af416ff5501d54d5e27a1f497fbd97156' + avalanche: '0x69ba883af416ff5501d54d5e27a1f497fbd97156', + binancesmartchain: '0x5505BE604dFA8A1ad402A71f8A357fba47F9bf5a', + ethereum: '0xf892fef9da200d9e84c9b0647ecff0f34633abe8' } export function makeSwapKitPlugin(opts: EdgeCorePluginOptions): EdgeSwapPlugin {