Skip to content

feat(onramp): add CoinbaseStableSwapper support to external wallet USDC on-ramp#656

Merged
bmc08gt merged 2 commits intocode/cashfrom
feat/phantom-coinbase-swapper
May 4, 2026
Merged

feat(onramp): add CoinbaseStableSwapper support to external wallet USDC on-ramp#656
bmc08gt merged 2 commits intocode/cashfrom
feat/phantom-coinbase-swapper

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 2, 2026

Extend the USDC→USDF fund swap to support both the Flipcash USDF liquidity pool and the Coinbase Stable Swapper program, selected via the usdcOnRampLiquidityPool user flag.

  • Add getAccountData RPC extension for fetching on-chain account data
  • Add CoinbaseStablecoinPoolAccount to parse pool fee recipient at offset 72
  • Extract CoinbaseSwapAccounts PDA helper shared by both swap flows
  • Introduce FundSwapPool sealed interface (Usdf | CoinbaseStableSwapper)
  • Branch buildUsdcToUsdfSwapInstructions step 7 on pool type
  • Resolve pool type in ExternalWalletOnRampController via public companion helpers

bmc08gt added 2 commits May 2, 2026 12:31
…DC on-ramp

Extend the USDC→USDF fund swap to support both the Flipcash USDF liquidity pool
and the Coinbase Stable Swapper program, selected via the usdcOnRampLiquidityPool
user flag.

- Add getAccountData RPC extension for fetching on-chain account data
- Add CoinbaseStablecoinPoolAccount to parse pool fee recipient at offset 72
- Extract CoinbaseSwapAccounts PDA helper shared by both swap flows
- Introduce FundSwapPool sealed interface (Usdf | CoinbaseStableSwapper)
- Branch buildUsdcToUsdfSwapInstructions step 7 on pool type
- Resolve pool type in ExternalWalletOnRampController via public companion helpers

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
…eCheckTest

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt added type: feature New functionality area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: crypto Solana, keys, encryption, signing next release Slotted for inclusion in next release labels May 3, 2026
@bmc08gt bmc08gt merged commit d2fe7d9 into code/cash May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: crypto Solana, keys, encryption, signing area: onramp Deposit, purchase, Coinbase, fiat on-ramp next release Slotted for inclusion in next release type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant