Skip to content

Commit

Permalink
Fix: remove audit-issue comment
Browse files Browse the repository at this point in the history
  • Loading branch information
0xadrii committed Jul 30, 2024
1 parent 0ac91e4 commit efdf736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/YieldBox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ contract YieldBox is
// Checks
Asset storage asset = assets[assetId];
if (asset.tokenType == TokenType.Native) revert InvalidTokenType();
if (asset.tokenType == TokenType.ERC721) revert InvalidTokenType(); // @audit-issue [LOW-01] - Should check for asset type `NONE`
if (asset.tokenType == TokenType.ERC721) revert InvalidTokenType();
if (asset.tokenType == TokenType.None) revert InvalidTokenType();

if (share == 0 && amount == 0) revert InvalidZeroAmounts();
Expand Down

0 comments on commit efdf736

Please sign in to comment.