Skip to content
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 #1419

Merged
merged 17 commits into from
Jan 29, 2019

Conversation

OpenLedgerApp
Copy link
Contributor

  • initial implementation
  • unit tests: added asset_rewards_test, modified create_advanced_uia

- initial implementation
- unit tests: added asset_rewards_test, modified create_advanced_uia
Copy link
Contributor

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, thanks!

libraries/chain/db_balance.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
libraries/chain/db_balance.cpp Outdated Show resolved Hide resolved
libraries/chain/db_balance.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
libraries/chain/db_market.cpp Outdated Show resolved Hide resolved
tests/tests/market_fee_sharing_tests.cpp Outdated Show resolved Hide resolved
@OpenLedgerApp
Copy link
Contributor Author

Peter, thank you for your comments. They're quite useful!
We have updated our PR

- added market_sharing_whitelist option
- added tests for asset extensions before and after the hardfork 1268
@pmconrad
Copy link
Contributor

I forgot one thing: you must add checks to proposal_create_evaluator to prevent asset_create or asset_update from being included into the blockchain before the hardfork. See proposal_operation_hardfork_visitor. Also add unit tests for this.

@abitmore
Copy link
Member

I forgot one thing: you must add checks to proposal_create_evaluator

And need code to avoid unexpected fee schedule update. See 93110cb

@OpenLedgerApp
Copy link
Contributor Author

And need code to avoid unexpected fee schedule update. See 93110cb

In this PR we didn’t introduce any new operations and didn’t change any logic related to fee schedule.
May i kindly ask you to elaborate a bit on your concerns ?

@OpenLedgerApp
Copy link
Contributor Author

OpenLedgerApp commented Nov 16, 2018

I forgot one thing: you must add checks to proposal_create_evaluator ...

Done.

@pmconrad
Copy link
Contributor

Please add hardfork protection to prevent vesting_balance_create operation with instant_vesting_policy_initializer in

  • vesting_balance_create_evaluator
  • proposal_create_evaluator
  • unit tests for both

@OpenLedgerApp
Copy link
Contributor Author

Please add hardfork protection to prevent vesting_balance_create operation with instant_vesting_policy_initializer ...

Done

@oxarbitrage
Copy link
Member

why api call get_mfs_vesting_balances and cli wallet call were removed ?

@OpenLedgerApp
Copy link
Contributor Author

why api call get_mfs_vesting_balances and cli wallet call were removed ?

That was a temporary solution. Recently we have introduced serialization for vesting_balance_type. Now it is possible to use get_vesting_balances method to distinguish market fee sharing balance.

@thul3
Copy link

thul3 commented Dec 18, 2018

Great direction but in my opinion there are some small lacks for mass adoption.
The first issue which has been proofen in the past is the LTM.Webmasters don't pay to be able to promote an offer.Thats something which will discourage majority of webmasters to promote bitshares.
The next point is to deliver massiv traffic promoters need to be able to calculate.Since it is a refferal program it means the webmaster needs to wait a long time for his full reward.He needs some kind of guarantee that the reward won't decrease after a short time when Asset owners update their shared market fee.Will the market_fee_reward_percent asset option gives the possibility that refferals which has been already sent will get a lower reward if changed ?
I also think there should be a global consenus about the market fee reward percent since why should one Asset owner take advantage of the traffic another registrar/asset owner is getting for paying a share of 50% from trading fee.
I would also like to ask if using that solution will it be possible for registrars to recruite local webmasters to promote your assets and get a cut of the market fee's earned by their recruited webmasters ?

@pmconrad
Copy link
Contributor

pmconrad commented Jan 8, 2019

Please rebase on latest hardfork branch to resolve conflicts.

@MichelSantos
Copy link
Contributor

Great direction but in my opinion there are some small lacks for mass adoption.

@thul3 Your comments about promotion are valuable but this isn't the right forum for that discussion because this Github issue is focused on technical implementations for BSIP-43 on Market Fee Sharing rather than on the merits of BSIP-43.

I encourage you to discuss these comments either in the discussion area for BSIP-43 or alternatively consider discussing an alternative or a supplement to BSIP-43 with the community.

pmconrad
pmconrad previously approved these changes Jan 23, 2019
@pmconrad
Copy link
Contributor

Good for me, thanks!

@pmconrad
Copy link
Contributor

@oxarbitrage I think your comments have been addressed. Please verify and approve if so.

Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great now, thank you for the hard work.

Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hold on, i think i a a problem with the commits history and hardfork date. resulting hardfork date form this pull is the old one:
https://github.com/bitshares/bitshares-core/blob/6b3d6ab81eab813d46a8fd57a4911099199f4036/libraries/chain/hardfork.d/CORE_1268.hf

As there is a rebase that is adding the old date again after that at: 1b9f6c9

please check.

Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you.

@oxarbitrage oxarbitrage merged commit 8714026 into bitshares:hardfork Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants