Skip to content

Commit

Permalink
fix: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Sep 26, 2023
1 parent ca8df99 commit 9786280
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/amm/client/cli/tx_create_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CmdCreatePool() *cobra.Command {
cmd := &cobra.Command{
Use: "create-pool [weights] [initial-deposit] [swap-fee] [exit-fee]",
Short: "create a new pool and provide the liquidity to it",
Example: `elysd tx amm create-pool 100uusdc,100uatom 100000000000uusdc,100000000000uatom 0.00 0.00 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Example: `elysd tx amm create-pool 100uatom,100uusdc 100000000000uatom,100000000000uusdc 0.00 0.00 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Args: cobra.ExactArgs(4),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argWeights, err := sdk.ParseCoinsNormalized(args[0])
Expand Down
2 changes: 1 addition & 1 deletion x/amm/client/cli/tx_exit_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CmdExitPool() *cobra.Command {
cmd := &cobra.Command{
Use: "exit-pool [pool-id] [min-amounts-out] [share-amount-in]",
Short: "exit a new pool and withdraw the liquidity from it",
Example: `elysd tx amm exit-pool 0 1000ueden,1000uelys 200000000000000000 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Example: `elysd tx amm exit-pool 0 1000uatom,1000uusdc 200000000000000000 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argPoolId, err := cast.ToUint64E(args[0])
Expand Down
2 changes: 1 addition & 1 deletion x/amm/client/cli/tx_join_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CmdJoinPool() *cobra.Command {
cmd := &cobra.Command{
Use: "join-pool [pool-id] [max-amounts-in] [share-amount-out]",
Short: "join a new pool and provide the liquidity to it",
Example: `elysd tx amm join-pool 0 2000ueden,2000uelys 200000000000000000 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Example: `elysd tx amm join-pool 0 2000uatom,2000uusdc 200000000000000000 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argPoolId, err := cast.ToUint64E(args[0])
Expand Down
2 changes: 1 addition & 1 deletion x/amm/client/cli/tx_swap_exact_amount_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func CmdSwapExactAmountIn() *cobra.Command {
cmd := &cobra.Command{
Use: "swap-exact-amount-in [token-in] [token-out-min-amount] [swap-route-pool-ids] [swap-route-denoms]",
Short: "Swap an exact amount of tokens for a minimum of another token, similar to swapping a token on the trade screen GUI.",
Example: `elysd tx amm swap-exact-amount-in 100000ueden 10000 0 uelys --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Example: `elysd tx amm swap-exact-amount-in 100000uusdc 10000 0 uatom --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Args: cobra.ExactArgs(4),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argTokenIn, err := sdk.ParseCoinNormalized(args[0])
Expand Down
2 changes: 1 addition & 1 deletion x/amm/client/cli/tx_swap_exact_amount_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func CmdSwapExactAmountOut() *cobra.Command {
cmd := &cobra.Command{
Use: "swap-exact-amount-out [token-out] [token-out-max-amount] [swap-route-pool-ids] [swap-route-denoms]",
Short: "Swap a maximum amount of tokens for an exact amount of another token, similar to swapping a token on the trade screen GUI.",
Example: `elysd tx amm swap-exact-amount-out 100000uelys 200000 0 ueden --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Example: `elysd tx amm swap-exact-amount-out 100000uatom 200000 0 uusdc --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`,
Args: cobra.ExactArgs(4),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argTokenOut, err := sdk.ParseCoinNormalized(args[0])
Expand Down

0 comments on commit 9786280

Please sign in to comment.