1
0

Compensate staking due to imbalances

Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
AlienTornadosaurusHex 2023-05-27 13:14:05 +00:00
parent d23fa9dd08
commit d8eee5b2b0
2 changed files with 5 additions and 0 deletions

@ -72,5 +72,8 @@ contract PatchProposal {
LoopbackProxy(governanceProxyAddress).upgradeTo(
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)
expect(await torn.balanceOf(await governance.Staking())).to.equal(pE('94092'))
const newVaultAddr = await governance.userVault()
const newGasCompAddr = await governance.gasCompensationVault()
const newStaking = await governance.Staking()