Skip to content

Commit

Permalink
fix deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Oct 17, 2023
1 parent e3f3e21 commit 39ab0bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/deployment/phase2-assets/2_deploy_collateral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function main() {
let collateral: ICollateral

/******** Deploy Fiat Collateral - DAI **************************/
const daiOracleTimeout = baseL2Chains.includes(hre.network.name) ? 86400 : 3600 // 24 hr (Base) or 1 hour
const daiOracleTimeout = baseL2Chains.includes(hre.network.name) ? '86400' : '3600' // 24 hr (Base) or 1 hour
const daiOracleError = baseL2Chains.includes(hre.network.name) ? fp('0.003') : fp('0.0025') // 0.3% (Base) or 0.25%

if (networkConfig[chainId].tokens.DAI && networkConfig[chainId].chainlinkFeeds.DAI) {
Expand All @@ -69,7 +69,7 @@ async function main() {
fs.writeFileSync(assetCollDeploymentFilename, JSON.stringify(assetCollDeployments, null, 2))
}

const usdcOracleTimeout = 86400 // 24 hr
const usdcOracleTimeout = '86400' // 24 hr
const usdcOracleError = baseL2Chains.includes(hre.network.name) ? fp('0.003') : fp('0.0025') // 0.3% (Base) or 0.25%

/******** Deploy Fiat Collateral - USDC **************************/
Expand Down Expand Up @@ -97,7 +97,7 @@ async function main() {
}

/******** Deploy Fiat Collateral - USDT **************************/
const usdtOracleTimeout = 86400 // 24 hr
const usdtOracleTimeout = '86400' // 24 hr
const usdtOracleError = baseL2Chains.includes(hre.network.name) ? fp('0.003') : fp('0.0025') // 0.3% (Base) or 0.25%

if (networkConfig[chainId].tokens.USDT && networkConfig[chainId].chainlinkFeeds.USDT) {
Expand Down Expand Up @@ -713,7 +713,7 @@ async function main() {
/******** Deploy Self Referential Collateral - wETH **************************/

if (networkConfig[chainId].tokens.WETH && networkConfig[chainId].chainlinkFeeds.ETH) {
const ethOracleTimeout = baseL2Chains.includes(hre.network.name) ? 1200 : 3600 // 20 min (Base) or 1 hr
const ethOracleTimeout = baseL2Chains.includes(hre.network.name) ? '1200' : '3600' // 20 min (Base) or 1 hr
const ethOracleError = baseL2Chains.includes(hre.network.name) ? fp('0.0015') : fp('0.005') // 0.15% (Base) or 0.5%

const { collateral: wETHCollateral } = await hre.run('deploy-selfreferential-collateral', {
Expand Down

0 comments on commit 39ab0bc

Please sign in to comment.