Open code423n4 opened 2 years ago
This was typo comment, it should be calculateinterest instead of calculateIntest.
calculateinterest
calculateIntest
Manual Review
https://github.com/code-423n4/2022-04-abranft/blob/5cd4edc3298c05748e952f8a8c93e42f930a78c2/contracts/NFTPair.sol#L188-L191
since this worse params was used, it can be used like below :
worse params
https://github.com/code-423n4/2022-04-abranft/blob/5cd4edc3298c05748e952f8a8c93e42f930a78c2/contracts/NFTPair.sol#L283-L288
require( params.duration >= cur.duration && params.valuation <= cur.valuation && params.annualInterestBPS <= cur.annualInterestBPS, "NFTPair: worse params" );
The "bad params" and "worse params" messages are different checks. Why make the revert string the same?
This was typo comment, it should be
calculateinterest
instead ofcalculateIntest
.Tool Used
Manual Review
https://github.com/code-423n4/2022-04-abranft/blob/5cd4edc3298c05748e952f8a8c93e42f930a78c2/contracts/NFTPair.sol#L188-L191
since this
worse params
was used, it can be used like below :https://github.com/code-423n4/2022-04-abranft/blob/5cd4edc3298c05748e952f8a8c93e42f930a78c2/contracts/NFTPair.sol#L283-L288
Tool Used
Manual Review
Recommended Mitigation