the function approveTo ignores the return value of the approve method, which could be a potential bug.
Source Link:- https://github.com/Cyfrin/2023-11-Boss-Bridge/blob/dad104a9f481aace15a550cf3113e81ad6bdf061/src/L1Vault.sol#L19-L21
The impact of the issue is that the function approveTo could fail silently if the approve method returns false, which could indicate a problem with the token contract or the target address. This could result in an inconsistent state of the token balances and allowances, and cause unexpected behavior in the future. Therefore, it is important to use the return value of the function calls and check if they are valid.
slither
Ensure that all the return values of the function calls are used.
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.