Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Sep 4, 2024
1 parent 5d859f5 commit a24ccaa
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion apps/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@amplitude/analytics-browser": "^2.9.3",
"@amplitude/plugin-autocapture-browser": "^0.9.0",
"@bonfida/spl-name-service": "^3.0.0",
"@coral-xyz/anchor": "^0.30.1",
"@headlessui/react": "^2.1.2",
"@heroicons/react": "^2.1.4",
"@next/third-parties": "^14.2.5",
Expand Down
4 changes: 2 additions & 2 deletions apps/staking/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const loadData = async (context: Context): Promise<Data> => {

const stakeAccountCustody = await pythStakingClient.getStakeAccountCustody(stakeAccountPositions.address);
const publishers = await pythStakingClient.getPublishers();
const ownerATAAccount = await pythStakingClient.getOwnerPythATAAccount();
const ownerAtaAccount = await pythStakingClient.getOwnerPythAtaAccount();
const currentEpoch = await getCurrentEpoch(context.connection);

const unlockSchedule = await pythStakingClient.getUnlockSchedule({
Expand All @@ -177,7 +177,7 @@ export const loadData = async (context: Context): Promise<Data> => {
},
unlockSchedule,
locked: unlockSchedule.reduce((sum, { amount }) => sum + amount, 0n),
walletAmount: ownerATAAccount.amount,
walletAmount: ownerAtaAccount.amount,
integrityStakingPublishers: publishers.map(({pubkey: publisher}) => ({
apyHistory: [],
isSelf: false,
Expand Down
2 changes: 1 addition & 1 deletion governance/pyth_staking_sdk/src/pyth-staking-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class PythStakingClient {
.rpc();
}

public async getOwnerPythATAAccount(): Promise<Account> {
public async getOwnerPythAtaAccount(): Promise<Account> {
const globalConfig = await this.getGlobalConfig();
return getAccount(
this.connection,
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a24ccaa

Please sign in to comment.