From 02ad671fd0474a122fa2e1743dc2239d1e11f85c Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 21 Nov 2024 22:50:57 +0100 Subject: [PATCH] fix weight --- packages/plugins/src/plugins/jupiter/pricingJob.ts | 2 +- packages/plugins/src/utils/solana/pyth/helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/src/plugins/jupiter/pricingJob.ts b/packages/plugins/src/plugins/jupiter/pricingJob.ts index 37123863..a3364e1e 100644 --- a/packages/plugins/src/plugins/jupiter/pricingJob.ts +++ b/packages/plugins/src/plugins/jupiter/pricingJob.ts @@ -69,7 +69,7 @@ const executor: JobExecutor = async (cache: Cache) => { timestamp: Date.now(), price: solTokenPrice.price * price, platformId: walletTokensPlatform.id, - weight: 0.8, + weight: 1, }; sources.push(source); }); diff --git a/packages/plugins/src/utils/solana/pyth/helpers.ts b/packages/plugins/src/utils/solana/pyth/helpers.ts index ddb7bcdf..964c6f22 100644 --- a/packages/plugins/src/utils/solana/pyth/helpers.ts +++ b/packages/plugins/src/utils/solana/pyth/helpers.ts @@ -325,7 +325,7 @@ export async function getPythTokenPriceSources( platformId: token.platformId || walletTokensPlatform.id, price, timestamp: Date.now(), - weight: 1, + weight: 0.5, })); }) .flat();