Hunt prep
Before you test FairSide contest
What 26 disclosed reports say about FairSide 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 | 18 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 2 | 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.
-
FSDVesting : Claiming tributes should call FSD token’s corresponding functions
The fix is to add calls to fsd.claimTribute(num) and fsd.claimGovernanceTribute(num) in the respective functions, and remove the internal claimedTribute accounting.
Disclosed
-
Anyone Can Arbitrarily Call FSDVesting.updateVestedTokens()
The updateVestedTokens() function should be restricted to be callable only from the FSD.sol contract, for example by implementing an onlyFSD role.
Disclosed
-
TributeAccrual.availableTribute() & TributeAccrual.availableGovernanceTribute() Distributes Tributes Unfairly
The protocol should ensure all users' conviction scores are up to date when claims are made, or use a running total of minted tokens multiplied by elapsed time to calculate the total conviction score.
Disclosed
-
ERC20ConvictionScore._writeCheckpoint` does not write to storage on same block
Define the checkpoint variable as a storage pointer instead of a memory variable.
Disclosed
-
ERC20ConvictionScore allows transfers to special TOTAL_GOVERNANCE_SCORE address
The issue was indirectly fixed by a pull request, and the report recommends disallowing transfers to or from the special address or tracking the total score in a separate variable.
Disclosed
-
The variable fShareRatio is vulnerable to manipulation by flash minting and burning
The issue was fixed in PR#2, likely by forcing users to wait at least a block to prevent flash minting and burning.
Disclosed
-
Call to swapExactTokensForETH in liquidateDai() will always fail
The contract was fixed by adding an approval to UniswapV2 for the tokens being swapped.
Disclosed
-
ERC20ConvictionScore ’s governanceDelta should be subtracted when user is not a governor anymore
The code was fixed to return a negative signed integer for this case and add it to the new total.
Disclosed
-
Locked funds from tokenization are credited twice to user leading to protocol fund loss
The redundant transfer of FSD tokens on Line316 in acquireConviction() should be removed; the report states it was fixed in PR#3.
Disclosed
-
Conviction scoring fails to initialize and bootstrap
The issue was fixed by creating and initialising a new checkpoint for a new user during token transfer.
Disclosed
-
ERC20ConvictionScore._updateConvictionScore uses stale credit score for governanceDelta
The code was fixed in PR#13, which adjusted the logic to check governance eligibility outside the time-elapsed condition.
Disclosed
-
Locked funds are debited twice from the user during tokenization leading to fund loss
The redundant token transfer in tokenizeConviction should be removed so the amount is only moved once.
Disclosed
-
NFTs can never be redeemed back to their conviction scores leading to lock/loss of funds
The issue was fixed by adding logic to bootstrap and update the protocol's conviction score checkpoints during tokenization.
Disclosed
-
Eth may get stuck in contract
The contract should be fixed by using `call()` to send Ether instead of `transfer()`.
Disclosed
-
Conviction totals not updated during tokenization
The fix was to use the return values of _updateConvictionScore and call _updateConvictionTotals with them.
Disclosed