By calling registerCollateralToken Owner registers _collateralToken but nowhere checks the decimal of this token
When owner wants to register a new collateral token he calls registerCollateralToken of course owner has no insentive to compromise his own contract but some errors could be made thats why its good to check the decimal of the inputed parameter collateralToken in registerCollateralToken as written in the documentation only ERC20 tokens are allowed that are between 6-18 Decimals.
Low-> Medium
Improper decimal token registering as collateral
Manual Review
Add check which checks for collateralToken decimal and if its under 6 or over 18 to revert
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.