forked from osmosis-labs/osmosis
-
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.
feat(x/cosmwasmpool): Sending
token_in_max_amount
to the contract b…
…efore running contract msg (osmosis-labs#5855) ## What is the purpose of the change In order for [transmuter to treat LP shares token as swappable asset](osmosis-labs/transmuter#6), on `SwapExactAmountOut` it needs to burn the expected token in, but previous implementation sends token to the contract after running sudo msg, which means at the time, contract does not have enough token to burn. This change fix the aforementioned issue by: - sending `token_in_denom` with `token_in_max_amount` to the contract - run sudo msg - send the remaining token back to sender *(E.g.: This pull request improves documentation of area A by adding ....* ## Testing and Verifying The existing test is updated to cover the changes ## Documentation and Release Note - [x] Changelog entry added to `Unreleased` section of `CHANGELOG.md`? Where is the change documented? - [x] Specification (`x/cosmwasmpool/README.md`)
- Loading branch information
1 parent
7b4f608
commit a8f2530
Showing
5 changed files
with
87 additions
and
34 deletions.
There are no files selected for viewing
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
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