I am currently trying to use a timelock to queue / execute transactions in a "masterchef" contract.
The thing is, using functions through a timelock is very different. I am asked for these parameters:
target = the address of the contract where the function is located
value = MATIC used on the transaction (currently 0)
signature = the function I want to execute
data = here is the issue. I dont know how to format the parameters of the function to byte32
eta = current block + delay
Trying to add a pool in (0x67acAa79F5F33496ac0e9C2D1876F8C3AdC28FeD)
with this timelock (0xfa6eA85eb982C9988653835C3CabB5C14ef6Cf75)
target = 0x67acAa79F5F33496ac0e9C2D1876F8C3AdC28FeD
value = 0
signature = add(uint256,address,uint16)
data = ??
eta = (Current block + 43200 + small number to have some spare time)
Can someone explain me how to get the parameters
_allocPoint = 35
_lpToken = 0x35a991d3D522dc5eE89Be334798CA2788DDf0fB9
_depositFeeBP = 400
in byte32 to make the transaction? Thanks!
Already tried https://abi.hashex.org , but the timelock just tells me the data is wrong