🤖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 |
---|---|
| Returns the inviter of a specific member. |
| Returns the number of invitees a member has. |
| Returns the total count of members. |
| Returns a specific invitee of a member. |
| Returns all invitees of a member. |
| Allows claiming of various bonuses for members. |
| Returns the amount of bonuses claimed by a member. |
Events
NewMember(address indexed member, address indexed inviter, address indexed parent)
Last updated