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

Adds estimatecollateral RPC #927

Merged
merged 9 commits into from
Dec 2, 2021
Merged

Conversation

Jouzo
Copy link
Collaborator

@Jouzo Jouzo commented Nov 23, 2021

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

Adds estimatecollateral RPC.
This RPC calculates the amount of collateral tokens a vault should have in order to take an amount of loan token and match a target collateral ratio.

Which issue(s) does this PR fixes?:

Fixes part of #796

src/masternodes/rpc_vault.cpp Outdated Show resolved Hide resolved
src/masternodes/rpc_vault.cpp Outdated Show resolved Hide resolved
src/masternodes/rpc_vault.cpp Outdated Show resolved Hide resolved
src/masternodes/rpc_vault.cpp Outdated Show resolved Hide resolved
src/masternodes/rpc_vault.cpp Outdated Show resolved Hide resolved
bvbfan
bvbfan previously approved these changes Nov 23, 2021
@bvbfan bvbfan self-requested a review November 24, 2021 14:54
bvbfan
bvbfan previously approved these changes Nov 24, 2021
@prasannavl prasannavl merged commit 52bba45 into master Dec 2, 2021
@prasannavl prasannavl deleted the feature/estimatecollateral branch December 2, 2021 00:32
@prasannavl prasannavl added this to the 2.2.2 - Fort Canning milestone Dec 7, 2021
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.

4 participants