From 5e36dd709d21c4cd7e2c4d63d88b278d35a53a44 Mon Sep 17 00:00:00 2001 From: Courmont Guillaume Date: Wed, 6 Nov 2024 11:51:29 +0100 Subject: [PATCH] comment partial unstake while triton index --- .../plugins/jupiter/governance/voteFetcher.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts b/packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts index b2a46ec8..1b853c2d 100644 --- a/packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts +++ b/packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts @@ -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); @@ -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); };