-
Notifications
You must be signed in to change notification settings - Fork 5
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
add realtime superfluid donations amounts to donor profiles #66
Conversation
…time-donation-flow
…time-donation-flow
…time-donation-flow
…me-donation-flow # Conflicts: # packages/app/src/components/CollectiveCard/DonorCollectiveCard.tsx # packages/app/src/components/CollectiveCard/StewardCollectiveCard.tsx # packages/app/src/components/DonorsList/DonorsListItem.tsx # packages/app/src/components/ViewCollective.tsx # packages/app/src/models/constants.ts
…me-donation-flow # Conflicts: # packages/app/src/components/DonorsList/DonorsListItem.tsx
…ists Desktop ViewStewardsPage and ViewDonorsPage UI
const decimalCurrentPool = parseFloat(ethers.utils.formatEther(currentPool ?? 0)); | ||
const formattedCurrentPool: string = decimalCurrentPool.toFixed(3); | ||
const currentPoolUsdValue = tokenPrice ? tokenPrice * decimalCurrentPool : undefined; | ||
const { formatted: formattedDonations, usdValue: donationsUsdValue } = calculateAmounts(totalDonations, tokenPrice); |
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.
donation to pools should use flow rate
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.
only stewards currently receive single payments.
donor can donate a single donation or a flow therefor pools have incoming flow rate on top of single donations
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.
I fixed this in a new commit. Please take a look when you have a chance.
This PR adds realtime donation amounts to wallet profiles, and also adds improvements to ViewDonorsPage and ViewStewardsPage