Skip to content

Commit

Permalink
chore: update ghost config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujia6139 committed Nov 18, 2023
1 parent 019e9a5 commit 862c83b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
1 change: 1 addition & 0 deletions helpers/hardhat-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ export const eContractidToContractName = {
EXRP: "MintableERC721",
WGLMR: "MintableERC721",
MockBendDaoLendPool: "MockLendPool",
AggregatorGHOST:"ERC721OracleWrapper",
PositionMoverLogic: "PositionMoverLogic",
PoolPositionMoverImpl: "PoolPositionMover",
GHOST: "MintableERC721",
Expand Down
6 changes: 3 additions & 3 deletions market-config/reservesConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,11 +1116,11 @@ export const strategyuPPG: IReserveParams = {

export const strategyGHOST: IReserveParams = {
strategy: rateStrategyNFT,
auctionStrategy: auctionStrategyGHOST,
auctionStrategy: auctionStrategyBEANZ,
timeLockStrategy: timeLockStrategyGHOST,
baseLTVAsCollateral: "2000",
baseLTVAsCollateral: "3000",
liquidationProtocolFeePercentage: "0",
liquidationThreshold: "3500",
liquidationThreshold: "6500",
liquidationBonus: "10500",
borrowingEnabled: false,
reserveDecimals: "0",
Expand Down
24 changes: 12 additions & 12 deletions market-config/timeLockStrategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,18 @@ export const timeLockStrategyBEANZ: ITimeLockStrategyParams = {
period: "86400",
};

export const timeLockStrategyGHOST: ITimeLockStrategyParams = {
name: "timeLockStrategyGHOST",
minThreshold: "5",
midThreshold: "20",
minWaitTime: "12",
midWaitTime: "7200",
maxWaitTime: "21600",
poolPeriodWaitTime: "600",
poolPeriodLimit: "40",
period: "86400",
};

export const timeLockStrategyDEGODS: ITimeLockStrategyParams = {
name: "timeLockStrategyDEGODS",
minThreshold: "4",
Expand Down Expand Up @@ -760,15 +772,3 @@ export const timeLockStrategyEXRP: ITimeLockStrategyParams = {
poolPeriodLimit: "100",
period: "86400",
};

export const timeLockStrategyGHOST: ITimeLockStrategyParams = {
name: "timeLockStrategyGHOST",
minThreshold: "20",
midThreshold: "50",
minWaitTime: "12",
midWaitTime: "7200",
maxWaitTime: "21600",
poolPeriodWaitTime: "600",
poolPeriodLimit: "100",
period: "86400",
};
6 changes: 4 additions & 2 deletions scripts/upgrade/ntoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export const upgradeNToken = async (verify = false) => {
continue;
}

if (XTOKEN_SYMBOL_UPGRADE_WHITELIST && !XTOKEN_SYMBOL_UPGRADE_WHITELIST.includes(symbol)) {
if (
XTOKEN_SYMBOL_UPGRADE_WHITELIST &&
!XTOKEN_SYMBOL_UPGRADE_WHITELIST.includes(symbol)
) {
console.log(symbol + "not in XTOKEN_SYMBOL_UPGRADE_WHITELIST, skip...");
continue;
}


if (xTokenType == XTokenType.NTokenBAYC) {
if (!nTokenBAYCImplementationAddress) {
console.log("deploy NTokenBAYC implementation");
Expand Down

0 comments on commit 862c83b

Please sign in to comment.