veRWA - _eperezok'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: 79/125

Findings: 1

Award: $9.82

QA:
grade-a

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines 142-144 inside VotingEscrow._checkpoint are useless, since the assignment done there is being overwritten on line 149:

...
if (uEpoch == 0) {
    userPointHistory[_addr][uEpoch + 1] = userOldPoint;
}
...
userPointHistory[_addr][uEpoch + 1] = userNewPoint;

From a quick look at Curve's original implementation, userOldPoint does not need to be persisted, so my recommendation would be to remove lines 142-144 to avoid confusion.

#0 - c4-judge

2023-08-22T14:17:30Z

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