@morpho-dev/router 0.4.1 → 0.5.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/README.md +18 -5
- package/dist/chunk-Bo1DHCg-.mjs +18 -0
- package/dist/cli.js +2654 -2331
- package/dist/index.browser.d.mts +458 -484
- package/dist/index.browser.d.mts.map +1 -1
- package/dist/index.browser.d.ts +458 -484
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +623 -304
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +592 -294
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +623 -686
- package/dist/index.node.d.mts.map +1 -1
- package/dist/index.node.d.ts +623 -686
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +919 -583
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +886 -571
- package/dist/index.node.mjs.map +1 -1
- package/docs/integrator.md +1 -1
- package/package.json +5 -5
- package/dist/chunk-jass6xSI.mjs +0 -13
package/docs/integrator.md
CHANGED
|
@@ -71,7 +71,7 @@ For *Exit borrow (repay)*, the offer must be denominated in **obligation units**
|
|
|
71
71
|
|
|
72
72
|
When multiple offers rely on the same liquidity source, it is possible to **overcommit** liquidity (i.e., promise the same units of liquidity to multiple offers). Without protection, executing one offer can make another offer in the same batch invalid, causing **unpredictable batch failures**. The router’s goal is to make taker execution as reliable as possible, especially for **batched** execution (multicalls).
|
|
73
73
|
|
|
74
|
-
The router enforces a simple rule: **liquidity promised by a group of offers is reserved and cannot be promised twice**. For example, if a Vault V1 position has 80 units available and Offer A reserves 50 units, then a second offer attempting to reserve 50 units from the same position will only see
|
|
74
|
+
The router enforces a simple rule: **liquidity promised by a group of offers is reserved and cannot be promised twice**. For example, if a Vault V1 position has 80 units available and Offer A reserves 50 units, then a second offer attempting to reserve 50 units from the same position will only see 30 units as available and will be capped accordingly.
|
|
75
75
|
|
|
76
76
|
The same concept applies to exit intents (shares and debt): the router prevents overcommitting those balances as well.
|
|
77
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-dev/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Router package for Morpho protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@types/pako": "^2.0.4",
|
|
45
45
|
"@types/pg": "^8.15.5",
|
|
46
46
|
"drizzle-kit": "^0.31.1",
|
|
47
|
-
"prool": "^0.
|
|
48
|
-
"tsdown": "^0.
|
|
47
|
+
"prool": "^0.2.2",
|
|
48
|
+
"tsdown": "^0.20.1",
|
|
49
49
|
"@repo/config": "1.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@electric-sql/pglite": "^0.3.1",
|
|
53
|
-
"@hono/node-server": "^1.
|
|
53
|
+
"@hono/node-server": "^1.19.9",
|
|
54
54
|
"@opentelemetry/api": "^1.9.0",
|
|
55
55
|
"@opentelemetry/exporter-trace-otlp-proto": "^0.208.0",
|
|
56
56
|
"@opentelemetry/id-generator-aws-xray": "^2.0.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"commander": "^13.1.0",
|
|
66
66
|
"dotenv": "^17.2.1",
|
|
67
67
|
"drizzle-orm": "^0.43.1",
|
|
68
|
-
"hono": "^4.
|
|
68
|
+
"hono": "^4.11.5",
|
|
69
69
|
"js-base64": "^3.7.8",
|
|
70
70
|
"marked": "^17.0.1",
|
|
71
71
|
"openapi-fetch": "^0.15.0",
|
package/dist/chunk-jass6xSI.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (all) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
return target;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __export as t };
|