@haven-fi/solauto-sdk 1.0.681 → 1.0.682
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.
@@ -66,7 +66,7 @@ class RebalanceTxBuilder {
|
|
66
66
|
}
|
67
67
|
async flashLoanRequirements(attemptNum) {
|
68
68
|
const intermediaryLiqUtilizationRateBps = this.intermediaryLiqUtilizationRateBps();
|
69
|
-
const maxLtvRateBps = (0, utils_1.getMaxLiqUtilizationRateBps)(this.client.pos.state.maxLtvBps, this.client.pos.state.liqThresholdBps, 0.
|
69
|
+
const maxLtvRateBps = (0, utils_1.getMaxLiqUtilizationRateBps)(this.client.pos.state.maxLtvBps, this.client.pos.state.liqThresholdBps, 0.01);
|
70
70
|
if (intermediaryLiqUtilizationRateBps < maxLtvRateBps) {
|
71
71
|
return undefined;
|
72
72
|
}
|
package/package.json
CHANGED
@@ -162,7 +162,7 @@ export class RebalanceTxBuilder {
|
|
162
162
|
const maxLtvRateBps = getMaxLiqUtilizationRateBps(
|
163
163
|
this.client.pos.state.maxLtvBps,
|
164
164
|
this.client.pos.state.liqThresholdBps,
|
165
|
-
0.
|
165
|
+
0.01
|
166
166
|
);
|
167
167
|
if (intermediaryLiqUtilizationRateBps < maxLtvRateBps) {
|
168
168
|
return undefined;
|