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

wip: vault key split #616

Closed

Conversation

daniel-savu
Copy link
Contributor

Implements #599. The migration still needs to be added, but I'm opening this to get some early feedback.

@daniel-savu daniel-savu requested review from sander2 and gregdhill May 24, 2022 10:07
Comment on lines 210 to 211
stash_id: T::AccountId,
currency_pair: DefaultVaultCurrencyPair<T>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably merge this into one argument, the VaultId.

Copy link
Member

@sander2 sander2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about register_address (as long as we have that)? And all the redeem functions? And refund?

@@ -814,6 +831,10 @@ impl<T: Config> UpdatableVault<T> for RichSystemVault<T> {
)
}

fn control(&self) -> T::AccountId {
Pallet::<T>::liquidation_vault_account_id()
Copy link
Member

@sander2 sander2 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really make sense for the liquidation vault. Would it be possible to move this function to the RichVault impl, rather than the trait impl?

@sander2 sander2 marked this pull request as draft June 1, 2022 09:47
@daniel-savu
Copy link
Contributor Author

daniel-savu commented Jan 18, 2023

Closing this in favour of the operator / delegator model.

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

Successfully merging this pull request may close these issues.

3 participants