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

RFC: Backed token / Treasury manager component #93

Open
encody opened this issue Nov 3, 2022 · 0 comments
Open

RFC: Backed token / Treasury manager component #93

encody opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@encody
Copy link
Contributor

encody commented Nov 3, 2022

For smart contracts that manage multiple NEP-141 tokens in a treasury and issue a backed token. Inspired by the Skyward Finance hack. Should work well in conjunction with the existing NEP-141 infrastructure in this package (optional).

  • Provides mint and redeem actions. Each action could be exposed / limited / permissioned by the contract author as desired.
  • Mint action is backed by something (token, NEAR native, etc.). This would be specified by the contract author, probably via some sort of hook.
  • Redeem action would return the backing asset(s) to the redeemer.
  • Mechanism for controlled / limited release (e.g. time release, cliff / vest schedule, etc.)

Request for comments

  • Design suggestions
  • Should the component that would solve the Skyward issue be a "backed token" (i.e. NEP-141 extension of sorts) or a "treasury manager" (contract-agnostic multi-token (NEP-141 only?) manager)
  • Is this component in-scope for this project? It is definitely a little bit more "niche" in use-case, but I think if the component is sufficiently generalized, it could be useful for implementing:
    • Arbitrary token lockups (cliff/vest schedule)
    • Backed tokens (single- and multi-asset)
    • DAO treasuries
@encody encody added enhancement New feature or request question Further information is requested labels Nov 3, 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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant