All Questions
4 questions
0
votes
0
answers
107
views
Panic on Solana cross program invocation
Program log: panicked at 'range end index 64 out of range for slice of length 0', src/token.rs:551:38,
failed: SBF program panicked
Where can I investigate 551:38 line of code, or any help on ...
1
vote
1
answer
279
views
how to swap between spl tokens inside rust anchor program
I'm going to implement spl token swap with rust inside Anchor project.
Basically it's about compounding logic in staking project, so I have to swap reward tokens into stake token and add it to staking ...
0
votes
0
answers
209
views
Trying to do a DEX CPI to perform fully on-chain swaps
I want to create a fully-onchain swap through any clmm dex so for this example I'm trying through raydium even tho I just want to make it work.
I'm using the github repo here to import necessary ...
1
vote
1
answer
1k
views
Raydium swap vs CPI Call to Raydium Program
what is the difference between sending a transaction from a client to the Raydium program to make a swap and making your program that does a cpi call to the Raydium program and sending the transaction ...