Closed code423n4 closed 2 years ago
gzeon
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeFactory.sol#L167
function setPenaltyCollector(address _penaltyCollector) external override onlyOwner { penaltyCollector = _penaltyCollector; emit SetPenaltyCollector(_penaltyCollector); }
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L371
_safeTransferAVAX(rocketJoeFactory.penaltyCollector(), feeAmount);
Duplicate of #263
Handle
gzeon
Vulnerability details
Impact
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeFactory.sol#L167
https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L371