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(
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user