Skip to content

Commit

Permalink
The Contract Should Approve(0) first [code-423n4/2022-01-notional-fin…
Browse files Browse the repository at this point in the history
  • Loading branch information
weitianjie2000 committed Feb 15, 2022
1 parent f1379df commit 40e978d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/TreasuryManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ contract TreasuryManager is
}

function approveToken(address token, uint256 amount) external onlyOwner {
IERC20(token).approve(ASSET_PROXY, 0);
IERC20(token).approve(ASSET_PROXY, amount);
}

Expand Down

0 comments on commit 40e978d

Please sign in to comment.