Skip to content

Commit d6084de

Browse files
committed
chore(staking): remove amount_staked_per_account
This endpoint was built for use calculating fogo points. However, pulling the data from the chain is too slow to run in Vercel endpoints, so we're going to clean this up and try a different approach instead
1 parent 23af293 commit d6084de

File tree

3 files changed

+1
-58
lines changed

3 files changed

+1
-58
lines changed

apps/staking/src/app/api/v1/amount_staked_per_account/route.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

apps/staking/src/config/server.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ export const SIMULATION_PAYER_ADDRESS = getOr(
8080
"SIMULATION_PAYER_ADDRESS",
8181
"E5KR7yfb9UyVB6ZhmhQki1rM1eBcxHvyGKFZakAC5uc",
8282
);
83-
export const AMOUNT_STAKED_PER_ACCOUNT_SECRET = demandInProduction(
84-
"AMOUNT_STAKED_PER_ACCOUNT_SECRET",
85-
);
8683

8784
class MissingEnvironmentError extends Error {
8885
constructor(name: string) {

apps/staking/turbo.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"MAINNET_API_RPC",
1313
"BLOCKED_REGIONS",
1414
"AMPLITUDE_API_KEY",
15-
"GOOGLE_ANALYTICS_ID",
16-
"AMOUNT_STAKED_PER_ACCOUNT_SECRET"
15+
"GOOGLE_ANALYTICS_ID"
1716
]
1817
},
1918
"start:dev": {

0 commit comments

Comments
 (0)