@1delta/margin-fetcher 0.0.191 → 0.0.193
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/dist/index.js
CHANGED
|
@@ -7606,17 +7606,17 @@ function range(n) {
|
|
|
7606
7606
|
}
|
|
7607
7607
|
var AAVE_V3_EMODES = (chain, lender) => {
|
|
7608
7608
|
if (chain === Chain.ETHEREUM_MAINNET) {
|
|
7609
|
-
if (lender === Lender.AAVE_V3) return range(
|
|
7610
|
-
if (lender === Lender.AAVE_V3_PRIME) return range(
|
|
7609
|
+
if (lender === Lender.AAVE_V3) return range(50);
|
|
7610
|
+
if (lender === Lender.AAVE_V3_PRIME) return range(12);
|
|
7611
7611
|
}
|
|
7612
7612
|
if (chain === Chain.ARBITRUM_ONE) {
|
|
7613
|
-
if (lender === Lender.AAVE_V3) return range(
|
|
7613
|
+
if (lender === Lender.AAVE_V3) return range(12);
|
|
7614
7614
|
}
|
|
7615
7615
|
if (chain === Chain.BASE) {
|
|
7616
|
-
if (lender === Lender.AAVE_V3) return range(
|
|
7616
|
+
if (lender === Lender.AAVE_V3) return range(15);
|
|
7617
7617
|
}
|
|
7618
7618
|
if (chain === Chain.PLASMA_MAINNET) {
|
|
7619
|
-
if (lender === Lender.AAVE_V3) return range(
|
|
7619
|
+
if (lender === Lender.AAVE_V3) return range(25);
|
|
7620
7620
|
}
|
|
7621
7621
|
return [0, 1, 2, 3, 4, 5, 6];
|
|
7622
7622
|
};
|
|
@@ -12410,13 +12410,11 @@ function decodeMorphoMarkets(bytes) {
|
|
|
12410
12410
|
return markets;
|
|
12411
12411
|
}
|
|
12412
12412
|
function decodeListaMarkets(bytes) {
|
|
12413
|
-
console.log("bytes", bytes);
|
|
12414
12413
|
if (bytes.length % LISTA_RECORD_SIZE !== 0) {
|
|
12415
12414
|
throw new Error(
|
|
12416
12415
|
`Invalid data length ${bytes.length}; not a multiple of ${LISTA_RECORD_SIZE} bytes per record`
|
|
12417
12416
|
);
|
|
12418
12417
|
}
|
|
12419
|
-
console.log("bytes", bytes);
|
|
12420
12418
|
const markets = [];
|
|
12421
12419
|
for (let i = 0; i < bytes.length; i += LISTA_RECORD_SIZE) {
|
|
12422
12420
|
let o = i;
|