@@ -37,6 +37,7 @@ const createChainlinkPriceFeed = (address: string, decimals: bigint) => {
3737const 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
4243export 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