Skip to content

Commit

Permalink
fix(liquidationVisibility): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anilhelvaci committed Jan 31, 2024
1 parent 6920d1a commit dd3fbdb
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import {
assertVaultNotification,
} from './assertions.js';
import { Phase } from '../vaultFactory/driver.js';
import { TimeMath } from '@agoric/time';

const trace = makeTracer('TestLiquidationVisibility', false);

Expand Down Expand Up @@ -183,13 +182,13 @@ test('liq-result-scenario-1', async t => {
path: `vaultFactory.managers.manager0.liquidations.${time.absValue.toString()}.vaults.preAuction`,
expected: [
[
"vault0",
'vault0',
{
collateralAmount: collateralAmount,
debtAmount: debtDuringLiquidation
collateralAmount,
debtAmount: debtDuringLiquidation,
},
]
]
],
],
});

await assertVaultState(t, vaultNotifier, 'liquidating');
Expand Down Expand Up @@ -227,13 +226,13 @@ test('liq-result-scenario-1', async t => {
path: `vaultFactory.managers.manager0.liquidations.${time.absValue.toString()}.vaults.preAuction`,
expected: [
[
"vault0",
'vault0',
{
collateralAmount: collateralAmount,
debtAmount: debtDuringLiquidation
collateralAmount,
debtAmount: debtDuringLiquidation,
},
]
]
],
],
});

// TODO: postAuction is not filled yet
Expand All @@ -254,7 +253,6 @@ test('liq-result-scenario-1', async t => {
// ]
// });


// Check that {timestamp}.auctionResult values are correct after auction is completed
await assertStorageData({
t,
Expand All @@ -268,11 +266,11 @@ test('liq-result-scenario-1', async t => {
mintedProceeds: run.make(1680n),
collateralSold: aeth.make(400n),
collateralRemaining: aeth.makeEmpty(),
endTime: endTime,
endTime,
},
});

// Create snapshot of the storage node
// Create snapshot of the storage node
await documentStorageSchema(t, chainStorage, {
note: 'Scenario 1 Liquidation Visibility Snapshot',
node: `vaultFactory.managers.manager0.liquidations.${time.absValue.toString()}`,
Expand Down

0 comments on commit dd3fbdb

Please sign in to comment.