Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rwa nuxt cache #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions layer/services/pythClient.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
/* eslint-disable camelcase, no-console */
import { HttpRestClient } from '@injectivelabs/utils'

const PYTH_SERVICE_URL = 'https://benchmarks.pyth.network/v1/'
// const PYTH_SERVICE_URL = 'https://benchmarks.pyth.network/v1/'

const NUXT_CACHE_PYTH_SERVICE_URL =
'https://injective-nuxt-api-staging.vercel.app/api/v1/'

export class PythService {
private restClient: HttpRestClient

constructor() {
this.restClient = new HttpRestClient(PYTH_SERVICE_URL)
this.restClient = new HttpRestClient(NUXT_CACHE_PYTH_SERVICE_URL)
}

public fetchRwaMarketOpenNoThrow = async (pythId: string) => {
Expand Down