@agoric/vats 0.15.1-dev-590740f.0 → 0.15.1-dev-69236fd.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/vats",
|
|
3
|
-
"version": "0.15.1-dev-
|
|
3
|
+
"version": "0.15.1-dev-69236fd.0+69236fd",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"build:boot-viz-sim": "node src/authorityViz.js --sim-chain >docs/boot-sim.dot && dot -Tsvg docs/boot-sim.dot >docs/boot-sim.dot.svg",
|
|
15
15
|
"build:boot-viz-sim-gov": "node src/authorityViz.js --sim-chain --gov >docs/boot-sim-gov.dot && dot -Tsvg docs/boot-sim-gov.dot >docs/boot-sim-gov.dot.svg",
|
|
16
16
|
"build:restart-vats-proposal": "agoric run scripts/restart-vats.js",
|
|
17
|
+
"build:add-STARS-proposal": "agoric run scripts/add-STARS.js",
|
|
17
18
|
"prepack": "tsc --build jsconfig.build.json",
|
|
18
19
|
"postpack": "git clean -f '*.d.ts*'",
|
|
19
20
|
"test": "ava",
|
|
@@ -28,19 +29,19 @@
|
|
|
28
29
|
"author": "Agoric",
|
|
29
30
|
"license": "Apache-2.0",
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@agoric/assert": "0.6.1-dev-
|
|
32
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
33
|
-
"@agoric/governance": "0.10.3-dev-
|
|
34
|
-
"@agoric/inter-protocol": "0.16.1-dev-
|
|
35
|
-
"@agoric/internal": "0.3.3-dev-
|
|
36
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
37
|
-
"@agoric/sharing-service": "0.2.12-dev-
|
|
38
|
-
"@agoric/store": "0.9.3-dev-
|
|
39
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
43
|
-
"@agoric/zone": "0.2.3-dev-
|
|
32
|
+
"@agoric/assert": "0.6.1-dev-69236fd.0+69236fd",
|
|
33
|
+
"@agoric/ertp": "0.16.3-dev-69236fd.0+69236fd",
|
|
34
|
+
"@agoric/governance": "0.10.3-dev-69236fd.0+69236fd",
|
|
35
|
+
"@agoric/inter-protocol": "0.16.1-dev-69236fd.0+69236fd",
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-69236fd.0+69236fd",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-69236fd.0+69236fd",
|
|
38
|
+
"@agoric/sharing-service": "0.2.12-dev-69236fd.0+69236fd",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-69236fd.0+69236fd",
|
|
40
|
+
"@agoric/swingset-vat": "0.32.3-dev-69236fd.0+69236fd",
|
|
41
|
+
"@agoric/time": "0.3.3-dev-69236fd.0+69236fd",
|
|
42
|
+
"@agoric/vat-data": "0.5.3-dev-69236fd.0+69236fd",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-69236fd.0+69236fd",
|
|
44
|
+
"@agoric/zone": "0.2.3-dev-69236fd.0+69236fd",
|
|
44
45
|
"@endo/far": "^0.2.18",
|
|
45
46
|
"@endo/import-bundle": "^0.3.4",
|
|
46
47
|
"@endo/init": "^0.5.56",
|
|
@@ -50,11 +51,11 @@
|
|
|
50
51
|
"jessie.js": "^0.3.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@agoric/cosmic-swingset": "0.41.3-dev-
|
|
54
|
-
"@agoric/deploy-script-support": "0.10.3-dev-
|
|
55
|
-
"@agoric/smart-wallet": "0.5.3-dev-
|
|
56
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
54
|
+
"@agoric/cosmic-swingset": "0.41.3-dev-69236fd.0+69236fd",
|
|
55
|
+
"@agoric/deploy-script-support": "0.10.3-dev-69236fd.0+69236fd",
|
|
56
|
+
"@agoric/smart-wallet": "0.5.3-dev-69236fd.0+69236fd",
|
|
57
|
+
"@agoric/swing-store": "0.9.2-dev-69236fd.0+69236fd",
|
|
58
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-69236fd.0+69236fd",
|
|
58
59
|
"@endo/bundle-source": "^2.5.1",
|
|
59
60
|
"@endo/captp": "^3.1.1",
|
|
60
61
|
"@endo/stream": "^0.3.25",
|
|
@@ -85,5 +86,5 @@
|
|
|
85
86
|
"timeout": "20m",
|
|
86
87
|
"workerThreads": false
|
|
87
88
|
},
|
|
88
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "69236fdbdce1521dd78da104bd54f331d4d2b28f"
|
|
89
90
|
}
|
|
@@ -15,7 +15,7 @@ export function showAmount({ brand, value }: {
|
|
|
15
15
|
* initialMargin: Rational,
|
|
16
16
|
* liquidationMargin: Rational,
|
|
17
17
|
* liquidationPenalty: Rational,
|
|
18
|
-
*
|
|
18
|
+
* stabilityFee: Rational,
|
|
19
19
|
* mintFee: Rational,
|
|
20
20
|
* liquidationPadding?: Rational,
|
|
21
21
|
* },
|
|
@@ -28,7 +28,7 @@ export const AMMDemoState: Record<string, {
|
|
|
28
28
|
initialMargin: Rational;
|
|
29
29
|
liquidationMargin: Rational;
|
|
30
30
|
liquidationPenalty: Rational;
|
|
31
|
-
|
|
31
|
+
stabilityFee: Rational;
|
|
32
32
|
mintFee: Rational;
|
|
33
33
|
liquidationPadding?: Rational;
|
|
34
34
|
};
|
|
@@ -70,7 +70,7 @@ export function poolRates(issuerName: string, record: (typeof AMMDemoState)['ATO
|
|
|
70
70
|
initialMargin: Ratio;
|
|
71
71
|
liquidationMargin: Ratio;
|
|
72
72
|
liquidationPenalty: Ratio;
|
|
73
|
-
|
|
73
|
+
stabilityFee: Ratio;
|
|
74
74
|
mintFee: Ratio;
|
|
75
75
|
liquidationPadding: Ratio | undefined;
|
|
76
76
|
};
|
package/src/core/demoIssuers.js
CHANGED
|
@@ -86,7 +86,7 @@ const defaultConfig = /** @type {const} */ ({
|
|
|
86
86
|
initialMargin: [150n, PCT],
|
|
87
87
|
liquidationMargin: [125n, PCT],
|
|
88
88
|
liquidationPenalty: [10n, PCT],
|
|
89
|
-
|
|
89
|
+
stabilityFee: [250n, BASIS],
|
|
90
90
|
mintFee: [1n, BASIS],
|
|
91
91
|
});
|
|
92
92
|
|
|
@@ -99,7 +99,7 @@ const defaultConfig = /** @type {const} */ ({
|
|
|
99
99
|
* initialMargin: Rational,
|
|
100
100
|
* liquidationMargin: Rational,
|
|
101
101
|
* liquidationPenalty: Rational,
|
|
102
|
-
*
|
|
102
|
+
* stabilityFee: Rational,
|
|
103
103
|
* mintFee: Rational,
|
|
104
104
|
* liquidationPadding?: Rational,
|
|
105
105
|
* },
|
|
@@ -451,7 +451,7 @@ export const poolRates = (issuerName, record, kits, central) => {
|
|
|
451
451
|
initialMargin: toRatio(config.initialMargin, central.brand),
|
|
452
452
|
liquidationMargin: toRatio(config.liquidationMargin, central.brand),
|
|
453
453
|
liquidationPenalty: toRatio(config.liquidationPenalty, central.brand),
|
|
454
|
-
|
|
454
|
+
stabilityFee: toRatio(config.stabilityFee, central.brand),
|
|
455
455
|
mintFee: toRatio(config.mintFee, central.brand),
|
|
456
456
|
// XXX not relevant to AMM pools but poolRates is also used for addVaultType
|
|
457
457
|
liquidationPadding:
|