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

feat: allow cancelled replace requests to be executed #580

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

gregdhill
Copy link
Member

Signed-off-by: Gregory Hill gregorydhill@outlook.com

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@gregdhill gregdhill force-pushed the feat/recovery-replace branch from 026eb86 to f2c2247 Compare April 19, 2022 15:32
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.

Can you add an integration test for executing a cancelled replace where there was a non-zero additional-collateral amount supplied by the new vault? I think that might be not handled correctly with this pr.

You can use this function with a non-zero amount: https://github.com/interlay/interbtc/blob/master/standalone/runtime/tests/mock/replace_testing_utils.rs#L61

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@gregdhill gregdhill requested a review from sander2 April 20, 2022 09:58
crates/replace/src/lib.rs Outdated Show resolved Hide resolved
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@gregdhill gregdhill merged commit f1ed520 into interlay:master Apr 20, 2022
@gregdhill gregdhill deleted the feat/recovery-replace branch April 20, 2022 18:06
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.

2 participants