Skip to content

Commit

Permalink
chore: update new oraidex listing contract addr
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed Jan 5, 2024
1 parent 05a4cd3 commit bd3132f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/dapp-sample/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ GAS_PRICES=0.001orai
TOKEN_SYMBOL=TOKEN_SYMBOL
ORAI_REWARD_PER_SEC_AMOUNT=1
ORAIX_REWARD_PER_SEC_AMOUNT=1
LISTING_TOKEN_CONTRACT=orai1ncl678tcvzem4ueyre853fcu0epr5t0yjpmq4s28t2rgmev739rs0dpfvd
LISTING_TOKEN_CONTRACT=orai1mkr02jzz0jfh34ps6z966uyueu4tlmnyg57nn72pxfq9t9a706tsha5znh
11 changes: 4 additions & 7 deletions packages/dapp-sample/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ async function run() {
const { client, defaultAddress } = await getCosmWasmClient();
const listingClient = new OraidexListingContractClient(client, defaultAddress, envVariables.listing_token_contract);
const result = await listingClient.listToken({
targetedAssetInfo: undefined,
pairAssetInfo: { native_token: { denom: 'orai' } },
symbol: envVariables.tokenSymbol,
liquidityPoolRewardAssets: [
{ amount: envVariables.oraix_preward_per_sec, info: { token: { contract_addr: defaultAddress } } },
{ amount: envVariables.orai_reward_per_sec, info: { native_token: { denom: 'orai' } } }
]
targetedAssetInfo: { native_token: { denom: 'orai' } },
pairAssetInfo: { token: { contract_addr: 'orai1dqa52a7hxxuv8ghe7q5v0s36ra0cthea960q2cukznleqhk0wpnshfegez' } },
symbol: '',
liquidityPoolRewardAssets: []
});
console.log('listing result: ', result);
} catch (error) {
Expand Down

0 comments on commit bd3132f

Please sign in to comment.