💛
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
  • Purpose
  • Key Features
  • Events
  1. SMARTCONTRACTS DESCRIPTION
  2. Pass Contract

Affiliate Member

Purpose

AffiliateMember is an abstract smart contract that serves as a foundation for managing an affiliate membership system. It leverages OpenZeppelin's AccessControl for role-based access control, enabling specific functionalities to be restricted to users with certain roles.

Key Features

  • Tracks affiliate members and their relationships (inviters and invitees).

  • Manages bonuses for direct staking, direct betting, and matching bonuses.

Function
Description

getInviter

Returns the inviter of a specific member.

getInviteesCount

Returns the number of invitees a member has.

getMembersCount

Returns the total count of members.

getInvitee

Returns a specific invitee of a member.

getInvitees

Returns all invitees of a member.

claimDirectBettingBonus, claimDirectStakingBonus, claimMatchingBonus

Allows claiming of various bonuses for members.

getClaimedDirectStakingBonus, getClaimedDirectBettingBonus, getClaimedMatchingBonus

Returns the amount of bonuses claimed by a member.

Events

  • NewMember(address indexed member, address indexed inviter, address indexed parent)

PreviousPass ContractNextAffiliate Contract

Last updated 1 year ago

🤖
🤖