Skip to content

Commit

Permalink
Use new data structure returned by hipo gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezaravanbakhsh committed Dec 4, 2024
1 parent 6364971 commit 5e047a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,10 @@ export class Model {
clearTimeout(this.timeoutHipoGauge)
fetch('https://gauge.hipo.finance/data')
.then((res) => res.json())
.then((res: { ok: boolean; result: { holders: { holders_count: number } } }) => {
if (res.ok && res.result.holders.holders_count >= 0) {
.then((res: { ok: boolean; result: { hton: { holders_count: number } } }) => {
if (res.ok && res.result.hton.holders_count >= 0) {
runInAction(() => {
this.holdersCount = res.result.holders.holders_count
this.holdersCount = res.result.hton.holders_count
})
}
throw new Error('invalid response')
Expand Down

0 comments on commit 5e047a0

Please sign in to comment.