Skip to content

Commit

Permalink
chore: upgrade to mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcodercrane committed Jan 4, 2024
1 parent 7b76834 commit d5b1edb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/templates/binance-smart-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
networks:
mainnet:
chainID: 56
nodeURL: 'https://rpc.ankr.com/bsc'
nodeURL: 'https://binance.llamarpc.com'
tokenListType: FILE
tokenListSource: /home/gateway/conf/lists/bep20_tokens_mainnet.json
nativeCurrencySymbol: 'BNB'
Expand Down
40 changes: 20 additions & 20 deletions test/connectors/pancakeswap/pancakeswap.routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ let bsc: BinanceSmartChain;
let pancakeswap: PancakeSwap;

beforeAll(async () => {
bsc = BinanceSmartChain.getInstance('testnet');
bsc = BinanceSmartChain.getInstance('mainnet');
patchEVMNonceManager(bsc.nonceManager);
await bsc.init();
pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'testnet');
pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'mainnet');
await pancakeswap.init();
});

Expand Down Expand Up @@ -42,17 +42,17 @@ const patchStoredTokenList = () => {
patch(bsc, 'tokenList', () => {
return [
{
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
},
{
chainId: 97,
chainId: 56,
name: 'DAI',
symbol: 'DAI',
address: '0x8a9424745056Eb399FD19a0EC26A14316684e274',
address: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3',
decimals: 18,
},
];
Expand All @@ -63,18 +63,18 @@ const patchGetTokenBySymbol = () => {
patch(bsc, 'getTokenBySymbol', (symbol: string) => {
if (symbol === 'WBNB') {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
} else {
return {
chainId: 97,
chainId: 56,
name: 'DAI',
symbol: 'DAI',
address: '0x8a9424745056Eb399FD19a0EC26A14316684e274',
address: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3',
decimals: 18,
};
}
Expand All @@ -84,10 +84,10 @@ const patchGetTokenBySymbol = () => {
const patchGetTokenByAddress = () => {
patch(pancakeswap, 'getTokenByAddress', () => {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
});
Expand Down Expand Up @@ -206,10 +206,10 @@ describe('POST /amm/price', () => {
patch(bsc, 'getTokenBySymbol', (symbol: string) => {
if (symbol === 'WBNB') {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
} else {
Expand Down Expand Up @@ -239,10 +239,10 @@ describe('POST /amm/price', () => {
patch(bsc, 'getTokenBySymbol', (symbol: string) => {
if (symbol === 'WBNB') {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
} else {
Expand Down Expand Up @@ -414,10 +414,10 @@ describe('POST /amm/trade', () => {
patch(bsc, 'getTokenBySymbol', (symbol: string) => {
if (symbol === 'WBNB') {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
} else {
Expand Down Expand Up @@ -449,10 +449,10 @@ describe('POST /amm/trade', () => {
patch(bsc, 'getTokenBySymbol', (symbol: string) => {
if (symbol === 'WBNB') {
return {
chainId: 97,
chainId: 56,
name: 'WBNB',
symbol: 'WBNB',
address: '0xae13d989dac2f0debff460ac112a837c89baa7cd',
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
decimals: 18,
};
} else {
Expand Down

0 comments on commit d5b1edb

Please sign in to comment.