Hunt prep
Before you test GTE Perps and Launchpad
What 34 disclosed reports say about GTE Perps and Launchpad: 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 | 23 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| Access control 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.
-
Reduce-only orders can be used to inflate quoteOI and DoS the orderbook
The book should skip updating quoteOI and baseOI for reduce-only orders, or enforce notional and price caps relative to the mark price.
Disclosed
-
Liquidation stalls when top-of-book is outside divergence band (STANDARD & BACKSTOP), allowing under-margined positions to persist
The report recommends bypassing divergence checks for BACKSTOP liquidation orders, executing at the band boundary with a penalty, or providing a non-CLOB backstop that always fills within bounded slippage.
Disclosed
-
Funding Mis-Accrual Due to Missing Time Normalization in _calcFundingIndex
The accrual should be scaled by elapsed time divided by the base funding interval, with tests confirming that one long settlement equals many short ones.
Disclosed
-
Margin Balance can be forced to be < 0 even realizing upnl indirectly
On close, cap the margin refund to the actual reserved initial margin remaining for that position, and do not refund margin that was already withdrawn.
Disclosed
-
Perps - GTL post-only orders skew totalAssets accounting, minting excessive shares and rendering the GTL vault insolvent
The vault should add the subaccount to its internal accounting as soon as collateral is posted, not only when an order fills.
Disclosed
-
Donations to Distributor with arbitrary quoteToken can be used to drain all quote rewards from distributor
Validate both the launch asset and quote asset are legitimate within addRewards.
Disclosed
-
GTELaunchpadV2Pair permits minting LP tokens for free when there are non-zero accumulated launch pad fees
The mint function should subtract the accumulated launchpad fees when calculating the deposited amounts.
Disclosed
-
Attacker can drain funds from GTELaunchPadV2Pair using swap
The amount transferred in should be calculated after subtracting accrued launchpad fees from the balances, and the k invariant check should also use balances with accrued fees removed.
Disclosed
-
Protocol fails to charge fees from swap amount
The swap function should actually charge and collect the fee from the swap amount before updating the pool balances.
Disclosed
-
Incorrect Removal Of Asset In UpdateAccount Due To Wrong Implementation in _movePop
The _movePop function should be fixed to replace the target element with the last element of the array and then pop the last element.
Disclosed
-
Launchpad slippage is not enforced properly during token graduation
The contract should calculate and check the effective price per token for the entire purchase, including any AMM swap after graduation, against the user's specified limit.
Disclosed
-
Accumulated rewards per share can round to zero
The precision factor should be increased appropriately to handle this scenario.
Disclosed
-
Loss for protocol by incorrectly assuming the position has been fully closed
The code should either use FOK orders for backstop liquidation or also check that the position amount is zero before writing off the margin balance.
Disclosed
-
GTELaunchpadV2Pair::burn over-estimates distribution amounts when there are non-zero accrued launchpad fees
The burn function should deduct accrued launchpad fees from the balances before calculating distribution amounts.
Disclosed
-
EMA-based Mark Price Component Exhibits Excessive Lag Leading to Inaccurate Pricing
The EMA period should be corrected to use 90 snapshots (15 minutes at 10-second intervals) or a timestamp-based calculation.
Disclosed