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

Explicit user-facing states for Vaults #3712

Closed
rowgraus opened this issue Aug 17, 2021 · 7 comments
Closed

Explicit user-facing states for Vaults #3712

rowgraus opened this issue Aug 17, 2021 · 7 comments
Assignees
Labels
Core Economy OBSOLETE in favor of INTER-protocol Inter-protocol Overarching Inter Protocol restival to be done before RUN Protocol Purple Team festival
Milestone

Comments

@rowgraus
Copy link

Background
As part of updates to the vault contract, we have discussed having explicit states for vaults which might simplify design. These states would be user-facing.

To discuss:
States required for a vault

@rowgraus rowgraus added Core Economy OBSOLETE in favor of INTER-protocol Inter-protocol Overarching Inter Protocol labels Aug 17, 2021
@rowgraus rowgraus added this to the Mainnet: Phase 1 - Treasury Launch milestone Aug 17, 2021
@rowgraus rowgraus self-assigned this Aug 17, 2021
@rowgraus rowgraus added the MN-1 label Jan 19, 2022
@Tartuffo Tartuffo added the restival to be done before RUN Protocol Purple Team festival label Jan 24, 2022
@Tartuffo
Copy link
Contributor

Tartuffo commented Feb 3, 2022

@rowgraus We need an estimate for this.

@Tartuffo
Copy link
Contributor

Tartuffo commented Feb 4, 2022

Need discussion with @rowgraus @Chris-Hibbert .

@Tartuffo Tartuffo removed the MN-1 label Feb 7, 2022
@Chris-Hibbert
Copy link
Contributor

@turadg you had a list of three vault states, including liquidating. Would you add those here? Are those all the states we're concerned about?

@turadg
Copy link
Member

turadg commented Feb 8, 2022

you had a list of three vault states, including liquidating

When we spoke I was referring to states of a VaultManager, but that's obviated by being able to delete while iterating.

Are those all the states we're concerned about?

This ticket seems to be about Vaults per se, which have these three states: ACTIVE, LIQUIDATING, CLOSED

https://github.com/Agoric/agoric-sdk/blob/master/packages/run-protocol/src/vaultFactory/vault.js#L29-L40

I believe the consumer of that is UI, not the vault manager.

@Tartuffo Tartuffo removed this from the Mainnet: Phase 1 - RUN Protocol milestone Feb 8, 2022
@rowgraus rowgraus removed their assignment Feb 11, 2022
@dtribble
Copy link
Member

I think that we need to record whether the vault was closed normally or via liquidation. Also it will have a transferring state. So I think the states are:

  • ACTIVE - vault is in use and can be changed
  • LIQUIDATING - vault is being liquidated by the vault manager, and cannot be changed by the user
  • CLOSED - vault was closed by the user and all assets have been paid out
  • LIQUIDATED - vault was closed by the manager and ... what's up with the assets?
  • TRANSFER - vault is converted to user state

@dtribble
Copy link
Member

Work better defined in #4539

@Tartuffo
Copy link
Contributor

I set the estimate to 0, since the work will be done on #4539 and don't want to count this closed ticket as "work done".

@Tartuffo Tartuffo added this to the Mainnet 1 milestone Mar 23, 2022
@Tartuffo Tartuffo modified the milestones: Mainnet 1, RUN Protocol RC0 Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Economy OBSOLETE in favor of INTER-protocol Inter-protocol Overarching Inter Protocol restival to be done before RUN Protocol Purple Team festival
Projects
None yet
Development

No branches or pull requests

5 participants