naming
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
2b49a83883
commit
e0f2d0f444
@ -17,7 +17,7 @@ import { RelayerRegistry } from "./RelayerRegistry.sol";
|
|||||||
*/
|
*/
|
||||||
contract PatchProposal {
|
contract PatchProposal {
|
||||||
// Address of the staking proxy
|
// Address of the staking proxy
|
||||||
address public constant stakingProxyAddress = 0x2FC93484614a34f26F7970CBB94615bA109BB4bf;
|
address public constant oldStakingProxyAddress = 0x2FC93484614a34f26F7970CBB94615bA109BB4bf;
|
||||||
|
|
||||||
// Address of the registry proxy
|
// Address of the registry proxy
|
||||||
address public constant registryProxyAddress = 0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2;
|
address public constant registryProxyAddress = 0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2;
|
||||||
@ -49,7 +49,7 @@ contract PatchProposal {
|
|||||||
/// @notice Function to execute the proposal.
|
/// @notice Function to execute the proposal.
|
||||||
function executeProposal() external {
|
function executeProposal() external {
|
||||||
// Get the old staking contract
|
// Get the old staking contract
|
||||||
TornadoStakingRewards oldStaking = TornadoStakingRewards(stakingProxyAddress);
|
TornadoStakingRewards oldStaking = TornadoStakingRewards(oldStakingProxyAddress);
|
||||||
|
|
||||||
// Get the small amount of TORN left
|
// Get the small amount of TORN left
|
||||||
oldStaking.withdrawTorn(TORN.balanceOf(address(oldStaking)));
|
oldStaking.withdrawTorn(TORN.balanceOf(address(oldStaking)));
|
||||||
@ -59,7 +59,7 @@ contract PatchProposal {
|
|||||||
deployedRelayerRegistryImplementationAddress
|
deployedRelayerRegistryImplementationAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
// Now upgrade the governance to the latest stuff
|
// Now upgrade the governance implementation to the vulnerability resistant one
|
||||||
LoopbackProxy(governanceProxyAddress).upgradeTo(
|
LoopbackProxy(governanceProxyAddress).upgradeTo(
|
||||||
address(
|
address(
|
||||||
new GovernancePatchUpgrade(
|
new GovernancePatchUpgrade(
|
||||||
|
Loading…
Reference in New Issue
Block a user