Reduce onboarding gas & align value accrual by removing batch balancer and replacing it with a per-sector fee #1105
irenegia
started this conversation in
Enhancements - Technical
Replies: 1 comment
-
Thanks @irenegia agree on this Just on 2 - dynamic pricing. I'm not sure on the merits of this approach. I don't think we should be disincentivising onboarding via a higher fee unless there are constraints (like with gas fees). If Filecoin found rapid traction what would be the benefit of increasing the fee at the expense of possibly slowing that down? Adjusting down in periods of declining growth I could understand but this also happens naturally with more of the simple rewards being distributed amongst the lower QAP. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context and Motivation
In the ongoing effort to reduce per-sector onboarding gas costs (see #1092), we have identified the following active work streams:
Supporting the DDO Pipeline: For example, adding DDO deal tracking capabilities to Spark.
Storage Gas Optimizations and Miner Configuration Improvements: Tracking this work here;
Enabling Full Adoption of Batching and Aggregation to Scale Onboarding Growth: This involves ensuring that batching for precommit and batching/aggregation for provecommit are always rational (ie, cost-effective for SPs).
This new discussion focuses specifically on the third point—making batching and aggregation pipelines cost-effective while aligning network value accrual with onboarding growth. Currently, the cost-effectiveness of these pipelines is governed by the BatchBalancer mechanism, which is tied to the base fee. In the sections below, we provide an overview of the current system, highlight its limitations, and propose a practical solution to address these challenges and enable fast progress. This proposal builds on previous work done by CryptoNet (see here and #587).
Filecoin's current fee structure consists of two main components:
Gas Fees: As in other blockchains, gas fees mediate access to limited blockchain execution capacity. These fees are burned, generating network revenue proportional to the execution resources used.
Batch Balancer Mechanism: Beyond blockchain execution, the Filecoin network provides a storage-auditing service to SPs through the proofs of storage verified on-chain. Historically, before proof aggregation, each proof verified a single unit of storage (sector), meaning gas fees captured the value of the storage auditing service. However, the introduction of proof aggregation (where one proof audits multiple sectors) disrupted this alignment. The batch balancer was introduced to address this misalignment but has become outdated, and, as recent work on gas onboarding optimization (Onboarding rate and gas optimizations #1092) highlights, it now acts as a bottleneck to fully adopting aggregation and batching.
Problem Statement: Gas fees – a system primarily intended to charge for execution resources – alone do not properly capture network value for Filecoin, negatively impacting the overall Filecoin economy. Filecoin value accrual via fees should grow proportionally to network adoption and demand, and be resilient to technical optimizations that reduce gas fees and increase chain bandwidth. While the batch balancer mechanism tried to solve this, at the same time it creates these inefficiencies:
It discourages full adoption of batching and aggregation by making these operations less rational (cost-effective). Batching and aggregation improves the overall efficiency of Filecoin, and increases the onboarding capacity of the network.
It couples gas fees with storage auditing in a way that limits predictability and increases exposure to base fee volatility. Gas fee pricing is designed to prevent the network from overusing execution resources; it should not be so directly tied to onboarding levels.
It poses challenges for aligning technological improvements (such as optimizations that reduce gas congestion) with economic incentives (value accrual alignment with network growth).
Proposal and Effects
To address these issues, we propose removing the batch balancer mechanism and replacing its value accrual effect with a per-sector fee, separate from gas fees. This change has multiple benefits:
Fee Design Principles
The fee should accord with the following design goals:
Proposal Directions
We are exploring two high-level fee models:
We are evaluating variations of these models that tie fees to broader economic indicators, such as circulating and total token supply. Proposals are being evaluated based on how well they achieve the Fee Design Principles above.
Conclusion
This proposal introduces a more predictable and rational fee structure that replaces the batch balancer with a per-sector fee, providing Storage Providers with a cost structure that is more stable and easier to plan around. By decoupling gas fees from service fees, this should better capture network value, encourage technological innovation and optimization, and ensure the long-term economic sustainability of the Filecoin network.
Please give your initial thoughts and questions; this is a work in progress, and your feedback will help ensure this approach benefits all parts of the Filecoin ecosystem.
Beta Was this translation helpful? Give feedback.
All reactions