From fc6a157e74dfe003f1c0a96b3df24f89ef59c5eb Mon Sep 17 00:00:00 2001 From: anilhelvaci Date: Wed, 7 Feb 2024 10:11:32 +0300 Subject: [PATCH] fix(liquidationVisibility): vaults are now displayed in the correct order at `vaults.preAuction` Refs: #13 --- packages/inter-protocol/src/vaultFactory/vaultManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/inter-protocol/src/vaultFactory/vaultManager.js b/packages/inter-protocol/src/vaultFactory/vaultManager.js index 2ce7b9b90b0..63df829c637 100644 --- a/packages/inter-protocol/src/vaultFactory/vaultManager.js +++ b/packages/inter-protocol/src/vaultFactory/vaultManager.js @@ -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,