-
Notifications
You must be signed in to change notification settings - Fork 213
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
referral #5
Comments
Example:
|
Neither caller address nor EOA who sent the transaction doesn't matter for referrals |
Contractadd referral's address to existing method submit as optional argument the event Scannerpure python3 stateless script running from CLI with block range passed via ARGV
File location: depool-dao/apps/depool/scripts/count_referrals.py |
count_referrals.py scanner and test helper are to be implemented in pythonic repo https://github.com/depools/py-oracle. See lidofinance/lido-oracle#1 |
There should be an optional parameter in deposit function that takes a referral eth address eg
deposit_with_referral(uint256 referral) payable
That parameter is either unused or emits an event with referral address. I'd prefer a calldata referral bc it's cheaper, but event's okay too
There should be a script to collect referral data in the following format, given block1 and block2.
between block1 and block2 (both included) there have been referalls:
The easiest and most useful way to make that is probably thegraph subgraph, but something simpler might work too
The text was updated successfully, but these errors were encountered: