AbraNFT contest - mics's results

A peer to peer lending platform, using NFTs as collateral.

General Information

Platform: Code4rena

Start Date: 27/04/2022

Pot Size: $50,000 MIM

Total HM: 6

Participants: 59

Period: 5 days

Judge: 0xean

Id: 113

League: ETH

Abracadabra Money

Findings Distribution

Researcher Performance

Rank: 48/59

Findings: 1

Award: $72.38

🌟 Selected for report: 0

🚀 Solo Findings: 0

Low Risk Findings

[QA-1] Use timelock modifier for setter functions

Timelock modifier is commonly used for storage variable setters that effects the contract logic. Consider adding timelocks on such setters.

https://github.com/code-423n4/2022-04-abranft/tree/main/contracts/NFTPair.sol#L728 https://github.com/code-423n4/2022-04-abranft/tree/main/contracts/NFTPairWithOracle.sol#L750

[QA-2] Prefer multiplications over division whenever possible

If you have a condition of x / y ? z where ? is any of <, >, ==, etc. You can do instead x ? z * y to increase precision.

https://github.com/code-423n4/2022-04-abranft/tree/main/contracts/NFTPairWithOracle.sol#L288

[QA-3] Use safe math for solidity version <8

You should use safe math for solidity version <8 since there is no default over/under flow check it those versions.

https://github.com/code-423n4/2022-04-abranft/tree/main/contracts/NFTPair.sol https://github.com/code-423n4/2022-04-abranft/tree/main/contracts/NFTPairWithOracle.sol

#0 - cryptolyndon

2022-05-13T03:53:22Z

QA-2: Acknnowledged, thanks

QA-1 and QA-3: both feel like too little thought has been given to the specific use -- unsafe math is extensively documented and the setter function mentioned sets the fee recipient; why would one want to lock that in for a specific period?

#1 - cryptolyndon

2022-05-13T04:10:05Z

(see #124)

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter