pancake-swap-interface-v1 icon indicating copy to clipboard operation
pancake-swap-interface-v1 copied to clipboard

ROUTER_ADDRESS for testnet

Open RealPeha opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I want to test how liquidity pool work and i use testnet for this. But noticed than ROUTER_ADDRESS is only for mainnet

Describe the solution you'd like Please provide ROUTER_ADDRESS for testnet too. I think constant ROUTER_ADDRESS can be an object like this https://github.com/pancakeswap/pancake-swap-interface/blob/master/src/constants/index.ts#L31

For example:

export const ROUTER_ADDRESS = {
  [ChainId.MAINNET]: '0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F',
  [ChainId.BSCTESTNET]: 'testnet address',
}

RealPeha avatar Apr 22 '21 10:04 RealPeha

Yes that would help a lot. The router address for testnet currently is: 0xD99D1c33F9fC3444f8101754aBC46c52416550D1

safezerolife avatar Apr 24 '21 15:04 safezerolife