The Target Rate Feedback Rule (TRFR) is a proportional-integral-derivative (PID) controller that algorithmically manages the Dai Savings Rate (DSR). Its primary objective is to correct deviations of the Dai market price from its $1 USD peg. When Dai trades below $1 (a state of surplus), the TRFR increases the DSR, incentivizing users to lock Dai in the DSR contract, thereby reducing circulating supply and increasing demand. Conversely, when Dai trades above $1 (a state of shortage), the rule decreases the DSR, discouraging savings and encouraging Dai to re-enter circulation.
Target Rate Feedback Rule (TRFR)
What is Target Rate Feedback Rule (TRFR)?
The Target Rate Feedback Rule (TRFR) is a foundational algorithm in the Maker Protocol that autonomously adjusts the Dai Savings Rate (DSR) to maintain the Dai stablecoin's peg to the US Dollar.
This mechanism operates continuously and autonomously, without requiring manual governance votes for every rate adjustment. The TRFR calculates the necessary change to the DSR based on the magnitude and duration of the peg deviation. This feedback loop is designed to be more responsive and predictable than purely manual governance, creating a market-driven force for stability. The rule's parameters, such as its sensitivity and update frequency, are set and can be adjusted by Maker Governance, which retains ultimate control over the system's monetary policy.
The TRFR is a critical component of Maker's Endgame Plan, representing a shift towards greater decentralization and automation of the protocol's core stability mechanisms. It works in concert with other levers like the Stability Fee (the interest rate on Vault debt) and Surplus Auctions. By programmatically managing the opportunity cost of holding Dai, the TRFR aims to create a robust, non-custodial alternative to traditional central banking operations within the DeFi ecosystem, where monetary policy is executed by transparent, on-chain code.
How the Target Rate Feedback Rule Works
An in-depth explanation of the algorithmic mechanism that autonomously adjusts a blockchain's base fee to target a specific transaction throughput.
The Target Rate Feedback Rule (TRFR) is a core algorithmic mechanism, pioneered by EIP-1559, that dynamically adjusts a blockchain's base transaction fee to regulate network congestion and target a specific block size. It functions as a PID controller for the network, using the utilization of the previous block—specifically, whether it was more or less full than a predefined target gas limit—as its primary feedback signal. If the previous block was over 50% full, the rule increases the base fee; if it was under 50% full, it decreases it. This creates a negative feedback loop that steers block utilization toward the long-term target, making fee estimation more predictable.
The mathematical formula for the TRFR is base_fee_per_gas[block] = base_fee_per_gas[block-1] * (1 + (gas_used[block-1] - target_gas) / target_gas / base_fee_max_change_denominator). The target gas is typically set to 50% of the block's maximum gas limit. The base_fee_max_change_denominator is a constant (e.g., 8 in Ethereum) that caps the maximum percentage change per block, ensuring fee stability. This deterministic calculation occurs at the protocol level in every block, making the base fee a mandatory, protocol-enforced component of every transaction, which is subsequently burned.
The primary goal of the TRFR is to achieve long-term predictability in transaction pricing and network throughput. By targeting 50% block utilization, the system maintains headroom for sudden spikes in demand, preventing the extreme fee volatility and unpredictable confirmation times seen in first-price auctions. This design also enables wallets to provide users with more reliable fee estimates, as the base fee's trajectory is governed by a transparent, on-chain rule rather than opaque market bidding. The rule's effectiveness is measured by how closely it can maintain the moving average of block gas used around the target over time.
A key consequence of the TRFR is the creation of a base fee burn. Since the base fee is destroyed (burned) rather than paid to miners/validators, it introduces a deflationary pressure on the native cryptocurrency's supply. This transforms transaction fees from a pure miner reward into a network resource cost, aligning economic incentives. The rule works in tandem with a priority fee (tip), which users can add on top of the base fee to incentivize validators to include their transaction in the next block, especially during periods of high demand.
Key Features of the TRFR
The Target Rate Feedback Rule (TRFR) is a decentralized monetary policy mechanism that algorithmically adjusts a protocol's interest rate to maintain a target utilization ratio for its lending pool.
Core Feedback Loop
The TRFR operates on a negative feedback loop that stabilizes the system. When the actual utilization of a lending pool deviates from its target utilization ratio, the rule calculates a new interest rate to incentivize borrower or lender behavior to correct the imbalance. This automated adjustment is the primary mechanism for maintaining pool equilibrium.
Interest Rate Calculation
The new interest rate is derived from a formula that incorporates:
- Previous Rate: The interest rate from the last block.
- Deviation: The difference between actual and target utilization.
- Adjustment Speed: A controller gain (k) parameter that determines how aggressively the rate changes in response to a deviation. A higher
kleads to faster corrections.
Target Utilization Ratio
This is the setpoint of the system, representing the optimal ratio of borrowed assets to supplied assets that the protocol aims to maintain. It is a governance-set parameter that balances efficiency (high utilization) with liquidity safety (available funds for withdrawals). Deviations from this target trigger the TRFR.
Controller Gain (k)
The controller gain is a crucial tuning parameter that defines the sensitivity of the interest rate response. A well-calibrated k ensures:
- Stability: Prevents oscillating or volatile rate swings.
- Responsiveness: Allows the rate to adjust meaningfully to supply/demand shocks.
- Predictability: Provides users with transparent expectations for rate changes based on utilization.
Comparison to Fixed-Rate Models
Unlike static or manually adjusted rates, the TRFR provides dynamic, market-driven pricing. It automatically responds to real-time supply and demand, eliminating the need for centralized intervention and creating a more efficient capital market within the protocol. This is a foundational concept in algorithmic stablecoin and decentralized finance (DeFi) designs.
TRFR Code Example (Pseudocode)
A practical illustration of the Target Rate Feedback Rule (TRFR) algorithm, demonstrating how a blockchain protocol can programmatically adjust its base fee to maintain a target transaction inclusion rate.
The following pseudocode outlines the core logic of a Target Rate Feedback Rule (TRFR) mechanism, which is a control algorithm used in transaction fee markets to stabilize network congestion. The primary function, update_base_fee, is called at the end of each block. It calculates the utilization ratio by comparing the actual block size (block_gas_used) to a predefined target block size (TARGET_GAS). This ratio is then fed into a PID controller-style formula to compute a new base fee for the subsequent block, aiming to drive utilization toward the target.
The algorithm's key components include the adjustment quotient (ADJ_QUOTIENT), which determines the aggressiveness of the fee adjustment—a larger denominator creates a slower, more dampened response. The pseudocode shows a simplified version where the adjustment is proportional to the deviation from the target. In more sophisticated implementations, integral and derivative terms can be added to the controller to improve stability and reduce overshoot, ensuring the base fee does not oscillate wildly in response to transient demand spikes.
This example highlights the feedback loop central to TRFR: high utilization raises the base fee to discourage future transactions, while low utilization lowers it to encourage usage. The block_gas_used variable acts as the system's sensor, the base_fee is the control variable, and the TARGET_GAS is the setpoint. Developers implementing such a system must carefully tune parameters like the target size and adjustment quotient based on network-specific goals and observed economic behavior to achieve a stable equilibrium.
In practice, TRFR mechanisms, such as Ethereum's EIP-1559, incorporate additional safeguards. These include enforcing a minimum base fee (MIN_BASE_FEE) to prevent it from reaching zero and a maximum change limit per block to bound volatility. The pseudocode's max and min functions represent these clamping operations. The final output is a new base_fee that is enforced in the next block's header, creating a predictable and transparent fee adjustment process for users and wallet software.
Understanding this pseudocode is essential for protocol engineers designing fee markets and for analysts modeling blockchain economics. It demonstrates how algorithmic monetary policy can be applied at the protocol layer, autonomously managing a critical resource (block space) without requiring manual intervention. The TRFR's success depends on its parameterization and its interaction with user and miner incentives within the broader cryptoeconomic system.
Protocols Using TRFR Mechanisms
The Target Rate Feedback Rule (TRFR) is a monetary policy mechanism used by several prominent DeFi protocols to algorithmically stabilize the value of their native assets. These implementations showcase the core principles of supply elasticity and on-chain feedback loops.
Empty Set Dollar (ESD) & Dynamic Set Dollar (DSD)
These were early algorithmic stablecoin experiments that used a TRFR with a coupon system instead of direct rebasing. When the price was below the $1 target, users could burn tokens to purchase discounted coupons redeemable for more tokens if the price later recovered. This created a debt-like obligation on the protocol's balance sheet, a design that introduced significant risks during extended periods below peg.
The Core Feedback Loop
All TRFR implementations share a fundamental control loop:
- Oracle Price Feed: Continuously monitors the market price of the asset.
- Deviation Calculation: Compares the market price to the target price (e.g., $1).
- Policy Response: Triggers a pre-programmed monetary policy action.
- Supply Adjustment: Changes the token supply via rebase, minting, or burning.
- Market Reaction: Aims to push the market price back toward the target through arbitrage incentives.
Key Design Variations
Protocols implement the TRFR concept with different levers and asset backings:
- Rebase vs. Mint/Burn: Direct wallet balance changes (AMPL) vs. minting new tokens for specific actions (Frax, Olympus).
- Collateralization: Fully algorithmic (ESD), fractional (FRAX), or treasury-backed (OHM).
- Response Lag: Daily epochs (AMPL) vs. continuous or multi-day cycles.
- Incentive Target: Stabilizing a unit of account ($1) vs. growing a treasury reserve asset.
TRFR vs. Other Stabilization Mechanisms
A technical comparison of the Target Rate Feedback Rule with common algorithmic and collateralized stabilization approaches.
| Mechanism / Feature | Target Rate Feedback Rule (TRFR) | Rebasing (e.g., Ampleforth) | Seigniorage Shares (e.g., Basis Cash) | Overcollateralized (e.g., MakerDAO) |
|---|---|---|---|---|
Primary Stabilization Signal | Target interest rate (price of money) | Supply rebase (adjusts wallet balances) | Bond & Share auctions (expansion/contraction) | Collateral liquidation (debt ceiling, ratios) |
Price Target | Implicit via interest rate parity | Explicit (e.g., 2019 USD CPI) | Explicit (e.g., $1.00 peg) | Explicit (e.g., $1.00 DAI peg) |
User Balance Volatility | No (balance is stable, yield varies) | Yes (token quantity changes) | No (balances stable, share value varies) | No (balances stable) |
Requires Collateral Backing | No (algorithmic) | No (algorithmic) | No (algorithmic) | Yes (exogenous crypto assets) |
Direct Yield Mechanism | Yes (variable interest rate on holdings) | No (value accrual via supply changes) | Yes (to shareholders during expansion) | Yes (stability fees from borrowers) |
Attack Surface | Interest rate oracle manipulation | Rebase oracle manipulation | Bond/share auction game theory | Collateral price oracle manipulation |
Primary Failure Mode | Persistent negative target rate (death spiral) | Failed convergence after rebase | Bank run on bonds during contraction | Undercollateralization & bad debt |
Typical Adjustment Frequency | Continuous (per block) | Discrete (e.g., every 24 hours) | Discrete (epoch-based auctions) | Continuous (liquidation triggers) |
Security & Economic Considerations
The Target Rate Feedback Rule (TRFR) is a core algorithmic mechanism in DeFi protocols like MakerDAO that autonomously adjusts system parameters to maintain a target price or stability metric.
Core Definition & Purpose
The Target Rate Feedback Rule (TRFR) is an on-chain control algorithm that dynamically adjusts a protocol's stability fee or interest rate based on the deviation of an observed market price from a predefined target. Its primary purpose is to create a negative feedback loop that incentivizes market participants to push the price back toward the peg, such as DAI to $1 USD.
Mechanism: The Feedback Loop
The TRFR operates on a simple input-output loop:
- Input: The continuous deviation of the market price (e.g., DAI/USD) from the target price.
- Processing: A smart contract calculates a new Stability Fee using a predefined formula (e.g.,
new_rate = old_rate * (price / target)^k). - Output & Effect: A higher fee discourages new debt (reducing DAI supply) when price is below target, while a lower fee encourages it (increasing supply) when price is above target, steering the price toward equilibrium.
Key Parameter: The Gain Coefficient
The gain coefficient (often k in the TRFR formula) determines the aggressiveness of the system's response to price deviations. It is a critical security parameter:
- High Gain: Reacts strongly to small deviations, potentially causing volatility and overshooting.
- Low Gain: Reacts slowly, which may fail to correct deviations quickly, risking a broken peg. Governance must carefully set this parameter to balance responsiveness with stability.
Comparison to Fixed-Rate Systems
TRFR introduces dynamic monetary policy versus static systems.
- Static Fee Systems: Use a governance-set, fixed stability fee. Corrections require slow, manual governance votes, creating lag during market stress.
- TRFR Systems: Adjust fees autonomously and continuously. This provides faster, more predictable responses to market conditions, reducing reliance on governance latency and improving peg resilience during volatility.
Security & Attack Vectors
While automating policy, TRFR introduces unique considerations:
- Oracle Manipulation: The rule depends on a price oracle. Manipulating the oracle feed can trigger incorrect fee adjustments, destabilizing the system.
- Parameter Risk: An incorrectly set gain coefficient can lead to destructive feedback loops, amplifying price movements instead of damping them.
- Coordination Failure: If market participants do not respond as expected to fee changes (e.g., due to low liquidity), the rule may fail to restore the peg.
Common Misconceptions About TRFR
The Target Rate Feedback Rule (TRFR) is a core monetary policy mechanism in blockchain protocols, but its function is often misunderstood. This section clarifies the most frequent points of confusion.
No, the Target Rate Feedback Rule (TRFR) is a monetary policy mechanism, not a direct stablecoin peg. TRFR algorithmically adjusts a protocol's base interest rate or staking rewards to influence the supply of its native asset and guide its price toward a target. Its goal is long-term price stability and sustainability, not maintaining a rigid 1:1 peg like a stablecoin. For example, a protocol might use TRFR to target a 1% annual appreciation of its token relative to a basket of assets, not a fixed dollar value.
Frequently Asked Questions (FAQ)
The Target Rate Feedback Rule (TRFR) is a core mechanism in DeFi protocols like MakerDAO for autonomously adjusting system parameters to maintain a stablecoin's peg. These questions address its function, implementation, and key differences from other monetary policies.
The Target Rate Feedback Rule (TRFR) is an automated, algorithmic mechanism used in decentralized finance (DeFi) protocols to stabilize a stablecoin's price by dynamically adjusting its target rate or a similar incentive parameter. It works by continuously monitoring the market price of the stablecoin against its peg (e.g., $1). If the price deviates, the algorithm calculates and enacts a new target rate. For instance, if DAI trades below $1, the TRFR might progressively increase the Dai Savings Rate (DSR), incentivizing users to lock DAI in savings contracts, reducing supply, and pushing the price back up. This creates a negative feedback loop where the system self-corrects without manual governance intervention.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.