Platform: Code4rena
Start Date: 25/01/2022
Pot Size: $50,000 USDT
Total HM: 17
Participants: 39
Period: 3 days
Judge: LSDan
Total Solo HM: 9
Id: 79
League: ETH
Rank: 20/39
Findings: 2
Award: $698.87
π Selected for report: 2
π Solo Findings: 0
Funen
The user's that had been deploy the contract will got zero address
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/RocketJoeFactory.sol#L53-L61 This contract was using address to check that Addresses can't be zero address
E.g. : https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/RocketJoeStaking.sol this wasnt check that addresses not zero address
Manual Review
#0 - cryptofish7
2022-01-31T00:33:15Z
Duplicate of #266
π Selected for report: Funen
39.7792 USDT - $39.78
Funen
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/LaunchEvent.sol#L48-L50
the Phase
called from RJoeFactory.sol
, so immutable can saving more gas
Manual Review
uint256 public PHASE_ONE_DURATION ; uint256 public PHASE_ONE_NO_FEE_DURATION; uint256 public PHASE_TWO_DURATION;
changed into
uint256 public immutable PHASE_ONE_DURATION; uint256 public immutable PHASE_ONE_NO_FEE_DURATION; uint256 public immutable PHASE_TWO_DURATION;
π Selected for report: Funen
518.9746 USDT - $518.97
Funen
RocketJoeStaking.sol
in
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/RocketJoeStaking.sol#L24
comment was using ->
// pending reward = (user.amount * accRJoePerShare) - user.rewardDebt
it should be used PRECISION
to make it same actual calculation in the contract
and change to
pending reward = (user.amount * _accRJoePerShare) / PRECISION - user.rewardDebt
#0 - cryptofish7
2022-01-31T19:19:52Z
Should be 0 severity as it is a comment/styling fix.
Fix: https://github.com/traderjoe-xyz/rocket-joe/pull/129/files
#1 - dmvt
2022-02-23T12:18:09Z
1 β Low (L): vulns that have a risk of 1 are considered βLowβ severity when assets are not at risk. Includes state handling, function incorrect as to spec, and issues with comments.
Severity is valid. This is an issue with a comment.