Skip to content

Commit

Permalink
Merge pull request #205 from oraichain/feat/update-signer
Browse files Browse the repository at this point in the history
fix: find token on oraichain simulate
  • Loading branch information
haunv3 authored Mar 18, 2024
2 parents 2242433 + ab70b15 commit 351b2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-common",
"version": "1.0.76",
"version": "1.0.77",
"main": "build/index.js",
"files": [
"build/"
Expand Down
5 changes: 3 additions & 2 deletions packages/oraidex-common/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
atomic,
truncDecimals,
GAS_ESTIMATION_BRIDGE_DEFAULT,
MULTIPLIER
MULTIPLIER,
CW20_DECIMALS
} from "./constant";
import { CoinGeckoId, NetworkChainId } from "./network";
import {
Expand Down Expand Up @@ -244,7 +245,7 @@ export const getTokenOnOraichain = (coingeckoId: CoinGeckoId) => {
if (coingeckoId === "kawaii-islands" || coingeckoId === "milky-token") {
throw new Error("KWT and MILKY not supported in this function");
}
return oraichainTokens.find((token) => token.coinGeckoId === coingeckoId);
return oraichainTokens.find((token) => token.coinGeckoId === coingeckoId && token.decimals === CW20_DECIMALS);
};

export const parseTokenInfoRawDenom = (tokenInfo: TokenItemType) => {
Expand Down

0 comments on commit 351b2cb

Please sign in to comment.