-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feature/distribution details #156
base: master
Are you sure you want to change the base?
Feature/distribution details #156
Conversation
@Seroxdesign is attempting to deploy a commit to the Superfluid Finance Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey! I'll take a look at this. Any pending questions or TODO-s? |
Yes, I am quering the SF subgraph as follows:
Unfortunately I couldn't find docs or examples on how to use sfSubgraph directly.
|
@Seroxdesign I come once again to ask for bug fixes 😄 The total amount does not add up to the subscribed amount Also it seems like the feature does not show the total units at the point of distribution and the subscribers correctly , that looks like a stream to ricochet and if i'm not mistaken, the units there are updated depending on the flow rate, maybe just a coinsidence, but seems very unlikely that the units and subscribers have not changed in months , especially seeing that the total amount is wrong, I feel like it fetches 1 state and shows it in all distribution details pages Screen.Recording.2023-02-28.at.12.01.06.mov |
Understood will investigate this further and fix it thanks for taking the time to test and review 🙏 |
totalSubscriptionsWithUnits | ||
totalUnits | ||
subscriptions(where: {units_not: "0"}) { | ||
units |
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.
These units might not be the same as they were at the time of the distribution. These are the latest units.
Be careful, might be a rabbit hole. Sorry, I haven't been quick to review this. It's a bit more tricky... I skimmed over it yesterday and it made my wheels turn. I'm thinking open-minded and it might be the case that the best way to solve this page is:
Example of the query at 2: query MyQuery {
indexSubscriptions(block: {number: $BLOCK_NUMBER}, where: {index: $INDEX_ID}) {
units
}
}
|
As per @kasparkallas the bounty can be marked as complete, there was an issue I couldn't address and Kaspar will be taking a look at it, if anything comes up that i can help with ping me. |
PR:
Addresses: #19
What was done?
Created distribution page with the following:
Addresses, amount and pool percentage
Changes made:
onCellClick={(row, e) => e.stopPropagation()}
to dataGrid as per: > > > > datagrid version 5.17.8 still has the error steps to reproduce mui/mui-x#7943Event showcase:
2023-02-27.06-22-28.mp4
Closes: #149