@gmx-io/sdk 2.0.0 → 2.1.2
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/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -48
- package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +0 -408
- package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -90
- package/build/cjs/src/configs/api.js +1 -1
- package/build/cjs/src/configs/markets.js +0 -42
- package/build/cjs/src/configs/tokens.js +0 -57
- package/build/cjs/src/test/fixtures/arbitrumMarkets.json +0 -45
- package/build/cjs/src/test/fixtures/arbitrumTickers.json +0 -40
- package/build/cjs/src/test/fixtures/arbitrumTokens.json +0 -5
- package/build/cjs/src/utils/__tests__/numbers.spec.js +51 -0
- package/build/cjs/src/utils/gmxAccountApi/api.js +4 -7
- package/build/cjs/src/utils/http/__tests__/chainPins.spec.js +76 -0
- package/build/cjs/src/utils/http/chainPins.js +81 -0
- package/build/cjs/src/utils/http/http.js +3 -0
- package/build/cjs/src/utils/http/httpFallback.js +9 -1
- package/build/cjs/src/utils/numbers/utils.js +4 -3
- package/build/cjs/src/utils/orderTransactions/api.js +11 -6
- package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -48
- package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +0 -408
- package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -90
- package/build/esm/src/configs/api.js +1 -1
- package/build/esm/src/configs/markets.js +0 -42
- package/build/esm/src/configs/tokens.js +0 -57
- package/build/esm/src/test/fixtures/arbitrumMarkets.json +0 -45
- package/build/esm/src/test/fixtures/arbitrumTickers.json +0 -40
- package/build/esm/src/test/fixtures/arbitrumTokens.json +0 -5
- package/build/esm/src/utils/__tests__/numbers.spec.js +52 -1
- package/build/esm/src/utils/gmxAccountApi/api.js +4 -7
- package/build/esm/src/utils/http/__tests__/chainPins.spec.js +74 -0
- package/build/esm/src/utils/http/chainPins.js +76 -0
- package/build/esm/src/utils/http/http.js +3 -0
- package/build/esm/src/utils/http/httpFallback.js +9 -1
- package/build/esm/src/utils/numbers/utils.js +4 -3
- package/build/esm/src/utils/orderTransactions/api.js +11 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types/src/codegen/prebuilt/index.d.ts +42 -588
- package/build/types/src/utils/http/__tests__/chainPins.spec.d.ts +1 -0
- package/build/types/src/utils/http/chainPins.d.ts +9 -0
- package/build/types/src/utils/http/http.d.ts +4 -1
- package/build/types/src/utils/http/httpFallback.d.ts +4 -1
- package/build/types/src/utils/http/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const httpFallback_1 = require("../httpFallback");
|
|
5
|
+
const api_1 = require("../../orderTransactions/api");
|
|
6
|
+
const fetchMock = vitest_1.vi.hoisted(() => vitest_1.vi.fn());
|
|
7
|
+
vitest_1.vi.mock("cross-fetch", () => ({ default: fetchMock }));
|
|
8
|
+
const PREPARE = "/v1/orders/txns/prepare";
|
|
9
|
+
const SUBMIT = "/v1/orders/txns/submit";
|
|
10
|
+
const STATUS = "/v1/orders/txns/status";
|
|
11
|
+
function jsonResponse(status, body) {
|
|
12
|
+
return new Response(JSON.stringify(body), { status, headers: { "Content-Type": "application/json" } });
|
|
13
|
+
}
|
|
14
|
+
(0, vitest_1.describe)("express chain pinning", () => {
|
|
15
|
+
const calls = [];
|
|
16
|
+
const failingOnA = new Set();
|
|
17
|
+
const notFoundOnce = new Set();
|
|
18
|
+
(0, vitest_1.beforeEach)(() => {
|
|
19
|
+
calls.length = 0;
|
|
20
|
+
failingOnA.clear();
|
|
21
|
+
notFoundOnce.clear();
|
|
22
|
+
vitest_1.vi.spyOn(Math, "random").mockReturnValue(0);
|
|
23
|
+
fetchMock.mockImplementation(async (input) => {
|
|
24
|
+
const url = new URL(input);
|
|
25
|
+
calls.push(`${url.origin}${url.pathname}`);
|
|
26
|
+
if (url.origin === "http://a" && failingOnA.has(url.pathname)) {
|
|
27
|
+
return jsonResponse(503, { message: "busy" });
|
|
28
|
+
}
|
|
29
|
+
if (notFoundOnce.delete(url.pathname)) {
|
|
30
|
+
return jsonResponse(404, { message: "not found" });
|
|
31
|
+
}
|
|
32
|
+
if (url.pathname === PREPARE) {
|
|
33
|
+
return jsonResponse(200, { requestId: "req-1", payloadType: "typed-data", mode: "express", payload: {} });
|
|
34
|
+
}
|
|
35
|
+
if (url.pathname === SUBMIT) {
|
|
36
|
+
return jsonResponse(200, { requestId: "req-1", status: "relay_accepted" });
|
|
37
|
+
}
|
|
38
|
+
if (url.pathname === STATUS) {
|
|
39
|
+
return jsonResponse(200, { requestId: "req-1", status: "created" });
|
|
40
|
+
}
|
|
41
|
+
return jsonResponse(404, { message: "not found" });
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
(0, vitest_1.afterEach)(() => {
|
|
45
|
+
vitest_1.vi.restoreAllMocks();
|
|
46
|
+
});
|
|
47
|
+
function newCtx() {
|
|
48
|
+
return { api: new httpFallback_1.HttpClientWithFallback(["http://a", "http://b"]) };
|
|
49
|
+
}
|
|
50
|
+
(0, vitest_1.it)("sends submit and status to the origin that served prepare", async () => {
|
|
51
|
+
failingOnA.add(PREPARE);
|
|
52
|
+
const ctx = newCtx();
|
|
53
|
+
const prepared = await (0, api_1.prepareOrder)(ctx, { kind: "increase", orderType: "market", mode: "express", from: "0x1" });
|
|
54
|
+
await (0, api_1.submitOrder)(ctx, { mode: "express", requestId: prepared.requestId });
|
|
55
|
+
await (0, api_1.fetchOrderStatus)(ctx, { requestId: prepared.requestId });
|
|
56
|
+
(0, vitest_1.expect)(calls).toEqual([`http://a${PREPARE}`, `http://b${PREPARE}`, `http://b${SUBMIT}`, `http://b${STATUS}`]);
|
|
57
|
+
});
|
|
58
|
+
(0, vitest_1.it)("pins status to the origin that served an unpinned submit", async () => {
|
|
59
|
+
failingOnA.add(SUBMIT);
|
|
60
|
+
const ctx = newCtx();
|
|
61
|
+
await (0, api_1.submitOrder)(ctx, { mode: "express", requestId: "req-1" });
|
|
62
|
+
await (0, api_1.fetchOrderStatus)(ctx, { requestId: "req-1" });
|
|
63
|
+
(0, vitest_1.expect)(calls).toEqual([`http://a${SUBMIT}`, `http://b${SUBMIT}`, `http://b${STATUS}`]);
|
|
64
|
+
});
|
|
65
|
+
(0, vitest_1.it)("drops the pin when the pinned origin answers 404", async () => {
|
|
66
|
+
failingOnA.add(PREPARE);
|
|
67
|
+
const ctx = newCtx();
|
|
68
|
+
const prepared = await (0, api_1.prepareOrder)(ctx, { kind: "increase", orderType: "market", mode: "express", from: "0x1" });
|
|
69
|
+
notFoundOnce.add(SUBMIT);
|
|
70
|
+
await (0, vitest_1.expect)((0, api_1.submitOrder)(ctx, { mode: "express", requestId: prepared.requestId })).rejects.toMatchObject({
|
|
71
|
+
statusCode: 404,
|
|
72
|
+
});
|
|
73
|
+
await (0, api_1.fetchOrderStatus)(ctx, { requestId: prepared.requestId });
|
|
74
|
+
(0, vitest_1.expect)(calls).toEqual([`http://a${PREPARE}`, `http://b${PREPARE}`, `http://b${SUBMIT}`, `http://a${STATUS}`]);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postJsonPinned = exports.postJsonPinning = void 0;
|
|
4
|
+
const http_1 = require("./http");
|
|
5
|
+
const MAX_PINS = 256;
|
|
6
|
+
const pinsByApi = new WeakMap();
|
|
7
|
+
function pinsOf(api) {
|
|
8
|
+
let pins = pinsByApi.get(api);
|
|
9
|
+
if (!pins) {
|
|
10
|
+
pins = new Map();
|
|
11
|
+
pinsByApi.set(api, pins);
|
|
12
|
+
}
|
|
13
|
+
return pins;
|
|
14
|
+
}
|
|
15
|
+
function pinClient(api, keys, client) {
|
|
16
|
+
const pins = pinsOf(api);
|
|
17
|
+
for (const key of keys) {
|
|
18
|
+
if (!key)
|
|
19
|
+
continue;
|
|
20
|
+
pins.delete(key);
|
|
21
|
+
pins.set(key, client);
|
|
22
|
+
}
|
|
23
|
+
while (pins.size > MAX_PINS) {
|
|
24
|
+
const oldest = pins.keys().next().value;
|
|
25
|
+
if (oldest === undefined)
|
|
26
|
+
break;
|
|
27
|
+
pins.delete(oldest);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function pinnedClient(api, keys) {
|
|
31
|
+
const pins = pinsByApi.get(api);
|
|
32
|
+
if (!pins)
|
|
33
|
+
return undefined;
|
|
34
|
+
for (const key of keys) {
|
|
35
|
+
if (!key)
|
|
36
|
+
continue;
|
|
37
|
+
const client = pins.get(key);
|
|
38
|
+
if (client) {
|
|
39
|
+
pins.delete(key);
|
|
40
|
+
pins.set(key, client);
|
|
41
|
+
return client;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
function unpinClient(api, keys) {
|
|
47
|
+
const pins = pinsByApi.get(api);
|
|
48
|
+
if (!pins)
|
|
49
|
+
return;
|
|
50
|
+
for (const key of keys) {
|
|
51
|
+
if (key)
|
|
52
|
+
pins.delete(key);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async function postJsonPinning(api, path, body, keysOf, opts) {
|
|
56
|
+
if (!api.postJsonWith) {
|
|
57
|
+
return api.postJson(path, body, opts);
|
|
58
|
+
}
|
|
59
|
+
const { result, client } = await api.postJsonWith(path, body, opts);
|
|
60
|
+
pinClient(api, keysOf(result), client);
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
exports.postJsonPinning = postJsonPinning;
|
|
64
|
+
async function postJsonPinned(api, keys, path, body, opts) {
|
|
65
|
+
const client = pinnedClient(api, keys) ?? api;
|
|
66
|
+
try {
|
|
67
|
+
if (!client.postJsonWith) {
|
|
68
|
+
return await client.postJson(path, body, opts);
|
|
69
|
+
}
|
|
70
|
+
const served = await client.postJsonWith(path, body, opts);
|
|
71
|
+
pinClient(api, keys, served.client);
|
|
72
|
+
return served.result;
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
if (error instanceof http_1.HttpError && error.statusCode === 404) {
|
|
76
|
+
unpinClient(api, keys);
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.postJsonPinned = postJsonPinned;
|
|
@@ -26,7 +26,15 @@ class HttpClientWithFallback {
|
|
|
26
26
|
return this.withFallback((client) => client.fetchJson(path, opts));
|
|
27
27
|
}
|
|
28
28
|
async postJson(path, body, opts) {
|
|
29
|
-
return
|
|
29
|
+
return (await this.postJsonWith(path, body, opts)).result;
|
|
30
|
+
}
|
|
31
|
+
// transform runs after the fallback loop: a deterministic parse error must not re-post to the next origin
|
|
32
|
+
async postJsonWith(path, body, opts) {
|
|
33
|
+
const served = await this.withFallback(async (client) => ({
|
|
34
|
+
result: await client.postJson(path, body),
|
|
35
|
+
client,
|
|
36
|
+
}));
|
|
37
|
+
return { result: opts?.transform ? opts.transform(served.result) : served.result, client: served.client };
|
|
30
38
|
}
|
|
31
39
|
async withFallback(fn) {
|
|
32
40
|
const order = this.getClientOrder();
|
|
@@ -333,13 +333,14 @@ function formatNumberHuman(n, showDollar = false, displayDecimals = 1) {
|
|
|
333
333
|
const isNegative = n < 0;
|
|
334
334
|
const absN = Math.abs(n);
|
|
335
335
|
const sign = showDollar ? "$\u200a" : "";
|
|
336
|
-
|
|
336
|
+
// Promote the suffix when the displayed value rounds to 1000 in the smaller unit.
|
|
337
|
+
if (Number((absN / 1000000).toFixed(displayDecimals)) >= 1000) {
|
|
337
338
|
return `${isNegative ? "-" : ""}${sign}${(absN / 1000000000).toFixed(displayDecimals)}b`;
|
|
338
339
|
}
|
|
339
|
-
if (absN >=
|
|
340
|
+
if (Number((absN / 1000).toFixed(displayDecimals)) >= 1000) {
|
|
340
341
|
return `${isNegative ? "-" : ""}${sign}${(absN / 1000000).toFixed(displayDecimals)}m`;
|
|
341
342
|
}
|
|
342
|
-
if (absN >= 1000) {
|
|
343
|
+
if (Number(absN.toFixed(displayDecimals)) >= 1000) {
|
|
343
344
|
return `${isNegative ? "-" : ""}${sign}${(absN / 1000).toFixed(displayDecimals)}k`;
|
|
344
345
|
}
|
|
345
346
|
return `${isNegative ? "-" : ""}${sign}${absN.toFixed(displayDecimals)}`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeExpressOrder = exports.signPreparedOrder = exports.fetchOrderStatus = exports.prepareCollateral = exports.prepareCancelOrder = exports.prepareEditOrder = exports.submitOrder = exports.prepareOrder = exports.isPrepareOrderError = exports.parsePrepareOrderError = void 0;
|
|
4
|
+
const chainPins_1 = require("../http/chainPins");
|
|
4
5
|
const http_1 = require("../http/http");
|
|
5
6
|
const api_1 = require("../markets/api");
|
|
6
7
|
const numbers_1 = require("../numbers");
|
|
@@ -177,36 +178,40 @@ function parsePrepareResponse(raw) {
|
|
|
177
178
|
validationWarnings: parseValidationWarnings(raw.validationWarnings),
|
|
178
179
|
};
|
|
179
180
|
}
|
|
181
|
+
// the express chain stays on the origin that served it: prepare and submit pin that origin by request id, submit and status reuse it
|
|
182
|
+
function chainKeys(prepared) {
|
|
183
|
+
return [prepared.requestId, prepared.idempotencyKey];
|
|
184
|
+
}
|
|
180
185
|
async function prepareOrder(ctx, request) {
|
|
181
|
-
return ctx.api
|
|
186
|
+
return (0, chainPins_1.postJsonPinning)(ctx.api, "/v1/orders/txns/prepare", request, chainKeys, {
|
|
182
187
|
transform: parsePrepareResponse,
|
|
183
188
|
});
|
|
184
189
|
}
|
|
185
190
|
exports.prepareOrder = prepareOrder;
|
|
186
191
|
async function submitOrder(ctx, request) {
|
|
187
|
-
return ctx.api.
|
|
192
|
+
return (0, chainPins_1.postJsonPinned)(ctx.api, [request.requestId, request.idempotencyKey], "/v1/orders/txns/submit", request);
|
|
188
193
|
}
|
|
189
194
|
exports.submitOrder = submitOrder;
|
|
190
195
|
async function prepareEditOrder(ctx, request) {
|
|
191
|
-
return ctx.api
|
|
196
|
+
return (0, chainPins_1.postJsonPinning)(ctx.api, "/v1/orders/txns/edit/prepare", request, chainKeys, {
|
|
192
197
|
transform: parsePrepareResponse,
|
|
193
198
|
});
|
|
194
199
|
}
|
|
195
200
|
exports.prepareEditOrder = prepareEditOrder;
|
|
196
201
|
async function prepareCancelOrder(ctx, request) {
|
|
197
|
-
return ctx.api
|
|
202
|
+
return (0, chainPins_1.postJsonPinning)(ctx.api, "/v1/orders/txns/cancel/prepare", request, chainKeys, {
|
|
198
203
|
transform: parsePrepareResponse,
|
|
199
204
|
});
|
|
200
205
|
}
|
|
201
206
|
exports.prepareCancelOrder = prepareCancelOrder;
|
|
202
207
|
async function prepareCollateral(ctx, request) {
|
|
203
|
-
return ctx.api
|
|
208
|
+
return (0, chainPins_1.postJsonPinning)(ctx.api, "/v1/orders/txns/collateral/prepare", request, chainKeys, {
|
|
204
209
|
transform: parsePrepareResponse,
|
|
205
210
|
});
|
|
206
211
|
}
|
|
207
212
|
exports.prepareCollateral = prepareCollateral;
|
|
208
213
|
async function fetchOrderStatus(ctx, request) {
|
|
209
|
-
return ctx.api.
|
|
214
|
+
return (0, chainPins_1.postJsonPinned)(ctx.api, [request.requestId, request.idempotencyKey], "/v1/orders/txns/status", request);
|
|
210
215
|
}
|
|
211
216
|
exports.fetchOrderStatus = fetchOrderStatus;
|
|
212
217
|
async function signPreparedOrder(prepared, signer, chainId, accountAddress) {
|
|
@@ -282,14 +282,6 @@
|
|
|
282
282
|
"aboveOptimalUsageBorrowingFactorLong": "0xd7e6ebc67d8a1efac7d3bdb3de25751ed70ca8d24396fa72bf394e1bfdf9d61d",
|
|
283
283
|
"aboveOptimalUsageBorrowingFactorShort": "0xb2b835d37acd5ec71cd8204137bde17eba583baf15e4c3427b11d04301847f89"
|
|
284
284
|
},
|
|
285
|
-
"0x8ea4Fb801493DaD8724F90Fb2e279534fa591366": {
|
|
286
|
-
"optimalUsageFactorLong": "0xf2803b94b8853f3aa5b152198b80419c1ce4d2f2718da8bf0d5529968388075e",
|
|
287
|
-
"optimalUsageFactorShort": "0x6d27cd6bfb659b84fcfaff740ecb0c0ecdf629d66e27e0e0e1596f013597ddf5",
|
|
288
|
-
"baseBorrowingFactorLong": "0xb8fd82ba634da57a851dfa6016f470370fdb5969477a455cbe66d0d4b696d4ea",
|
|
289
|
-
"baseBorrowingFactorShort": "0xabe589596666a3fefc9a90c0d33a6c03f313c6a0b7200711c7f46464aeb0a652",
|
|
290
|
-
"aboveOptimalUsageBorrowingFactorLong": "0xd9deb27462a35266851c84848218affb6db31b6d46732e0877aa5543c5c66f0b",
|
|
291
|
-
"aboveOptimalUsageBorrowingFactorShort": "0x898133354b4736630cebac61f4dd922f240a8f0f4235b8d9faf8bedfc239e919"
|
|
292
|
-
},
|
|
293
285
|
"0xD0a1AFDDE31Eb51e8b53bdCE989EB8C2404828a4": {
|
|
294
286
|
"optimalUsageFactorLong": "0x79837f3b2010f2a070a4e4461159c803c9da9d19cd9ec06ecb975580e550fd31",
|
|
295
287
|
"optimalUsageFactorShort": "0x8044d373dc026daa0543e32c47c7598de5354e407641eaa50f42d04e35611ecc",
|
|
@@ -394,14 +386,6 @@
|
|
|
394
386
|
"aboveOptimalUsageBorrowingFactorLong": "0xb475539acd5162224a3444af5ed246ef1c5f1781f0198e64c95b37cc4450657c",
|
|
395
387
|
"aboveOptimalUsageBorrowingFactorShort": "0x426620bfe0cf820a058a0ad05777b46059bb1efc4b2a701ae95e3c5870ae8998"
|
|
396
388
|
},
|
|
397
|
-
"0x71237F8C3d1484495A136022E16840b70fF84a69": {
|
|
398
|
-
"optimalUsageFactorLong": "0xe78d90436e4f45557db2590938ae3427582bf3a318e2651e12f3dd213a352034",
|
|
399
|
-
"optimalUsageFactorShort": "0xfbc253dd98f105b62bf0c5849cf609d18cc13d612eea7279ed487a25b58a4755",
|
|
400
|
-
"baseBorrowingFactorLong": "0x069e2770f165efc344965bb98a763bc21a17400dba57862e82f7503b6b380bcd",
|
|
401
|
-
"baseBorrowingFactorShort": "0x9cc3615eb65b850dde0b0e3781a05a1f9d85603c01711bc222ddc6180371c1ba",
|
|
402
|
-
"aboveOptimalUsageBorrowingFactorLong": "0x4a8ee117b6672c37927123502ce297de2635aa41c65abe3d3478309ecf34356f",
|
|
403
|
-
"aboveOptimalUsageBorrowingFactorShort": "0x5330b7b1cdcb45be564a288bb155e768d2cb1692db038f1ea490066b4eca7f00"
|
|
404
|
-
},
|
|
405
389
|
"0xfD46a5702D4d97cE0164375744c65F0c31A3901b": {
|
|
406
390
|
"optimalUsageFactorLong": "0x69bcb16a411df2667d192a9dbdce7e83dca9e4ad0f5aee7470c52e4b1f2a85b2",
|
|
407
391
|
"optimalUsageFactorShort": "0x3d9046829f2508278155fb182e2ec3abd41645cd9a1aa316da9632c94059495c",
|
|
@@ -410,22 +394,6 @@
|
|
|
410
394
|
"aboveOptimalUsageBorrowingFactorLong": "0xc527d93e9d44fb570d38404f23058cae3075da4f1a8efbd78dbf36605a3800fa",
|
|
411
395
|
"aboveOptimalUsageBorrowingFactorShort": "0x515d88908e8665dd2b428afe6651d772fa316a392f1d400aba6f5fd41566120b"
|
|
412
396
|
},
|
|
413
|
-
"0x6CB901Cc64c024C3Fe4404c940FF9a3Acc229D2C": {
|
|
414
|
-
"optimalUsageFactorLong": "0x1e5bb6dba07fa3ceb8c5c8daae37f216dcd2448ad5a9b4002e7db744ddffdd0b",
|
|
415
|
-
"optimalUsageFactorShort": "0xc8c365c4745d2f8c71a2e05508187d91087d20ca11d91b1567f45eb3b95212fe",
|
|
416
|
-
"baseBorrowingFactorLong": "0x9cae983ed9f771f1f0e3fdd2178dcfa196aa5d91279694d9084094aa4d080361",
|
|
417
|
-
"baseBorrowingFactorShort": "0x2c8a24ea5f7901a52cae791a67525e85c9b039734ed502d4ab2480438cd4749b",
|
|
418
|
-
"aboveOptimalUsageBorrowingFactorLong": "0xbca34723d022fa40f2810a0fd97d01ab7cf91b5ccd73daf3a58201e8a63024c8",
|
|
419
|
-
"aboveOptimalUsageBorrowingFactorShort": "0xcaad63fb8495d0c171ae4f1f51f20c608b50e4f02e0dcb309ad23e0514f006b8"
|
|
420
|
-
},
|
|
421
|
-
"0x71B7fF592a974e2B501D8A7a11f5c42DcD365244": {
|
|
422
|
-
"optimalUsageFactorLong": "0x4df2fd67550df5878f250dc3dfc57b4dfd817ab08161308a6ace735707dc5bc9",
|
|
423
|
-
"optimalUsageFactorShort": "0x744d75016b4e200d7f96d21778a4600dfd84ee5e9b1949a286d94946e0aab22c",
|
|
424
|
-
"baseBorrowingFactorLong": "0xd6fb0ee5064962ff9215cb492b64147df4ff1f6adf9faa5c60119c7fbec47eb3",
|
|
425
|
-
"baseBorrowingFactorShort": "0x65fe5393c061ab7d27cd72701d489da67744c1b55b7c7fe16cab085261ab0448",
|
|
426
|
-
"aboveOptimalUsageBorrowingFactorLong": "0xa9295d2e694a5b5d50e29c04beefdb81d63ab8943ebce56438e55885a49ac1f8",
|
|
427
|
-
"aboveOptimalUsageBorrowingFactorShort": "0x159e758331eb4a112ef150765d702c60888bbe1dbac094baf4b90a0bd5f6f69b"
|
|
428
|
-
},
|
|
429
397
|
"0xbD48149673724f9cAeE647bb4e9D9dDaF896Efeb": {
|
|
430
398
|
"optimalUsageFactorLong": "0x71f1ef34bafaf3150e1fdf5e6b1e8d31832eaa5d88f9f108a4503e5a5e41588b",
|
|
431
399
|
"optimalUsageFactorShort": "0xa4f72902a52e390bc8ceccf65289e6dfffcea902f35e4fc669475113c3e45546",
|
|
@@ -778,14 +746,6 @@
|
|
|
778
746
|
"aboveOptimalUsageBorrowingFactorLong": "0x91551ab540048fa5892c9ea76f705ce83d782d9adc2fbbc3dbc0704f24d45136",
|
|
779
747
|
"aboveOptimalUsageBorrowingFactorShort": "0x39ae0e51cbb91af2399430ab64e4690dcd3c6a5693c849ea0a4b3a42b87617dd"
|
|
780
748
|
},
|
|
781
|
-
"0x6EeE8098dBC106aEde99763FA5F955A5bBc42C50": {
|
|
782
|
-
"optimalUsageFactorLong": "0xc5d3ef57932d40b9ef196a4a57eeae3c1027a32ef7b6a34cf166069979fe4213",
|
|
783
|
-
"optimalUsageFactorShort": "0x42f11677ada1c42fa727a2ea741dbb6f5b666389aa17ca02adac73c44d3d9a2f",
|
|
784
|
-
"baseBorrowingFactorLong": "0x1778bc0fad1c076dc361d0f5202dd46515c98bc5436b8a59504340dd36793b21",
|
|
785
|
-
"baseBorrowingFactorShort": "0x806893df271d661e281f8bc7fcc8f76b34873d4d2dbd5c744e172825170f2cf7",
|
|
786
|
-
"aboveOptimalUsageBorrowingFactorLong": "0x030d1ce870a32ceba468c3ad1799ba63042f03a68006edf75a9d57e11222edfb",
|
|
787
|
-
"aboveOptimalUsageBorrowingFactorShort": "0xecf06f84c969631a27bfd2ffef485a24b8ebfd9b96e5012177fd4e90c6404403"
|
|
788
|
-
},
|
|
789
749
|
"0xb3588455858a49D3244237CEe00880CcB84b91Dd": {
|
|
790
750
|
"optimalUsageFactorLong": "0x94c4aa621db98cbda9d6162bb79826bbf4b96cd285eb90464ec1785e169674cb",
|
|
791
751
|
"optimalUsageFactorShort": "0x80cf5d6b6ee1b3fd0397a7ee9dc2ebbafdf1ac30da22a880755edd7ebd8ec9d5",
|
|
@@ -1326,14 +1286,6 @@
|
|
|
1326
1286
|
"aboveOptimalUsageBorrowingFactorLong": "0x385cfbaddf7c612dc705c771a6e5b624ee4864e7136c2ea934422fa1db893563",
|
|
1327
1287
|
"aboveOptimalUsageBorrowingFactorShort": "0x57605e0c3285622481bd93af6fef15b512c931b5db53b9a072c8d86dd6621c6a"
|
|
1328
1288
|
},
|
|
1329
|
-
"0xe19da27Bf9733c429445E289B662bECDCa6ce10b": {
|
|
1330
|
-
"optimalUsageFactorLong": "0xd1ab5e55b2308a1fc00f0a4dcfa2bec105ae69918cf2032de077717e35624e27",
|
|
1331
|
-
"optimalUsageFactorShort": "0xdf7b1d9202e4bb2e7abb6a573cc70593772b89fa9a7e9bad4e139938666044a9",
|
|
1332
|
-
"baseBorrowingFactorLong": "0x3241b54354e87d5ae06a41e4aeaa6a34115dadf063d9621f814b2e11099307c8",
|
|
1333
|
-
"baseBorrowingFactorShort": "0x3755d19ffde034f5b43c13d0b7904191836ca26a80930493bba489db125153f9",
|
|
1334
|
-
"aboveOptimalUsageBorrowingFactorLong": "0x80a3a0af00d7c7d55e7bfffde6bc8ea69b652dafd94d7ebe4f20b2a4cdb7537b",
|
|
1335
|
-
"aboveOptimalUsageBorrowingFactorShort": "0xe08a60ae243116c5d4e8f5c2df48367eb2edac52889485b82e216877ffb4ff34"
|
|
1336
|
-
},
|
|
1337
1289
|
"0x94cE6F65188a92F297C7f0A5A7B3cAd9013450F8": {
|
|
1338
1290
|
"optimalUsageFactorLong": "0xdad8117f7fee5bcf38f4a80a250f295a804aacddbe6d0aa0f54ed0505ee815f8",
|
|
1339
1291
|
"optimalUsageFactorShort": "0xf6cdc9a2c99dfe219352a58f2333c48cc3b3c26c6dea227e6ff149fb94577358",
|