Skip to content

feat(fwss): set the PDP rate after removals on FilecoinPayV2 in nextProvingPeriod - #683

Draft
CodeWarriorr wants to merge 1 commit into
feat/fwss-pay-v2-pieces-addedfrom
feat/fwss-pay-v2-next-proving-period
Draft

CodeWarriorr wants to merge 1 commit into
feat/fwss-pay-v2-pieces-addedfrom
feat/fwss-pay-v2-next-proving-period

Conversation

@CodeWarriorr

Copy link
Copy Markdown
Collaborator

After a scheduled removal, nextProvingPeriod on a v2 data set still updated the rate on FilecoinPayV1 and reverted, so the SP couldn't advance proving.

Part of #669. Stacked on #681, so only the last commit is new.

What's changed

  • After removals, v2 data sets set the PDP rail rate through LibRailsV2.setPdpRate with no fee, so the lock goes down with the rate
  • When the rail already has the right rate (a later piecesAdded repriced it, or rounding), the script is skipped. V2 setRate always settles first and reverts with Behind for a payer who ran out, while FilecoinPayV1 lets an unchanged rate through
  • settleRail now runs inside nextProvingPeriod after the deadline moved, which is fine since it only reads provenPeriods and the activation epoch

A real rate drop for a payer who is behind still reverts with Behind, same as FilecoinPayV1 refusing a rate change while the lockup isn't settled.

No ABI or storage change.

…rovingPeriod

nextProvingPeriod always updated the rate on FilecoinPayV1, so a v2
data set with a scheduled removal reverted and could not advance proving.
v2 data sets now set the rate through LibRailsV2.setPdpRate with no fee.
An unchanged rate skips the script, since setRate settles first and
reverts for a payer who is behind, which FilecoinPayV1 allows.
@FilOzzy FilOzzy added this to FOC Nov 27, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Nov 27, 2026
@FilOzzy FilOzzy moved this from 📌 Triage to ⌨️ In Progress in FOC Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ⌨️ In Progress

Development

Successfully merging this pull request may close these issues.

1 participant