-
Notifications
You must be signed in to change notification settings - Fork 83
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
wip: vault key split #616
Conversation
crates/replace/src/lib.rs
Outdated
stash_id: T::AccountId, | ||
currency_pair: DefaultVaultCurrencyPair<T>, |
There was a problem hiding this comment.
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
.
There was a problem hiding this 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?
crates/vault-registry/src/types.rs
Outdated
@@ -814,6 +831,10 @@ impl<T: Config> UpdatableVault<T> for RichSystemVault<T> { | |||
) | |||
} | |||
|
|||
fn control(&self) -> T::AccountId { | |||
Pallet::<T>::liquidation_vault_account_id() |
There was a problem hiding this comment.
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?
Closing this in favour of the operator / delegator model. |
Implements #599. The migration still needs to be added, but I'm opening this to get some early feedback.