Skip to content

Conversation

@capossele
Copy link
Contributor

This PR refactors the _fulfillAndPayWasLocked function to partially pay the prover in the case a second request with same id but different hash than the originally locked one is priced and fulfilled, and the client does not have enough balance to cover for the delta between original lockPrice and the new price.

@github-actions github-actions bot changed the title [V-BND-VUL-005] add partial payment BM-1652: [V-BND-VUL-005] add partial payment Sep 24, 2025
finalPrice = _applyMarketFee(finalPrice);
}
accounts[assessorProver].balance += finalPrice;
if (partialPayment) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if finalPrice != price, it must be a partial payment, so could drop this variable

@capossele capossele requested a review from ec2 as a code owner October 9, 2025 13:04
@capossele capossele enabled auto-merge (squash) October 9, 2025 13:05
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

🚀 Documentation Preview

Deployment URL: https://boundless-documentation-ngxi2irr4-boundless-network.vercel.app

Updated at: 2025-10-09 13:10:35 UTC

@capossele capossele merged commit 14881fe into main Oct 9, 2025
35 of 38 checks passed
@capossele capossele deleted the angelo/V-BND-VUL-005 branch October 9, 2025 13:52
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.

3 participants