55a6540a13
Add calculation of stakers (to who we propose to restore rewards) locked balances & use multicall, speed up scripts execution more than 10 times
main
Theo2023-06-19 09:05:39 -07:00
dbd12a63a2
Add deployed contracts addresses to README
Theo2023-06-15 20:38:55 -07:00
94b96276b6
Fix restore calculation: we should not restore rewards to those who managed to withdraw from the old Staking contract
Theo2023-06-14 07:27:09 -07:00
d90b460355
Add tests to check correctness of staking contract functionality after proposal execution
Theo2023-06-14 06:51:42 -07:00
808420b0d6
Add autoreturn locked tokens to Governance from test voter
Theo2023-06-13 16:39:58 -07:00
ea9b28457c
Add waiting for contracts deployment before verification
Theo2023-06-13 12:32:09 -07:00
a935093f54
Add hardhat deployment by T-Hax
Theo2023-06-13 11:33:37 -07:00
79d5bfd103
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)
Theo2023-06-12 16:45:32 -07:00