You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Liquity uses separate Zapper contracts for WETH collateral and other LST collateral tokens. The contracts are inconsistent.
The WETHZapper enforces, in _adjustTrovePre(), that debt must decrease by a positive amount:
require(!_isDebtIncrease || _boldChange > 0, "WZ: Increase bold amount should not be zero");
However, GasCompZapper._adjustTrovePre() is missing that check, allowing calls with debtIncrease set to true and boldChange equal to zero:
If no add manager is assigned (set to address 0), anyone can call this function, but it has no effect on BorrowerOperations.adjustTrove(), as _adjustTrove() debt increases only have an effect if they are larger than 0.
The text was updated successfully, but these errors were encountered:
Liquity uses separate Zapper contracts for WETH collateral and other LST collateral tokens. The contracts are inconsistent.
The WETHZapper enforces, in _adjustTrovePre(), that debt must decrease by a positive amount:
However,
GasCompZapper._adjustTrovePre()
is missing that check, allowing calls withdebtIncrease
set to true andboldChange
equal to zero:If no add manager is assigned (set to address 0), anyone can call this function, but it has no effect on
BorrowerOperations.adjustTrove()
, as_adjustTrove()
debt increases only have an effect if they are larger than 0.The text was updated successfully, but these errors were encountered: