💛
BETFIN DOCS
ABOUT BETFIN
ABOUT BETFIN
  • ⭐INTRO
  • 🎯TERMS & CONDITIONS OVERVIEW
  • 📗FAQ OVERVIEW
  • TOKENOMY
    • 🪙BET Token
      • 💛Buy BET token
    • 📊BET initial distribution
      • 📊Team Pool
      • 📊Partners Pool
      • 📊Airdrop Pool
      • 📊Affiliate Pool
      • 📊Bonus Pool
    • 💹Vesting & Unlock plan
    • 🔏Liquidity and lockups
      • Community lockup
      • Team.finance lockups
    • 📗Tokenomy FAQ
  • BETFIN GOVERNANCE
    • 📄Betfin Contract Addresses
      • 👀Verify contracts
    • 🏩Betfin governance
      • ⚙️Timelock Principle
      • ⚙️Multisignature (multisig) Principle
    • 👁️‍🗨️Internal Wallets & External Contracts
    • 📗General FAQ
  • SMARTCONTRACTS DESCRIPTION
    • 🌍Contracts Overview
    • 🤖Core
      • 🤖Partner
      • 🤖Tariff
    • 🤖Conservative Staking
      • 🤖Conservative Staking Pool
    • 🤖Dynamic Staking
      • 🤖Dynamic Staking Pool
    • 🤖Pass Contract
      • 🤖Affiliate Member
    • 🤖Affiliate Contract
      • 🤖Affiliate Fund
    • 🖥️Game Interface
    • 🖥️Bet Interface
    • 📟Predict Contract
      • 📟Predict Game
    • 📟Roulette
      • 📟Roulette Bet
    • 🐞Error Codes
  • AUDITS & BUG BOUNTY
    • ☢️Betfin security audits
    • 🔰Bug Bounty
    • 👷Report an Issue
  • For Developers
    • 💻Web Template
    • 📑Smart Contract Template
Powered by GitBook
On this page
  • Overview
  • Contract Structure
  • Variables
  • Functions
  1. SMARTCONTRACTS DESCRIPTION
  2. Conservative Staking

Conservative Staking Pool

Overview

The Conservative Staking Pool contract implements a staking pool where users can stake tokens for a specified duration. It provides functionalities for staking tokens, claiming rewards, withdrawing stakes, and distributing profits among stakers.

Contract Structure

The Conservative Staking Pool contract utilizes AccessControl and ReentrancyGuard from OpenZeppelin for access control and protection against reentrancy attacks.

Variables

  • duration: Duration of the staking pool.

  • token: ERC20 token contract address.

  • totalStaked: Total amount of tokens staked in the pool.

  • totalProfit: Total profit earned by stakers.

Functions

  • stake: Allows users to stake tokens in the pool.

  • claim: Allows stakers to claim their rewards.

  • withdraw: Allows stakers to withdraw their stakes after the staking duration ends.

  • distributeProfit: Distributes profits among stakers in the pool.

PreviousConservative StakingNextDynamic Staking

Last updated 1 year ago

🤖
🤖