diff --git a/packages/inter-protocol/src/vaultFactory/vaultManager.js b/packages/inter-protocol/src/vaultFactory/vaultManager.js index 026a86283f1..14e126cbba6 100644 --- a/packages/inter-protocol/src/vaultFactory/vaultManager.js +++ b/packages/inter-protocol/src/vaultFactory/vaultManager.js @@ -232,6 +232,9 @@ export const watchQuoteNotifier = async (notifierP, watcher, ...args) => { * mintedProceeds?: Amount<'nat'>; * collateralSold?: Amount<'nat'>; * collateralRemaining?: Amount<'nat'>; + * debtToBurn?: Amount<'nat'>; + * mintedForReserve?: Amount<'nat'>; + * totalPenalty?: Amount<'nat'>; * endTime?: import('@agoric/time/src/types.js').TimestampRecord | null; * startTime?: import('@agoric/time/src/types.js').TimestampRecord | null; * }} AuctionResultState @@ -776,6 +779,9 @@ export const prepareVaultManagerKit = ( mintedProceeds: plan.mintedProceeds, collateralSold: plan.collateralSold, collateralRemaining: plan.collatRemaining, + debtToBurn: plan.debtToBurn, + mintedForReserve: plan.mintedForReserve, + totalPenalty: plan.totalPenalty, // @ts-expect-error endTime: auctionSchedule?.liveAuctionSchedule.endTime, // @ts-expect-error diff --git a/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.md b/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.md index 303254d9f98..dcf98e240b5 100644 --- a/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.md +++ b/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.md @@ -31,6 +31,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: aEth brand {}, value: 400n, }, + debtToBurn: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 1680n, + }, endTime: { absValue: 3614n, timerBrand: Object @Alleged: timerBrand {}, @@ -39,6 +43,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, }, + mintedForReserve: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 0n, + }, mintedProceeds: { brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, @@ -51,6 +59,10 @@ Generated by [AVA](https://avajs.dev). absValue: 3610n, timerBrand: Object @Alleged: timerBrand {}, }, + totalPenalty: { + brand: Object @Alleged: aEth brand {}, + value: 42n, + }, }, ], [ @@ -104,6 +116,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: aEth brand {}, value: 400n, }, + debtToBurn: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 1680n, + }, endTime: { absValue: 3614n, timerBrand: Object @Alleged: timerBrand {}, @@ -112,6 +128,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, }, + mintedForReserve: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 0n, + }, mintedProceeds: { brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, @@ -124,6 +144,10 @@ Generated by [AVA](https://avajs.dev). absValue: 3610n, timerBrand: Object @Alleged: timerBrand {}, }, + totalPenalty: { + brand: Object @Alleged: aEth brand {}, + value: 42n, + }, }, ], [ @@ -175,6 +199,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: aBtc brand {}, value: 400n, }, + debtToBurn: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 1680n, + }, endTime: { absValue: 3614n, timerBrand: Object @Alleged: timerBrand {}, @@ -183,6 +211,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, }, + mintedForReserve: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 0n, + }, mintedProceeds: { brand: Object @Alleged: ZDEFAULT brand {}, value: 1680n, @@ -195,6 +227,10 @@ Generated by [AVA](https://avajs.dev). absValue: 3610n, timerBrand: Object @Alleged: timerBrand {}, }, + totalPenalty: { + brand: Object @Alleged: aBtc brand {}, + value: 42n, + }, }, ], [ @@ -248,6 +284,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: aEth brand {}, value: 700n, }, + debtToBurn: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 3185n, + }, endTime: { absValue: 3614n, timerBrand: Object @Alleged: timerBrand {}, @@ -256,6 +296,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: ZDEFAULT brand {}, value: 5250n, }, + mintedForReserve: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 0n, + }, mintedProceeds: { brand: Object @Alleged: ZDEFAULT brand {}, value: 3185n, @@ -268,6 +312,10 @@ Generated by [AVA](https://avajs.dev). absValue: 3610n, timerBrand: Object @Alleged: timerBrand {}, }, + totalPenalty: { + brand: Object @Alleged: aEth brand {}, + value: 75n, + }, }, ], [ @@ -321,6 +369,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: aEth brand {}, value: 8n, }, + debtToBurn: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 258n, + }, endTime: { absValue: 3614n, timerBrand: Object @Alleged: timerBrand {}, @@ -329,6 +381,10 @@ Generated by [AVA](https://avajs.dev). brand: Object @Alleged: ZDEFAULT brand {}, value: 258n, }, + mintedForReserve: { + brand: Object @Alleged: ZDEFAULT brand {}, + value: 0n, + }, mintedProceeds: { brand: Object @Alleged: ZDEFAULT brand {}, value: 34n, @@ -341,6 +397,10 @@ Generated by [AVA](https://avajs.dev). absValue: 3610n, timerBrand: Object @Alleged: timerBrand {}, }, + totalPenalty: { + brand: Object @Alleged: aEth brand {}, + value: 7n, + }, }, ], [ diff --git a/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.snap b/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.snap index 05abcee4946..1e4794fc9c7 100644 Binary files a/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.snap and b/packages/inter-protocol/test/liquidationVisibility/snapshots/test-liquidationVisibility.js.snap differ diff --git a/packages/inter-protocol/test/liquidationVisibility/test-liquidationVisibility.js b/packages/inter-protocol/test/liquidationVisibility/test-liquidationVisibility.js index b399abb31fd..5a4934edae3 100644 --- a/packages/inter-protocol/test/liquidationVisibility/test-liquidationVisibility.js +++ b/packages/inter-protocol/test/liquidationVisibility/test-liquidationVisibility.js @@ -248,6 +248,9 @@ test('liq-flow-1', async t => { collateralRemaining: aeth.makeEmpty(), endTime, startTime, + debtToBurn: run.make(1680n), + mintedForReserve: run.makeEmpty(), + totalPenalty: aeth.make(42n), }, }); @@ -581,6 +584,9 @@ test('liq-flow-1.1', async t => { collateralRemaining: aeth.makeEmpty(), endTime, startTime, + debtToBurn: run.make(1680n), + mintedForReserve: run.makeEmpty(), + totalPenalty: aeth.make(42n), }, }); @@ -598,6 +604,9 @@ test('liq-flow-1.1', async t => { collateralRemaining: abtc.makeEmpty(), endTime, startTime, + debtToBurn: run.make(1680n), + mintedForReserve: run.makeEmpty(), + totalPenalty: abtc.make(42n), }, }); @@ -846,6 +855,9 @@ test('liq-flow-2a', async t => { collateralRemaining: aeth.makeEmpty(), endTime, startTime: start1, + debtToBurn: run.make(3185n), + mintedForReserve: run.makeEmpty(), + totalPenalty: aeth.make(75n), }, }); @@ -1114,6 +1126,9 @@ test('liq-flow-2b', async t => { collateralRemaining: aeth.make(5n), endTime, startTime, + debtToBurn: run.make(258n), + mintedForReserve: run.makeEmpty(), + totalPenalty: aeth.make(7n), }, });