Skip to content

Commit

Permalink
chore: update DataProvider (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmer1in authored Aug 29, 2024
1 parent da6cf56 commit 7335d6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/earn/DataProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
13 changes: 13 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: [
{
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 7335d6e

Please sign in to comment.