Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

Return value of the function call is not checked in `BuyerAgent.sol`

Summary

Function returns a value but it is ignored.

Vulnerability Details

```javascript
function setAmountPerRound(uint256 _amountPerRound) external onlyOwner {
=> _checkRoundPhase(Phase.Withdraw);
amountPerRound = _amountPerRound;
//@audit emit an event
}
```
```javascript
function setFeeRoyalty(uint96 _fee) public onlyOwner {
=> _checkRoundPhase(Phase.Withdraw);
if (_fee < 1 || _fee > 100) {
revert InvalidFee(_fee);
}
royaltyFee = _fee;
}
```

Impact

Tools Used

manual review , aderyn

Recommendations

Use the Return Values Appropriately

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.