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 estimatevault RPC #933

Merged
merged 4 commits into from
Dec 2, 2021
Merged

Adds estimatevault RPC #933

merged 4 commits into from
Dec 2, 2021

Conversation

Jouzo
Copy link
Collaborator

@Jouzo Jouzo commented Nov 25, 2021

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

Adds estimatevault RPC.
This RPC takes an amount of collateral tokens and an amount of loan tokens to estimate the resulting vault

./src/defi-cli -testnet estimatevault '["1000.0000000@DFI"]' '["0.6599999@GOOGL"]'
{
  "collateralValue": 3003.06883000,
  "loanValue": 1928.78370776,
  "informativeRatio": 155.69754233,
  "collateralRatio": 156
}

Which issue(s) does this PR fixes?:

Fixes part of #796

@prasannavl prasannavl merged commit dfe93ea into master Dec 2, 2021
@prasannavl prasannavl deleted the estimate_vault branch December 2, 2021 00:20
@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