Skip to content

Commit

Permalink
Implement pool swap functions and add relevant tests
Browse files Browse the repository at this point in the history
The commit introduces logic for `get_output_amount` and `get_input_amount` in the `Pool` struct for handling token swaps. It also includes a helper function, `_swap`, used to facilitate these transactions. Test cases have been added to ensure the correct functionality and reliability of these new features.
  • Loading branch information
shuhuiluo committed Jan 9, 2024
1 parent d87f987 commit 08d71eb
Show file tree
Hide file tree
Showing 2 changed files with 512 additions and 53 deletions.
Loading

0 comments on commit 08d71eb

Please sign in to comment.