Skip to content

Commit 5a59704

Browse files
committed
fix: add CVX_USD price feed
1 parent 1102855 commit 5a59704

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shared/post-processors/exchange-rates/price-routing-mainnet.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const createChainlinkPriceFeed = (address: string, decimals: bigint) => {
3737
const chainlinkPriceFeeds: Record<string, (ctx: Context, height: number) => Promise<bigint>> = {
3838
CRV_USD: createChainlinkPriceFeed('0xcd627aa160a6fa45eb793d19ef54f5062f20f33f', 8n),
3939
CRV_USDC: createChainlinkPriceFeed('0xcd627aa160a6fa45eb793d19ef54f5062f20f33f', 8n),
40+
CVX_USD: createChainlinkPriceFeed('0xd962fC30A72A84cE50161031391756Bf2876Af5D', 8n),
4041
}
4142

4243
export const getMainnetPrice = async (ctx: Context, height: number, base: MainnetCurrency, quote: MainnetCurrency) => {
@@ -285,4 +286,5 @@ export const priceMap: Partial<
285286
...twoWay('CVX', 'WETH', (ctx, height) => getChainlinkPrice(ctx, height, 'CVX', 'ETH')),
286287
...twoWay('CRV', 'ETH', (ctx, height) => getChainlinkPrice(ctx, height, 'CRV', 'ETH')),
287288
...twoWay('CVX', 'ETH', (ctx, height) => getChainlinkPrice(ctx, height, 'CVX', 'ETH')),
289+
...twoWay('CVX', 'USD', (ctx, height) => getChainlinkPrice(ctx, height, 'CVX', 'USD')),
288290
}

0 commit comments

Comments
 (0)