Skip to content

Commit

Permalink
Remove usdTokenValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultJRD committed Feb 28, 2024
1 parent 3c04e20 commit ccc8bfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/async/schedulers/millions.scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export class MillionsScheduler {
updated_at_height: Number(draw.updatedAtHeight),
created_at: draw.createdAt,
updated_at: draw.updatedAt,
usd_token_value: await this._marketService.getTokenPrice(getAssetSymbol(pool.denom_native)),
// We don't use this value anymore
usd_token_value: 0,
};

// If draw doesn't exist in db, we save it
Expand Down Expand Up @@ -205,7 +206,8 @@ export class MillionsScheduler {
expires_at: dayjs(draw.createdAt).add(Number(prizeExpirationDelta.seconds), 'seconds').toDate(),
created_at: draw.createdAt,
updated_at: draw.updatedAt,
usd_token_value: savedDraw ? savedDraw.usd_token_value : formattedDraw.usd_token_value,
// We don't use this value anymore
usd_token_value: 0,
};

await this._millionsPrizeService.createOrUpdate(formattedPrize);
Expand Down

0 comments on commit ccc8bfe

Please sign in to comment.