-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more useful staking events in
Governance
Previously, the details of V1 rewards were emitted by `UserProxy`. This made it harder to query all the information pertaining to the V1 staking that goes through V2, because each user has their own `UserProxy` address. Plus, the event `WithdrawLQTY` suffered from an issue which has already been fixed for the corresponding event in `UserProxy`, which is that a user can attempt to withdraw more than their V1 staking LQTY balance, in which case the withdrawal gets truncated, but the parameter `withdrawnLQTY` didn't reflect this truncation. As we don't really need to have duplicate events (`UserProxy` & `Governance`) anyway, we eliminate them from `UserProxy` but expose the details to `Governance`, so that it may emit more useful events of its own.
- Loading branch information
1 parent
078a766
commit 618882c
Showing
5 changed files
with
161 additions
and
69 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
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
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