Skip to content

Commit

Permalink
chore: correctly revert removal of param declaration
Browse files Browse the repository at this point in the history
It'll be removed in #7074, I think, but for now it like a change in
this PR.
  • Loading branch information
Chris-Hibbert committed Mar 5, 2023
1 parent fcb3056 commit 4d07a53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/inter-protocol/src/vaultFactory/prioritizedVaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ export const currentDebtToCollateral = vault =>
export const makePrioritizedVaults = (store, higherHighestCb = () => {}) => {
const vaults = makeOrderedVaultStore(store);

// Check if this ratio of debt to collateral would be the highest known. If
// so, reset our highest and invoke the callback. This can be called on new
// vaults and when we get a state update for a vault changing balances.
/** @param {Ratio} collateralToDebt */

/**
* Called back when there's a new highestRatio and it's higher than the previous.
*
Expand All @@ -79,6 +74,11 @@ export const makePrioritizedVaults = (store, higherHighestCb = () => {}) => {
/** @type {string | undefined} */
let firstKey;

// Check if this ratio of debt to collateral would be the highest known. If
// so, reset our highest and invoke the callback. This can be called on new
// vaults and when we get a state update for a vault changing balances.
/** @param {Ratio} collateralToDebt */

/**
* Ratio of the least-collateralized vault, if there is one.
*
Expand Down

0 comments on commit 4d07a53

Please sign in to comment.