-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: referral #459
feat: referral #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Referral Contract requires a book that manages Caller Address -> Referral Address.
One question: Thinking about preventing people from registering their other wallets as a referral, to manipulate the system (getting more points). We only use this referral contract to know the referral-referee relationships and point calculation/prevention will be on our back-end side, correct? |
@dongwon8247 Yes, that's correct. This package only stores referral-referee relationships and I believe that's how it should be. |
The store field of the keeper handles that role. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done. LGTM
* demo: referral * update considerations * remove unused * global getter * update getter * time guard
Description
This PR introduces a referral system that allows authorized contracts to manage referral relationships between addresses. The system enables tracking and managing referrer-referee relationships.
Structure
Implementation Details
The referral system consists of the following components:
Core Components:
Main Operations:
Register
: Create new referral relationshipsUpdate
: Modify existing referralsRemove
: Delete referral relationshipsGet
,Has
): Check existence and get referral informationSecurity:
Permissions
Only the following addresses can modify referral data: