Skip to content

Commit 90c7584

Browse files
committed
Update spell.py
1 parent d14b238 commit 90c7584

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

alpha_homora_v2/spell.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ def prepare_close_position(self, underlying_tokens: list[tuple], position_size:
6262
amtARepay = underlying_tokens[0][1]
6363
if amtARepay > 0:
6464
amtARepay = int(MAX_INT, 16)
65-
6665
amtBRepay = underlying_tokens[1][1]
6766
if amtBRepay > 0:
6867
amtBRepay = int(MAX_INT, 16)
6968

70-
# Slippage controls (Minimum amount allowed after final transaction) 0 = No slippage controls
69+
# Slippage controls (Minimum amount allowed after final transaction); 0 = No slippage controls
7170
amtAMin = 0
7271
amtBMin = 0
7372

@@ -102,12 +101,11 @@ def prepare_close_position(self, underlying_tokens: list[tuple], position_size:
102101
amtARepay = underlying_tokens[0][1]
103102
if amtARepay > 0:
104103
amtARepay = int(MAX_INT, 16)
105-
106104
amtBRepay = underlying_tokens[1][1]
107105
if amtBRepay > 0:
108106
amtBRepay = int(MAX_INT, 16)
109107

110-
# Slippage controls (Minimum amount allowed after final transaction) 0 = No slippage controls
108+
# Slippage controls (Minimum amount allowed after final transaction); 0 = No slippage controls
111109
amtAMin = 0
112110
amtBMin = 0
113111

0 commit comments

Comments
 (0)