Fee
The x/fee
module is a core component of the Sunrise blockchain responsible for managing transaction fees. It introduces mechanisms for burning a portion of $RISE tokens used as fees, enforcing fee denominations, and providing flexibility through bypass denominations. This module supports deflationary tokenomics while maintaining an efficient fee system.
Key Features of x/fee
x/fee
Burn Mechanism:
A portion of $RISE tokens used as transaction fees is burned to reduce the circulating supply.
The burn ratio is determined by the
burn_ratio
parameter (default: 50%).
Fee Denomination (
fee_denom
):Specifies the denomination required for transaction fees (default:
"urise"
).Transactions must pay fees in this denomination unless bypassed.
Bypass Denominations (
bypass_denoms
):Allows certain denominations to bypass standard fee restrictions.
Default bypass denomination:
"uvrise"
.
Dynamic Parameter Configuration:
Developers can configure parameters dynamically with validation enforced by the module.
Core Functionality
Fee Deduction and Burning
When a transaction is processed:
Fees are deducted from the sender's account.
A portion of the fees is sent to the fee collector module account.
The remaining portion is burned to reduce
$RISE
token supply.
Parameter Configuration
Fee Denomination (fee_denom
)
Specifies the denomination required for transaction fees (default: "urise"
).
Burn Ratio (burn_ratio
)
Percentage of transaction fees to burn (default: 0.5
). Must be between 0
and 1
.
Bypass Denominations (bypass_denoms
)
List of denominations that bypass fee restrictions (default: ["uvrise"]
).
Example Configuration:
Benefits of the Fee Module
Deflationary Pressure: The burning mechanism introduces deflationary pressure on $RISE tokens, supporting long-term token value.
Fee Flexibility: Configurable parameters like bypass_denoms provide flexibility for specialized transaction scenarios.
For more details and implementation specifics, see the GitHub repository.
Workflow: Fee Deduction and Burning
Below is a sequence diagram illustrating how transaction fees are processed:
Example Usage
Developers can query fee parameters using Sunrise Client JS:
Example Output:
Last updated