Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Compagni Portis committed Feb 6, 2024
1 parent fcc21e8 commit 769270e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion x/dex/client/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import flag "github.com/spf13/pflag"

const (
FlagMaxAmountOut = "max-amount-out"
FlagMaxAmountOut = "max-amount-out"
FlagIncludePoolData = "include-pool-data"
)

Expand All @@ -12,6 +12,7 @@ func FlagSetMaxAmountOut() *flag.FlagSet {
fs.String(FlagMaxAmountOut, "", "Max amount to be returned from trade")
return fs
}

func FlagSetIncludePoolData() *flag.FlagSet {
fs := flag.NewFlagSet("", flag.ContinueOnError)
fs.Bool(FlagIncludePoolData, false, "Include pool data with response")
Expand Down
2 changes: 1 addition & 1 deletion x/dex/client/cli/query_user_deposits.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func CmdListUserDeposits() *cobra.Command {
}

params := &types.QueryAllUserDepositsRequest{
Address: reqAddress,
Address: reqAddress,
IncludePoolData: includePoolData,
}

Expand Down
2 changes: 1 addition & 1 deletion x/dex/keeper/grpc_query_user_deposits.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (k Keeper) UserDepositsAll(
}

if req.IncludePoolData {
k.addPoolData(ctx, depositRecord)
k.addPoolData(ctx, depositRecord)
}

depositArr = append(depositArr, depositRecord)
Expand Down

0 comments on commit 769270e

Please sign in to comment.