Proposal to restore old rewards value (as before hack) after redeploying Staking contract
Go to file
2023-06-14 06:51:42 -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 Correct padding in generated Solidity proposal code 2023-06-12 15:18:32 -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 Add waiting for contracts deployment before verification 2023-06-13 12:32:09 -07:00
src Fix rewards accrual bug mentioned by T-Hax: in 'accrueOldRewards' function we added rewards that staker hasn't earned, because 'checkReward' function in Staking contract returns updated (actual) reward amount, but not update it in storage. Replace 'checkReward' function with getter 'accumulatedRewards', which returns actual accumulated reward amount (not updated) 2023-06-12 16:45:32 -07:00
test Add tests to check correctness of staking contract functionality after proposal execution 2023-06-14 06:51:42 -07:00
utils Create solidity source and tests for proposal 2023-06-12 06:22:32 -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 merge conflicts 2023-06-13 11:37:43 -07:00
README.md Initial commit 2023-06-03 11:54:45 +02: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-23-restore-rewards

Proposal to restore old rewards value (as before hack) after redeploying Staking contract