-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert reward accounting to be tracked on a per-deposit basis
UniStaker tracks rewards earned by individual addresses which are specified as the beneficiary of deposits. The same address may earn rewards from tokens which have been staked in multiple deposits. This commit converts the system to track rewards on a per-deposit basis instead. Each deposit earns rewards according to the tokens staked in it. The test suite has been updated to reflect this change. The meaning of beneficiary changed as well. It is no longer the address that earns the rewards, but instead is the address that has permissions to withdrawal the rewards earned by a given deposit.
- Loading branch information
Showing
4 changed files
with
281 additions
and
814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.