Hunt prep
Before you test JPEG'd contest
What 20 disclosed reports say about JPEG'd 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 | 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.
-
Reentrancy issue in yVault.deposit
The safeTransferFrom should be the last call in deposit, so the balance is updated before any external call.
Disclosed
-
Setting new controller can break YVaultLPFarming
Changing a vault's controller should be done carefully and requires a migration so the farming contract's stored balance stays consistent.
Disclosed
-
StrategyPUSDConvex.balanceOfJPEG uses incorrect function signature while calling extraReward.earned , causing the function to unexpectedly revert everytime
The fix was to pass address(this) as an argument to earned, and it was fixed in a pull request.
Disclosed
-
When _lpToken is jpeg, reward calculation is incorrect
The project says it was fixed; the report recommends rejecting a staking token equal to the reward token or holding reward tokens in a separate contract.
Disclosed
-
NFTHelper Contract Allows Owner to Burn NFTs
The contract should reject the zero address as a receiver in the transfer functions.
Disclosed
-
Rewards will be locked if user transfer directly to pool without using deposit function
The contract should track total LP supply with a dedicated variable instead of using the token balance.
Disclosed
-
_swapUniswapV2 may use an improper path which can cause a loss of the majority of the rewardTokens
The admin should be able to set a custom swap path for each reward token.
Disclosed
-
reward will be locked in the farm if no LP join the pool at epoch.startBlock
Add a function for the admin to claim remaining rewards after the epoch ends, as suggested in the report.
Disclosed
-
Controller: Strategy migration will fail
The controller should call a dedicated withdrawJPEG function that sends the JPEG to the controller instead of using the generic withdraw.
Disclosed
-
The noContract modifier does not work as expected.
The code was fixed by changing the check to require that the caller is the transaction origin (tx.origin).
Disclosed
-
Division before Multiplication May Result In No Interest Being Accrued
The issue was fixed by reordering the calculation to multiply by elapsed time before dividing by the denominator and 365 days.
Disclosed
-
Oracle data feed is insufficiently validated.
The contract was fixed by adding checks for round completeness and stale pricing using latestRoundData.
Disclosed
-
Wrong calculation for yVault price per share if decimals != 18
The function should use the vault's decimals() instead of a hardcoded 1e18.
Disclosed
-
Chainlink pricer is using a deprecated API
The issue was fixed by switching to the latestRoundData function and adding checks for stale or incomplete rounds.
Disclosed
-
setDebtInterestApr should accrue debt first
The function should call accrue() before setting the new debt interest rate; the report states it was fixed.
Disclosed