I think I have my token and staking set up all right, but when trying to call the stakeLP function, I’m getting the error - ‘SafeERC20: low-level call failed’. Everything else is works seemingly okay.
I’m using Remix on Ropsten testnet. The LP is from Uniswap.
I saw some other posts with a similar problem and most of them didn’t just have the tokens minted.
It is unclear to me if I have to generate the tokens beforehand and transfer them to token or staking contract address? Either way, I tried that.
Code to reproduce
This is the contract for the token - https://ropsten.etherscan.io/address/0x4ef753F74899EA2b0C46b6CA3a064BDA022C0507
This is for the staking