Potential "unchecked return values" risk in euroCollateral()
function
The euroCollateral()
function makes an external call to the calculator.tokenToEurAvg()
function. If this function call fails for any reason (for instance, if the calculator
contract throws an exception or if it runs out of gas), the euroCollateral()
function will not know about the failure and will continue executing as if nothing happened.
A require
statement in the following format:
should be used to check the return value of external calls.
This way, if the calculator.tokenToEurAvg()
function call fails, the require
statement will cause the entire transaction to revert, and the error message "Calculator call failed" will be returned
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.