Skip to content

Commit

Permalink
stader peg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Dec 6, 2023
1 parent f175e9f commit 2dcc513
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/handlers/triggerLSDRates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 2dcc513

Please sign in to comment.