veRWA - ayden's results

Incentivization Primitive for Real World Assets on Canto

General Information

Platform: Code4rena

Start Date: 07/08/2023

Pot Size: $36,500 USDC

Total HM: 11

Participants: 125

Period: 3 days

Judge: alcueca

Total Solo HM: 4

Id: 274

League: ETH

Canto

Findings Distribution

Researcher Performance

Rank: 71/125

Findings: 1

Award: $9.82

QA:
grade-a

🌟 Selected for report: 0

🚀 Solo Findings: 0

1.Not necessary to use nonReentrant https://github.com/code-423n4/2023-08-verwa/tree/main/src/VotingEscrow.sol#L268

2.Should ensure _timestamp is greater than zero https://github.com/code-423n4/2023-08-verwa/tree/main/src/LendingLedger.sol#L36#L39

    modifier is_valid_epoch(uint256 _timestamp) {
-       require(_timestamp % WEEK == 0 || _timestamp == type(uint256).max, "Invalid timestamp");
+       require( (_timestamp > 0 && _timestamp % WEEK == 0) || _timestamp == type(uint256).max, "Invalid timestamp");
        _;
    }

3.msg.sender receive token can be marked as payable https://github.com/code-423n4/2023-08-verwa/tree/main/src/LendingLedger.sol#L179

#0 - c4-judge

2023-08-22T14:10:24Z

alcueca marked the issue as grade-a

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