Motivation
At the moment, fees paid by Apps to Starknet move sharply as a function of the STRK price. This is suboptimal for both dApps and the Starknet sequencers - as the majority of income (for dApps) and expenses (for sequencer) are denominated in $$. This creates unpredictability for all sides as STRK price shifts.
While an automatic solution for this problem is currently in the design phase and a SNIP around it will be released soon, the current suggestion is to perform this alignment manually in the very near future before the automatic feature receives feedback, matures, and gets into production.
Concrete Suggestion
-
A concrete $$ cost will be aligned to L2gas. Concrete initial value: $10^-9 fee per L2gas. This is in line with the fee that was on the network immediately after the 0.14.1 launch.
-
This baseline needs to be re-evaluated periodically as the protocol undergoes changes that improve its efficiency, change the L2gas weights, etc.
-
Every Thursday, the average STRK price within the last week will be used as a baseline and a new hypothetical base fee will be calculated.
-
If the hypothetical base fee significantly deviates from the current base fee, it will be posted in this thread at the community forum, to take effect starting the following Monday (starting early morning hours UTC)
-
On the Monday after this, assuming price change is needed, the minimal base fee will be set accordingly. The team will apply an âincrementalâ logic where base fee will slowly shift towards the new price (if higher) or drop in one go (if lower). The shift will be identical to 1559-native climbing/dropping rate. In more details:
a. If the current base fee is lower than the newly-configured minimum base fee, all the blocks will be treated as 100% congested and the fee will gradually increase accordingly until it arrives at the new set minimum.
b. If the current base fee is higher than the newly-configured minimum base fee, and there is no congestion, base fee will slowly get back to the newly configured minimum.