Skip to content

Commit

Permalink
Merge pull request #17 from oraichain/staging
Browse files Browse the repository at this point in the history
Add new pool INJ/ORAI
  • Loading branch information
trungbach authored Sep 28, 2023
2 parents 9dcc993 + b4c9a4d commit 8ae3a00
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.staging.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server-staging",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions packages/oraidex-sync/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const scOraiCw20Address = "orai1065qe48g7aemju045aeyprflytemx7kecxkf5m7u5
export const usdcCw20Address = "orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd";
export const atomIbcDenom = "ibc/A2E2EEC9057A4A1C2C0A6A4C78B0239118DF5F278830F50B4A6BDD7A66506B78";
export const osmosisIbcDenom = "ibc/9C4DCD21B48231D0BC2AC3D1B74A864746B37E4292694C93C617324250D002FC";
export const injAddress = "orai19rtmkk6sn4tppvjmp5d5zj6gfsdykrl5rw2euu5gwur3luheuuusesqn49";
export const tenAmountInDecimalSix = 10000000;
export const truncDecimals = 6;
export const atomic = 10 ** truncDecimals;
Expand Down
5 changes: 5 additions & 0 deletions packages/oraidex-sync/src/pairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
ORAI,
airiCw20Adress,
atomIbcDenom,
injAddress,
kwtCw20Address,
milkyCw20Address,
oraixCw20Address,
Expand Down Expand Up @@ -74,6 +75,10 @@ export const pairs: PairMapping[] = [
{
asset_infos: [{ token: { contract_addr: scAtomCw20Address } }, { native_token: { denom: atomIbcDenom } }],
symbols: ["scATOM", "ATOM"]
},
{
asset_infos: [{ token: { contract_addr: injAddress } }, { native_token: { denom: ORAI } }],
symbols: ["INJ", "ORAI"]
}
];

Expand Down
10 changes: 9 additions & 1 deletion packages/oraidex-sync/tests/helper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ORAI,
airiCw20Adress,
atomIbcDenom,
injAddress,
kwtCw20Address,
milkyCw20Address,
oraiInfo,
Expand Down Expand Up @@ -127,7 +128,7 @@ describe("test-helper", () => {
it.each<[AssetInfo, number]>([
[{ token: { contract_addr: usdtCw20Address } }, 2],
[{ token: { contract_addr: usdcCw20Address } }, 1],
[{ native_token: { denom: "orai" } }, 9],
[{ native_token: { denom: "orai" } }, 10],
[{ token: { contract_addr: airiCw20Adress } }, 1]
])("test-findMappedTargetedAssetInfo", (info, expectedListLength) => {
// setup
Expand Down Expand Up @@ -183,6 +184,9 @@ describe("test-helper", () => {
},
{
token: { contract_addr: "orai19q4qak2g3cj2xc2y3060t0quzn3gfhzx08rjlrdd3vqxhjtat0cq668phq" }
},
{
token: { contract_addr: "orai19rtmkk6sn4tppvjmp5d5zj6gfsdykrl5rw2euu5gwur3luheuuusesqn49" }
}
]);
});
Expand Down Expand Up @@ -271,6 +275,10 @@ describe("test-helper", () => {
{
asset_infos: [{ token: { contract_addr: scAtomCw20Address } }, { native_token: { denom: atomIbcDenom } }],
symbols: ["scATOM", "ATOM"]
},
{
asset_infos: [{ token: { contract_addr: injAddress } }, { native_token: { denom: ORAI } }],
symbols: ["INJ", "ORAI"]
}
]);
});
Expand Down

0 comments on commit 8ae3a00

Please sign in to comment.