This is for showing Jupiter CPI that swap sol. From this codebase, you can have basic knowledge of CPI and how to interact with Jupiter program. Feel free to reach out of me when you face difficulty or need to develop custom project[Telegram: https://t.me/DevCutup, Whatspp: https://wa.me/13137423660].
- You need to initialize vault first.
- Deposit some tokens to the vault.
- Swap spl-tokens on the vault.
- Program:
./programs/token-swap/src/lib.rs
- Test:
./cli/test-swap.ts
- Transaction: https://solscan.io/tx/5uBvVAxjFNFowDPRV8p1Mxd6jQCmWRknhwiN3v7ipk2Gdqk1KtPUwCnWnUBy4cnYeqSUtibDxvGCwc3kGwqkDp95
- Telegram: https://t.me/DevCutup
- Whatsapp: https://wa.me/13137423660
- Twitter: https://x.com/devcutup