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

Notify founder when there is a new investment #236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

itailiors
Copy link
Collaborator

added logic like in view.razor to scan for new investments with ScanForNewInvestmentsAsync. showed investment stats (total investors and total raised) in the project cards. used local storage to keep and compare stats, so we can detect new investments and notify the founder. this keeps things consistent with how tracking works in view.razor.

image

@itailiors
Copy link
Collaborator Author

I'll add that adding a new event and creating that nostr event when investing and listening on founder felt like unwanted nostr calls.
But on the other side there are 2 disadvantages here,

  1. this utilizes local storage (that is bound to be refactored)
  2. if someone recovers and scans the project, he will have a bunch of notifications (i don't think this is that big of a deal)

@dangershony @DavidGershony what's your thought of this approach instead

@itailiors
Copy link
Collaborator Author

Also, I'll add that it felt like a good enhancement to the page imo.
If you think that it's better to create a new nostr event it shouldn't be a problem because I'm working on that on a different branch to inform the investor when his UTXO is getting spent.

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.

1 participant