@agoric/inter-protocol 0.13.2-dev-bdb08a7.0 → 0.13.2-dev-690b2b4.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.13.2-dev-bdb08a7.0+bdb08a7",
3
+ "version": "0.13.2-dev-690b2b4.0+690b2b4",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-bdb08a7.0+bdb08a7",
33
- "@agoric/ertp": "0.15.4-dev-bdb08a7.0+bdb08a7",
34
- "@agoric/governance": "0.9.2-dev-bdb08a7.0+bdb08a7",
35
- "@agoric/internal": "0.2.2-dev-bdb08a7.0+bdb08a7",
36
- "@agoric/notifier": "0.5.2-dev-bdb08a7.0+bdb08a7",
37
- "@agoric/store": "0.8.4-dev-bdb08a7.0+bdb08a7",
38
- "@agoric/swingset-liveslots": "0.9.1-dev-bdb08a7.0+bdb08a7",
39
- "@agoric/swingset-vat": "0.30.3-dev-bdb08a7.0+bdb08a7",
40
- "@agoric/time": "0.2.2-dev-bdb08a7.0+bdb08a7",
41
- "@agoric/vat-data": "0.4.4-dev-bdb08a7.0+bdb08a7",
42
- "@agoric/vats": "0.13.1-dev-bdb08a7.0+bdb08a7",
43
- "@agoric/zoe": "0.25.4-dev-bdb08a7.0+bdb08a7",
32
+ "@agoric/assert": "0.5.2-dev-690b2b4.0+690b2b4",
33
+ "@agoric/ertp": "0.15.4-dev-690b2b4.0+690b2b4",
34
+ "@agoric/governance": "0.9.2-dev-690b2b4.0+690b2b4",
35
+ "@agoric/internal": "0.2.2-dev-690b2b4.0+690b2b4",
36
+ "@agoric/notifier": "0.5.2-dev-690b2b4.0+690b2b4",
37
+ "@agoric/store": "0.8.4-dev-690b2b4.0+690b2b4",
38
+ "@agoric/swingset-liveslots": "0.9.1-dev-690b2b4.0+690b2b4",
39
+ "@agoric/swingset-vat": "0.30.3-dev-690b2b4.0+690b2b4",
40
+ "@agoric/time": "0.2.2-dev-690b2b4.0+690b2b4",
41
+ "@agoric/vat-data": "0.4.4-dev-690b2b4.0+690b2b4",
42
+ "@agoric/vats": "0.13.1-dev-690b2b4.0+690b2b4",
43
+ "@agoric/zoe": "0.25.4-dev-690b2b4.0+690b2b4",
44
44
  "@endo/bundle-source": "^2.4.2",
45
45
  "@endo/captp": "^2.0.18",
46
46
  "@endo/eventual-send": "^0.16.8",
@@ -50,8 +50,8 @@
50
50
  "@endo/promise-kit": "^0.2.52"
51
51
  },
52
52
  "devDependencies": {
53
- "@agoric/deploy-script-support": "0.9.5-dev-bdb08a7.0+bdb08a7",
54
- "@agoric/smart-wallet": "0.4.3-dev-bdb08a7.0+bdb08a7",
53
+ "@agoric/deploy-script-support": "0.9.5-dev-690b2b4.0+690b2b4",
54
+ "@agoric/smart-wallet": "0.4.3-dev-690b2b4.0+690b2b4",
55
55
  "@endo/init": "^0.5.52",
56
56
  "@fast-check/ava": "^1.1.3",
57
57
  "ava": "^5.1.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "bdb08a7f80da1a20faea1139b3381b982c7fc203"
81
+ "gitHead": "690b2b4888b7b19a8ff5ad46056ca8a8e25780a1"
82
82
  }
@@ -39,6 +39,7 @@ const nonalphanumeric = /[^A-Za-z0-9]/g;
39
39
  /**
40
40
  * @typedef {{
41
41
  * state: {
42
+ * totalFeeBurned: Amount<'nat'>,
42
43
  * totalFeeMinted: Amount<'nat'>,
43
44
  * },
44
45
  * facets: {
@@ -103,6 +104,7 @@ const start = async (zcf, privateArgs, baggage) => {
103
104
  'liquidityBrandForBrand',
104
105
  );
105
106
 
107
+ /** @type {() => Promise<ZCFMint<'nat'>>} */
106
108
  const takeFeeMint = async () => {
107
109
  if (baggage.has('feeMint')) {
108
110
  return baggage.get('feeMint');
@@ -381,7 +383,14 @@ const start = async (zcf, privateArgs, baggage) => {
381
383
  updateMetrics({ state });
382
384
  };
383
385
 
386
+ /**
387
+ *
388
+ * @param {MethodContext} context
389
+ * @param {Amount<'nat'>} reduction
390
+ * @returns {void}
391
+ */
384
392
  const burnFeesToReduceShortfall = ({ state }, reduction) => {
393
+ trace('burnFeesToReduceShortfall', reduction);
385
394
  reduction = AmountMath.coerce(feeKit.brand, reduction);
386
395
  const feeKeyword = keywordForBrand.get(feeKit.brand);
387
396
  const feeBalance = collateralSeat.getAmountAllocated(feeKeyword);