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

Revenue sharing for authenticators via proxy on TPID #35

Open
prcolaco opened this issue Aug 20, 2020 · 2 comments
Open

Revenue sharing for authenticators via proxy on TPID #35

prcolaco opened this issue Aug 20, 2020 · 2 comments

Comments

@prcolaco
Copy link
Contributor

Problem:
A regular wallet that integrates FIO Protocol is able to generate revenue by setting TPID in the transactions that allow it and receive that way a share of the fees to that account. This is a great tool to incentivise wallets and dapps to integrate with the protocol, but when a dapp uses an Authenticator as Anchor, Scatter or our project in the future, then it becomes impossible to share that revenue between the dapp and the authenticator, due to TPID accept only one account and a contract cannot be deployed to that account to perform the split.

Suggested solution:
When performing the payout of each TPID, the fio.treasury::tpidclaim action could check if the account is a proxy, and possibly some other flag in the voters table (there are reserved2 and reserved3 placeholders) so that the payout could be split equally to all accounts voted by the proxy, instead of the proxy account itself. This way it would be easy to setup revenue sharing and also clean, transparent, on-chain, trust-less and verifiable by all parties. Of course this would require all the accounts voted by the proxy to be producer accounts... maybe that new flag, say "tpidproxy", could remove that requirement of producer account? in this case some extra checks should also be done in voteproxy and in autoproxy code...

@aaroncox
Copy link

I'd probably avoid using the proxy field itself just to avoid situations where the account receiving the TPID payouts is indeed also utilized as a proxy. IMHO best not to mix responsibilities, and just add a new field specifically for this purpose.

@prcolaco
Copy link
Contributor Author

prcolaco commented Sep 4, 2020

I'd probably avoid using the proxy field itself just to avoid situations where the account receiving the TPID payouts is indeed also utilized as a proxy. IMHO best not to mix responsibilities, and just add a new field specifically for this purpose.

I suggested the creation of tpidproxy field exactly because of that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants