-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from stabilitydao/erc4626strategy
24.05.0-alpha; ERC4626StrategyBase, YearnStrategy, StrategyBase 1.1.0
- Loading branch information
Showing
27 changed files
with
835 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
import "forge-std/Script.sol"; | ||
import "../src/core/Factory.sol"; | ||
import "../src/core/vaults/CVault.sol"; | ||
import "../src/core/vaults/RVault.sol"; | ||
import "../src/core/vaults/RMVault.sol"; | ||
import "../src/strategies/YearnStrategy.sol"; | ||
|
||
contract PrepareUpgrade5Polygon is Script { | ||
function run() external { | ||
uint deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
// Factory 1.1.0: getDeploymentKey fix for not farming strategies, strategyAvailableInitParams | ||
new Factory(); | ||
|
||
// CVault 1.3.0: VaultBase 1.3.0 | ||
new CVault(); | ||
|
||
// RVault 1.3.0: VaultBase 1.3.0 | ||
new RVault(); | ||
|
||
// RMVault 1.3.0: VaultBase 1.3.0 | ||
new RMVault(); | ||
|
||
// new strategy implementation | ||
new YearnStrategy(); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
function testDeployPolygon() external {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.