File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,6 @@ func DrySwap(
447
447
) (bigint, bigint, bool) {
448
448
449
449
if amountSpecified == 0 {
450
- println("# 1")
451
450
return 0, 0, false
452
451
}
453
452
@@ -456,12 +455,10 @@ func DrySwap(
456
455
457
456
if zeroForOne {
458
457
if !(sqrtPriceLimitX96 < slot0Start.sqrtPriceX96 && sqrtPriceLimitX96 > MIN_SQRT_RATIO) {
459
- println("# 2")
460
458
return 0, 0, false
461
459
}
462
460
} else {
463
461
if !(sqrtPriceLimitX96 > slot0Start.sqrtPriceX96 && sqrtPriceLimitX96 < MAX_SQRT_RATIO) {
464
- println("# 3")
465
462
return 0, 0, false
466
463
}
467
464
}
@@ -618,21 +615,18 @@ func DrySwap(
618
615
if zeroForOne {
619
616
if !(pool.balances.token1 >= absBigint(amount1)) {
620
617
// NOT ENOUGH BALANCE for output token1
621
- println("# 4")
622
618
return 0, 0, false
623
619
}
624
620
625
621
} else {
626
622
if !(pool.balances.token0 >= absBigint(amount0)) {
627
623
// NOT ENOUGH BALANCE for output token0
628
- println("# 5")
629
624
return 0, 0, false
630
625
}
631
626
}
632
627
633
628
// just not enough balance
634
629
if amount0 == 0 && amount1 == 0 {
635
- println("# 6")
636
630
return 0, 0, false
637
631
}
638
632
You can’t perform that action at this time.
0 commit comments