Skip to content

Commit 24a7cb5

Browse files
author
balogh.adam@icloud.com
committed
rm debug
1 parent 301bf70 commit 24a7cb5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/opengradient/client/opg_token.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def approve_opg(wallet_account: LocalAccount, opg_amount: float) -> Permit2Appro
168168
allowance_before = token.functions.allowance(owner, spender).call()
169169

170170
if allowance_before >= amount_base:
171-
logger.debug("Permit2 allowance already sufficient (%s >= %s), skipping approval", allowance_before, amount_base)
172171
return Permit2ApprovalResult(
173172
allowance_before=allowance_before,
174173
allowance_after=allowance_before,
@@ -229,11 +228,6 @@ def ensure_opg_allowance(
229228
allowance_before = token.functions.allowance(owner, spender).call()
230229

231230
if allowance_before >= min_base:
232-
logger.debug(
233-
"Permit2 allowance above minimum threshold (%s >= %s), skipping approval",
234-
allowance_before,
235-
min_base,
236-
)
237231
return Permit2ApprovalResult(
238232
allowance_before=allowance_before,
239233
allowance_after=allowance_before,

0 commit comments

Comments
 (0)