We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7685f0 commit 959b7f5Copy full SHA for 959b7f5
contracts/ERC20Helper.sol
@@ -29,7 +29,7 @@ contract ERC20Helper is FirewallConsumer {
29
30
function transferToken(IERC20 token, address to, uint256 amount) internal firewallProtectedSig(0x3844b707) {
31
uint256 oldBalance = token.balanceOf(address(this));
32
- emit TransferOut(amount, msg.sender, token);
+ emit TransferOut(amount, to, token);
33
token.safeTransfer(to, amount);
34
if (token.balanceOf(address(this)) != (oldBalance - amount)) revert SentIncorrectAmount();
35
}
0 commit comments