Proposal to restore old rewards value (as before hack) after redeploying Staking contract
Go to file
2023-06-19 09:05:39 -07:00
abi Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times 2023-06-19 09:05:39 -07:00
data Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times 2023-06-19 09:05:39 -07:00
lib Update forge 2023-06-15 20:38:37 -07:00
script Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
scripts Fix restore calculation: we should not restore rewards to those who managed to withdraw from the old Staking contract 2023-06-14 07:27:09 -07:00
src Fix restore calculation: we should not restore rewards to those who managed to withdraw from the old Staking contract 2023-06-14 07:27:09 -07:00
test Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times 2023-06-19 09:05:39 -07:00
utils Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times 2023-06-19 09:05:39 -07:00
.env.example add hardhat deploy logic 2023-06-12 19:39:42 +00:00
.gitignore Add hardhat deployment by T-Hax 2023-06-13 11:33:37 -07:00
.gitmodules Init forge 2023-06-03 03:05:18 -07:00
config.js add hardhat deploy logic 2023-06-12 19:39:42 +00:00
foundry.toml Add hardhat deployment by T-Hax 2023-06-13 11:33:37 -07:00
hardhat.config.js add hardhat deploy logic 2023-06-12 19:39:42 +00:00
LICENSE Initial commit 2023-06-03 11:54:45 +02:00
package.json Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times 2023-06-19 09:05:39 -07:00
README.md Add deployed contracts addresses to README 2023-06-15 20:38:55 -07:00
remappings.txt Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
tsconfig.json Create TS scripts to obtain rewards data of all stakers before hack (proposal 20 exectuion) 2023-06-03 10:53:36 -07:00

Proposal 25: restore old rewards

Proposal to restore old rewards value (as before hack) after redeploying Staking contract to stakers, who did not have time to withdraw their rewards due to a bug

Changes:

  • Redeploying staking implementation contract to add new function setReward
  • Restore rewards to 357 stakers (all stakers, who had more than 1 TORN in rewards at the time of the hack and didn't have time to withdraw them)
  • Transfer 42 754 TORN from Governance to new Staking contract (so that stakers can withdraw their restored rewards)

Requirements

Installation

git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-25-restore-rewards
cd proposal-25-restore-rewards
npm install

Testing

npm run test

Contracts

  1. New staking implementation contract: etherscan link
  2. Proposal contract: etherscan link