Skip to content

Commit

Permalink
Merge branch 'master' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
MirthFutures committed Jul 27, 2023
2 parents 9577224 + eba5be5 commit ca338ff
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
28 changes: 28 additions & 0 deletions data/chains.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const {
kava,
canto,
zksync,
zkevm,
} = addressBook;

const chains = {
Expand Down Expand Up @@ -482,6 +483,33 @@ const chains = {
priceCap: Number(process.env.ZKSYNC_GAS_PRICE_CAP),
},
},
1101: {
id: 'zkevm',
chainId: 1101,
wnative: zkevm.tokens.WNATIVE.address,
rewardPool: zkevm.platforms.beefyfinance.rewardPool,
treasury: zkevm.platforms.beefyfinance.treasury,
beefyFeeBatcher: zkevm.platforms.beefyfinance.beefyFeeRecipient,
beefyFeeHarvestInterval: 12,
hasOnChainHarvesting: false,
harvestHourInterval: process.env.ZKEVM_HARVEST_HOUR_INTERVAL
? parseInt(process.env.ZKEVM_HARVEST_HOUR_INTERVAL)
: 4,
wnativeUnwrapInterval: 4,
wnativeMinToUnwrap: process.env.ZKEVM_WNATIVE_MIN_TO_UNWRAP || '0.005',
rpc: process.env.ZKEVM_RPC || 'https://zkevm-rpc.com',
multicall: zkevm.platforms.beefyfinance.multicall,
queryLimit: 1000,
queryInterval: 100,
blockTime: 2, //observed
blockExplorer: 'https://zkevm.polygonscan.com/',
gas: {
limit: Number(process.env.ZKEVM_GAS_LIMIT) || 20e6, //observed good level
price: Number(process.env.ZKEVM_GAS_PRICE) || 17e8, //observed minimum
priceOverride: Number(process.env.ZKEVM_GAS_PRICE_OVERRIDE),
priceCap: Number(process.env.ZKEVM_GAS_PRICE_CAP),
},
},
};

module.exports = chains;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/node-fetch": "^2.6.2",
"axios": "^0.25.0",
"bignumber.js": "^9.1.0",
"blockchain-addressbook": "^0.41.66",
"blockchain-addressbook": "^0.43.41",
"dotenv": "^16.0.1",
"eth-multicall": "^1.4.0",
"ethers": "^5.7.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1326,10 +1326,10 @@ blakejs@^1.1.0:
resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814"
integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==

blockchain-addressbook@^0.41.66:
version "0.41.66"
resolved "https://registry.yarnpkg.com/blockchain-addressbook/-/blockchain-addressbook-0.41.66.tgz#d249ba543753d430a06b5007f53023a8020203ce"
integrity sha512-9xKymbSWtIWFVt/yzOESD2o8ShFZe6ofveKoCA/6/1e1h4Agb9huPUnDCyLzsRKSG6rnsWLlXtdqsPRsRFg3gA==
blockchain-addressbook@^0.43.41:
version "0.43.41"
resolved "https://registry.yarnpkg.com/blockchain-addressbook/-/blockchain-addressbook-0.43.41.tgz#3b0f5310a9b86dfae978229ced752c08d8336ccb"
integrity sha512-yaMIHUNtSaEAHyB7UTbusGbPzdFnM0xTP3fAiC04NW/gDuaRcW/QlobsXjCfP7RrdAU594I137nO1QDEosbMUg==

bluebird@^3.5.0:
version "3.7.2"
Expand Down

0 comments on commit ca338ff

Please sign in to comment.