QA Report #296
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Low severity issues
Incorrect revert message
In
contracts/src/Cally.sol#L169
the revert message is false -"Reserve strike too small"
. If reverts, it is too large. Additionally, a sharp inequality is used - someone may want just to present a price and skip the dutch auction - then equality would be useful.Non-critical issues
Use
!value
instead ofvalue == false
To increase readability, negate bool values instead of ensuring they are false. This is a best practice.
Cally.sol#L217
Cally.sol#L220
Cally.sol#L328
Economic calculations unnecessarily use approximations
In
Cally.getDutchAuctionStrike(...)
there are fixed-point calculations. At firstprogress
is approximated, then used in calculations. It would be more precise to inline the calculation in the strike calculation.Instead of:
write:
The text was updated successfully, but these errors were encountered: