Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/microgift/jup-cpi

solana jupiter cpi test, swap spl tokens in pda
https://github.com/microgift/jup-cpi

jupiter solana swap token

Last synced: about 16 hours ago
JSON representation

solana jupiter cpi test, swap spl tokens in pda

Awesome Lists containing this project

README

        

# SOL Swap with Jupiter CPI

This is a test project for Jupiter CPI

## How this works?

1. You need to initialize vault first.
2. Deposit some tokens to the vault.
3. Swap spl-tokens on the vault.

* Program: `./programs/token-swap/src/lib.rs`
* Test: `./cli/test-swap.ts`
* Transaction: https://solscan.io/tx/5uBvVAxjFNFowDPRV8p1Mxd6jQCmWRknhwiN3v7ipk2Gdqk1KtPUwCnWnUBy4cnYeqSUtibDxvGCwc3kGwqkDp95