Compensate staking due to imbalances
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
d23fa9dd08
commit
d8eee5b2b0
@ -72,5 +72,8 @@ contract PatchProposal {
|
|||||||
LoopbackProxy(governanceProxyAddress).upgradeTo(
|
LoopbackProxy(governanceProxyAddress).upgradeTo(
|
||||||
address(new GovernancePatchUpgrade(address(newStaking), gasCompensationVaultAddress, userVaultAddress))
|
address(new GovernancePatchUpgrade(address(newStaking), gasCompensationVaultAddress, userVaultAddress))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Transfer TORN in compensation to the staking proxy
|
||||||
|
TORN.transfer(address(newStaking), 94_092 ether);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,6 +214,8 @@ describe('Gov Exploit Patch Upgrade Tests', () => {
|
|||||||
|
|
||||||
await governance.execute(proposalId)
|
await governance.execute(proposalId)
|
||||||
|
|
||||||
|
expect(await torn.balanceOf(await governance.Staking())).to.equal(pE('94092'))
|
||||||
|
|
||||||
const newVaultAddr = await governance.userVault()
|
const newVaultAddr = await governance.userVault()
|
||||||
const newGasCompAddr = await governance.gasCompensationVault()
|
const newGasCompAddr = await governance.gasCompensationVault()
|
||||||
const newStaking = await governance.Staking()
|
const newStaking = await governance.Staking()
|
||||||
|
Loading…
Reference in New Issue
Block a user