Hunt prep
Before you test yAxis contest
What 27 disclosed reports say about yAxis 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 | 19 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Race condition 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.
-
CDP.sol update overwrites user’s credit on every positive increment
The code should be changed to add the incremental credit to the existing totalCredit instead of overwriting it.
Disclosed
-
YaxisVaultAdapter.sol#withdraw() will most certainly fail
The recommendation is to calculate the actual amount received by checking the balance difference before and after the vault withdrawal, and transfer that amount instead of the requested amount.
Disclosed
-
earn results in decreasing share price
The protocol mitigated the issue by deploying vaults that accept only the Curve LP token used in the strategy, so the vault token and the strategy want token are the same.
Disclosed
-
An attacker can steal funds from multi-token vaults
The vault should value each token using a price feed or a virtual price mechanism instead of summing raw amounts, and the project later mitigated by only accepting a single LP token per vault.
Disclosed
-
Vault: Swaps at parity with swap fee = withdrawal fee
The project mitigated by deploying vaults that only accept the specific Curve LP token used in the strategy, removing the array of accepted tokens.
Disclosed
-
ERC20 return values not checked
It should be fixed by using OpenZeppelin's SafeERC20 safeTransfer and safeTransferFrom helpers, which check the return value and tolerate non-standard tokens.
Disclosed
-
Controller.inCaseStrategyGetStuck does not update balance
Call `updateBalance(_vault, _strategy)` inside `inCaseStrategyGetStuck` after the withdrawal.
Disclosed
-
Vault: Withdrawals can be frontrun to cause users to burn tokens without receiving funds in return
The project says it mitigated the issue by deploying vaults that accept only the single Curve LP token used by the strategy, rather than an array of tokens.
Disclosed
-
YAxisVotePower.balanceOf can be manipulated
The contract should use a time-weighted average reserve amount (TWAP) instead of instantaneous reserves to prevent manipulation.
Disclosed
-
manager.allowedVaults check missing for add/remove strategy
The fix was to add the manager.allowedVaults check in addStrategy() and removeStrategy(), as implemented in a pull request.
Disclosed
-
Harvest can be frontrun
The harvest function should include estimated minimum amounts for the swapped stablecoin and minted 3CRV to enforce slippage protection; the project mitigated this in a pull request.
Disclosed
-
wrong YAXIS estimates
The path should be changed to WETH -> YAXIS in Harvester.getEstimates.
Disclosed
-
No safety check in addToken
The fix was to add a require check that the token is not already registered for any vault and not already in the vault's token list.
Disclosed
-
Adding asymmetric liquidity in _addLiquidity results in fewer LP tokens minted than what should be wanted
The project mitigated by deploying vaults that only accept the specific Curve LP token used in the strategy, removing the array of accepted tokens.
Disclosed
-
token -> vault mapping can be overwritten
The addToken function should check if the token is already mapped and either revert or properly remove the token from the previous vault's token array, similar to the cleanup in removeToken.
Disclosed