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

Add estimateloan and estimatecollateral RPCs #796

Closed
Jouzo opened this issue Oct 19, 2021 · 2 comments
Closed

Add estimateloan and estimatecollateral RPCs #796

Jouzo opened this issue Oct 19, 2021 · 2 comments
Assignees

Comments

@Jouzo
Copy link
Collaborator

Jouzo commented Oct 19, 2021

What would you like to be added:

Add estimateloan RPC to calculate the amount of loan token a vault can take depending on collateral and loan scheme.
estimateloan loantoken vault
loantoken typed as string amount@token
vault should either be vaultId or (collateral amount, loan scheme) tuple

Add estimatecollateral RPC to estimate the collateral ratio.
estimatecollateral collateralamount scheme loantoken
or
estimatecollateral vaultId loantoken

Why is this needed:

As of now, a vault owner as no information as to how much loan token he can take.

@defichain-bot
Copy link
Member

@Jouzo: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

@Jouzo Jouzo self-assigned this Nov 8, 2021
@prasannavl
Copy link
Member

Fixed by #924, #927 and #933.

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

No branches or pull requests

3 participants