pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.69k stars 3.55k forks source link

[BUG] balance gets stuck on loading when starting a liquidity pool #3024

Closed Wemmons831 closed 2 years ago

Wemmons831 commented 2 years ago

Is there an existing issue for this?

Product

Syrup Pools

Current Behavior

After trying to create a new liquidity pool the with custom token the balance suddenly changes to loading after inputting second value and it seems to be indefinitely stuck image

Expected Behavior

I expected that it would allow me to create a liquidity pool

Steps To Reproduce

WEM coin 0x42Fb6019F34536847d3045eE63D1C81E8c25c6f1

Environment

- Device: custom gaming pc
- OS: Windows 11 Home Insider Preview 22526.1000
- Browser: Opera gx
- Wallet: Metamask extension

Anything else?

does it have anything to do with the approve function because this contract does not have one image

0xjojoex commented 2 years ago

the contract does not have allowance function

Wemmons831 commented 2 years ago

after adding allowance I get this when I try image_2022-01-12_200219

BitOfUniverse commented 2 years ago

@Wemmons831 make sure your contract fully implements ERC20 interface, you can use https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol as base for you contract to be sure that your contract works with PCS pools.

Chef-Cheems commented 2 years ago

As others mentioned token needs to be a valid ERC20 token. Closing this for now but feel free to reopen. Please also verify your contract on BSCScan, otherwise it is hard to debug anything to be honest.