Hunt prep
Before you test Trader Joe contest
What 17 disclosed reports say about Trader Joe 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 | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 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.
-
LP Tokens May Be Locked in Contract Due to allowEmergencyWithdraw() in Stage 3
The fix was to allow withdrawal of LP tokens in emergencyWithdraw().
Disclosed
-
createPair() expects zero slippage
The function should be fixed by adding an input parameter to handle a slippage allowance.
Disclosed
-
Re-enterable Code When Making a Deposit to Stake
The deposit function should be protected with a reentrancy guard or restructured to follow checks-effects-interactions by updating state before the external transfer; the report notes a fix pull request was opened.
Disclosed
-
Incompatibility With Rebasing/Deflationary/Inflationary tokens
The contracts should check the balance before and after transfers to account for rebasing or fee-on-transfer tokens, or clearly warn users not to use such tokens.
Disclosed
-
Failed transfer with low level call could be overlooked
The helper should check that the destination address has code before making the low-level call, so that a missing contract causes a revert.
Disclosed
-
Owner of LaunchEvent token has the ability to DOS attack the event
Only the LaunchEvent contract should be able to create a JoePair for its token once the event has started, but this requires changes outside the audited contracts.
Disclosed
-
Uninitialized RocketJoeStaking.lastRewardTimestamp can inflate rJoe supply
The fix was to track actual total deposits in a storage variable and use that instead of the current balance for joeSupply, so direct transfers have no influence.
Disclosed
-
Improper Upper Bound Definition on the Fee
The issue was fixed by adding bounds to the emission rate parameter, as indicated by the linked pull request.
Disclosed
-
Wrong token allocation computation for token decimals != 18 if floor price not reached
The allocation should be computed as the raised WAVAX times 1e18 divided by the floor price, and the project confirmed a fix was made.
Disclosed
-
Users can lose value in emergency state
The fix was to pay out LP tokens in emergencyWithdraw, as confirmed by the project.
Disclosed
-
possibility of minting rJOE tokens before ownership is changed to RocketJoeStaking
Override the transferOwnership function to require that totalSupply is zero before ownership can be transferred.
Disclosed
-
withdrawAVAX() function has call to sender without reentrancy protection
The issue was resolved by applying the checks-effects-interactions pattern.
Disclosed
-
Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
The issue was fixed by using safeTransfer/safeTransferFrom or require() consistently.
Disclosed
-
ERC20 return values not checked
The contract was fixed to check the success boolean of all transfer and transferFrom calls.
Disclosed