-
Notifications
You must be signed in to change notification settings - Fork 649
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
Distribute Asset Market Fees to Referral Program #1268
Comments
We have PoC ready for this functionality. Most likely this should be converted to a BSIP, technical specification is ready as well, see below. Specificationsreward_percent asset optionPercent of market fee that will be paid to buyer's registrar. Set by UIA issuer. market_sharing_whitelist asset optionTODO An optional whitelist (configurable by the UIA Issuer) could provide increased control over who is eligible to get market rewards. New database and wallet api methodsget_account_reward(account, asset_symbol) - Returns information about the reward amount for specific asset. account_reward_objectA new BitShares object type in implementation space impl_account_reward_object_type = 2.18.X that tracks the rewards of a single account/asset pair
account_reward_indexA new index that stores objects of account_reward_object-type in graphene::database and allow random fast access to objects by given criteria
asset_claim_reward_operationA new operation used to transfer reward to the account's balance.
graphene::chain::database new methods
graphene::chain::database modifications
asset_create_evaluator modifications
Unit testsAdd: reward_tests.cpp (asset_rewards_test, asset_claim_reward_test) Modified: fee_tests.cpp, uia_tests.cpp |
Not bad. Please go ahead with a BSIP (replaces BSIP4).
Best if you have developers to help implement it. |
Great initiative @charyury Let's discuss an estimate for drafting the BSIP. I've assigned you to this Issue. We will use this to track progress of the BSIP. However, the BSIP itself will be drafted in the /BSIPS repo, not the /bitshare-core repo. I refined the Core Team Task List within the description. We can adjust as needed going forward. |
Hello, here are the answers from OpenLedger's team to abit's concerns:
We propose to use market_fee_reward_percent (defined in the asset options) for the registrar and then use the original Bitshares mechanism and original reward percentage field (defined for each account during registration) to split between the registrar and referrer. Market fee reward is accumulated on the user account. The users decide when they want to claim the market fee reward and move it to their active balance. There is another operation created asset_claim_reward_operation. Each user pays network fee to call this operation.
We don't recommend to make additional operation reward_split, because it leads to a significant blockchain load increase. So, we offer to add extra attributes to fill_order_operation.
We have updated our description.
That's a very good point! We have thought about it but did not add it to the description as it was not implemented in the prototype yet. |
The new description will come as a BSIP proposal very soon. |
What are the legal implications if this proposal? Will BitShares still pass the Howie test if implemented? If this is implemented we need to make damned sure we set expectations (there is no guaranteed rate of return). |
the official BSIP-43 is here: |
This is not affecting BTS or any other asset in any way as the fees are being distributed to referral program (registrars and referrals), not to specific asset holders. |
work in progress at #1419 |
Great direction but in my opinion there are some small lacks for mass adoption. |
@thul3 Thanks a lot for your valuable comments. Most of them are valid and can be encouraged as a good supplement to BSIP-43.
In any case, the BSIP 43 was a start point of the market fees sharing. Your suggestions can be posted as separate BSIP or supplement to BSIP-43 and then discussed with the community. |
done by #1419 |
User Story
As an
asset owner
I wantan ability to share market fees with registrars and referrals
so thatother people can easily benefit from promoting my asset and attract more traders to it
.Example use cases
Additional Context (optional)
This is introduced originally by Dan in BSIP 4. We suggest to extend this to UIAs as well. This setting is optional for an assets, so the owner is free to use it or not, so does Committee regarding MPAs.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: