-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New MerkleDistribution contract that can trigger withdrawing TACoApp rewards #136
Comments
The current approach is to have three claim functions that a stake can call:
But this can be problematic: The Two solutions are possible (if not more):
cc @cygnusv |
About claiming from the dashboard: The idea is that the dashboard calls the
But what happens if the stake is not earning TACo rewards at all? This require will not be satisfied so the transaction will be reverted, and this leads to a bad user experience. Am I right? Can we adapt the dashboard to ignore this? Probably not, because the revert message will be shown in the wallet (Metamask or whatever) and not in the dashboard, right? cc @cygnusv EDIT: solved by adding |
Once we introduce rewards in the TACoApp contract, this will produce a fragmentation of the rewards between other apps (tBTC & RB, currently on the MerkleDistribution contract) and TACo. In order to eliminate this friction from a staker perspective, we should allow the MerkleDistribution contract to trigger withdrawing rewards to the beneficiary.
In addition to the changes mentioned in nucypher/nucypher-contracts#244 to the TACoApp, we'd need a new MerkleDistribution contract that performs this call. This issue includes also the migration of approvals from the ClaimableRewards proxy contract owned by Threshold.
The text was updated successfully, but these errors were encountered: