-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/nico/likes sync #12
base: main
Are you sure you want to change the base?
Conversation
Is there an explicit reason only the backend can "charge the vault"? It is unlikely people will randomly donate but if they wanted to fund the vault, is there a downside to allowing them? |
When syncing, is it the responsibility of the backend to make sure the # of likes for some content has parity with the actual likes stored by each user? Is there a way to litigate a discrepancy in likes between these two sources of truth/ is one THE source of truth? |
The slashing vault is only rechargable by the backend because it is the staked value that the backend puts as a guarantee. If a user proves a receipt was not included in the contract, the user would get rewarded from this slashing vault. |
It is the backend responsibility to keep the number of likes in each content and the user likes align. There is one litigation function that any user could call that would perform a check on a specific content likes vs which users have liked the content. The function name is |
This PR covers a couple of things:
likedContent
and content related such aslikes
) directly with each user or content object.