Hi, Community!
I have a problem while using masterchef smart contract.
The Contract Address 0xb6F875e1FA47eAc1B170F198C32bE5f7dB731fD5 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...
This is the masterchef contract.
The Contract Address 0x2f366823c4dff6075194c4DDbffA2f4A0376fF30 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...
And this one is the own token.
I added lp on masterchef.
After adding lp address to masterchef contract I tried to deposit lp tokens.
But I had this error.
Please help me.
Thanks.
Skyge
July 9, 2021, 11:47am
2
Hi, for the error message: Invalid parameters: must provide an Ethereum address
seems like there is something wrong with your wallet, do you metamask? and has it connected?
As for the latest error: Binance Transaction Hash (Txhash) Details | BscScan , caller is not the contract owner, please check your account address.
Thanks @Skyge
I used metamask and it was connected.
And another bug has appeared.
And deposit() function can only be called by owner?
Skyge
July 9, 2021, 12:04pm
4
Not sure for your code, but the error message is.
@Skyge thanks. I still have this error.
What is wrong?
Skyge
July 10, 2021, 12:04pm
6
I am not the owner of the chief, so I can not have a try, but I think you can have a look at these test case https://github.com/sushiswap/sushiswap/blob/canary/test/MasterChefV2.test.ts