Skip to content

Commit

Permalink
Merge pull request #372 from comdex-official/auditFixes
Browse files Browse the repository at this point in the history
tx fixed for pairs
  • Loading branch information
dheerajkd30 authored Aug 2, 2022
2 parents e0326f3 + fa9bb28 commit 62c542f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/asset/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func NewCmdSubmitAddPairsProposal() *cobra.Command {
return err
}

assetOut, err := strconv.ParseUint(args[0], 10, 64)
assetOut, err := strconv.ParseUint(args[1], 10, 64)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion x/market/keeper/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (k Keeper) GetPriceForAsset(ctx sdk.Context, id uint64) (uint64, bool) {

market, found := k.GetMarketForAsset(ctx, id)
if !found {
return 2000000, true
return 0, false
}

return k.GetPriceForMarket(ctx, market.Symbol)
Expand Down

0 comments on commit 62c542f

Please sign in to comment.