Skip to content

Commit

Permalink
fix(liquidationVisibility): vaults are now displayed in the correct o…
Browse files Browse the repository at this point in the history
…rder at `vaults.preAuction`

Refs: #13
  • Loading branch information
anilhelvaci committed Feb 7, 2024
1 parent 1138f4b commit fc6a157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/inter-protocol/src/vaultFactory/vaultManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,12 +697,12 @@ export const prepareVaultManagerKit = (
/** @param {VaultData} vaultData */
const writePreAuction = vaultData => {
/** @type PreAuctionState */
const preAuctionState = [...vaultData.entries()].map(
([vault, data]) => [
const preAuctionState = [...vaultData.entries()]
.reverse()
.map(([vault, data]) => [
`vault${vault.getVaultState().idInManager}`,
{ ...data },
],
);
]);

return E(
liquidationRecorderKits.preAuctionRecorderKit.recorder,
Expand Down

0 comments on commit fc6a157

Please sign in to comment.