Skip to content

feat(fwss): refill the lifecycle reserve on FilecoinPayV2 when scheduling removals - #676

Closed
CodeWarriorr wants to merge 2 commits into
feat/fwss-pay-v2-dataset-createdfrom
main
Closed

CodeWarriorr wants to merge 2 commits into
feat/fwss-pay-v2-dataset-createdfrom
main

Conversation

@CodeWarriorr

Copy link
Copy Markdown
Collaborator

Scheduling piece removals on a FilecoinPayV2 data set still refilled the lifecycle reserve through FilecoinPayV1, which reverts because the rail id is a v2 one. Now the refill locks the shortfall on the v2 PDP rail, under the same threshold as v1.

Part of #669

What's changed

  • piecesScheduledRemove on a v2 data set adds the missing reserve with lock on the PDP rail, in one executeScript call with no permissions, since setRail and lock need no grant from the payer
  • The lock adds only the shortfall and never sets the rail's available balance, because with the settleRail callback (Add settleRail #673) that balance also holds settled payment
  • A payer balance short of the refill reverts with FilecoinPayV2 InsufficientBalance
  • _pdpRailNonce and _lockOnPdpRail move to FWSSFilecoinPayV2 so the other v2 callbacks can reuse them, and the threshold math is now a pure LibRails.replenishedReserve shared by v1 and v2

No ABI or storage change.

martapiekarska and others added 2 commits November 17, 2026 22:25
)

* fix(ci): install the pnpm version synapse-sdk declares

synapse-sdk now declares pnpm@12.18.0 in packageManager and builds with
turborepo. With pnpm 10.33.0 pinned here, the Update Synapse SDK run for
v1.5.0 failed in turbo run lint (Exec format error) after wagmi generate
had succeeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ci): open a new Synapse SDK PR when the tag's earlier PR is merged

gh pr view <branch> also matches merged PRs, so rerunning Update Synapse
SDK for v1.5.0 edited the merged synapse-sdk#1034 and left the pushed
commit without an open PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore(josuke): record v1.6.0 deploys on Calibnet and Mainnet

* chore(josuke): accept v1.6.0 on Calibnet

Calibnet execute: Safe nonce 27, tx 0xd87306666a62f0b363e7b1b8c7a651c21916c5106a4e0cb274ffd5317c32cd5e (block 4256439).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deployments): record Calibnet fwss_version 1.6.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(josuke): accept v1.6.0 on Mainnet

Mainnet execute: Safe nonce 33, tx 0xfafe3f925179b3bd0d445701fd871c7f3f10769f6c848138aa5cab63bdc0ff18 (block 6560696).
Record the live fwss_version 1.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@CodeWarriorr
CodeWarriorr requested a review from Filip-L November 25, 2026 11:12
@FilOzzy FilOzzy added this to FOC Nov 25, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Nov 25, 2026
@CodeWarriorr

Copy link
Copy Markdown
Collaborator Author

wrong head, moved to #677

@github-project-automation github-project-automation Bot moved this from 📌 Triage to 🎉 Done in FOC Nov 25, 2026

This branch was successfully deployed

1 active deployment
mainnet — f25aa0cb Deployed Nov 24, 2026 by TippyFlitsUK via manage-approved-provider #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

2 participants