FIAT DAO veFDT contest - wastewa'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: 101/126

Findings: 1

Award: $29.89

🌟 Selected for report: 0

🚀 Solo Findings: 0

Users, who delegated out votes and had their lock expire, have to re-increase their lock time to finally withdraw.

This bug exists because delegate(address) does not allow you to delegate back to an account that has a lock expired and withdraw doesnt allow accounts with outstanding delegated votes to close their lock--so if a user's lock ends and they delegated out votes, then a user cannot withdraw because of the conditions stated.

A potential solution is to not check if a lock is expired when users delegate back to themselves, relaxing this condition when users are reclaiming votes:

require(toLocked.end > block.timestamp, "Delegatee lock expired");

found at: https://github.com/code-423n4/2022-08-fiatdao/blob/fece3bdb79ccacb501099c24b60312cd0b2e4bb2/contracts/VotingEscrow.sol#L588

#0 - gititGoro

2022-09-04T04:13:24Z

This is intentional functionality.

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