In the PerpetualVault.sol
contract, the _cancelFlow()
function violates the Checks-Effects-Interactions (CEI) pattern at lines 1232 and 1233. Specifically, the state update occurs after the transfer:
This pattern can lead to potential vulnerabilities and inefficiencies.
Manual review
To comply with CEI, state changes should occur before external calls (transfers). The following adjustment is recommended:
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
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.