From 2924ebdc86a1d8e00413d00c94425968096500c2 Mon Sep 17 00:00:00 2001 From: Arkhip Vouba <80775286+57Ark@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:35:24 +0100 Subject: [PATCH] fix: dola pool --- contracts/PriceFeedDataLive.sol | 40 +++++-------------------- src/config/configs/dolaConfigMainnet.ts | 7 +++++ src/oracles/priceFeeds.ts | 3 +- 3 files changed, 16 insertions(+), 34 deletions(-) diff --git a/contracts/PriceFeedDataLive.sol b/contracts/PriceFeedDataLive.sol index 8cfd6e2..3b72217 100644 --- a/contracts/PriceFeedDataLive.sol +++ b/contracts/PriceFeedDataLive.sol @@ -3976,41 +3976,17 @@ contract PriceFeedDataLive { ); // ------------------------ DOLAFRAXBP3CRV_f ------------------------ - curveCryptoPriceFeedsByNetwork[1].push( - CurvePriceFeedData({ - lpToken: TOKEN_DOLAFRAXBP3CRV_f, - assets: TokensLib.arrayOf(TOKEN_DOLA, TOKEN_crvFRAX), - pool: Contracts.CURVE_DOLA_FRAXBP_POOL, - trusted: false, - reserve: false - }) + zeroPriceFeedsByNetwork[1].push( + SingeTokenPriceFeedData({token: TOKEN_DOLAFRAXBP3CRV_f, trusted: false, reserve: false}) ); - curveCryptoPriceFeedsByNetwork[42161].push( - CurvePriceFeedData({ - lpToken: TOKEN_DOLAFRAXBP3CRV_f, - assets: TokensLib.arrayOf(TOKEN_DOLA, TOKEN_crvFRAX), - pool: Contracts.CURVE_DOLA_FRAXBP_POOL, - trusted: false, - reserve: false - }) + zeroPriceFeedsByNetwork[42161].push( + SingeTokenPriceFeedData({token: TOKEN_DOLAFRAXBP3CRV_f, trusted: false, reserve: false}) ); - curveCryptoPriceFeedsByNetwork[10].push( - CurvePriceFeedData({ - lpToken: TOKEN_DOLAFRAXBP3CRV_f, - assets: TokensLib.arrayOf(TOKEN_DOLA, TOKEN_crvFRAX), - pool: Contracts.CURVE_DOLA_FRAXBP_POOL, - trusted: false, - reserve: false - }) + zeroPriceFeedsByNetwork[10].push( + SingeTokenPriceFeedData({token: TOKEN_DOLAFRAXBP3CRV_f, trusted: false, reserve: false}) ); - curveCryptoPriceFeedsByNetwork[8453].push( - CurvePriceFeedData({ - lpToken: TOKEN_DOLAFRAXBP3CRV_f, - assets: TokensLib.arrayOf(TOKEN_DOLA, TOKEN_crvFRAX), - pool: Contracts.CURVE_DOLA_FRAXBP_POOL, - trusted: false, - reserve: false - }) + zeroPriceFeedsByNetwork[8453].push( + SingeTokenPriceFeedData({token: TOKEN_DOLAFRAXBP3CRV_f, trusted: false, reserve: false}) ); // ------------------------ crvUSDDOLA_f ------------------------ diff --git a/src/config/configs/dolaConfigMainnet.ts b/src/config/configs/dolaConfigMainnet.ts index 8712d5b..aaf0ddc 100644 --- a/src/config/configs/dolaConfigMainnet.ts +++ b/src/config/configs/dolaConfigMainnet.ts @@ -110,6 +110,7 @@ const tier1CreditManager: CreditManagerV3DeployConfig = { { token: "USDecrvUSD", lt: 0 }, { token: "FRAXsDAI", lt: 0 }, { token: "steCRV", lt: 0 }, + { token: "DOLAFRAXBP3CRV_f", lt: 0 }, { token: "crvUSDDOLA_f", lt: 0 }, ], adapters: [ @@ -294,6 +295,12 @@ export const dolaConfigMainnet: PoolV3DeployConfig = { quotaIncreaseFee: 0, limit: BigInt(0), }, + DOLAFRAXBP3CRV_f: { + minRate: 1, + maxRate: 1, + quotaIncreaseFee: 0, + limit: BigInt(0), + }, crvUSDDOLA_f: { minRate: 1, maxRate: 1, diff --git a/src/oracles/priceFeeds.ts b/src/oracles/priceFeeds.ts index a398d00..b488e76 100644 --- a/src/oracles/priceFeeds.ts +++ b/src/oracles/priceFeeds.ts @@ -2199,8 +2199,7 @@ export const priceFeedsByToken: Record< DOLAFRAXBP3CRV_f: { AllNetworks: { Main: { - type: PriceFeedType.CURVE_CRYPTO_ORACLE, - assets: ["DOLA", "crvFRAX"], + type: PriceFeedType.ZERO_ORACLE, trusted: false, }, },