-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy new implementationtion genericEulerStaker (#66)
- Loading branch information
1 parent
adcd1f3
commit d838502
Showing
7 changed files
with
249 additions
and
1 deletion.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
broadcast/UpgradeGenericEulerStakerLender.sol/1/run-1678095830.json
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
broadcast/UpgradeGenericEulerStakerLender.sol/1/run-1678096036.json
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
broadcast/UpgradeGenericEulerStakerLender.sol/1/run-1678096050.json
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
broadcast/UpgradeGenericEulerStakerLender.sol/1/run-1678096078.json
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
broadcast/UpgradeGenericEulerStakerLender.sol/1/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
scripts/foundry/genericLender/euler/UpgradeGenericEulerStakerLender.sol
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,30 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.17; | ||
|
||
import "forge-std/Script.sol"; | ||
import "../../MainnetConstants.s.sol"; | ||
import { GenericEulerStaker } from "../../../../contracts/strategies/OptimizerAPR/genericLender/euler/GenericEulerStaker.sol"; | ||
|
||
contract DeployGenericEulerStakerImplementation is Script, MainnetConstants { | ||
uint256 internal constant _BASE_TOKEN = 10**18; | ||
uint256 internal constant _BASE_APR = 10**18; | ||
uint64 internal constant _BPS = 10**4; | ||
|
||
GenericEulerStaker public lenderEulerImplementation; | ||
|
||
error ZeroAdress(); | ||
|
||
function run() external { | ||
// vm.createSelectFork("mainnet"); | ||
uint256 deployerPrivateKey = vm.deriveKey(vm.envString("MNEMONIC_MAINNET"), 0); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
lenderEulerImplementation = new GenericEulerStaker(); | ||
console.log( | ||
"Successfully deployed Euler implementation strategy at the address: ", | ||
address(lenderEulerImplementation) | ||
); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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