Skip to content

Commit

Permalink
chore(liquidationVisibility): update snapshot generated by unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge-Lopes committed Feb 5, 2024
1 parent 1ab4417 commit 85be442
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,237 @@ The actual snapshot is saved in `test-liquidationVisibility.js.snap`.

Generated by [AVA](https://avajs.dev).

## liq-flow-1

> Scenario 1 Liquidation Visibility Snapshot
> The example below illustrates the schema of the data published there.
>
> See also board marshalling conventions (_to appear_).
[
[
'published.vaultFactory.managers.manager0.liquidations.3600.auctionResult',
{
collateralForReserve: {
brand: Object @Alleged: aEth brand {},
value: 0n,
},
collateralOffered: {
brand: Object @Alleged: aEth brand {},
value: 400n,
},
collateralRemaining: {
brand: Object @Alleged: aEth brand {},
value: 0n,
},
collateralSold: {
brand: Object @Alleged: aEth brand {},
value: 400n,
},
endTime: {
absValue: 3614n,
timerBrand: Object @Alleged: timerBrand {},
},
istTarget: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 1680n,
},
mintedProceeds: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 1680n,
},
shortfallToReserve: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 0n,
},
},
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.postAuction',
[],
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.preAuction',
[
[
'vault0',
{
collateralAmount: {
brand: Object @Alleged: aEth brand {},
value: 400n,
},
debtAmount: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 1680n,
},
},
],
],
],
]

## liq-flow-2a

> Scenario 2 Liquidation Visibility Snapshot
> The example below illustrates the schema of the data published there.
>
> See also board marshalling conventions (_to appear_).
[
[
'published.vaultFactory.managers.manager0.liquidations.3600.auctionResult',
{
collateralForReserve: {
brand: Object @Alleged: aEth brand {},
value: 0n,
},
collateralOffered: {
brand: Object @Alleged: aEth brand {},
value: 700n,
},
collateralRemaining: {
brand: Object @Alleged: aEth brand {},
value: 0n,
},
collateralSold: {
brand: Object @Alleged: aEth brand {},
value: 700n,
},
endTime: {
absValue: 3614n,
timerBrand: Object @Alleged: timerBrand {},
},
istTarget: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 5250n,
},
mintedProceeds: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 3185n,
},
shortfallToReserve: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 2065n,
},
},
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.postAuction',
[],
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.preAuction',
[
[
'vault0',
{
collateralAmount: {
brand: Object @Alleged: aEth brand {},
value: 700n,
},
debtAmount: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 5250n,
},
},
],
],
],
]

## liq-flow-2b

> Scenario 3 Liquidation Visibility Snapshot
> The example below illustrates the schema of the data published there.
>
> See also board marshalling conventions (_to appear_).
[
[
'published.vaultFactory.managers.manager0.liquidations.3600.auctionResult',
{
collateralForReserve: {
brand: Object @Alleged: aEth brand {},
value: 12n,
},
collateralOffered: {
brand: Object @Alleged: aEth brand {},
value: 63n,
},
collateralRemaining: {
brand: Object @Alleged: aEth brand {},
value: 5n,
},
collateralSold: {
brand: Object @Alleged: aEth brand {},
value: 8n,
},
endTime: {
absValue: 3614n,
timerBrand: Object @Alleged: timerBrand {},
},
istTarget: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 258n,
},
mintedProceeds: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 34n,
},
shortfallToReserve: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 66n,
},
},
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.postAuction',
[
[
'vault1',
{
Collateral: {
brand: Object @Alleged: aEth brand {},
value: 43n,
},
phase: 'active',
},
],
],
],
[
'published.vaultFactory.managers.manager0.liquidations.3600.vaults.preAuction',
[
[
'vault0',
{
collateralAmount: {
brand: Object @Alleged: aEth brand {},
value: 15n,
},
debtAmount: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 100n,
},
},
],
[
'vault1',
{
collateralAmount: {
brand: Object @Alleged: aEth brand {},
value: 48n,
},
debtAmount: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 158n,
},
},
],
],
],
]

## liq-result-scenario-1

> Scenario 1 Liquidation Visibility Snapshot
Expand Down
Binary file not shown.

0 comments on commit 85be442

Please sign in to comment.