-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ExitSwapExternAmountOut (#1244)
* refactor: ExitSwapExternAmountOut * better name for interface extension * implement types.PoolExitSwapExternAmountOutExtension * update changelog * interface assertion for PoolI in balancer pool * err check on extendedPool.ExitSwapExternAmountOut * ZeroDec() * comma in calcPoolInGivenSingleOut call * redundnet type in calcPoolInGivenSingleOut * comment for feeRatio * fix comment for calcPoolInGivenSingleOut and the converse * whitespace in ExitSwapExternAmountOut * fix changelog entry * godoc for PoolExitSwapExternAmountOutExtension * fmt * gofumpt * deduct shares on exit, make exit pool logic shared, improve names * rename to ExitSwapExactAmountOutExtension * comment out TestNewExitSwapShareAmountInCmd * fix ExitSwapExactAmountOut by truncating int on return from calcPoolSharesInGivenSingleAssetOut * revert x/gamm/cli_test.go to original state with TestNewExitSwapExternAmountOutCmd uncommented * uncomment ExitSwapExactAmountOut in TestActiveBalancerPool * change variable name to exitingCoins * fmt * Update x/gamm/keeper/pool_service.go * Update x/gamm/pool-models/balancer/amm.go * Update x/gamm/keeper/pool_service.go Co-authored-by: Aleksandr Bezobchuk <[email protected]>
- Loading branch information
1 parent
7d45d8e
commit 298ad00
Showing
8 changed files
with
165 additions
and
65 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
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