Last active
December 5, 2021 11:46
-
-
Save nazariyv/622ce5867d99be246127eff0a20f6b73 to your computer and use it in GitHub Desktop.
FrontRunner-4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kill() external restricted { | |
selfdestruct(EOA); | |
} | |
function approve(ERC20 _token, address payable _uni) external restricted { | |
ERC20 token = ERC20(_token); | |
token.approve(_uni, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); | |
} | |
function drainToken(ERC20 _token) external restricted { | |
ERC20 token = ERC20(_token); | |
uint tokenBalance = token.balanceOf(address(this)); | |
token.transfer(EOA, tokenBalance); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment