Skip to content

Commit 5c8a243

Browse files
committed
using latest sdk version
1 parent 1257645 commit 5c8a243

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@ampleforthorg/sdk": "1.0.32",
6+
"@ampleforthorg/sdk": "1.0.33",
77
"@apollo/client": "^3.3.16",
88
"@craco/craco": "^6.1.2",
99
"@headlessui/react": "^1.4.1",

frontend/src/utils/ampleforth.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import { RewardSchedule, SignerOrProvider } from '../types'
55
import * as ls from './cache'
66
import { DAY_IN_MS } from '../constants'
77

8-
const AMPLEFORTH_CORE_GRAPHQL_ENDPOINT = "https://web-api.ampleforth.org/graph-cache/ampleforth-core"
9-
const getClient = (chainId) => {
10-
const endpoint = (chainId === 1) ? AMPLEFORTH_CORE_GRAPHQL_ENDPOINT : queries.graphHostedURL(chainId);
11-
return queries.initializeClient(endpoint)
12-
}
8+
const getClient = (chainId) => queries.initializeClient(queries.graphHostedURL(chainId))
139

1410
const loadXCRebasesFromCache = async (controller: entities.XCController, chainId: number) =>
1511
ls.computeAndCache<entities.XCRebaseData[]>(

frontend/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.7.tgz#c7a762c887b3482a79ffa68f63de5e96059a62e4"
88
integrity sha512-E3Qku4mTzdrlwVWGPxklDnME5ANrEGetvYw4i2GCRlppWXXE4QD66j7pwb8HelZwS6LnqEChhrSOGCXpbiu6MQ==
99

10-
"@ampleforthorg/[email protected].32":
11-
version "1.0.32"
12-
resolved "https://registry.yarnpkg.com/@ampleforthorg/sdk/-/sdk-1.0.32.tgz#04df04c69a388b0e18531222c29baa59ed288963"
13-
integrity sha512-q05O05sc8cd/pW+nuh7WsqCKT4rcw/ff+FI9JUtcl4q4R0VL2VGhIn8+RIUQMkRfeDI4huFduRL1RrdWkaEBRg==
10+
"@ampleforthorg/[email protected].33":
11+
version "1.0.33"
12+
resolved "https://registry.yarnpkg.com/@ampleforthorg/sdk/-/sdk-1.0.33.tgz#736cd6efdb52ae407eb0cd0df742c60a3696b0b5"
13+
integrity sha512-5yDqqZYiZo8AWUltX/zeHql0CCp2oOapGJeBFHnTBcKnSWWKbrRCnXlu7T/LGerRo1ETEYSXb+BYJwx448pOmw==
1414
dependencies:
1515
"@types/bignumber.js" "^5.0.0"
1616
"@typescript-eslint/eslint-plugin" "^4.29.0"

0 commit comments

Comments
 (0)