Open code423n4 opened 1 year ago
Context:
Recommendation:
Add non-zero address checks when set address state variables.
Description:
According official solidity documentation functions should be grouped according to their visibility and ordered:
constructor
receive function (if exists)
fallback function (if exists)
external
public
internal
private
Put the functions in the correct order according to the documentation.
Public functions can be declared external if they are not called by the contract.
Declare these functions as external instead of public.
@param deniedContract The addres of the denied contract
Operator role must be claimed by the new oprator.
@param newReplenishmentPriceBps_ The new replen
Will return 0 if th user has zero DBR or more.
At 5000, 50% of of a borrower's underwater debt can be liquidated.
@param _liquidationIncentiveBps The new liqudation incentive set in basis points. 1 = 0.01%
@param amount The amount od DOLA to recall to the the lender.
0xean marked the issue as grade-b
Report
Low Risk
[L-01]: Missing checks for address(0x0)
Context:
Recommendation:
Add non-zero address checks when set address state variables.
Non-Critical Issues
[N-01]: Wrong order of functions
Context:
Description:
According official solidity documentation functions should be grouped according to their visibility and ordered:
constructor
receive function (if exists)
fallback function (if exists)
external
public
internal
private
Recommendation:
Put the functions in the correct order according to the documentation.
[N-02]: Public functions can be external
Context:
Description:
Public functions can be declared external if they are not called by the contract.
Recommendation:
Declare these functions as external instead of public.
[N-03]: Require() statements should have descriptive reason string
[N-04]: NatSpec is missing
[N-05]: Typos
Context:
@param deniedContract The addres of the denied contract
L36 (change addres to address)Operator role must be claimed by the new oprator.
L50 (change oprator to operator)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)@param newReplenishmentPriceBps_ The new replen
L60 (change replen to replenishmentPriceBps)Will return 0 if th user has zero DBR or more.
L128 (change th to the)At 5000, 50% of of a borrower's underwater debt can be liquidated.
L157 (change of of to of)@param _liquidationIncentiveBps The new liqudation incentive set in basis points. 1 = 0.01%
L181 (change liqudation to liquidation)@param amount The amount od DOLA to recall to the the lender.
L201 (change od to of)@param amount The amount od DOLA to recall to the the lender.
L201 (change the the to the)