-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withdraw and call spl raydium swap poc #76
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## withdraw-and-call-spl #76 +/- ##
=======================================================
Coverage ? 0.33%
=======================================================
Files ? 6
Lines ? 890
Branches ? 0
=======================================================
Hits ? 3
Misses ? 887
Partials ? 0 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
// NOTE: this will swap 2 provided tokens using raydium | ||
// half amount is swaped using pda as signer to provided output account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// half amount is swaped using pda as signer to provided output account | |
// half amount is swapped using pda as signer to provided output account |
this will remain draft PR, it is just to demonstration. so code is a bit messy, eventually can be moved to localnet, there will be separate PRs for withdraw and call code
it contains some code for raydium instructions to set up tests, most can be ignored - to review relevant code:
swap
testPoc demonstrates the following:
Poc works in a following way:
Test:
Gateway:
Connected program:
Security considerations atm: