How to swap a token for SOL or vise versa** from within** a Solana smart contract? That is, on-chain. How to interract with a router of either Raydium or SolDex? I haven’t found any example of this.
You must log in or register to comment.
Why are you even interested in SOL?
They have proven themselves to be CeFi
(Centralized Finance),
by pausing the chain at will multiple times…