Hunt prep
Before you test Float Capital contest
What 9 disclosed reports say about Float Capital 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 | 8 | 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.
-
latestMarket used where marketIndex should have been used
The issue was fixed by replacing latestMarket with marketIndex in the affected functions.
Disclosed
-
Staker.sol: Wrong values returned in edge cases of _calculateFloatPerSecond()
The fix was to remove the 1e18 multiplier from the edge case returns, and it was patched.
Disclosed
-
Missing events/timelocks for owner/admin only functions that change critical parameters
Add events to all owner/admin functions that change critical parameters and add timelocks for critical parameter changes.
Disclosed
-
Prevent markets getting stuck when prices don’t move
The contract should be enhanced so that after a certain period without price movement, the entire update function executes, including incrementing the market update index.
Disclosed
-
Wrong aave usage of claimRewards
The code should be changed to pass the aToken address instead of the payment token address when claiming rewards.
Disclosed
-
Users could shift tokens on Staker with more than he has staked
The fix should add checks on the pending shift amounts to ensure their sum does not exceed the user's stake balance.
Disclosed
-
copy paste error in _batchConfirmOutstandingPendingActions
The second assignment should set the false index to zero instead of the true index; the project confirmed and patched it.
Disclosed