-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment script to update cross price (#62)
* Add deployment script to update cross price * Fix tests * Fix tests after cross price was changed --------- Co-authored-by: Nicholas Addison <[email protected]>
- Loading branch information
1 parent
fdd0c7a
commit fbcc5e3
Showing
7 changed files
with
64 additions
and
23 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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"executions": { | ||
"001_CoreMainnet": 1723685111, | ||
"002_UpgradeMainnet": 1726812322, | ||
"003_UpgradeLidoARMScript": 1729073099 | ||
}, | ||
"contracts": { | ||
"LIDO_ARM": "0x85B78AcA6Deae198fBF201c82DAF6Ca21942acc6", | ||
"LIDO_ARM_CAP_IMPL": "0x8506486813d025C5935dF481E450e27D2e483dc9", | ||
"LIDO_ARM_CAP_MAN": "0xf54ebff575f699d281645c6F14Fe427dFFE629CF", | ||
"LIDO_ARM_IMPL": "0x3d724176c8f1F965eF4020CB5DA5ad1a891BEEf1", | ||
"LIDO_ARM_ZAPPER": "0x01F30B7358Ba51f637d1aa05D9b4A60f76DAD680", | ||
"OETH_ARM": "0x6bac785889A4127dB0e0CeFEE88E0a9F1Aaf3cC7", | ||
"OETH_ARM_IMPL": "0x187FfF686a5f42ACaaF56469FcCF8e6Feca18248" | ||
} | ||
} | ||
"executions": { | ||
"001_CoreMainnet": 1723685111, | ||
"002_UpgradeMainnet": 1726812322, | ||
"003_UpgradeLidoARMScript": 1729073099, | ||
"004_UpdateCrossPriceScript": 1739872139 | ||
}, | ||
"contracts": { | ||
"LIDO_ARM": "0x85B78AcA6Deae198fBF201c82DAF6Ca21942acc6", | ||
"LIDO_ARM_CAP_IMPL": "0x8506486813d025C5935dF481E450e27D2e483dc9", | ||
"LIDO_ARM_CAP_MAN": "0xf54ebff575f699d281645c6F14Fe427dFFE629CF", | ||
"LIDO_ARM_IMPL": "0x3d724176c8f1F965eF4020CB5DA5ad1a891BEEf1", | ||
"LIDO_ARM_ZAPPER": "0x01F30B7358Ba51f637d1aa05D9b4A60f76DAD680", | ||
"OETH_ARM": "0x6bac785889A4127dB0e0CeFEE88E0a9F1Aaf3cC7", | ||
"OETH_ARM_IMPL": "0x187FfF686a5f42ACaaF56469FcCF8e6Feca18248" | ||
} | ||
} |
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
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/console.sol"; | ||
|
||
import {GovProposal, GovSixHelper} from "contracts/utils/GovSixHelper.sol"; | ||
import {AbstractDeployScript} from "../AbstractDeployScript.sol"; | ||
|
||
contract UpdateCrossPriceMainnetScript is AbstractDeployScript { | ||
using GovSixHelper for GovProposal; | ||
|
||
GovProposal public govProposal; | ||
|
||
string public constant override DEPLOY_NAME = "004_UpdateCrossPriceScript"; | ||
bool public constant override proposalExecuted = false; | ||
|
||
function _execute() internal override {} | ||
|
||
function _buildGovernanceProposal() internal override { | ||
govProposal.setDescription("Update Cross Price for Lido ARM"); | ||
|
||
uint256 newCrossPrice = 0.9999 * 1e36; | ||
|
||
govProposal.action(deployedContracts["LIDO_ARM"], "setCrossPrice(uint256)", abi.encode(newCrossPrice)); | ||
|
||
_fork(); | ||
} | ||
|
||
function _fork() internal override { | ||
if (this.isForked()) { | ||
govProposal.simulate(); | ||
} | ||
} | ||
} |
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