🤖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.

Last updated