Skip to content

Commit e976118

Browse files
committed
fix: apy json source
1 parent 1b6234f commit e976118

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/sdk/sdk-legacy/core/endpoint.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,10 @@ export class GearboxBackendApi {
133133

134134
static getReferralUrl = () => REFERRAL_API;
135135

136-
static apyServerAllRewards = (chainId: number) =>
137-
URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/tokens/all", {
138-
params: { chain_id: chainId },
139-
});
140-
static apyServerGearAPY = (chainId: number) =>
141-
URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/gear-apy", {
142-
params: { chain_id: chainId },
143-
});
144-
static apyServerAllPoolRewards = (chainId: number) =>
145-
URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/pools/all", {
146-
params: { chain_id: chainId },
147-
});
136+
static apyAllRewards = () =>
137+
URLApi.getRelativeUrl(
138+
"https://state-cache.gearbox.foundation/apy-server/latest.json",
139+
);
148140
}
149141

150142
interface Options {

0 commit comments

Comments
 (0)