We are tryting to make pancakeswap to work on bsc testnet. What we have done is as follows.
We have renamed the cake token to another token e.g BarToken with Symbol BARS We have added liquidity using Router V2 and Factory V2 and we have added liquidity using pancakeswap swap interface and everything seems to be working fine on this side. We renamed the Lp tokens on factory contract.
Than we fork the pancake-swap frontend and deployed the contracts for.
- SyrupBar (provided token address when deploying)
- MasterChef (provided srypbar address and token address and change the ownership of syrupbar and caketoken)
- Souchef
- LP pair contract generated by factory after adding liquidity using pancakeswap-frontend core.
We have added these contracts in config files for contracts, pools, farms and tokens. We also updated wbnb bsc testnet contract.
The problem is that we are not able to approve pool and not able to enable farm which has pair BARS-BNB(we double check the addresses). The wallet address is also the contract owners for all these contract.
After some debugging we find that the allownaces are getting undefined for pools and farms.
Did we miss anything?