Proposal to restore old rewards value (as before hack) after redeploying Staking contract
Go to file
2023-06-12 16:45:32 -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 Init forge 2023-06-03 03:05:18 -07:00
script Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
scripts Correct padding in generated Solidity proposal code 2023-06-12 15:18:32 -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 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
utils Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
.gitignore Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
.gitmodules Init forge 2023-06-03 03:05:18 -07:00
foundry.toml Create solidity source and tests for proposal 2023-06-12 06:22:32 -07:00
LICENSE Initial commit 2023-06-03 11:54:45 +02:00
package.json 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
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