Skip to content

Commit

Permalink
remove .01% price adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Nov 8, 2024
1 parent 7cce528 commit 77d95de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const alternativePriceFeeds: Record<string, (ctx: Context, height: number) => Pr
baseAddresses.aerodrome.pools['CL1-WETH/superOETHb'].address,
)
const slot0 = await pool.slot0()
return getPriceFromSqrtPriceX96N(slot0.sqrtPriceX96) - 10n ** 14n // minus .01% fee
return getPriceFromSqrtPriceX96N(slot0.sqrtPriceX96)
},
superOETHb_ETH: async (ctx, height) => {
if (height < baseAddresses.aerodrome.pools['CL1-WETH/superOETHb'].from) {
Expand All @@ -55,7 +55,7 @@ const alternativePriceFeeds: Record<string, (ctx: Context, height: number) => Pr
baseAddresses.aerodrome.pools['CL1-WETH/superOETHb'].address,
)
const slot0 = await pool.slot0()
return 10n ** 36n / getPriceFromSqrtPriceX96N(slot0.sqrtPriceX96) - 10n ** 14n // minus .01% fee
return 10n ** 36n / getPriceFromSqrtPriceX96N(slot0.sqrtPriceX96)
},
OGN_ETH: createAMMPriceFeed(baseAddresses.aerodrome.pools['vAMM-OGN/superOETHb']),
OGN_superOETHb: createAMMPriceFeed(baseAddresses.aerodrome.pools['vAMM-OGN/superOETHb']),
Expand Down

0 comments on commit 77d95de

Please sign in to comment.