Skip to content

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

Open
bmc08gt wants to merge 2 commits intocode/cashfrom
feat/phantom-coinbase-swapper
Open

feat(onramp): add CoinbaseStableSwapper support to external wallet USDC on-ramp#656
bmc08gt wants to merge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant