Hunt prep
Before you test Tigris Trade contest
What 35 disclosed reports say about Tigris Trade 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 | 24 | 0 | – | – | $0 |
| Smart contracts lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS 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.
-
Incorrect Assumption of Stablecoin Market Stability
The vault should use a price oracle such as Chainlink to value deposits and withdrawals fairly instead of assuming a 1:1 ratio.
Disclosed
-
Incorrect calculation of new price while adding position
The formula for calculating the new price was corrected to properly compute the weighted average based on total position value and total base asset amount.
Disclosed
-
Bypass the maximum PnL check to take extra profit
The addToPosition function should revert if the position's PnL is at or above the maximum allowed percentage, forcing users to close the position to realise capped profits.
Disclosed
-
Lock.sol: claimGovFees function can cause assets to be stuck in the Lock contract
The team resolved it via a linked pull request; the report also suggests reverting instead of returning, or letting the owner rescue balances above the locked amount.
Disclosed
-
Trading will not work on Ethereum if USDT is used
The protocol should avoid approving USDT every time, for example by recording whether an allowance was already set or by providing an owner-callable function to approve a token address once.
Disclosed
-
Failure in endpoint can cause minting more than one NFT with the same token id in different chains
The contract should track consumed messages and mark them as consumed when lzReceive is called, so that a failed message cannot be retried after the NFT has been minted.
Disclosed
-
_handleOpenFees returns an incorrect value for _feePaid . This directly impacts margin calculations
The formula should be corrected to add back the referral fee component when calculating _feePaid.
Disclosed
-
One can become referral of hash 0x0 and because all users default referral hash is 0x0 so he would become all users referral by default and earn a lot of fees while users didn’t approve it
The project mitigated the issue, and the judge also suggested either blocking the zero hash or assigning it to the protocol itself so default fees go to the sponsor.
Disclosed
-
User can close an order via limitClose() , and take bot fees to themselves
The protocol implemented a mitigation that tracks the timestamp of the last limit order update and skips the bot fee if the order is executed within one second, giving bots a fair chance without incentivising self-execution.
Disclosed
-
Trading#initiateMarketOrder allows to open a position with more margin than expected due to _handleOpenFees wrong calculation when a trade is referred
The fee calculation should include referral fees when computing the total fee, so that the margin after fees is correct.
Disclosed
-
Chainlink price feed is not sufficiently validated and can return stale price
The contract should use latestRoundData and check that answeredInRound is at least roundId and that updatedAt is greater than zero, or check that updatedAt is not too far in the past.
Disclosed
-
executeLimitOrder() modifies open-interest with a wrong position value
The calculation should be corrected to use margin after fees.
Disclosed
-
Bypass the delay security check to win risk free funds
The protocol should cache recent lowest and highest prices and enforce that long orders open at the highest price and short orders at the lowest price.
Disclosed
-
Governance NFT holder, whose NFT was minted before Trading._handleOpenFees function is called, can lose deserved rewards after Trading._handleOpenFees function is called
The _handleOpenFees function should approve the GovNFT contract to spend the tigAsset before calling distribute, and the project resolved the issue with a mitigation pull request.
Disclosed
-
Riskless trades due to delay check
The delay checking in limitClose should be modified to also consider whether the position is below the stop-loss.
Disclosed