Skip to content

Commit

Permalink
fix: get last operations
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Oct 3, 2024
1 parent 7172104 commit f45d930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/universal-swap/src/msg/oraichain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class OraichainMsg {
});
}

let tokenOutOfSwap = swapOps.slice[swapOps.length - 1].denom_out;
let tokenOutOfSwap = swapOps[swapOps.length - 1].denom_out;
let min_asset = isCw20Token(tokenOutOfSwap)
? {
cw20: {
Expand Down Expand Up @@ -425,7 +425,7 @@ export class OraichainMsg {
throw generateError("Error on generate executeMsg on Oraichain: Only support ibc or ibc wasm bridge");
}

let tokenOutOfSwap = swapOps.slice[swapOps.length - 1].denom_out;
let tokenOutOfSwap = swapOps[swapOps.length - 1].denom_out;
let min_asset = isCw20Token(tokenOutOfSwap)
? {
cw20: {
Expand Down
4 changes: 2 additions & 2 deletions packages/universal-swap/src/msg/osmosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class OsmosisMsg {
});
}

let tokenOutOfSwap = swapOps.slice[swapOps.length - 1].denom_out;
let tokenOutOfSwap = swapOps[swapOps.length - 1].denom_out;
let min_asset = isCw20Token(tokenOutOfSwap)
? {
cw20: {
Expand Down Expand Up @@ -207,7 +207,7 @@ export class OsmosisMsg {
throw generateError("Error on generate executeMsg on Oraichain: Only support ibc transfer");
}

let tokenOutOfSwap = swapOps.slice[swapOps.length - 1].denom_out;
let tokenOutOfSwap = swapOps[swapOps.length - 1].denom_out;
let min_asset = isCw20Token(tokenOutOfSwap)
? {
cw20: {
Expand Down

0 comments on commit f45d930

Please sign in to comment.