-
Notifications
You must be signed in to change notification settings - Fork 122
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
Allow payback of DUSD with vault's collateral #1451
Conversation
TODO:
Looks good otherwise. |
src/masternodes/mn_checks.cpp
Outdated
return Res::Err("tx must have at least one input from token owner"); | ||
|
||
if (!IsVaultPriceValid(mnview, obj.vaultId, height)) | ||
return Res::Err("Cannot payback vault with collateral while any of the asset's price is invalid"); |
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.
why not? we can always payback loans with same coin, cause no oracle price needed.
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.
Let me answer this on the main comments for better visibility later.
It's currently not possible to get some information over the RPC about what's really happening in the vault, right? It would be nice to get an entry in the listvaulthistory. Is this what @prasannavl means with:
|
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Allow payback of DUSD with vault's collateral