-
Notifications
You must be signed in to change notification settings - Fork 30
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
Vault wallet migration between currencies #484
Comments
In the case of interlay/interbtc#1116 since we migrate the entire Vault I'm wondering if it is sufficient to simply rename the wallets? We will have a problem with re-scanning however since the issue keys will always be re-imported for the |
I think the primary reason we went with separate wallets was the theft checking indeed. But I guess it also helps with the (prometheus) monitoring. I think we also have a lock per wallet to ensure that tx creation is atomic with the sending, but that could be refactored. Rescanning logic would also need to be refactored to fetch issues for all vaults. Having said that, I'm not necessarily against merging the wallets, but I'd probably ask Dom to sign off on it |
IMO it would be good to merge wallets for the following reasons:
Technically the downside is that vaults will need to ensure that they have enough BTC left once they withdraw some in case of liquidations: if the same account has a DOT and USDT vault with the DOT portion being liquidated, then they can withdraw parts but not all of the BTC. But I don't see this as a blocker. Withdrawing BTC is anyway a manual process. |
What about the monitoring though? |
I think it's fine to adjust the monitoring to sum the entire iBTC issued against the vault against the BTC holdings. |
We'll need a companion to interlay/interbtc#1116 that migrates bitcoin wallets
The text was updated successfully, but these errors were encountered: