Clarify grant rate decay formula in A.2.9.2.2.2.2.4#125
Open
pegaslint wants to merge 1 commit intosky-ecosystem:mainfrom
Open
Clarify grant rate decay formula in A.2.9.2.2.2.2.4#125pegaslint wants to merge 1 commit intosky-ecosystem:mainfrom
pegaslint wants to merge 1 commit intosky-ecosystem:mainfrom
Conversation
Add explicit mathematical formulation showing the grant decays linearly from (Base - TBill) at T=0 to 0 at T=24, making the subsidy mechanism clearer for validators and implementers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A.2.9.2.2.2.2.4 (Minimum Borrowing Threshold for Grant Eligibility) currently reads like the grant always covers the full
(Base − TBill)difference (i.e., a constant full subsidy → effective rate always = TBill).This conflicts with the ramping effective-rate formula in A.2.9.2.2.2.2.2 (Borrow Rate Mechanism).
Solution
Keep the effective-rate formula exactly as written in A.2.9.2.2.2.2.2, and define the grant so that it produces that effective rate:
Grant (reimbursement) rate:
grant_rate(T) = Base − effective_rate(T) = (Base − TBill) * (1 − T/24)(clamped at ≥ 0 so no negative grants if Base ≤ TBill)
This makes explicit that the grant decays linearly from
(Base − TBill)at T=0 down to 0 at T=24, exactly matching the effective-rate ramp.Proposed Text Change
In A.2.9.2.2.2.2.4, replace:
With:
Example (Sanity Check)
With
Base = 8%andTBill = 4%: