Summary
The IWBTCZapper interface has incorrect function signatures and missing functions compared to the actual WBTCZapper implementation.
Vulnerability Detail
Several discrepancies exist between the interface and implementation:
closeTroveFromCollateralWithWBTCdoesn't exist - it'scloseTroveFromCollateraladjustTroveWithWBTChas wrong arguments in the interface- Missing functions:
withdrawEvro,repayEvro,adjustZombieTroveWithWBTC,receiveFlashLoanOnCloseTroveFromCollateral
Impact
External integrations using the interface will fail to compile or call the wrong functions.
Code Snippet
interface IWBTCZapper {
// @audit - missing: withdrawEvro, repayEvro, adjustZombieTroveWithWBTC, receiveFlashLoanOnCloseTroveFromCollateral
function adjustTroveWithWBTC(...) external; // @audit - wrong arguments
function closeTroveFromCollateralWithWBTC(...) external; // @audit - doesn't exist, should be closeTroveFromCollateral
}Tool Used
Manual Review
Recommendation
Update the interface to match the implementation exactly.