@1delta/margin-fetcher 0.0.177 → 0.0.178
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
|
@@ -17514,6 +17514,18 @@ function buildTokenConfig(vaultAddr, reverseLTV, borrowVaults, vaultData) {
|
|
|
17514
17514
|
borrowFactor: 1
|
|
17515
17515
|
};
|
|
17516
17516
|
}
|
|
17517
|
+
if (borrowVaults.has(vaultAddr) && !config[vaultAddr]) {
|
|
17518
|
+
const selfInfo = findInfo(vaultAddr, vaultData);
|
|
17519
|
+
config[vaultAddr] = {
|
|
17520
|
+
category: vaultAddr,
|
|
17521
|
+
label: selfInfo?.vaultName ?? vaultAddr,
|
|
17522
|
+
borrowCollateralFactor: 0,
|
|
17523
|
+
collateralFactor: 0,
|
|
17524
|
+
borrowFactor: 1,
|
|
17525
|
+
debtDisabled: false,
|
|
17526
|
+
collateralDisabled: true
|
|
17527
|
+
};
|
|
17528
|
+
}
|
|
17517
17529
|
return config;
|
|
17518
17530
|
}
|
|
17519
17531
|
function buildEModes(borrowVaults, cluster) {
|