@agoric/inter-protocol 0.14.1-dev-d42f8d0.0 → 0.14.1-dev-80bdc60.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-d42f8d0.0+d42f8d0",
3
+ "version": "0.14.1-dev-80bdc60.0+80bdc60",
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-d42f8d0.0+d42f8d0",
33
- "@agoric/ertp": "0.16.1-dev-d42f8d0.0+d42f8d0",
34
- "@agoric/governance": "0.10.1-dev-d42f8d0.0+d42f8d0",
35
- "@agoric/internal": "0.3.1-dev-d42f8d0.0+d42f8d0",
36
- "@agoric/notifier": "0.6.1-dev-d42f8d0.0+d42f8d0",
37
- "@agoric/store": "0.9.1-dev-d42f8d0.0+d42f8d0",
38
- "@agoric/time": "0.3.1-dev-d42f8d0.0+d42f8d0",
39
- "@agoric/vat-data": "0.5.1-dev-d42f8d0.0+d42f8d0",
40
- "@agoric/vats": "0.14.1-dev-d42f8d0.0+d42f8d0",
41
- "@agoric/zoe": "0.26.1-dev-d42f8d0.0+d42f8d0",
32
+ "@agoric/assert": "0.6.1-dev-80bdc60.0+80bdc60",
33
+ "@agoric/ertp": "0.16.1-dev-80bdc60.0+80bdc60",
34
+ "@agoric/governance": "0.10.1-dev-80bdc60.0+80bdc60",
35
+ "@agoric/internal": "0.3.1-dev-80bdc60.0+80bdc60",
36
+ "@agoric/notifier": "0.6.1-dev-80bdc60.0+80bdc60",
37
+ "@agoric/store": "0.9.1-dev-80bdc60.0+80bdc60",
38
+ "@agoric/time": "0.3.1-dev-80bdc60.0+80bdc60",
39
+ "@agoric/vat-data": "0.5.1-dev-80bdc60.0+80bdc60",
40
+ "@agoric/vats": "0.14.1-dev-80bdc60.0+80bdc60",
41
+ "@agoric/zoe": "0.26.1-dev-80bdc60.0+80bdc60",
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-d42f8d0.0+d42f8d0",
47
+ "agoric": "0.19.1-dev-80bdc60.0+80bdc60",
48
48
  "jessie.js": "^0.3.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@agoric/deploy-script-support": "0.10.1-dev-d42f8d0.0+d42f8d0",
52
- "@agoric/smart-wallet": "0.5.1-dev-d42f8d0.0+d42f8d0",
53
- "@agoric/swingset-liveslots": "0.10.1-dev-d42f8d0.0+d42f8d0",
54
- "@agoric/swingset-vat": "0.32.1-dev-d42f8d0.0+d42f8d0",
51
+ "@agoric/deploy-script-support": "0.10.1-dev-80bdc60.0+80bdc60",
52
+ "@agoric/smart-wallet": "0.5.1-dev-80bdc60.0+80bdc60",
53
+ "@agoric/swingset-liveslots": "0.10.1-dev-80bdc60.0+80bdc60",
54
+ "@agoric/swingset-vat": "0.32.1-dev-80bdc60.0+80bdc60",
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": "d42f8d099cb6457d27a5d04e3c91797948040502"
82
+ "gitHead": "80bdc601d42ab5b1e832b57995e4659caef60892"
83
83
  }
@@ -514,7 +514,11 @@ export const prepareAuctionBook = (baggage, zcf, makeRecorderKit) => {
514
514
  calcTargetRatio(),
515
515
  );
516
516
 
517
- if (state.remainingProceedsGoal !== null) {
517
+ if (
518
+ state.remainingProceedsGoal !== null ||
519
+ // XXX use this as an indication that the auction is active
520
+ state.curAuctionPrice !== null
521
+ ) {
518
522
  const incrementToGoal = state.startProceedsGoal
519
523
  ? AmountMath.subtract(nextProceedsGoal, state.startProceedsGoal)
520
524
  : nextProceedsGoal;
@@ -625,7 +629,11 @@ export const prepareAuctionBook = (baggage, zcf, makeRecorderKit) => {
625
629
  Fail`capturedPriceForRound must be set before each round`;
626
630
  assert(capturedPriceForRound);
627
631
 
628
- trace('set startPrice', capturedPriceForRound);
632
+ trace(
633
+ 'set startPrice',
634
+ capturedPriceForRound,
635
+ this.state.startProceedsGoal,
636
+ );
629
637
  this.state.remainingProceedsGoal = this.state.startProceedsGoal;
630
638
  this.state.curAuctionPrice = multiplyRatios(
631
639
  capturedPriceForRound,