Skip to content

Commit

Permalink
fix reclaimToken reentrancy, detected via slither
Browse files Browse the repository at this point in the history
  • Loading branch information
naszam committed Dec 10, 2020
1 parent 13a61a3 commit a43c1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/WFILFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ contract WFILFactory is AccessControl, Pausable {
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "WFILFactory: caller is not the default admin");
require(recipient != address(0), "WFILFactory: recipient is the zero address");
uint256 balance = token.balanceOf(address(this));
token.safeTransfer(recipient, balance);
emit TokenClaimed(token, recipient, balance);
token.safeTransfer(recipient, balance);
}


Expand Down

0 comments on commit a43c1dd

Please sign in to comment.