Hunt prep
Before you test Mellow Protocol contest
What 11 disclosed reports say about Mellow Protocol 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 | 9 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Wrong implementation of performanceFee can cause users to lose 50% to 100% of their funds
The formula should be changed to calculate the fee based on the profit (minLpPriceFactor minus DENOMINATOR) multiplied by the performance fee and divided by DENOMINATOR squared.
Disclosed
-
AaveVault does not update TVL on deposit/withdraw
The TVL should be updated when depositing and withdrawing before any other calculations.
Disclosed
-
UniV3Vault.sol#collectEarnings() can be front run
The fix is to include uncollected fees in the TVL calculation, for example by adding tokensOwed to the vault's TVL.
Disclosed
-
Withdraw from AaveVault will receive less than actual share
The withdraw function should call updateTvls at the beginning if the subvault caches tvl.
Disclosed
-
Admin can break _numberOfValidTokens
The counter should only be decreased if the token was previously allowed, by checking the allowed status before decrementing.
Disclosed
-
Bad redirects can make it impossible to deposit & withdraw
The redirects array should be restricted so that if i redirects to j, j cannot redirect itself, and this should be checked when setting the array.
Disclosed
-
Users can avoid paying vault fees
Fees should always be charged on each deposit and withdrawal, even within the same block, by removing the early return when the elapsed time is below the delay.
Disclosed
-
YearnVault.sol#pull() will most certainly fail
The fix is to update tokenAmounts[i] with the actual amount returned by yToken.withdraw().
Disclosed
-
UniswapV3’s path issue for swapExactOutput
The path should be reversed element-by-element, not byte-by-byte.
Disclosed