Skip to content

Commit 4bf0d9c

Browse files
committed
fix format
1 parent c3de157 commit 4bf0d9c

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

apps/staking/src/components/Root/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ const HtmlWithProviders = ({ lang, ...props }: HTMLProps<HTMLHtmlElement>) => (
8383
walletConnectProjectId={WALLETCONNECT_PROJECT_ID}
8484
mainnetRpc={MAINNET_RPC}
8585
>
86-
<ApiProvider hermesUrl={HERMES_URL} pythnetRpcUrl={PYTHNET_RPC} simulationPayer={SIMULATION_PAYER}>
86+
<ApiProvider
87+
hermesUrl={HERMES_URL}
88+
pythnetRpcUrl={PYTHNET_RPC}
89+
simulationPayer={SIMULATION_PAYER}
90+
>
8791
<ToastProvider>
8892
<html lang={lang} {...props} />
8993
</ToastProvider>

apps/staking/src/config/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const GOVERNANCE_ONLY_REGIONS = transformOr(
7676
export const PROXYCHECK_API_KEY = demandInProduction("PROXYCHECK_API_KEY");
7777
// This needs to be a public key that has SOL in it all the time, it will be used as a payer in the transaction simulation to compute the claimable rewards
7878
// such simulation fails when the payer has no funds.
79-
export const SIMULATION_PAYER = process.env.SIMULATION_PAYER
79+
export const SIMULATION_PAYER = process.env.SIMULATION_PAYER;
8080
class MissingEnvironmentError extends Error {
8181
constructor(name: string) {
8282
super(`Missing environment variable: ${name}!`);

apps/staking/src/hooks/use-api.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ const State = {
9696
dashboardDataCacheKey,
9797

9898
loadData: () =>
99-
api.loadData(client, pythnetClient, hermesClient, account, simulationPayer ? new PublicKey(simulationPayer) : undefined),
99+
api.loadData(
100+
client,
101+
pythnetClient,
102+
hermesClient,
103+
account,
104+
simulationPayer ? new PublicKey(simulationPayer) : undefined,
105+
),
100106

101107
claim: bindApi(api.claim),
102108
deposit: bindApi(api.deposit),
@@ -146,7 +152,11 @@ export const ApiProvider = ({
146152
return <ApiContext.Provider value={state} {...props} />;
147153
};
148154

149-
const useApiContext = (hermesUrl: string, pythnetRpcUrl: string, simulationPayer: string | undefined) => {
155+
const useApiContext = (
156+
hermesUrl: string,
157+
pythnetRpcUrl: string,
158+
simulationPayer: string | undefined,
159+
) => {
150160
const wallet = useWallet();
151161
const { connection } = useConnection();
152162
const { isMainnet } = useNetwork();

0 commit comments

Comments
 (0)