import { ChainId , JSBI , Percent , Token , WETH } from '@pancakeswap-libs/sdk' ; export const ROUTER_ADDRESS = '0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F' ; type ChainTokenList = { readonly [ chainId in ChainId ] : Token [ ] ; } ; export const CAKE = new Token ( ChainId . MAINNET , '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82' , 18 , 'CAKE' , 'PancakeSwap Token' ) ; export const WBNB = new Token ( ChainId . MAINNET , '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' , 18 , 'WBNB' , 'Wrapped BNB' ) ; export const DAI = new Token ( ChainId . MAINNET , '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3' , 18 , 'DAI' , 'Dai Stablecoin' ) ; export const BUSD = new Token ( ChainId . MAINNET , '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56' , 18 , 'BUSD' , 'Binance USD' ) ; export const BTCB = new Token ( ChainId . MAINNET , '0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c' , 18 , 'BTCB' , 'Binance BTC' ) ; export const USDT = new Token ( ChainId . MAINNET , '0x55d398326f99059fF775485246999027B3197955' , 18 , 'USDT' , 'Tether USD' ) ; export const UST = new Token ( ChainId . MAINNET , '0x23396cF899Ca06c4472205fC903bDB4de249D6fC' , 18 , 'UST' , 'Wrapped UST Token' ) ; export const ETH = new Token ( ChainId . MAINNET , '0x2170Ed0880ac9A755fd29B2688956BD959F933F8' , 18 , 'ETH' , 'Binance-Peg Ethereum Token' ) ; const WETH_ONLY = { [ ChainId . MAINNET ] : [ WETH [ ChainId . MAINNET ] ] , [ ChainId . BSCTESTNET ] : [ WETH [ ChainId . BSCTESTNET ] ] , } ; export const BASES_TO_CHECK_TRADES_AGAINST = { ... WETH_ONLY , [ ChainId . MAINNET ] : [ ... WETH_ONLY [ ChainId . MAINNET ] , DAI , BUSD , BTCB , USDT , UST , ETH ] , } ; /**
 * Some tokens can only be swapped via certain pairs, so we override the list of bases that are considered for these
 * tokens.
 */ export const CUSTOM_BASES = { [ ChainId . MAINNET ] : { } , } ; export const SUGGESTED_BASES = { ... WETH_ONLY , [ ChainId . MAINNET ] : [ ... WETH_ONLY [ ChainId . MAINNET ] , DAI , BUSD , USDT ] , } ; export const BASES_TO_TRACK_LIQUIDITY_FOR = { ... WETH_ONLY , [ ChainId . MAINNET ] : [ ... WETH_ONLY [ ChainId . MAINNET ] , DAI , BUSD , BTCB , USDT ] , } ; export const PINNED_PAIRS = { [ ChainId . MAINNET ] : [ [ CAKE , WBNB ] , [ BUSD , USDT ] , [ DAI , USDT ] , ] , } ; export const NetworkContextName = 'NETWORK' ; export const INITIAL_ALLOWED_SLIPPAGE = 80 ; export const DEFAULT_DEADLINE_FROM_NOW = 60 * 20 ; export const ONE_BIPS = new Percent ( JSBI . BigInt ( 1 ) , JSBI . BigInt ( 10000 ) ) ; export const BIPS_BASE = JSBI . BigInt ( 10000 ) ; export const ALLOWED_PRICE_IMPACT_LOW = new Percent ( JSBI . BigInt ( 100 ) , BIPS_BASE ) ; export const ALLOWED_PRICE_IMPACT_MEDIUM = new Percent ( JSBI . BigInt ( 300 ) , BIPS_BASE ) ; export const ALLOWED_PRICE_IMPACT_HIGH = new Percent ( JSBI . BigInt ( 500 ) , BIPS_BASE ) ; export const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN = new Percent ( JSBI . BigInt ( 1000 ) , BIPS_BASE ) ; export const BLOCKED_PRICE_IMPACT_NON_EXPERT = new Percent ( JSBI . BigInt ( 1500 ) , BIPS_BASE ) ; export const MIN_ETH = JSBI . exponentiate ( JSBI . BigInt ( 10 ) , JSBI . BigInt ( 16 ) ) ;