Skip to content

Commit 19885c1

Browse files
committed
fix(onramp/coinbase): send the USDF Swap PDA instead of the ATA as the destination
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent ce5f884 commit 19885c1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/flipcash/features/onramp/src/main/kotlin/com/flipcash/app/onramp/internal/OnRampViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,14 @@ internal class OnRampViewModel @Inject constructor(
347347
}
348348

349349
is OnRampPaymentError.GooglePayNotSupported -> {
350-
BottomBarManager.showError(
350+
BottomBarManager.showAlert(
351351
title = resources.getString(R.string.error_title_onrampGooglePayNotSupported),
352352
message = resources.getString(R.string.error_description_onrampGooglePayNotSupported),
353353
)
354354
}
355355

356356
is OnRampPaymentError.GooglePayNoPaymentMethod -> {
357-
BottomBarManager.showError(
357+
BottomBarManager.showAlert(
358358
title = resources.getString(R.string.error_title_onrampGooglePayNotReady),
359359
message = resources.getString(R.string.error_description_onrampGooglePayNotReady),
360360
)

apps/flipcash/shared/onramp/coinbase/src/main/kotlin/com/flipcash/app/onramp/CoinbaseOnRampController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class CoinbaseOnRampController @Inject constructor(
155155
?: return Result.failure(Throwable("User ID not found"))
156156
val usdfSwapAccounts = Token.usdf.timelockSwapAccounts(owner.authorityPublicKey)
157157

158-
val destination = usdfSwapAccounts.ata.publicKey.base58()
158+
val destination = usdfSwapAccounts.pda.publicKey.base58()
159159

160160
val email = userManager.profile?.verifiedEmailAddress
161161
val phone = userManager.profile?.verifiedPhoneNumber
@@ -201,7 +201,7 @@ class CoinbaseOnRampController @Inject constructor(
201201
?: return Result.failure(Throwable("User ID not found"))
202202
val usdfSwapAccounts = Token.usdf.timelockSwapAccounts(owner.authorityPublicKey)
203203

204-
val destination = usdfSwapAccounts.ata.publicKey.base58()
204+
val destination = usdfSwapAccounts.pda.publicKey.base58()
205205

206206
val email = userManager.profile?.verifiedEmailAddress
207207
val phone = userManager.profile?.verifiedPhoneNumber

0 commit comments

Comments
 (0)