Skip to content

Commit

Permalink
feat: deploy wbeth market
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-alpaca committed Sep 25, 2023
1 parent 1b07130 commit a1d6866
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DEPLOYER_PRIVATE_KEY=

DEPLOYMENT_CONFIG_FILENAME=.mainnet.json
TENDERLY_FORK_ID=
LOCAL_RPC_URL=http://localhost:8545
BSC_RPC_URL=https://bsc-dataseed1.defibit.io
Expand Down
2 changes: 1 addition & 1 deletion .mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"doubleSlope2": "0x89c53B34b5E6A1D0b2922941749e9Ee05ce58b42",
"doubleSlope3": "0x4132392C57B9D2DE1BA393A03f23Fcb880Bf8EE1",
"flatSlope1": "0x67e5308813382E4dd06246d3c72035209f6Bae3C",
"flatSlope2": ""
"flatSlope2": "0x434B4fe3562fdcF4687b6c258eEc4e564Bc0A263"
},
"sharedStrategies": {
"pancakeswap": {
Expand Down
2 changes: 2 additions & 0 deletions script/BaseScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ abstract contract BaseScript is Script {
address internal tusd;
address internal usdt;
address internal usdc;
address internal wbeth;
address internal wbnb;
address internal xrp;

Expand Down Expand Up @@ -172,6 +173,7 @@ abstract contract BaseScript is Script {
tusd = abi.decode(configJson.parseRaw(".tokens.tusd"), (address));
usdt = abi.decode(configJson.parseRaw(".tokens.usdt"), (address));
usdc = abi.decode(configJson.parseRaw(".tokens.usdc"), (address));
wbeth = abi.decode(configJson.parseRaw(".tokens.wbeth"), (address));
wbnb = abi.decode(configJson.parseRaw(".tokens.wbnb"), (address));
xrp = abi.decode(configJson.parseRaw(".tokens.xrp"), (address));
}
Expand Down
6 changes: 3 additions & 3 deletions script/deployments/ChainLinkOracle/config/SetPriceFeeds.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ contract SetPriceFeedsScript is BaseScript {
Check all variables below before execute the deployment script
*/

// ADA
// WBETH
addSetPriceFeeds(
SetPriceFeedsInput({
token0: ada,
token0: wbeth,
token1: usdPlaceholder,
source: IAggregatorV3(0xa767f745331D267c7751297D982b050c93985627)
source: IAggregatorV3(0x97398272A927c56735F7bFCE95752540F5e23CCd)
})
);

Expand Down
14 changes: 7 additions & 7 deletions script/deployments/MoneyMarket/config/OpenMarket.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ contract OpenMarketScript is BaseScript {
*/
_startDeployerBroadcast();

// ADA
// WBETH
executeOpenMarket(
OpenMarketInput({
token: ada,
interestModel: doubleSlope1,
token: wbeth,
interestModel: doubleSlope2,
tier: LibConstant.AssetTier.COLLATERAL,
collateralFactor: 5000,
borrowingFactor: 7500,
maxCollateral: formatAmount(ada, 7_500_000),
maxBorrow: formatAmount(ada, 5_000_000)
collateralFactor: 8500,
borrowingFactor: 9000,
maxCollateral: formatAmount(wbeth, 50_000),
maxBorrow: formatAmount(wbeth, 45_000)
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ contract SetMultiPrimarySourcesScript is BaseScript {
Check all variables below before execute the deployment script
*/

// ADA
// WBETH
addSetMultiPrimarySources(
SetMultiPrimarySourcesInput({
token0: ada,
token0: wbeth,
token1: usdPlaceholder,
maxPriceDeviation: 1e18,
maxPriceStale: 1 days,
Expand Down

0 comments on commit a1d6866

Please sign in to comment.