QA Report #11
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
1. typo in comments
struc --> struct
paking --> packing
aggegator --> aggregator
MIMOManagedRebalance.sol#L48
MIMOAutoRebalance.sol#L52
allowedVaration --> allowedVariation
MIMOManagedRebalance.sol#L170
MIMOAutoRebalance.sol#L254
rebalnce --> rebalance
2. constants should be defined rather than using magic numbers
Even assembly can benefit from using readable constants instead of hex/numeric literals
MIMOSwap.sol#L59
MIMOAutoRebalance.sol#L180
MIMOProxy.sol#L95
MIMOProxy.sol#L138
3. lines are too long
Usually lines in source code are limited to 80 characters. Today’s screens are much larger so it’s reasonable to stretch this in some cases. Since the files will most likely reside in GitHub, and GitHub starts using a scroll bar in all cases when the length is over 164 characters, the lines below should be split when they reach that length
4. should fix the version
Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that affect the contract system negatively.
The text was updated successfully, but these errors were encountered: