Hunt prep
Before you test HydraDX
What 11 disclosed reports say about HydraDX: 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 | 7 | 0 | – | – | $0 |
| DoS lesson | 3 | 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.
-
complete liquidity removal will result in permanent disable of the liquidity addition and prevent minting shares for the liquidity providers.
The add_liquidity function should handle a pool with zero total shares by minting shares equal to the added amount, as add_token does.
Disclosed
-
A huge loss of funds for all the users who try to remove liquidity after swapping got disabled at manipulated price.
The report recommends checking that the price is within the allowed range before disabling swapping and allowing remove and add liquidity, by adding a price check in `set_asset_tradable_state`.
Disclosed
-
Missing hook call will lead to incorrect oracle results
The remove_token function should call the on_liquidity_changed hook to forward the updated asset state to the oracle.
Disclosed
-
Re-adding assets to the omnipool can cause a problem with the oracle
The oracle entries for an asset should be deleted when the asset is removed from the omnipool, so that a correct price is calculated from the start when it is added again.
Disclosed
-
No safe_withdrawal option in withdraw_protocol_liquidity function in omnipool can be abused by frontrunners to cause losses to the admin when removing liquidity
Add a safe_withdrawal parameter or a minimum_out parameter to limit slippage losses.
Disclosed
-
No slippage check in remove_liquidity function in omnipool can lead to slippage losses during liquidity withdrawal.
Add a slippage limit parameter to the liquidity removal function so users can specify a minimum acceptable amount out.
Disclosed
-
Malicious liquidity provider can put pool into highly manipulatable state
The withdraw_asset_amount function should also check that the total pool issuance after withdrawal is either zero or at least MinPoolLiquidity.
Disclosed
-
Users can MAKE EMA-Oracle price outdated with direct transfers to StableSwap
The issue should be fixed by disabling transfers to the StableSwap pools, similar to how transfers to the Omnipool are blocked.
Disclosed
-
Storage can be bloated with low value liquidity positions
The remove_liquidity function should enforce that the remaining position amount is either zero or at least MinimumPoolLiquidity.
Disclosed
-
Complete liquidity removals fail from stableswap pools
The project disputed the finding as by design, so no fix is stated; the reporter recommended allowing multi-token liquidity withdrawal.
Disclosed