Skip to content

Commit

Permalink
fix: dola pool
Browse files Browse the repository at this point in the history
  • Loading branch information
57Ark committed Dec 17, 2024
1 parent 6ab0093 commit 2924ebd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 34 deletions.
40 changes: 8 additions & 32 deletions contracts/PriceFeedDataLive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------
Expand Down
7 changes: 7 additions & 0 deletions src/config/configs/dolaConfigMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions src/oracles/priceFeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down

0 comments on commit 2924ebd

Please sign in to comment.