💛
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
  1. SMARTCONTRACTS DESCRIPTION

Contracts Overview

Betfin is a smart contract system. The core contract provides fundamental safety guarantee for all parties interacting with staking, affiliates or games.

PreviousGeneral FAQNextCore

Last updated 11 months ago

Here is the table translated into English:

Contract Name

Purpose

Dependencies

Token

Implements the ERC20 token.

-

Timelock

Implements time-based access control for contract functions.

-

Tariff

Manages tariff plans and fee structures.

Core

Pass

Implements ERC721 token with affiliate system and minting logic.

ERC721, AffiliateMember

Partner

Allows partners to place bets and stake funds.

ERC20

Multisend

Allows bulk sending of ERC20 tokens.

ERC20

Multimint

Allows bulk minting of Pass tokens.

Pass

Metadata

Allows members to set metadata.

Pass

Helper

Contains helper functions for profit calculation and distribution.

-

GameInterface

Defines the interface for game contracts.

-

CoreInterface

Defines the interface for the core contract.

-

Core

Implements core logic for game management, staking, and tariffs.

ERC20, StakingInterface, GameInterface, Tariff, Timelock, AffiliateInterface

Common

Contains common data structures.

-

BetsMemory

Manages bets and statistics.

Core

AffiliateFund

Manages the affiliate fund.

ERC20

Affiliate

Implements affiliate logic.

AccessControl, AffiliateInterface

ConservativeStaking

Conservative staking with pools.

StakingInterface, AccessControl, ReentrancyGuard, Pass, ConservativeStakingPool

DynamicStaking

Dynamic staking with pools.

StakingInterface, AccessControl, ReentrancyGuard, Pass, Core

ConservativeStakingPool

Pool for conservative staking.

AccessControl, ReentrancyGuard

DynamicStakingPool

Pool for dynamic staking.

AccessControl, ReentrancyGuard

StakingInterface

Interface for staking contracts.

-

Vesting

Manages token vesting.

ERC20, Ownable

Roulette

Game contract for roulette.

VRFCoordinatorV2Interface, AccessControl, VRFConsumerBaseV2, GameInterface, Core

RouletteBet

Manages individual roulette bets.

Ownable, BetInterface

Predict

Manages prediction games.

AccessControl, GameInterface, CoreInterface, PredictGame

PredictGame

Game contract for prediction games.

Ownable, Predict, ERC20, AggregatorV3Interface

PredictBet

Manages individual prediction bets.

Ownable, BetInterface, Common

DataFeed

Manages and updates data from Chainlink.

AggregatorV3Interface

DataFeedTest

Test version of DataFeed

DataFeed

AffiliateMember

Manages affiliate members.

AccessControl

Lottery

Game contract for lottery LUCKY ROUND.

VRFCoordinatorV2Interface, AccessControl, VRFConsumerBaseV2, GameInterface, Core

LotteryBet

Manages individual lottery bets.

Ownable, BetInterface

AffiliateInterface

Interface for affiliate logic.

-

This table summarizes each contract's purpose and its dependencies, providing an overview of the project structure and functionality.

🌍