-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix: ProjectToken.RevenueSplitLeft
mapping
#324
Fix: ProjectToken.RevenueSplitLeft
mapping
#324
Conversation
Here is a whole function for a context:
I see two problems:
|
Thanks for pointing out the issues
Even if the token has multiple revenue shares, the User can only participate in at most one revenue split (this is enforced by runtime), so we can actually so we can actually get the const revenueShareParticipation = (
await overlay
.getRepository(RevenueShareParticipation)
.getManyByRelation('accountId', account.id)
).find((participation) => participation.recovered === false) commit: 12bbbe2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix: unstake tokens atfer current revenue share finalized and new revenue share issued * [offchainState] fix: transform raw json objects to jsonb properties * fix: ProjectToken.RevenueSplitLeft mapping * [CRT] dont decrease revenue share participant numbers * fix: getCumulativeHistoricalShareAllocation custom resolver * bump package version & update CHANGELOG
This fix makes it possible to unstake participant tokens after the current revenue share is finalized and the new revenue share is started