Hunt prep
Before you test Sturdy contest
What 8 disclosed reports say about Sturdy 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 | 5 | 0 | – | – | $0 |
| DoS lesson | 3 | 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.
-
Hard-coded slippage may freeze user funds during market turbulence
The issue was fixed by allowing a configurable minimum receive amount or operator-set slippage parameter instead of the hard-coded 99% check.
Disclosed
-
Withdrawing ETH collateral with max uint256 amount value reverts transaction
The code should check if the asset is native ETH and use a hardcoded decimal value of 18 instead of calling decimals().
Disclosed
-
The check for value transfer success is made after the return statement in _withdrawFromYieldPool of LidoVault
The function should perform the success check before returning, so that a failed transfer reverts the transaction.
Disclosed
-
Possible lost msg.value
The depositCollateral function should require msg.value to be zero for ERC20 assets and equal to _amount for ETH assets, and the redundant check in LidoVault should be removed.
Disclosed
-
UNISWAP_FEE is hardcoded which will lead to significant losses compared to optimal routing
The fee and route should be precomputed and passed in, or swaps should go through an aggregator; the report notes the team confirmed and linked a fix.
Disclosed
-
processYield() and distributeYield() may run out of gas and revert due to long list of extra rewards/yields
The issue was fixed by including an offset and length parameter to limit the number of rewards processed per call, as done in YieldManager.distributeYield().
Disclosed
-
ConvexCurveLPVault’s _transferYield can become stuck with zero reward transfer
The transfers in _transferYield should only be executed when the yield amount is positive.
Disclosed
-
Yield can be unfairly divided because of MEV/Just-in-time stablecoin deposits
The admin should use flashbots or another method to submit the distributeYield call that skips the mempool, and ideally snapshot depositors since the last distribution to calculate yield based on deposit size over time.
Disclosed