In the SmartVaultManagerV5
the liquidator
and protocol
represent the same address, so when changed should be changed together.
Since both the liquidator
and protocol
are the same address, the LiquidationPoolManager, when one is changed through:
https://github.com/Cyfrin/2023-12-the-standard/blob/91132936cb09ef9bf82f38ab1106346e2ad60f91/contracts/SmartVaultManagerV5.sol#L131-L137
The other address should also be changed
If only one address is changed but not the other it could lead to some issue down the line, with reverting liquidations or fees going to the wrong address.
Manual review
Group these two functions into one that changes both addresses at once.
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.