FIAT DAO veFDT contest - saneryee's results

Unlock liquidity for your DeFi fixed income assets.

General Information

Platform: Code4rena

Start Date: 12/08/2022

Pot Size: $35,000 USDC

Total HM: 10

Participants: 126

Period: 3 days

Judge: Justin Goro

Total Solo HM: 3

Id: 154

League: ETH

FIAT DAO

Findings Distribution

Researcher Performance

Rank: 99/126

Findings: 1

Award: $29.89

🌟 Selected for report: 0

🚀 Solo Findings: 0

Summary

Non-critical Issues

IssueInstances
1Useless variables, redundant code1

Total: 1 instances over 1 issues

Non-critical Issues

Useless variables, redundant code

Since uEpoch == 0 in the condition of the if statement, the [uEpoch + 1] = [0+1] = [1], uEpoch in userPointHistory[_addr][uEpoch + 1] = userOldPoint is meaningless and can be written as userPointHistory[_addr][1] = userOldPoint.

File: contracts/VotingEscrow.sol #1 257: if (uEpoch == 0) { 258: userPointHistory[_addr][uEpoch + 1] = userOldPoint; 259: }

https://github.com/code-423n4/2022-08-fiatdao/blob/fece3bdb79ccacb501099c24b60312cd0b2e4bb2/contracts/VotingEscrow.sol#L257-L259

#0 - gititGoro

2022-09-04T22:02:57Z

Duplicate of #152

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