QIP Number: 1
Title: QUIL staking requirement for nodes
Author(s): P. Jameson
Category: Standards Track
Type: Core
Status: Draft
Created: November 8, 2024
Discussions-To: QIP-1: Proposal to include QUIL staking requirement for nodes
Updated: November 8, 2024
Abstract
This proposal introduces a staking mechanism for running nodes in the Quilibrium network. The goal is to disincentivize malicious node operation and align node performance with the security and stability needs of the network by requiring node operators to stake QUIL tokens proportional to the number of threads their nodes will be running.
Motivation
Currently, Quilibrium lacks a staking mechanism for node operations, which has both benefits and drawbacks. The accessibility of running nodes without significant upfront investment has fostered network growth, leading to over 100,000 active nodes during recent releases. However, this ease of participation can also enable bad actors to spin up thousands of nodes for personal gain, potentially exploiting incentive mechanisms and destabilizing the mesh network. Additionally, delays in the 2.0 release have resulted in emissions exceeding target levels for the intended release period.
Implementing a staking mechanism would address these issues by:
- Deterring bad actors through a requirement to stake QUIL tokens to run nodes.
- Reducing the true circulation of QUIL tokens as more would be locked in node operation.
- Strengthening the network’s overall security and performance.
Specification
Definitions
- Staking: The process of locking up a certain number of QUIL tokens as a commitment to operate a node.
- Node Threads: The individual processing units allocated to perform network tasks.
- QUIL Tokens: The native cryptocurrency used within the Quilibrium network.
Detailed Design
- Staking Requirement: Node operators must stake QUIL tokens proportional to the number of threads they intend to run. The formula for staking is defined as:
Stake Required (QUIL) = Base Stake * Number of Threads
- Base Stake: A minimum amount of QUIL tokens set by the network governance that applies per thread.
- Dynamic Adjustments: The base stake can be adjusted periodically based on network health and token value to ensure fair participation and scalability.
- Penalty for Malicious Behavior: Nodes found engaging in disruptive or malicious behavior will have their stakes slashed, losing a portion or all of their staked tokens.
Rationale
This staking mechanism was chosen to balance network growth with stability. By linking the stake amount to the number of threads, we ensure that more resource-intensive nodes contribute more to network security. This approach discourages bad actors from spinning up numerous low-quality nodes as it requires significant capital investment.
Alternative mechanisms considered included a flat fee per node and a tiered stake structure that improved node seniority relative to stake size, but these were dismissed due to their inability to address key risks and potential to centralize rewards.
Backward Compatibility
This proposal introduces a new requirement for node operation that would necessitate software updates. Existing node operators will need to upgrade their systems to comply with staking regulations.
Test Cases
- Single Thread Stake Validation:
- Input: 1 thread, base stake of 100 QUIL.
- Expected output: Stake required = 100 QUIL.
- Multi-thread Stake Validation:
- Input: 12 threads, base stake of 100 QUIL.
- Expected output: Stake required = 1,200 QUIL.
- Penalty Test:
- Malicious node detected with 24 staked threads.
- Expected outcome: 10% of staked tokens are slashed for each 24 hour period that the node is out of compliance.
Security Considerations
Implementing this staking mechanism introduces additional risks such as:
- Centralization Concerns: High stake requirements could deter smaller participants and lead to centralization.
- Token Lockup Risks: Operators may be exposed to liquidity risks due to the lock-up of QUIL tokens.
To mitigate these, mechanisms for gradual stake release and slashing protections will be incorporated.
Reference Implementation
After initial debate, the community will work toward developing a reference implementation.
Copyright
This work is licensed under CCO 1.0 Public Domain Dedication.
Next Steps
- Gather feedback from the Quilibrium community and stakeholders.
- Conduct extensive testing in a controlled testnet environment.
- Integrate feedback, refine the proposal, and prepare for a mainnet implementation.
End of Proposal