forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
token-swap: Cleanup check (solana-labs#903)
* Add extra check * Add extra check on init * Run cargo fmt * Clippy * Add token program id check on unpack * Run cargo fmt * Add checks for program id ownership on swap account * Add truncation check during swapping * Run cargo fmt * Update truncation to ceiling the value * Run cargo fmt * Fix JS test * Refund back not needed source tokens * Run cargo fmt * Add swap_without_fees method to trait * Fix merge problem Co-authored-by: Justin Starry <[email protected]>
- Loading branch information
Showing
8 changed files
with
440 additions
and
161 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.