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

Fix wrong number of openVaults and openAuctions in getloaninfo #986

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

Jouzo
Copy link
Collaborator

@Jouzo Jouzo commented Dec 14, 2021

What kind of PR is this?:

/kind fix

What this PR does / why we need it:

Uses ForEachVault instead of ForEachVaultCollateral to get the correct number of open vaults and not the number of active vaults with collaterals.
Uses ForEachVaultAuction to iterate over each auctions instead of using listauctions RPC that limits to 100 by default.

Which issue(s) does this PR fixes?:

Fixes #985

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.

getloaninfo and listvaults info mismatch
3 participants