Skip to content

Commit

Permalink
fix: added dola pool addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
57Ark committed Nov 22, 2024
1 parent 3e062ff commit c789b5f
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/PriceFeedDataLive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6419,6 +6419,11 @@ contract PriceFeedDataLive {
SingeTokenPriceFeedData({token: Tokens.dcrvUSDV3, trusted: false, reserve: false})
);

// ------------------------ dDOLAV3 ------------------------
zeroPriceFeedsByNetwork[1].push(
SingeTokenPriceFeedData({token: Tokens.dDOLAV3, trusted: false, reserve: false})
);

// ------------------------ sdUSDCV3 ------------------------
zeroPriceFeedsByNetwork[1].push(
SingeTokenPriceFeedData({token: Tokens.sdUSDCV3, trusted: false, reserve: false})
Expand Down Expand Up @@ -6511,6 +6516,11 @@ contract PriceFeedDataLive {
SingeTokenPriceFeedData({token: Tokens.sdcrvUSDV3, trusted: false, reserve: false})
);

// ------------------------ sdDOLAV3 ------------------------
zeroPriceFeedsByNetwork[1].push(
SingeTokenPriceFeedData({token: Tokens.sdDOLAV3, trusted: false, reserve: false})
);

// ------------------------ GEAR ------------------------
zeroPriceFeedsByNetwork[1].push(SingeTokenPriceFeedData({token: Tokens.GEAR, trusted: false, reserve: false}));
zeroPriceFeedsByNetwork[42161].push(
Expand Down
2 changes: 2 additions & 0 deletions contracts/Tokens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ enum Tokens {
dGHOV3,
dDAIV3,
dcrvUSDV3,
dDOLAV3,
sdUSDCV3,
sdUSDC_eV3,
sdWBTCV3,
Expand All @@ -249,6 +250,7 @@ enum Tokens {
sdGHOV3,
sdDAIV3,
sdcrvUSDV3,
sdDOLAV3,
GEAR
}

Expand Down
16 changes: 16 additions & 0 deletions contracts/TokensData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,14 @@ contract TokensDataLive {
tokenType: TokenType.DIESEL_LP_TOKEN
})
);
tokenDataByNetwork[1].push(
TokenData({
id: Tokens.dDOLAV3,
addr: 0x31426271449F60d37Cc5C9AEf7bD12aF3BdC7A94,
symbol: "dDOLAV3",
tokenType: TokenType.DIESEL_LP_TOKEN
})
);
tokenDataByNetwork[1].push(
TokenData({
id: Tokens.sdUSDCV3,
Expand Down Expand Up @@ -1594,6 +1602,14 @@ contract TokensDataLive {
tokenType: TokenType.DIESEL_LP_TOKEN
})
);
tokenDataByNetwork[1].push(
TokenData({
id: Tokens.sdDOLAV3,
addr: 0xb3289a45497027a2Aee88Acc89fB3dcB5C71001D,
symbol: "sdDOLAV3",
tokenType: TokenType.DIESEL_LP_TOKEN
})
);
tokenDataByNetwork[1].push(
TokenData({
id: Tokens.GEAR,
Expand Down
17 changes: 17 additions & 0 deletions src/oracles/priceFeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3067,6 +3067,14 @@ export const priceFeedsByToken: Record<
},
},
},
dDOLAV3: {
Mainnet: {
Main: {
type: PriceFeedType.ZERO_ORACLE,
trusted: false,
},
},
},

sdUSDCV3: {
Mainnet: {
Expand Down Expand Up @@ -3242,6 +3250,15 @@ export const priceFeedsByToken: Record<
},
},

sdDOLAV3: {
Mainnet: {
Main: {
type: PriceFeedType.ZERO_ORACLE,
trusted: false,
},
},
},

GEAR: {
Mainnet: {
Main: {
Expand Down
3 changes: 3 additions & 0 deletions src/tokens/decimals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export const decimals: Record<SupportedToken, number> = {
dcrvUSDV3: 18,
sdcrvUSDV3: 18,

dDOLAV3: 18,
sdDOLAV3: 18,

dUSDC_eV3: 6,
sdUSDC_eV3: 6,

Expand Down
14 changes: 14 additions & 0 deletions src/tokens/gear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type DieselTokenWithStkTypes =
| "dGHOV3"
| "dDAIV3"
| "dcrvUSDV3"
| "dDOLAV3"
| "dUSDC_eV3";

export type DieselTokenTypes = DieselSimpleTokenTypes | DieselTokenWithStkTypes;
Expand All @@ -31,6 +32,7 @@ export type DieselStakedTokenTypes =
| "sdGHOV3"
| "sdDAIV3"
| "sdcrvUSDV3"
| "sdDOLAV3"
| "sdUSDC_eV3";

export type GearboxToken = "GEAR";
Expand Down Expand Up @@ -155,6 +157,12 @@ const dieselWithStkTokens: Record<
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
stakedToken: "sdcrvUSDV3",
},
dDOLAV3: {
name: "dDOLAV3",
symbol: "dDOLAV3",
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
stakedToken: "sdDOLAV3",
},
};

const dieselTokens = { ...dieselSimpleTokens, ...dieselWithStkTokens };
Expand Down Expand Up @@ -218,6 +226,12 @@ const dieselStakedTokens: Record<
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
underlying: "dcrvUSDV3",
},
sdDOLAV3: {
name: "sdDOLAV3",
symbol: "sdDOLAV3",
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
underlying: "dDOLAV3",
},
};

export const gearTokens: Record<
Expand Down
12 changes: 12 additions & 0 deletions src/tokens/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ export const tokenDataByNetwork: Record<
dcrvUSDV3: "0x8EF73f036fEEC873D0B2fd20892215Df5B8Bdd72",
sdcrvUSDV3: "0xfBCA378AeA93EADD6882299A3d74D8641Cc0C4BC",

dDOLAV3: "0x31426271449F60d37Cc5C9AEf7bD12aF3BdC7A94",
sdDOLAV3: "0xb3289a45497027a2Aee88Acc89fB3dcB5C71001D",

dUSDC_eV3: NOT_DEPLOYED,
sdUSDC_eV3: NOT_DEPLOYED,

Expand Down Expand Up @@ -705,6 +708,9 @@ export const tokenDataByNetwork: Record<
dcrvUSDV3: NOT_DEPLOYED,
sdcrvUSDV3: NOT_DEPLOYED,

dDOLAV3: NOT_DEPLOYED,
sdDOLAV3: NOT_DEPLOYED,

dUSDC_eV3: "0xa76c604145D7394DEc36C49Af494C144Ff327861",
sdUSDC_eV3: "0x608F9e2E8933Ce6b39A8CddBc34a1e3E8D21cE75",

Expand Down Expand Up @@ -1000,6 +1006,9 @@ export const tokenDataByNetwork: Record<
dcrvUSDV3: NOT_DEPLOYED,
sdcrvUSDV3: NOT_DEPLOYED,

dDOLAV3: NOT_DEPLOYED,
sdDOLAV3: NOT_DEPLOYED,

dUSDC_eV3: "0x5520dAa93A187f4Ec67344e6D2C4FC9B080B6A35",
sdUSDC_eV3: "0x73302b63Ad4a16C498f26dB89cb27F37a72E4E04",

Expand Down Expand Up @@ -1295,6 +1304,9 @@ export const tokenDataByNetwork: Record<
dcrvUSDV3: NOT_DEPLOYED,
sdcrvUSDV3: NOT_DEPLOYED,

dDOLAV3: NOT_DEPLOYED,
sdDOLAV3: NOT_DEPLOYED,

dUSDC_eV3: NOT_DEPLOYED,
sdUSDC_eV3: NOT_DEPLOYED,

Expand Down

0 comments on commit c789b5f

Please sign in to comment.