Closed code423n4 closed 2 years ago
gzeon
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeFactory.sol#L187
function setFactory(address _factory) external override onlyOwner { factory = _factory; emit SetFactory(_factory); }
would cause this to revert https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L385
IJoePair( IJoeFactory(factory).getPair(wavaxAddress, tokenAddress) ).totalSupply() ==
Duplicate of #263
Handle
gzeon
Vulnerability details
Impact
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeFactory.sol#L187
would cause this to revert https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L385