code-423n4 / 2022-07-yield-findings

0 stars 0 forks source link

QA Report #64

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

QA report

Non-critical

[N-01] Constants should be defined and documented rather than using magic numbers

[N-02] Remove param parameter of point function

As the param must be "ladle" always, remove this one

/// @dev Point to a different ladle
/// @param value Address of new ladle
function point(address value) external auth {
    ladle = ILadle(value);
    emit Point(param, value);
}

Low Risk

[L-01] Missing checks for address(0) when assigning values to address state variables

Consider add a require(value != address(0), "The value should no be the zero address");

[L-02] The setLine and setLimit functions don't check the parameters

The parameters ilkId, baseId and setIgnoredPair is not checked, the ids maybe don't exist

alcueca commented 2 years ago

None useful. Could be excused for not knowing point follows one of our standards. Certain magic numbers are very recognizable.