@agoric/inter-protocol 0.14.1-dev-c2ae5c0.0 → 0.14.1-dev-13c169c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.14.1-dev-c2ae5c0.0+c2ae5c0",
3
+ "version": "0.14.1-dev-13c169c.0+13c169c",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,29 +29,29 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.6.1-dev-c2ae5c0.0+c2ae5c0",
33
- "@agoric/ertp": "0.16.1-dev-c2ae5c0.0+c2ae5c0",
34
- "@agoric/governance": "0.10.1-dev-c2ae5c0.0+c2ae5c0",
35
- "@agoric/internal": "0.3.1-dev-c2ae5c0.0+c2ae5c0",
36
- "@agoric/notifier": "0.6.1-dev-c2ae5c0.0+c2ae5c0",
37
- "@agoric/store": "0.9.1-dev-c2ae5c0.0+c2ae5c0",
38
- "@agoric/time": "0.3.1-dev-c2ae5c0.0+c2ae5c0",
39
- "@agoric/vat-data": "0.5.1-dev-c2ae5c0.0+c2ae5c0",
40
- "@agoric/vats": "0.14.1-dev-c2ae5c0.0+c2ae5c0",
41
- "@agoric/zoe": "0.26.1-dev-c2ae5c0.0+c2ae5c0",
32
+ "@agoric/assert": "0.6.1-dev-13c169c.0+13c169c",
33
+ "@agoric/ertp": "0.16.1-dev-13c169c.0+13c169c",
34
+ "@agoric/governance": "0.10.1-dev-13c169c.0+13c169c",
35
+ "@agoric/internal": "0.3.1-dev-13c169c.0+13c169c",
36
+ "@agoric/notifier": "0.6.1-dev-13c169c.0+13c169c",
37
+ "@agoric/store": "0.9.1-dev-13c169c.0+13c169c",
38
+ "@agoric/time": "0.3.1-dev-13c169c.0+13c169c",
39
+ "@agoric/vat-data": "0.5.1-dev-13c169c.0+13c169c",
40
+ "@agoric/vats": "0.14.1-dev-13c169c.0+13c169c",
41
+ "@agoric/zoe": "0.26.1-dev-13c169c.0+13c169c",
42
42
  "@endo/captp": "^3.1.1",
43
43
  "@endo/eventual-send": "^0.17.2",
44
44
  "@endo/far": "^0.2.18",
45
45
  "@endo/marshal": "^0.8.5",
46
46
  "@endo/nat": "^4.1.27",
47
- "agoric": "0.19.1-dev-c2ae5c0.0+c2ae5c0",
47
+ "agoric": "0.19.1-dev-13c169c.0+13c169c",
48
48
  "jessie.js": "^0.3.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@agoric/deploy-script-support": "0.10.1-dev-c2ae5c0.0+c2ae5c0",
52
- "@agoric/smart-wallet": "0.5.1-dev-c2ae5c0.0+c2ae5c0",
53
- "@agoric/swingset-liveslots": "0.10.1-dev-c2ae5c0.0+c2ae5c0",
54
- "@agoric/swingset-vat": "0.32.1-dev-c2ae5c0.0+c2ae5c0",
51
+ "@agoric/deploy-script-support": "0.10.1-dev-13c169c.0+13c169c",
52
+ "@agoric/smart-wallet": "0.5.1-dev-13c169c.0+13c169c",
53
+ "@agoric/swingset-liveslots": "0.10.1-dev-13c169c.0+13c169c",
54
+ "@agoric/swingset-vat": "0.32.1-dev-13c169c.0+13c169c",
55
55
  "@endo/bundle-source": "^2.5.1",
56
56
  "@endo/init": "^0.5.56",
57
57
  "@endo/promise-kit": "^0.2.56",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "c2ae5c07c7131372c85f61e1895be6c9ae88c604"
82
+ "gitHead": "13c169c76c103c45fb952d4e3362a40a8b56a0d2"
83
83
  }
@@ -73,6 +73,8 @@ const trace = makeTracer('VM');
73
73
  /**
74
74
  * @typedef {object} MetricsNotification
75
75
  *
76
+ * @property {Ratio | null} lockedQuote priceQuote that will be used for liquidation.
77
+ * Non-null from priceLock time until liquidation has taken place.
76
78
  * @property {number} numActiveVaults present count of vaults
77
79
  * @property {number} numLiquidatingVaults present count of liquidating vaults
78
80
  * @property {Amount<'nat'>} totalCollateral present sum of collateral across all vaults
@@ -609,6 +611,11 @@ export const prepareVaultManagerKit = (
609
611
  retainedCollateralSeat.getCurrentAllocation()?.Collateral ??
610
612
  AmountMath.makeEmpty(collateralBrand, 'nat');
611
613
 
614
+ const quote = state.lockedQuote;
615
+ const lockedQuoteRatio = quote
616
+ ? quoteAsRatio(quote.quoteAmount.value[0])
617
+ : null;
618
+
612
619
  /** @type {MetricsNotification} */
613
620
  const payload = harden({
614
621
  numActiveVaults: prioritizedVaults.getCount(),
@@ -625,6 +632,7 @@ export const prepareVaultManagerKit = (
625
632
  totalOverageReceived: state.totalOverageReceived,
626
633
  totalProceedsReceived: state.totalProceedsReceived,
627
634
  totalShortfallReceived: state.totalShortfallReceived,
635
+ lockedQuote: lockedQuoteRatio,
628
636
  });
629
637
 
630
638
  return E(metricsTopicKit.recorder).write(payload);
@@ -1231,7 +1239,7 @@ export const prepareVaultManagerKit = (
1231
1239
  },
1232
1240
 
1233
1241
  lockOraclePrices() {
1234
- const { state } = this;
1242
+ const { state, facets } = this;
1235
1243
  const { storedCollateralQuote } = collateralEphemera(
1236
1244
  state.collateralBrand,
1237
1245
  );
@@ -1244,6 +1252,7 @@ export const prepareVaultManagerKit = (
1244
1252
  );
1245
1253
 
1246
1254
  state.lockedQuote = storedCollateralQuote;
1255
+ facets.helper.writeMetrics();
1247
1256
  return storedCollateralQuote;
1248
1257
  },
1249
1258
  /**