Hunt prep
Before you test FIAT DAO veFDT contest
What 10 disclosed reports say about FIAT DAO veFDT contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 7 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
The current implementation of the VotingEscrow contract doesn’t support fee on transfer tokens
The contract should measure the token balance before and after the transfer and use the difference as the locked amount, or enforce that the balance change equals the stated amount; the sponsor acknowledged the issue and added a comment that fee-on-transfer tokens are not supported.
Disclosed
-
Attacker contract can avoid being blocked by BlockList.sol
The blocklist should consider blocking addresses without checking if they are contracts, and may need to block specific externally owned accounts.
Disclosed
-
Blocking Through Change of Blocklist Could Trap Tokens
The blocklist contract should be given an unblock function so that a mistaken block can be reversed.
Disclosed
-
Unsafe casting from int128 can cause wrong accounting of locked amounts
The contract should validate that the amount fits within int128 before casting, or use a larger integer type; the sponsor added a comment that the contract does not support tokens with very large max supply.
Disclosed
-
Attackers can abuse the quitLock function to get a very large amount of votes
The project should implement a mechanism that prevents creating a lock and quitting it in the same transaction, though regular loans would still be a problem.
Disclosed
-
increaseUnlockTime missing _checkpoint for delegated values
The _checkpoint call should be moved outside the if-statement so it runs for all users, and the sponsor addressed the finding with a fix.
Disclosed
-
Inconsistent logic of increase unlock time to the expired locks
The expiry check should be applied consistently, regardless of delegation status, by removing the conditional check.
Disclosed
-
Error in Updating _checkpoint in the increaseUnlockTime Function
The fix was to set oldLocked.end to oldUnlockTime instead of unlock_time, and this was confirmed to be addressed.
Disclosed
-
Unsafe usage of ERC20 transfer and transferFrom
The contract was fixed by replacing the require statements with OpenZeppelin's safeTransfer and safeTransferFrom functions.
Disclosed