I added 10 pools to the masterchef and now I can’t add any pool more due to massupdatePools function.
I found that I need to intergrate Timelock for doing this.
Details
Here is my timelock contract how can I use timelock to do this?
I’ve made some transaction but it seem no use!
target ------->>> masterchef contract address
value -------->>> 0(no eth transfer)
signature ---->>> "add(uint256,address,bool)"
data -------->>> web3.eth.abi.encodeParameters([uint256,address,bool],YOUR_PARA1,YOUR_PARA2,YOUR_PARA3)
eta -------->>> `eta` should be greater than `getBlockTimestamp().add(delay)`
Thank you very much
I know how to fork everything but then to host the entire DEX what I should do? Upload everything on IPFS?
How can I link the verious contracts?
I hope your tutorial will help us
Hey, the help was awesome, I was able to queue a TX with the description,
(see my queue tx)
But not able to execute, my delay is 43200 (so like 12.5h) do i need to wait that time? thanks, greetings!
Hey Thanks for your Reply!
so I waited the time and tried with the same data, just took the current Unix epoch time +1000 (also with +44000) and it’s not working. It just shows 0.285 Gasfee in Metamsk (like usual for errors) do you might know what it is?
Not sure, it could be another problem with the contract itself. Is the function you are calling valid? When using a test net can you make the function work (without the timelock)?
The function I want to call is about transferring ownership. And it definitely works, because I already transferred ownership of Masterchef to the Timelock a few weeks ago. And I use the same hex data that appears when I try to change the owner in the MasterChef itself.
… Hmm really bad… I don’t know how to get access that again. ;(