Skip to content

Commit

Permalink
size -> count
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 9, 2022
1 parent d0c7612 commit c5bd54d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const makePrioritizedVaults = (reschedulePriceCheck = () => {}) => {
addVault,
entries: vaults.entries,
entriesPrioritizedGTE,
getSize: vaults.getSize,
getCount: vaults.getSize,
highestRatio: firstDebtRatio,
refreshVaultPriority,
removeVault,
Expand Down
2 changes: 1 addition & 1 deletion packages/run-protocol/src/vaultFactory/vaultManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ const helperBehavior = {
metricsNotify: ({ state }) => {
/** @type {MetricsNotification} */
const payload = harden({
numVaults: state.prioritizedVaults.getSize(),
numVaults: state.prioritizedVaults.getCount(),
totalCollateral: state.totalCollateral,
totalDebt: state.totalDebt,
});
Expand Down

0 comments on commit c5bd54d

Please sign in to comment.