Skip to content

Commit 6f19fe8

Browse files
fix: make compiler happy
1 parent 7b92f8d commit 6f19fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/Controller.vy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ def liquidate(
11731173
11741174
final_debt: uint256 = debt
11751175
assert _frac <= WAD, "frac>100%"
1176-
debt = unsafe_div(debt * frac + (WAD - 1), WAD)
1176+
debt = unsafe_div(debt * _frac + (WAD - 1), WAD)
11771177
assert debt > 0
11781178
final_debt = unsafe_sub(final_debt, debt)
11791179
@@ -1183,7 +1183,7 @@ def liquidate(
11831183
# where h is health limit.
11841184
# This is less than full h discount but more than no discount
11851185
xy: uint256[2] = extcall AMM.withdraw(
1186-
user, self._get_f_remove(frac, health_limit)
1186+
user, self._get_f_remove(_frac, health_limit)
11871187
) # [stable, collateral]
11881188
11891189
# x increase in same block -> price up -> good

0 commit comments

Comments
 (0)