Closed AlexChien closed 7 years ago
Question from last talk:
Do graphene have such built-in operations such as buy back? Other wise, maybe we need to draft some new operations in artwook.
You may investigate from here https://github.com/artwook/ledger/search?utf8=%E2%9C%93&q=buyback. I believe Graphene has some internal buyback functionality, just need to understand what it actually does and if it fits our needs
I read the codes of the build-in buyback operation, from my understanding, we can't simply use it.
buyback 流程
artwook buyback的问题
Helpful links:
https://bitsharestalk.org/index.php/topic,20008.msg257082.html#msg257082
https://bitsharestalk.org/index.php/topic,20221.msg260411.html#msg260411
https://bitsharestalk.org/index.php/topic,21287.msg276724.html#msg276724
我们上次讨论的结论,从目前的需求出发,价格应该是由mgr设定,玖链审核签名。合规性方面的问题,应该是玖链需要去考虑的问题。
ok,那么还是需要新加接口,设计一下流程。现在内置的不能直接复用。
购买一个 可以被mgr任意设定回购价格 的资产,是有些奇怪的。 用户的角度来说,不太合理
Artwook的buyback流程牵涉到艺术品在链外线下的拍卖,不是纯链上,也不是去中心话的方式。正常的业务流程,mgr设定的价格应该是有一些材料依据的,玖链负责这些材料的审核,至于是否需要token holder来投票通过不是很确定,参考上市公司的回购,大股东提出回购之后,是需要通过董事会的。那么我们这里是否需要设定一个commitee votes(类似proposal),不是很确定? 不过这个是增加了一个条件,原型版本不加上也没有关系,后面再看需要。
最终这个需求最好玖链或project owner能参与进来决定,所以这个milestone不是很着急确定。
嗯,这个需要po 来确定细节。 所以原型,我们可以仿照buyback,设计个forcebuyback账户,不过价格是固定的(可输入)的。
我在测试资产时,资产有一个permission
设置,叫做发行人可以将资产收回
,但是并未在UI中找到相关的操作入口,在cli_wallet中也似乎没有直观的看到。不知道具体是什么意思,我看文档是说,发行人有权从用户手里把资产取回。如果做相应补偿,那就是我们需要的回购了吧。找到相关代码的话,应该是有参考作用的。
创建资产的时候,可以设置 override_authority flag,发行人有权力 做任意的转账。只需要发行人的签名。
override_transfer_operation
确实可以把用户的资产转到管理人账户。我们可以在基于这个做,再做补偿。
There is another issue: Because the art assets could be placed in markets, so we need to cancel all the markets orders before force_buy_back.
Or, in another way, cancel all the markets related to the force_buy_back asset first.
Asset Manager is able to perform forced buyback on asset registered and managed by it.
Asset manager will define total amount of fund to buy back asset
System should calculate buy back price based on the fund to buy back, supply in circulation, etc. System will move asset from user to asset manager and distribute purchasing fund to user.
Question: If system should automatically destroy these assets?