Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove register pair restriction #134

Merged
merged 2 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Lint + remove comment
  • Loading branch information
Kbhat1 committed Jul 19, 2022
commit 597c38a9c9df47d08e51b77e45b8166725aa7f41
1 change: 0 additions & 1 deletion x/dex/keeper/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/sei-protocol/sei-chain/x/dex/types"
)

Expand Down
1 change: 0 additions & 1 deletion x/dex/keeper/msg_server_place_orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (k msgServer) PlaceOrders(goCtx context.Context, msg *types.MsgPlaceOrders)
return nil, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, "insufficient funds to place order")
}

// TODO: Should we still do this check? We still want price denom (deposits) to be in asset list
_, validDenom := k.Keeper.GetAssetMetadataByDenom(ctx, msg.Orders[0].PriceDenom)
if !validDenom {
return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid price denom")
Expand Down