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_unclaimedExample:
Staking Process
User transfers PATH tokens to stake account
Rewards accrue in real-time based on trading volume
User claims rewards (pull-based, gas-efficient)
Unstake based on lock schedule (if applicable)
Last updated

