missing check isAllowedToken
with token
makes s_tokenToAssetToken[token]
can be address(0)
and the following code does nothing
Some function does not check s_tokenToAssetToken[token]
with address(0)
when the user pass token
params to contract
The missing check isAllowedToken
with token
can lead to some redundant execute code after that line with value 0
Manual
Foundry
Add check isAllowedToken(IERC20 token)
for each function that allows the user to pass the token as a parameter to prevent the default value address(0)
in s_tokenToAssetToken[token]
mapping.
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.