Skip to content

Commit 3bfa387

Browse files
committed
Add megaeth, robinhood config
1 parent bffcd00 commit 3bfa387

8 files changed

Lines changed: 27 additions & 8 deletions

File tree

forge/test/strategy/CommonBaseTest.t.sol

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ contract CommonBaseTest is BaseAllToNativeFactoryTest {
3030
}
3131

3232
function beforeHarvest() internal virtual override {
33-
// deal(BaseAllToNativeFactoryStrat(payable(strategy)).rewards(0), address(strategy), 1000e18);
33+
uint amount = vm.envOr("DEAL_REWARD", uint(0));
34+
if (amount > 0) {
35+
deal(BaseAllToNativeFactoryStrat(payable(strategy)).rewards(0), address(strategy), amount);
36+
}
37+
amount = vm.envOr("DEAL_NATIVE", uint(0));
38+
if (amount > 0) {
39+
deal(BaseAllToNativeFactoryStrat(payable(strategy)).native(), address(strategy), amount);
40+
}
3441
}
3542

3643
function cacheOraclePrices() internal {

forge/test/strategy/StrategyPendle.t.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ contract StrategyPendleTest is BaseAllToNativeFactoryTest {
1818

1919
function beforeHarvest() internal override {
2020
vm.roll(block.number + 1); // pass lastRewardBlock check in PendleMarket
21-
strategy.claim();
2221
}
2322

2423
// custom test as balanceOfPool is always 0 as strat simply holds want

forge/test/vault/util/AddressBook.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ contract AddressBook is CommonBase {
1818
address keeper;
1919
address strategyOwner;
2020
address vaultOwner;
21+
address beefySwapper;
2122
}
2223

2324
mapping(string => BeefyPlatform) _beefyPlatformDataCache;

foundry.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ plasma = "${PLASMA_RPC}"
6060
monad = "${MONAD_RPC}"
6161
hyperevm = "${HYPER_RPC}"
6262
megaeth = "${MEGAETH_RPC}"
63-
linea = "${LINEA_RPC}"
63+
linea = "${LINEA_RPC}"
64+
robinhood = "${ROBINHOOD_RPC}"

hardhat.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,16 @@ const config: HardhatUserConfig = {
231231
chainId: 143,
232232
accounts,
233233
},
234+
megaeth: {
235+
url: process.env.MEGAETH_RPC || "https://mainnet.megaeth.com/rpc",
236+
chainId: 4326,
237+
accounts,
238+
},
239+
robinhood: {
240+
url: process.env.ROBINHOOD_RPC || "https://rpc.mainnet.chain.robinhood.com",
241+
chainId: 4663,
242+
accounts,
243+
},
234244
},
235245
etherscan: {
236246
// Your API key for Etherscan

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"verify": "hardhat verify"
3636
},
3737
"devDependencies": {
38-
"@beefyfinance/blockchain-addressbook": "^0.54.192",
38+
"@beefyfinance/blockchain-addressbook": "^0.56.5",
3939
"@nomicfoundation/hardhat-verify": "^2.0.0",
4040
"@nomiclabs/hardhat-ethers": "^2.2.1",
4141
"@openzeppelin-4/contracts": "npm:@openzeppelin/contracts@4.7.2",

tasks/test-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ task("test-data:addressbook:beefy", "Fetch beefy addressbook to inject platform
3737
keeper: beefyfinance.keeper,
3838
strategyOwner: beefyfinance.strategyOwner,
3939
vaultOwner: beefyfinance.vaultOwner,
40+
beefySwapper: beefyfinance.beefySwapper,
4041
};
4142
console.log(JSON.stringify(data, null, 2));
4243
});

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
dependencies:
4141
tslib "^2.3.1"
4242

43-
"@beefyfinance/blockchain-addressbook@^0.54.192":
44-
version "0.54.192"
45-
resolved "https://registry.yarnpkg.com/@beefyfinance/blockchain-addressbook/-/blockchain-addressbook-0.54.192.tgz#a52aedee716f0103d2786cebe31e47f2ea9e8625"
46-
integrity sha512-e8qqf+NAHW3DdrWiI4D1gs2ildi/Y4eFxBtUU3F3y3QhxcGmc3FIOqzTTGsZ99QkCkYPp/vQcwqH9ivfwHx3DA==
43+
"@beefyfinance/blockchain-addressbook@^0.56.5":
44+
version "0.56.5"
45+
resolved "https://registry.yarnpkg.com/@beefyfinance/blockchain-addressbook/-/blockchain-addressbook-0.56.5.tgz#4492e6af1328c0a78f6f90a624f230d1a340be3c"
46+
integrity sha512-yeQQLOx9f09oiy9eK33zJl7Ep6u2OQV2SLTQW2uyyEexmDrnziR+I8VQd1olJCkTa5OlcAkT+FnTX5TshXcRog==
4747

4848
"@bytecodealliance/preview2-shim@0.17.0":
4949
version "0.17.0"

0 commit comments

Comments
 (0)