Skip to content

Commit

Permalink
Refactor integration of asset FT with the DEX to accept all `DEXActio…
Browse files Browse the repository at this point in the history
…ns` by asset FT required to be applied.
  • Loading branch information
dzmitryhil committed Nov 18, 2024
1 parent 8894a45 commit adc5f4d
Show file tree
Hide file tree
Showing 16 changed files with 2,354 additions and 1,898 deletions.
4 changes: 2 additions & 2 deletions integration-tests/modules/dex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ func TestLimitOrdersMatchingWithAssetFTFreeze(t *testing.T) {
chain.TxFactoryAuto(),
placeSellOrderMsg,
)
requireT.ErrorContains(err, assetfttypes.ErrDEXLockFailed.Error())
requireT.ErrorContains(err, assetfttypes.ErrDEXInsufficientSpendableBalance.Error())

balanceRes, err = assetFTClient.Balance(ctx, &assetfttypes.QueryBalanceRequest{
Account: acc1.String(),
Expand Down Expand Up @@ -1487,7 +1487,7 @@ func TestLimitOrdersMatchingWithStaking(t *testing.T) {
chain.TxFactoryAuto(),
placeSellOrderMsg,
)
requireT.ErrorContains(err, assetfttypes.ErrDEXLockFailed.Error())
requireT.ErrorContains(err, assetfttypes.ErrDEXInsufficientSpendableBalance.Error())

chain.FundAccountWithOptions(ctx, t, acc, integration.BalancesOptions{
Amount: delegateAmount.Add(sdkmath.NewInt(100_000)),
Expand Down
Loading

0 comments on commit adc5f4d

Please sign in to comment.