Skip to content

Commit

Permalink
chore: replace illegal char
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujia6139 committed Nov 9, 2023
1 parent 428c3c6 commit a8ca9a4
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 21 deletions.
9 changes: 6 additions & 3 deletions helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ export interface iAssetBase<T> {
KODA: T;
BLOCKS: T;
EXRP: T;
uBAYC: T;
uPPG: T;
}

export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, "ETH">;
Expand Down Expand Up @@ -574,6 +576,8 @@ export type iParaSpacePoolAssets<T> = Pick<
| "KODA"
| "BLOCKS"
| "EXRP"
| "uBAYC"
| "uPPG"
>;

export type iMultiPoolsAssets<T> = iAssetCommon<T> | iParaSpacePoolAssets<T>;
Expand Down Expand Up @@ -620,9 +624,8 @@ export enum ERC20TokenContractId {
stMATIC = "stMATIC",
CRV = "CRV",
WMATIC = "WMATIC",

µBAYC = "µBAYC",
µPPG = "µPPG"
uBAYC = "uBAYC",
uPPG = "uPPG",
}

export enum ERC721TokenContractId {
Expand Down
12 changes: 8 additions & 4 deletions market-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ import {
strategyWBTCWH,
strategySTDOT,
strategyEXRP,
strategyµBAYC,
strategyµPPG,
strategyuBAYC,
strategyuPPG,
} from "./reservesConfigs";

export const CommonConfig: Pick<
Expand Down Expand Up @@ -383,8 +383,8 @@ export const GoerliConfig: IParaSpaceConfiguration = {
VSL: strategyVSL,
KODA: strategyKODA,
BLOCKS: strategyBLOCKS,
µBAYC: strategyµBAYC,
µPPG: strategyµPPG
uBAYC: strategyuBAYC,
uPPG: strategyuPPG,
},
DelegationRegistry: "0x00000000000076A84feF008CDAbe6409d2FE638B",
};
Expand Down Expand Up @@ -896,6 +896,8 @@ export const MainnetConfig: IParaSpaceConfiguration = {
VSL: "0x5b1085136a811e55b2bb2ca1ea456ba82126a376",
KODA: "0xe012baf811cf9c05c408e879c399960d1f305903",
BLOCKS: "0x059EDD72Cd353dF5106D2B9cC5ab83a52287aC3a",
uBAYC: "0x1e610de0d7acfa1d820024948a91d96c5c9ce6b9",
uPPG: "0x30F7c830e0C2f4bEC871DF809D73E27eF19EB151",
},
YogaLabs: {
ApeCoinStaking: "0x5954aB967Bc958940b7EB73ee84797Dc8a2AFbb9",
Expand Down Expand Up @@ -989,6 +991,8 @@ export const MainnetConfig: IParaSpaceConfiguration = {
VSL: strategyVSL,
KODA: strategyKODA,
BLOCKS: strategyBLOCKS,
uBAYC: strategyuBAYC,
uPPG: strategyuPPG,
},
Mocks: undefined,
Oracle: MainnetOracleConfig,
Expand Down
4 changes: 2 additions & 2 deletions market-config/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
KODA: parseEther("9.5").toString(),
BLOCKS: parseEther("9.54").toString(),
EXRP: parseEther("0.2").toString(),
µBAYC: parseEther("0.000002768").toString(),
µPPG: parseEther("0.000000477").toString(),
uBAYC: parseEther("0.000002768").toString(),
uPPG: parseEther("0.000000477").toString(),
};

export const MOCK_CHAINLINK_AGGREGATORS_USD_PRICES = {
Expand Down
25 changes: 13 additions & 12 deletions market-config/reservesConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ import {
timeLockStrategyWBTCWH,
timeLockStrategySTDOT,
timeLockStrategyEXRP,
timeLockStrategyuPPG,
timeLockStrategyuBAYC,
} from "./timeLockStrategies";

export const strategyDAI: IReserveParams = {
Expand Down Expand Up @@ -1078,14 +1080,13 @@ export const strategyEXRP: IReserveParams = {
supplyCap: "1000",
};

// TODO need update
export const strategyµBAYC: IReserveParams = {
strategy: rateStrategyWETH,
export const strategyuBAYC: IReserveParams = {
strategy: rateStrategyBLUR,
auctionStrategy: auctionStrategyZero,
timeLockStrategy: timeLockStrategyWETH,
baseLTVAsCollateral: "7920",
timeLockStrategy: timeLockStrategyuBAYC,
baseLTVAsCollateral: "4000",
liquidationThreshold: "8000",
liquidationProtocolFeePercentage: "50",
liquidationProtocolFeePercentage: "0",
liquidationBonus: "10500",
borrowingEnabled: true,
reserveDecimals: "18",
Expand All @@ -1095,18 +1096,18 @@ export const strategyµBAYC: IReserveParams = {
supplyCap: "0",
};

export const strategyµPPG: IReserveParams = {
strategy: rateStrategyWETH,
export const strategyuPPG: IReserveParams = {
strategy: rateStrategyBLUR,
auctionStrategy: auctionStrategyZero,
timeLockStrategy: timeLockStrategyWETH,
baseLTVAsCollateral: "6435",
timeLockStrategy: timeLockStrategyuPPG,
baseLTVAsCollateral: "3000",
liquidationThreshold: "6500",
liquidationProtocolFeePercentage: "50",
liquidationProtocolFeePercentage: "0",
liquidationBonus: "10500",
borrowingEnabled: true,
reserveDecimals: "18",
xTokenImpl: eContractid.PTokenImpl,
reserveFactor: "1000",
borrowCap: "0",
supplyCap: "0",
};
};
24 changes: 24 additions & 0 deletions market-config/timeLockStrategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,30 @@ export const timeLockStrategyWETH: ITimeLockStrategyParams = {
period: "86400",
};

export const timeLockStrategyuBAYC: ITimeLockStrategyParams = {
name: "timeLockStrategyuBAYC",
minThreshold: parseUnits("1800000", 18).toString(),
midThreshold: parseUnits("5400000", 18).toString(),
minWaitTime: "12",
midWaitTime: "7200",
maxWaitTime: "21600",
poolPeriodWaitTime: "600",
poolPeriodLimit: parseUnits("64800000", 18).toString(),
period: "86400",
};

export const timeLockStrategyuPPG: ITimeLockStrategyParams = {
name: "timeLockStrategyuPPG",
minThreshold: parseUnits("10000000", 18).toString(),
midThreshold: parseUnits("30000000", 18).toString(),
minWaitTime: "12",
midWaitTime: "7200",
maxWaitTime: "21600",
poolPeriodWaitTime: "600",
poolPeriodLimit: parseUnits("360000000", 18).toString(),
period: "86400",
};

export const timeLockStrategyCBETH: ITimeLockStrategyParams = {
name: "timeLockStrategyCBETH",
minThreshold: parseUnits("51.5", 18).toString(),
Expand Down

0 comments on commit a8ca9a4

Please sign in to comment.