@1delta/margin-fetcher 0.0.237 → 0.0.238
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7607,6 +7607,9 @@ var getLendersForChain = (c) => {
|
|
|
7607
7607
|
for (const spokeAddr of Object.keys(v4ChainSpokes)) {
|
|
7608
7608
|
lenders.push(aaveV4SpokeLenderKey(spokeAddr));
|
|
7609
7609
|
}
|
|
7610
|
+
if (fluidResolvers()?.[c]) {
|
|
7611
|
+
lenders.push(Lender.FLUID);
|
|
7612
|
+
}
|
|
7610
7613
|
return lenders;
|
|
7611
7614
|
};
|
|
7612
7615
|
var filterLendersByProtocol = (allLenders, protocolList) => {
|
|
@@ -7615,8 +7618,9 @@ var filterLendersByProtocol = (allLenders, protocolList) => {
|
|
|
7615
7618
|
}
|
|
7616
7619
|
const hasMorpho = protocolList.includes(Lender.MORPHO_BLUE);
|
|
7617
7620
|
const hasMoolah = protocolList.includes(Lender.LISTA_DAO);
|
|
7621
|
+
const hasFluid = protocolList.includes(Lender.FLUID);
|
|
7618
7622
|
return allLenders.filter(
|
|
7619
|
-
(lender) => protocolList.includes(lender) || hasMorpho && lender?.startsWith("MORPHO_BLUE") || hasMoolah && lender?.startsWith("LISTA_DAO")
|
|
7623
|
+
(lender) => protocolList.includes(lender) || hasMorpho && lender?.startsWith("MORPHO_BLUE") || hasMoolah && lender?.startsWith("LISTA_DAO") || hasFluid && lender?.startsWith("FLUID")
|
|
7620
7624
|
);
|
|
7621
7625
|
};
|
|
7622
7626
|
var getAavesForChain = () => {
|