Skip to content

Commit

Permalink
fix: dinero pxeth peg rate (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhafa authored Dec 31, 2024
1 parent a7e8aaf commit ffee1fc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/handlers/triggerLSDRates.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,6 @@ const getExpectedRates = async () => {
type: 'function',
};

const apxETHAbi = {
inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],
name: 'convertToAssets',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
};

// --- cbETH
const cbETHRate = Number((await axios.get(cbETHRateUrl)).data.amount);

Expand Down Expand Up @@ -577,17 +569,6 @@ const getExpectedRates = async () => {
})
).output / 1e18;

const apxEth =
(
await sdk.api.abi.call({
target: lsdTokens.find((lsd) => lsd.name === 'Dinero (pxETH)')
.addressExchangeRate,
chain: 'ethereum',
abi: apxETHAbi,
params: [1000000000000000000n],
})
).output / 1e18;

const lsETH =
10000 /
(
Expand Down Expand Up @@ -660,8 +641,6 @@ const getExpectedRates = async () => {
? uniETH
: lsd.name === 'mETH Protocol'
? mETH
: lsd.name === 'Dinero (pxETH)'
? apxEth
: lsd.name === 'Liquid Collective'
? lsETH
: lsd.name === 'MEV Protocol'
Expand Down

0 comments on commit ffee1fc

Please sign in to comment.