code-423n4 / 2022-01-trader-joe-findings

2 stars 0 forks source link

Long Revert Strings #270

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

Issue Information: G007

Findings:

LaunchEvent.sol::165 => "LaunchEvent: you can't send AVAX directly to this contract"
LaunchEvent.sol::183 => "LaunchEvent: can't withdraw before issuer's timelock"
LaunchEvent.sol::188 => "LaunchEvent: can't withdraw before user's timelock"
LaunchEvent.sol::239 => "LaunchEvent: maxWithdrawPenalty too big"
LaunchEvent.sol::243 => "LaunchEvent: fixedWithdrawPenalty too big"
LaunchEvent.sol::247 => "LaunchEvent: can't lock user LP for more than 7 days"
LaunchEvent.sol::251 => "LaunchEvent: issuer can't withdraw before users"
LaunchEvent.sol::255 => "LaunchEvent: start of phase 1 cannot be in the past"
LaunchEvent.sol::312 => require(msg.sender != issuer, "LaunchEvent: issuer cannot participate");
LaunchEvent.sol::315 => "LaunchEvent: expected non-zero AVAX to deposit"
LaunchEvent.sol::322 => "LaunchEvent: amount exceeds max allocation"
LaunchEvent.sol::355 => require(_amount > 0, "LaunchEvent: invalid withdraw amount");
LaunchEvent.sol::359 => "LaunchEvent: withdrawn amount exceeds balance"
LaunchEvent.sol::388 => "LaunchEvent: liquid pair already exists"
LaunchEvent.sol::444 => "LaunchEvent: liquidity already withdrawn"
LaunchEvent.sol::474 => "LaunchEvent: incentives already withdrawn"
LaunchEvent.sol::486 => require(amount > 0, "LaunchEvent: caller has no incentive to claim");
LaunchEvent.sol::499 => "LaunchEvent: expected user to have non-zero balance to perform emergency withdraw"
LaunchEvent.sol::523 => "LaunchEvent: caller is not RocketJoeFactory owner"
LaunchEvent.sol::622 => require(success, "LaunchEvent: avax transfer failed");
RocketJoeFactory.sol::60 => "RJFactory: Addresses can't be null address"
RocketJoeFactory.sol::113 => "RJFactory: token has already been issued"
RocketJoeFactory.sol::115 => require(_issuer != address(0), "RJFactory: issuer can't be 0 address");
RocketJoeFactory.sol::116 => require(_token != address(0), "RJFactory: token can't be 0 address");
RocketJoeFactory.sol::120 => "RJFactory: token amount needs to be greater than 0"
RocketJoeFactory.sol::127 => "RJFactory: liquid pair already exists"
RocketJoeFactory.sol::208 => "RJFactory: phase one duration lower than no fee duration"
RocketJoeFactory.sol::225 => "RJFactory: no fee duration bigger than phase one duration"
RocketJoeStaking.sol::67 => "RocketJoeStaking: rJOE minting needs to start after the current timestamp"
RocketJoeStaking.sol::120 => "RocketJoeStaking: withdraw amount exceeds balance"
RocketJoeToken.sol::19 => "RocketJoeToken: caller is not a RJLaunchEvent"
RocketJoeToken.sol::28 => "RocketJoeToken: already initialized"

Tools used

c4udit

cryptofish7 commented 2 years ago

Duplicate of #242