Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions apps/staking/src/app/api/v1/locked_accounts/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { clusterApiUrl, Connection, PublicKey } from "@solana/web3.js";
import type { NextRequest } from "next/server";
import { z } from "zod";

import { IS_MAINNET, RPC } from "../../../../config/server";
import { BACKEND_RPC, IS_MAINNET } from "../../../../config/server";
import { tokensToString } from "../../../../tokens";

const UnlockScheduleSchema = z.object({
Expand Down Expand Up @@ -37,7 +37,7 @@ const isValidPublicKey = (publicKey: string) => {
export async function GET(req: NextRequest) {
const stakingClient = new PythStakingClient({
connection: new Connection(
RPC ??
BACKEND_RPC ??
clusterApiUrl(
IS_MAINNET
? WalletAdapterNetwork.Mainnet
Expand Down
1 change: 1 addition & 0 deletions apps/staking/src/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const WALLETCONNECT_PROJECT_ID = demandInProduction(
"WALLETCONNECT_PROJECT_ID",
);
export const RPC = process.env.RPC;
export const BACKEND_RPC = process.env.BACKEND_RPC;
export const IS_MAINNET = process.env.IS_MAINNET !== undefined;
export const HERMES_URL = getOr("HERMES_URL", "https://hermes.pyth.network");
export const BLOCKED_REGIONS = transformOr("BLOCKED_REGIONS", fromCsv, []);
Expand Down
Loading