@agoric/portfolio-api 0.1.1-dev-1ed6e5d.0.1ed6e5d → 0.1.1-dev-9bb987f.0.9bb987f

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/portfolio-api",
3
- "version": "0.1.1-dev-1ed6e5d.0.1ed6e5d",
3
+ "version": "0.1.1-dev-9bb987f.0.9bb987f",
4
4
  "description": "API for Portfolio management",
5
5
  "type": "module",
6
6
  "files": [
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": "^20.9 || ^22.11"
53
53
  },
54
- "gitHead": "1ed6e5d3bd8235bc0b32cd9cb6ca720dfaf63f28"
54
+ "gitHead": "9bb987f67986eb98d04d64f5adedafc0f2d10271"
55
55
  }
@@ -51,4 +51,9 @@ export namespace RebalanceStrategy {
51
51
  let Preset: "preset";
52
52
  let PreserveExistingProportions: "pep";
53
53
  }
54
+ /**
55
+ * Treat account deltas smaller than this value (in micro-units) as dust.
56
+ * This corresponds to 100 uusdc, i.e., $0.0001 for USDC.
57
+ */
58
+ export const ACCOUNT_DUST_EPSILON: 100n;
54
59
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;4BAOU,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;;;;;;;;;;;;;qCAgBlD,CAAC,OAAO,sBAAsB,EAAE,MAAM,OAAO,sBAAsB,CAAC;;;;;;0BAUpE,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;;;;;;;;6BAY9C,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;;;;;;;;;;;;;;;;;;gCAmBpD,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;4BAOU,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;;;;;;;;;;;;;qCAgBlD,CAAC,OAAO,sBAAsB,EAAE,MAAM,OAAO,sBAAsB,CAAC;;;;;;0BAUpE,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;;;;;;;;6BAY9C,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;;;;;;;;;;;;;;;;;;gCAmBpD,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC;;;;;AAgBpE;;;GAGG;AACH,mCAAoC,IAAI,CAAC"}
package/src/constants.js CHANGED
@@ -77,3 +77,9 @@ export const RebalanceStrategy = /** @type {const} */ ({
77
77
  PreserveExistingProportions: 'pep',
78
78
  });
79
79
  harden(RebalanceStrategy);
80
+
81
+ /**
82
+ * Treat account deltas smaller than this value (in micro-units) as dust.
83
+ * This corresponds to 100 uusdc, i.e., $0.0001 for USDC.
84
+ */
85
+ export const ACCOUNT_DUST_EPSILON = 100n;