Libre Chain Docs
WebsiteAppWalletCreate Account
  • The Libre Platform
    • Libre is a Bitcoin-native, decentralized lending marketplace
    • Borrow
    • Lend
    • Run A Libre Node
    • Validators
    • The Smart Contract Platform
      • Building Smart Contracts on Libre
      • Libre Developer Tools
      • Libre Testnet
      • API Docs
  • DeFi on Libre DEX
    • DeFi
    • libreDEX
    • Ordinals
    • Building on Libre
      • How to add a trading pair
  • BitcoinFi on Libre
    • Glossary
  • The LIBRE Reward Coin
    • A reward system for validators and stakers
    • Supply
    • Mint Rush
    • Spindrop
      • How to Claim the LIBRE Spindrop
      • Eligibility Requirements for the LIBRE Spindrop
  • ACCOUNTS AND WALLETS
    • LIBRE Account Names
      • Cryptographic Keys
    • Creating Multiple Accounts
    • Bitcoin Libre Wallet
    • Anchor Wallet
      • Creating a Libre MainNet Account in Anchor
      • Creating a Libre Testnet Account in Anchor
      • Getting Testnet LIBRE Coins
    • Ledger Hardware Wallet
  • EARN
    • Staking
    • Mining
    • Referrals
    • Become a Validator
    • DAO Tax
    • Libre Lightning Provider
  • Governance
    • Voting Power
    • Validator Election
    • Libre DAO
    • Libre Governance Docs
      • Libre Blockchain Operating Agreement (LBOA)
      • Block Producer Agreement
      • Block Producer Minimum Requirements
    • Libre Mainnet Multisig Gov
      • Oct 2024
      • July 2023
      • June 2023
      • April 2023
      • March 2023
      • February 2023
      • December 2022
  • Technical Details
    • Libre Core Constants
    • Mint Rush Details
    • Staking Details
    • Verifying Code Updates
      • Deployed Smart Contract Versions
  • Cross-Chain Interoperability
    • Cross-Chain Overview
    • Bridge Comparison
    • Libre CrossLink Bridge
      • Technical Whitepaper
      • Bitcoin to Libre (Peg-In Process)
      • Libre to Bitcoin (Peg Out)
    • Bitcoin Lightning Network
    • USDT / Ethereum
    • Legacy pNetwork
    • Bitcoin Audit
Powered by GitBook
On this page
  • Libre Staking Math
  • Libre Staking Table

Was this helpful?

Edit on GitLab
  1. Technical Details

Staking Details

PreviousMint Rush DetailsNextVerifying Code Updates

Last updated 2 years ago

Was this helpful?

Libre Staking Math

The staking return is calculated using the following formula: f(s,t)=min(t)+√(s)∗(Max(t)−Min(t))f(s,t) = min(t) + √ (s) * ( Max(t)-Min(t) )f(s,t)=min(t)+√(s)∗(Max(t)−Min(t)) Where s is the index of time elapsed since day one of staking, t is the staking length.

Min is a function of time that decreases with t, and Max is also a function of t.

The degradation of Min and Max is also a function of the square root of time s and not t. These are core in the inherent game mechanics of the LIBRE token incentives.

This math is implemented in the .

Libre Staking Table

Variable
Type
Value

Stake Date

DATE

Date of User-Initiated Stake

Stake Length

INT

User Defined [1-1460 DAYS] **Required**

Mint Bonus

%

Only applies to stakes created in Mint

Libre Staked

FLOAT

User Defined **Required**

APY

%

=((Alpha0+sqrt(StakeLength/365)*(Beta0-Alpha0))+((AlphaT+sqrt(StakeLength/365)*(BetaT-AlphaT))-(Alpha0+sqrt(StakeLength/365)*(Beta0-Alpha0)))*sqrt(MIN(1,(StakeDate-L))/T))*(1+MintBonus)

Payout

FLOAT

=(StakeLength/365) * LibreStaked * APY + Libre Staked

Payout Date

DATE

=StakeDate + StakeLength [1 - 1460 DAYS]

open-source Libre staking contract