diff --git a/contracts/earn/DataProvider.sol b/contracts/earn/DataProvider.sol index 07ec56c..1f942b8 100644 --- a/contracts/earn/DataProvider.sol +++ b/contracts/earn/DataProvider.sol @@ -95,7 +95,7 @@ contract DataProvider is IDataProvider { assembly { chainId := chainid() } - if (chainId == 10) { + if (chainId == 10 || chainId == 5000) { for (uint256 i = 0; i < length; i++) { (pendingWooAmounts[i], ) = IMasterChefWooInfo(masterChefWoo).pendingReward(pids[i], user); pendingXWooAmounts[i] = pendingWooAmounts[i]; diff --git a/hardhat.config.ts b/hardhat.config.ts index 55b7134..729139a 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -120,6 +120,10 @@ const config: HardhatUserConfig = { url: "https://goerli.base.org", accounts: accounts, }, + mantle: { + url: "https://rpc.ankr.com/mantle", + accounts: accounts, + }, }, etherscan: { apiKey: { @@ -148,6 +152,7 @@ const config: HardhatUserConfig = { base: process.env.BASESCAN_KEY !== undefined ? process.env.BASESCAN_KEY : "", baseGoerli: process.env.BASESCAN_KEY !== undefined ? process.env.BASESCAN_KEY : "", goerli: process.env.ETHERSCAN_KEY !== undefined ? process.env.ETHERSCAN_KEY : "", + mantle: process.env.MANTLESCAN_KEY !== undefined ? process.env.MANTLESCAN_KEY : "", }, customChains: [ { @@ -198,6 +203,14 @@ const config: HardhatUserConfig = { browserURL: "https://goerli.basescan.org", }, }, + { + network: "mantle", + chainId: 5000, + urls: { + apiURL: "https://api.mantlescan.xyz/api", + browserURL: "https://mantlescan.xyz", + }, + }, ] }, solidity: {