Hello am trying to remove tokens from the timelock to test a function in the contract am working on ,Please do anyone have an idea on what i should do
Hi, I assume your failed transaction is this one: acceptAdmin, if you want to call this function successfully, you should use the pendingAdmin
account to call it.
Actually, it should be like this: call setPendingAdmin(ACCOUNT1)
at first, and then use ACCOUNT1
to call acceptAdmin()
i did it sir and mistakenly run it in mainnet
https://bscscan.com/address/0x940442ada5ed6bb7f5988abf9625c7c9e737de04 but how can i fix this
need to restructure the LP and the rest
Emmmm, so do you mean you want to withdraw the SKT
token in the time lock contract? or other execution? I do not find a function that you can withdraw the SKT
token.
yeah i wan’t to withdraw it
but do you have any contract that have it ? and also please any means to remove it , i saw it in open zeppelin i taught you can use terminal for it
because need to burn it
You can write a function to withdraw it, such as:
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
contract YOUR_CONTRACT{
using SafeERC20 for IERC20;
function rescueToken(IERC20 token, address to, uint256 amount) public {
token.safeTransfer(to, amount);
}
}
Okay please do you have any contact code of it to deploy or .sol code I can deploy it ?
Sorry, I do not have a Timelock contract with such a function.