Remove tokens from a timelock

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

1 Like

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()

1 Like

i did it sir and mistakenly run it in mainnet 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 "";
import "";

    using SafeERC20 for IERC20;
    function rescueToken(IERC20 token, address to, uint256 amount) public {
        token.safeTransfer(to, amount);

1 Like

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.