Skip to content

Commit

Permalink
feat: remove BUSD (#210)
Browse files Browse the repository at this point in the history
Co-authored-by: Rick <[email protected]>
  • Loading branch information
Rickk137 and rick23p authored Feb 15, 2024
1 parent 4b2abff commit 08d59ea
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 21 deletions.
5 changes: 0 additions & 5 deletions src/config/bridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ export class BridgeDictionary {
originalAddress: tokenOnChain[TokenEnum.USDC][ChainEnum.BSC],
rskSovrynAddress: '0x91EDceE9567cd5612c9DEDeaAE24D5e574820af1',
},
{
...tokens.BUSD,
originalAddress: tokenOnChain[TokenEnum.BUSD][ChainEnum.BSC],
rskSovrynAddress: '0x61e9604e31a736129d7f5C58964c75935b2d80D6',
},
{
...tokens.USDT,
originalAddress: tokenOnChain[TokenEnum.USDT][ChainEnum.BSC],
Expand Down
2 changes: 1 addition & 1 deletion src/config/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const mainnetBaseChains: BaseChainType[] = [
},
{
...chains[ChainEnum.BSC],
bassets: [tokens.USDT, tokens.USDC, tokens.BUSD, tokens.DAI],
bassets: [tokens.USDT, tokens.USDC, tokens.DAI],
},
];
export const mainnetPool = {
Expand Down
13 changes: 1 addition & 12 deletions src/config/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import usdtIcon from '../assets/icons/tokens/usdt.svg';
import daiIcon from '../assets/icons/tokens/dai.svg';
import usdcIcon from '../assets/icons/tokens/usdc.svg';
import busdIcon from '../assets/icons/tokens/busd.svg';
import xusdIcon from '../assets/icons/tokens/xusd.svg';
import rdocIcon from '../assets/icons/tokens/rdoc.svg';
import docIcon from '../assets/icons/tokens/doc.svg';
Expand All @@ -11,7 +10,6 @@ import { ChainEnum } from './chains';
export enum TokenEnum {
USDT = 'USDT',
USDC = 'USDC',
BUSD = 'BUSD',
DAI = 'DAI',
XUSD = 'XUSD',
RDOC = 'RDOC',
Expand All @@ -23,7 +21,7 @@ export enum TokenEnum {
TST2 = 'TST2',
TST3 = 'TST3',
TST4 = 'TST4',
TST6 = 'TST6'
TST6 = 'TST6',
}

export interface TokenTypeBase {
Expand All @@ -39,9 +37,6 @@ export const tokenOnChain = {
[ChainEnum.ETH]: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
[ChainEnum.ETH_TESTNET]: '0xff364ffa4962cb172203a5be01d17cf3fef02419',
},
[TokenEnum.BUSD]: {
[ChainEnum.BSC]: '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
},
[TokenEnum.DAI]: {
[ChainEnum.BSC]: '0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3',
[ChainEnum.ETH]: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
Expand Down Expand Up @@ -113,12 +108,6 @@ export const tokens: TokensType = {
icon: daiIcon,
addresses: tokenOnChain.DAI,
},
[TokenEnum.BUSD]: {
id: TokenEnum.BUSD,
name: TokenEnum.BUSD,
icon: busdIcon,
addresses: tokenOnChain.BUSD,
},
[TokenEnum.XUSD]: {
id: TokenEnum.XUSD,
name: TokenEnum.XUSD,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Aggregator/Aggregator.hooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('Aggregator hooks', () => {

it('toggles flow when ETH -> RSK', async () => {
const startingChain = ChainEnum.ETH_TESTNET;
const startingToken = TokenEnum.BUSD;
const startingToken = TokenEnum.DAI;
const destinationChain = ChainEnum.RSK_TESTNET;
const destinationToken = TokenEnum.XUSD;

Expand Down
2 changes: 0 additions & 2 deletions src/pages/Aggregator/Aggregator.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ export const useAggregatorDropdowns = (
]);

const toggleFlow = async () => {

const _startingChain = startingChain;
const _startingToken = startingToken;
const _destinationChain = destinationChain;
Expand All @@ -212,7 +211,6 @@ export const useAggregatorDropdowns = (
setValue(AggregatorInputs.StartingChain, _destinationChain);
setValue(AggregatorInputs.DestinationToken, _startingToken);
setValue(AggregatorInputs.StartingToken, _destinationToken);

};

return {
Expand Down

0 comments on commit 08d59ea

Please sign in to comment.