Skip to content

Commit 7b6f168

Browse files
authored
Merge branch 'master' into fix/_computeQuote
Signed-off-by: Doug Hoyte <[email protected]>
2 parents 593a38f + 8c146b2 commit 7b6f168

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

TODO

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
! Better revert messages when a swap cannot be satisifed due to debt-limit/utilisation/etc
44
* currently it's an arithmetic underflow
55
! Don't make quotes that would cause a swap to fail due to supply or borrow caps
6-
! Use `myDebt() == 0` condition for disabling controller: more accurate
76
* ConstantSum: incorporate price multipliers in quote methods
87
* natspec
98
* permit2 instead of regular approval: measure gas savings

src/MaglevBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ abstract contract MaglevBase is IMaglevBase, EVCUtil {
178178
vault, myAccount, 0, abi.encodeCall(IBorrowing.repayWithShares, (type(uint256).max, myAccount))
179179
);
180180

181-
if (debt <= amount) {
181+
if (myDebt(vault) == 0) {
182182
IEVC(evc).call(vault, myAccount, 0, abi.encodeCall(IRiskManager.disableController, ()));
183183
}
184184
}

0 commit comments

Comments
 (0)