Proposal to restore old rewards value (as before hack) after redeploying Staking contract
Go to file
2023-06-15 14:30:30 -07:00
abi Create TS scripts to obtain rewards data of all stakers before hack (proposal 20 exectuion) 2023-06-03 10:53:36 -07:00
data 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
lib Add hardhat deployment by T-Hax 2023-06-13 11:33: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 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
utils 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
.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 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
README.md Add README 2023-06-15 14:30:30 -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