From 2dcc51319fa8f3db4c99979b6ec365a87eeb2356 Mon Sep 17 00:00:00 2001 From: slasher125 Date: Wed, 6 Dec 2023 17:50:24 +0400 Subject: [PATCH] stader peg fix --- src/handlers/triggerLSDRates.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/handlers/triggerLSDRates.js b/src/handlers/triggerLSDRates.js index be4b13e301..ee1df97441 100644 --- a/src/handlers/triggerLSDRates.js +++ b/src/handlers/triggerLSDRates.js @@ -181,9 +181,10 @@ const getMarketRates = async () => { const amount = 1e18; const urls = lsdTokens .filter((i) => i.name !== 'StakeHound') // useless data - .map( - (lsd) => - `${priceUrl}?sellToken=${lsd.address}&buyToken=${eth}&sellAmount=${amount}` + .map((lsd) => + lsd.name === 'Stader' + ? `${priceUrl}?sellToken=0xA35b1B31Ce002FBF2058D22F30f95D405200A15b&buyToken=${eth}&sellAmount=${amount}` + : `${priceUrl}?sellToken=${lsd.address}&buyToken=${eth}&sellAmount=${amount}` ); const marketRates = [];