Skip to content
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

Merged
merged 19 commits into from
Jan 4, 2024

Conversation

krisbitney
Copy link
Contributor

@krisbitney krisbitney commented Dec 26, 2023

This PR adds realtime donation amounts to wallet profiles, and also adds improvements to ViewDonorsPage and ViewStewardsPage

@krisbitney krisbitney changed the title (BLOCKED) add realtime superfluid donations amounts to donor profiles (Blocked) add realtime superfluid donations amounts to donor profiles Dec 26, 2023
@krisbitney krisbitney changed the title (Blocked) add realtime superfluid donations amounts to donor profiles add realtime superfluid donations amounts to donor profiles Dec 27, 2023
…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
@krisbitney krisbitney marked this pull request as ready for review December 28, 2023 13:58
@krisbitney krisbitney requested review from sirpy and L03TJ3 December 28, 2023 15:23
…me-donation-flow

# Conflicts:
#	packages/app/src/components/DonorsList/DonorsListItem.tsx
…ists

Desktop ViewStewardsPage and ViewDonorsPage UI
Base automatically changed from kris/data-flow to web3Integrations December 29, 2023 16:12
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);
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

@krisbitney krisbitney requested a review from sirpy January 4, 2024 11:05
@krisbitney krisbitney merged commit 0a76140 into web3Integrations Jan 4, 2024
1 check passed
@L03TJ3 L03TJ3 deleted the kris/realtime-donation-flow branch October 15, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants