π€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. 
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)
Last updated