Skip to content

Commit c1eb296

Browse files
fix: restore previous implementation
1 parent 0bd1b12 commit c1eb296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EulerSwap.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ contract EulerSwap is IEulerSwap, EVCUtil {
215215
vault, myAccount, 0, abi.encodeCall(IBorrowing.repayWithShares, (type(uint256).max, myAccount))
216216
);
217217

218-
if (IEVault(vault).debtOf(myAccount) == 0) {
218+
if (myDebt(vault) == 0) {
219219
IEVC(evc).call(vault, myAccount, 0, abi.encodeCall(IRiskManager.disableController, ()));
220220
}
221221
}

0 commit comments

Comments
 (0)