2. Core Staking Mechanism

Basic Staking

Users can stake PATH tokens without any lock period:

pub fn stake(
    ctx: Context<Stake>,
    amount: u64,
    lock_type: LockType,
) -> Result<()>

Flexible Staking (No Lock):

  • No lock period

  • Immediate unstaking available

  • Base reward multiplier: 1.0x

  • Ideal for users who want flexibility

Reward Distribution

Source: 0.1% of all trading volume across all markets

Formula:

Total Staker Fees Collected: F
Total PATH Staked: S
Staker's PATH Staked: s
Staker's Claimable Reward: r

r = (s / S) × F_unclaimed

Example:

Staking Process

  1. User transfers PATH tokens to stake account

  2. Rewards accrue in real-time based on trading volume

  3. User claims rewards (pull-based, gas-efficient)

  4. Unstake based on lock schedule (if applicable)

Last updated