Hunt prep
Before you test Tracer contest
What 21 disclosed reports say about Tracer 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 | 14 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Misconfiguration 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 keeper reward computation
The code should be fixed by dividing by 100 as a quad instead of 1e18, or by making keeperTip return a Quad value where 100% equals 1.
Disclosed
-
uncommit sends tokens to the wrong user
The code should be changed to use `_commit.owner` instead of `msg.sender` when transferring or minting tokens in `_uncommit`.
Disclosed
-
Deposits don’t work with fee-on transfer tokens
The recommended mitigation is to measure the actual asset change before and after transfers, or to avoid using fee-on-transfer or rebasing tokens.
Disclosed
-
Use of deprecated Chainlink API
The contracts should be updated to use the V3 interface functions recommended by Chainlink.
Disclosed
-
Malicious owner can arbitrarily change fee to any % value
The report recommends emitting an event, adding a timelock, and setting an upper fee threshold decided by governance; the project confirmed they like the timelock idea.
Disclosed
-
Single-step process for critical ownership transfer
The constructor should retain deployer ownership, and a two-step process (approve pendingOwner, then claim) should be used to transfer ownership to the governance address.
Disclosed
-
Underflow problems occurring when a token has >18 decimals
A require check should be added to ensure tokenDecimals <= 18 before running the affected functions, and the team confirmed this mitigation will be implemented.
Disclosed
-
avoid paying insurance
The project should add a timelock on withdrawing insurance and whitelist relayers so only off-chain relayers can place orders with the trader.
Disclosed
-
No check transferFrom() return value
The call should be wrapped in a require() or use OpenZeppelin’s SafeERC20 library.
Disclosed
-
Claim liquidation escrow
The Trader contract should have whitelisted relayers to prevent unauthorised calls to executeTrade.
Disclosed
-
Malicious owner can drain the market at any time using SafetyWithdraw
The mechanism is being removed and replaced with a more structured circuit breaker that pauses deposits but allows depositors to withdraw, and excludes the quote token from owner withdrawals.
Disclosed
-
Wrong price scale for GasOracle
The code should check each oracle's decimals and scale the answers to 18 decimals so that latestAnswer always returns a value in 18 decimals.
Disclosed
-
Insurance slippage reimbursement can be used to steal insurance fund
Disallow duplicate orders in the orders argument of claimReceipt, for example by requiring orders to be sorted by ID and checking strict increase.
Disclosed
-
Logic error in fee subtraction
The fee should be subtracted from both the long and short positions, as done in TracerPerpetualSwaps.sol.
Disclosed
-
Use of incorrect index leads to incorrect updation of funding rates
The code should be fixed by using the previous index (currentFundingIndex-1) for non-zero values of currentFundingIndex on lines L155 and L159 of Pricing.sol.
Disclosed