Summary:
The initialize function in the given smart contract lacks a zero address check for the tradingAccountToken and usdToken parameters. Without this check, the function could be called with one or both of these parameters set to the zero address (0x0000000000000000000000000000000000000000), which can lead to unintended behavior or vulnerabilities in the contract.
Impact:
TradingAccountToken and usdToken Malfunction: If either tradingAccountToken or usdToken is set to the zero address, any operations involving these tokens may fail, leading to unexpected behavior and potential loss of funds.
Tools Used: Manual review
Recommendations: To prevent this issue, it is recommended to add zero address checks for the tradingAccountToken and usdToken parameters in the initialize function
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.