💛
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
  • Role-based Access Control
  • Constants
  • Events
  1. SMARTCONTRACTS DESCRIPTION
  2. Affiliate Contract

Affiliate Fund

Overview

The AffiliateFund smart contract manages the affiliate fund within the application. It facilitates the distribution of bonuses to affiliates based on their activities and conditions set by the affiliate program.

Role-based Access Control

The contract implements role-based access control with two roles: TIMELOCK and SERVICE. These roles control access to functions responsible for setting affiliate contracts and managing bonuses.

Constants

  • DIRECT_STAKING_BONUS: Percentage of direct staking bonus.

  • DIRECT_BETTING_BONUS: Percentage of direct betting bonus.

  • MAX_CLAIM_DAILY: Maximum amount that can be claimed daily.

  • MAX_CLAIM_DAILY_PERCENT: Maximum percentage of staked amount that can be claimed daily.

Events

  • MatchingBonusClaimed: Triggered when a matching bonus is claimed.

  • DirectBonusClaimed: Triggered when a direct bonus is claimed.

  • NewAffiliate: Triggered when a new affiliate contract is set.

  • NewMaxClaimDaily: Triggered when the maximum claim daily value is updated.

The Affiliate Fund smart contract manages an affiliate fund within the application. It:

  • Handles the distribution of bonuses to affiliates based on their activities and conditions set by the affiliate program.

  • Allows affiliates to claim matching bonuses and direct bonuses.

  • Tracks daily claimed bonuses for affiliates to ensure adherence to daily limits.

  • Enables the setting of the affiliate contract address and maximum daily claim value.

PreviousAffiliate ContractNextGame Interface

Last updated 1 year ago

🤖
🤖