-
Notifications
You must be signed in to change notification settings - Fork 11
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
Put a limit to founder if target amount was not reached #227
base: main
Are you sure you want to change the base?
Conversation
dangershony
commented
Dec 18, 2024
src/Angor/Client/Pages/Spend.razor
Outdated
@@ -501,6 +513,11 @@ | |||
|
|||
private async Task ClaimCoins(int stageId) | |||
{ | |||
if (!targetInvestmentReached) | |||
{ | |||
throw new InvalidOperationException("Target investment amount has not been reached, you can only release the funds back to the investors."); |
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 am not sure about this, what if the target is close and the investors are happy for founder to continue?
@@ -82,6 +83,7 @@ public Task LookupInvestmentRequestsAsync(string nostrPubKey, string? senderNpub | |||
{ | |||
var subscription = nostrClient.Streams.EventStream | |||
.Where(_ => _.Subscription == subscriptionKey) | |||
.Where(_ => _.Event.Tags.FindFirstTagValue("subject") == "Investment offer") |
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.
@DavidGershony what do you think about this as filter on the subscription?
I suppose the filter only actually happens in the client not the server, I am not sure it is possible to filter based on subject.