Skip to content

Commit

Permalink
comment partial unstake while triton index
Browse files Browse the repository at this point in the history
  • Loading branch information
Geninsus committed Nov 6, 2024
1 parent bc1f1b6 commit 5e36dd7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
);
if (!escrowAccount) return [];

const partialUnstakingAccounts = await getParsedProgramAccounts(
client,
partialUnstakeStruct,
voteProgramId,
partialUnstakeFilter(escrowAccount.pubkey.toString())
);
// const partialUnstakingAccounts = await getParsedProgramAccounts(
// client,
// partialUnstakeStruct,
// voteProgramId,
// partialUnstakeFilter(escrowAccount.pubkey.toString())
// );

const registry = new ElementRegistry(NetworkId.solana, platformId);

Expand All @@ -43,13 +43,13 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
},
});

partialUnstakingAccounts.forEach((account) => {
element.addAsset({
address: jupMint,
amount: account.amount,
attributes: { lockedUntil: account.expiration.times(1000).toNumber() },
});
});
// partialUnstakingAccounts.forEach((account) => {
// element.addAsset({
// address: jupMint,
// amount: account.amount,
// attributes: { lockedUntil: account.expiration.times(1000).toNumber() },
// });
// });

return registry.getElements(cache);
};
Expand Down

0 comments on commit 5e36dd7

Please sign in to comment.