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

[Feature Request]: DAOSpace Grant as free state #140

Open
jolestar opened this issue Sep 20, 2022 · 0 comments
Open

[Feature Request]: DAOSpace Grant as free state #140

jolestar opened this issue Sep 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jolestar
Copy link
Member

jolestar commented Sep 20, 2022

Feature Request

Describe the Feature Request

Grant as free state or liquid assets, so It can transfer between users and be staked in other modules, such as mortgage loans.

But the problem is how to revoke the Grant.

Option 1.

Each Grant has an id. To withdraw Token from the DAO through the Grant, the user must pass in the mut reference of the Grant. At this time, if DAO want to revoke a Grant, DAO need to mark the id as deprecated and record it in the DAO. Third parties need to check whether the Grant is deprecated when they use it.

Option 2.

The Grant cannot be revoked.


Grant 可以作为自由状态,可以在用户间转让,或者质押到其他的 module 中,比如抵押借款。

但带来一个问题是如何收回 Grant?

方案一:

每个 Grant 有个 id,用户要从 DAO 中通过 Grant 提款,需要将 Grant 的 mut 引用传递进来。这时候,如果要回收某个 Grant,只需要将该 id 标记为废弃,记录在 DAO 中。第三方使用时需要检查 Grant 是否失效。

方案二:

Grant 不能收回。这个好像也不合理。

Additional Context

#136

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

@jolestar jolestar added the enhancement New feature or request label Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant