Hunt prep
Before you test Rage Trade
What 8 disclosed reports say about Rage Trade: 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 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS 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.
-
If a user approves junior vault tokens to WithdrawPeriphery, anyone can withdraw/redeem his/her token
The fix replaces the caller-supplied 'from' parameter with msg.sender so the periphery only acts on behalf of the actual caller; the text states a fix PR was opened and reviewed as looking good.
Disclosed
-
Wrong price calculation in DnGmxJuniorVaultManager.sol
The suggested fix was incorrect; the actual fix removed the multiplication and division by usdcPrice entirely, only adjusting for slippage.
Disclosed
-
WithdrawPeriphery uses incorrect value for MAX_BPS which will allow much higher slippage than intended
The MAX_BPS constant was corrected to 10000, and the fix was confirmed.
Disclosed
-
Early depositors to DnGmxSeniorVault can manipulate exchange rates to steal funds from later depositors
The vault should be initialized with a small deposit (e.g., 1e6 aUSDC) that mints shares to a dead address to permanently lock the exchange rate.
Disclosed
-
DnGmxJuniorVaultManager#harvestFees can push junior vault borrowedUSDC above borrow cap and DOS vault
The fix adds a check to return zero if the borrowed amount exceeds the borrow cap, preventing the underflow.
Disclosed
-
DnGmxJuniorVaultManager#_rebalanceBorrow logic is flawed and could result in vault liquidation
The condition was changed to test that the BTC amount is non-zero, and the fix was confirmed by the reporter.
Disclosed
-
WithdrawPeriphery#_convertToToken slippage control is broken for any token other than USDC
The fix adjusts the minimum output amount to match the token's decimals, and the text confirms it was applied.
Disclosed
-
DnGmxJuniorVaultManager#_totalAssets current implementation doesn't properly maximize or minimize
The fix was to use the maximize parameter correctly for the asset price and to add slippage to the debt value when minimizing, as confirmed in the discussion.
Disclosed