Created
April 6, 2023 14:59
-
-
Save 0xmikko/69e5894869f8203bc1114c4920f588fd to your computer and use it in GitHub Desktop.
Transfer using WETHGateway
This file contains hidden or 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
for(uint256 i; i<tokens.length; ++i) { | |
address token = tokens[i]; | |
uint256 balance = balances[i]; | |
if (address == WETH) { | |
safeTransferToken(WETH, WETHGateway, amount); | |
} else { | |
safeTransferToken(token, to, amount); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment