LogX Docs
  • LogX Aggregator
    • Trading Guide
      • Open Position - Market Order
      • Close Position - Market Order
      • Positions
      • Open Position - Limit Order
      • Close Position - Limit Order
      • Cancel Order
      • Orders
      • Open Position - TPSL Order
      • Close Position - TPSL Order
    • Functional Guide
      • Chains
      • Exchanges
      • Routing
      • Assets
      • Fees
    • Technical Guide
      • Architecture
      • Contracts
    • Protocol Details
      • Audits
      • APIs
      • Bug Bounty
  • LogX Perp Dex
    • Overview
    • Liquidity
      • Liquidity Providers
      • LLP Token
    • Chains and Pairs
    • Fee Structure
    • Incentives and Rewards
    • Contracts
      • Blast
    • Technical Overview
      • Open/Increase a market Position
      • Close/Decrease a Market position
      • Market Order Execution
      • Placing a Limit order
      • Limit and TPSL Order Execution
      • Liquidations
      • Adding/Removing Liquidity
      • Staking
  • Audit
Powered by GitBook
On this page
  1. LogX Perp Dex
  2. Technical Overview

Staking

RewardRouter contract also exposes functions for staking and unstaking LLP.

In order to stake your LLP

  1. Call RewardRouter.stakeLlp function with:

  • llpAmount: amount of LLP you want to stake

  1. The amount of LLP you want to stake is transferred from msg.sender to the RewardTracker contract, and equivalent fLLP tokens are minted for msg.sender.

In order to unstake LLP

  1. Call RewardRouter.unstakeLlp function with:

  • amount: amount of LLP you want to unstake

  1. In this transaction, the amount of fLLP specified is burned, and the LLP is returned back to msg.sender.

  2. In the same step, the incentives collected for users against the staked LLP are also disbursed to msg.sender.

However, the user can also claim his or her reward without unstaking LLP by calling:

  1. RewardTracker.claim functions with:

  • _receiver: address where the user wants to claim the rewards.

  1. After you call the RewardTracker.claim function, whatever amount of claimable tokens a user has is transferred from the RewardTracker contract to _receiver’s address.

Note: Rewards against the staked LLP are disbursed weekly, which means that claimable rewards for every user are updated weekly.

PreviousAdding/Removing LiquidityNextAudit

Last updated 1 year ago