Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement pool swap functions and add relevant tests
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