Open drewroberts opened 8 months ago
Here is that function in my old contract standard:
function withdrawStuckTokens(address tkn) public onlyOwner {
require(IERC20(tkn).balanceOf(address(this)) > 0, "No tokens");
uint256 amount = IERC20(tkn).balanceOf(address(this));
IERC20(tkn).transfer(msg.sender, amount);
}
This function withdraws the tokens in the contract.