-
Notifications
You must be signed in to change notification settings - Fork 39
Add minimum funding amount before release #165
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official CampaignenhancementNew feature or requestNew feature or requestgrantfoxIssue for GrantFox programIssue for GrantFox program
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official CampaignenhancementNew feature or requestNew feature or requestgrantfoxIssue for GrantFox programIssue for GrantFox program
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Allow creators to set a minimum funding amount (absolute value) that must be reached before an invoice can be released. If the invoice is fully paid but below the threshold, it stays pending.
Acceptance Criteria
InvoiceOptionsaccepts an optionalmin_funding_amount: Option<i128>field_paychecksinvoice.funded >= min_funding_amountbefore triggering auto-releasePendingeven whenfunded >= totaltest_min_funding_amount_delays_releaseverifies release is blocked below thresholdtest_min_funding_amount_releases_when_metverifies release triggers when metContext
Note:
min_funding_bps(percentage-based) already exists. This is an absolute amount alternative. Auto-release logic is at the bottom of_payincontracts/split/src/lib.rs.