Skip to content

Commit

Permalink
fixed oraichain oraidex cw20 staking queries
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Dec 19, 2024
1 parent 07972b3 commit c3c251d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/formulas/formulas/contract/staking/cw20Stake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ export const stakedBalanceAtHeight: ContractFormula<

const balance =
(await snapshotMapMayLoadAtHeight<string, string>({
env,
env: {
...env,
contractAddress,
},
name: 'stakedBalance',
key,
height,
Expand Down Expand Up @@ -216,7 +219,10 @@ export const totalStakedAtHeight: ContractFormula<
const total =
(oraichainToken
? await snapshotMapMayLoadAtHeight<string, string>({
env,
env: {
...env,
contractAddress,
},
name: 'stakedTotal',
key: oraichainToken,
height,
Expand Down
1 change: 1 addition & 0 deletions src/wasmCodeTrackers/trackers/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './neutron'
export * from './oraichain'
export * from './valence'
9 changes: 9 additions & 0 deletions src/wasmCodeTrackers/trackers/oraichain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { WasmCodeTracker } from '@/types'

export const oraichainOraiDexCw20Staking: WasmCodeTracker = {
chainId: 'Oraichain',
codeKey: 'oraichain-cw20-staking',
contractAddresses: new Set([
'orai1xu9yw2xwd55d09pjce28yjklvk2kwwrqw4ql9gvyrs607z26kv0sl99040',
]),
}

0 comments on commit c3c251d

Please sign in to comment.