Skip to content

Commit 09f6856

Browse files
committed
chore: drop debugging prints
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent f414a68 commit 09f6856

7 files changed

Lines changed: 0 additions & 20 deletions

File tree

apps/flipcash/shared/onramp/deeplinks/src/main/kotlin/com/flipcash/app/onramp/internal/ExternalWalletDeeplinkState.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ class ExternalWalletDeeplinkState(
240240
initiateBuy()
241241
.fold(
242242
onSuccess = {
243-
println("stateful swap successful. Sending transaction to fund.")
244243
sendIt()
245244
Result.success(Unit)
246245
},
@@ -378,7 +377,6 @@ class ExternalWalletDeeplinkState(
378377
val token = requireNotNull(tokenToPurchase) { "Token is null" }
379378
val amountToSend = requireNotNull(amount) { "Amount is null" }
380379
val transactionSignature = requireNotNull(signature) { "Transaction not signed" }
381-
println("transactionSignature: ${transactionSignature.base58()}")
382380

383381
return withContext(NonCancellable) {
384382
transactionController.buy(

libs/currency-math/src/main/kotlin/com/flipcash/libs/currency/math/internal/curves/DiscreteBondingCurve.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ internal class DiscreteBondingCurve private constructor(
9797
val startStep = currentSupply.divideToIntegralValue(stepSize.toBigDecimal())
9898
val endStep = endSupply.divideToIntegralValue(stepSize.toBigDecimal())
9999

100-
println("currentSupply: $currentSupply, tokens: $tokens, startStep: $startStep, endStep: $endStep")
101-
102100
require(endStep.toInt() < pricingTable.size) { "Cannot sell more tokens than current supply" }
103101

104102
// Calculate partial tokens in start step (from currentSupply to next step boundary)

libs/currency-math/src/test/java/com/flipcash/libs/currency/math/DiscreteBondingCurveTests.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class DiscreteSpotPriceTests {
3232
fun `1-1 Spot price at supply 0 equals first table entry`() {
3333
val price = curve.spotPriceAtSupply(supply = BigDecimal.ZERO).getOrThrow()
3434
assertNotNull(price)
35-
println("price at supply 0: $price")
3635
assertTrue(isApproximatelyEqual(price, expectedPriceStep0))
3736
}
3837

@@ -124,7 +123,6 @@ class DiscreteTokensToValueTests {
124123
val cost = curve.tokensToValue(currentSupply = BigDecimal.ZERO, tokens = BigDecimal(50)).getOrThrow()
125124

126125
val expected = BigDecimal(50).multiplyWithHighPrecision(price)
127-
println("price: $price, cost: $cost, expected: $expected")
128126
assertTrue(isApproximatelyEqual(cost, expected))
129127
}
130128

@@ -283,7 +281,6 @@ class DiscreteTokensToValueTests {
283281
val cost100 = curve.tokensToValue(currentSupply = BigDecimal.ZERO, tokens = BigDecimal(100)).getOrThrow()
284282
val expectedApprox = BigDecimal("1.0")
285283

286-
println("cost100: $cost100, expected: $expectedApprox")
287284
assertTrue(isApproximatelyEqual(cost100, expectedApprox, tolerance = BigDecimal("0.001")))
288285
}
289286
}
@@ -436,7 +433,6 @@ class DiscreteRoundtripTests {
436433

437434
assertTrue(recoveredValue <= originalValue)
438435
val diff = originalValue.subtractWithHighPrecision(recoveredValue)
439-
println("diff: $diff, original: $originalValue, recovered: $recoveredValue")
440436
assertTrue(diff < BigDecimal("2"), "Value difference should be small")
441437
}
442438

@@ -916,7 +912,6 @@ class DiscreteRealWorldTests {
916912

917913
val tokensDouble = result.tokens.toDouble()
918914

919-
println("result.tokens: $tokensDouble")
920915
assertTrue(tokensDouble > 50, "Should get > 50 tokens for ~\$0.72 USD")
921916
assertTrue(tokensDouble < 100, "Should get < 100 tokens for ~\$0.72 USD")
922917
}

libs/currency-math/src/test/java/com/flipcash/libs/currency/math/EstimationTests.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class EstimationTests {
2525
).getOrThrow()
2626

2727
assertEquals("0.010123561682206779", price.toPlainString())
28-
29-
println(price)
3028
}
3129

3230
@Test
@@ -135,10 +133,6 @@ class EstimationTests {
135133
feeBps = 0,
136134
).getOrThrow()
137135

138-
println("usdfToSpend: $usdfToSpend")
139-
println("initialSupply: $initialSupply")
140-
println("netTokensToReceive: ${buyEstimate.netTokensToReceive}")
141-
142136
// Sell the tokens we bought
143137
val tokenQuarks = buyEstimate.netTokensToReceive
144138
.multiplyWithHighPrecision(BigDecimal(10_000_000_000))

services/opencode/src/main/kotlin/com/getcode/opencode/internal/network/executors/SwapExecutor.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ internal class SwapExecutor(
6464
scope.launch {
6565
try {
6666
val result = openSwapStream(streamReference, intent)
67-
println("swap returned result")
6867
cont.resume(result)
6968
} catch (e: Exception) {
7069
trace(
@@ -194,7 +193,6 @@ private fun handleErrors(
194193
val errors = mutableListOf<String>()
195194

196195
errorDetails.forEach { error ->
197-
println("error details: ${error.typeCase}")
198196
when (error.typeCase) {
199197
TransactionService.ErrorDetails.TypeCase.REASON_STRING -> {
200198
errors.add("Reason: ${error.reasonString.reason}")

services/opencode/src/main/kotlin/com/getcode/opencode/solana/SolanaTransaction.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ data class SolanaTransaction(val message: Message, val signatures: List<Signatur
123123
val (signatureCount, payload) = ShortVec.decodeLen(list)
124124

125125
if (payload.size < signatureCount * LENGTH_64) {
126-
println("payload size: ${payload.size}, signature count: $signatureCount")
127126
return null
128127
}
129128

ui/components/src/main/kotlin/com/getcode/ui/components/text/NumberInputHelper.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ class NumberInputHelper {
2424
fun onNumber(v: Int) {
2525
val s = amountText.split(DECIMAL_SEPARATOR)
2626
if (s.size == 1 && s[0].length >= maxLength) {
27-
println("not appending $v - max length reached")
2827
return
2928
}
3029
if (s.size > 1 && s[1].length >= fractionUnits) {
31-
println("not appending $v - max decimal length reached ($fractionUnits)")
3230
return
3331
}
3432

0 commit comments

Comments
 (0)