@haven-fi/solauto-sdk 1.0.467 → 1.0.468
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.
@@ -76,8 +76,8 @@ function getDebtAdjustmentUsd(liqThresholdBps, supplyUsd, debtUsd, targetLiqUtil
|
|
76
76
|
function getSolautoFeesBps(isReferred, targetLiqUtilizationRateBps, positionNetWorthUsd, rebalanceDirection) {
|
77
77
|
const minSize = 10000; // Minimum position size
|
78
78
|
const maxSize = 500000; // Maximum position size
|
79
|
-
const maxFeeBps =
|
80
|
-
const minFeeBps =
|
79
|
+
const maxFeeBps = 100; // Fee in basis points for minSize (1%)
|
80
|
+
const minFeeBps = 25; // Fee in basis points for maxSize (0.25%)
|
81
81
|
const k = 1.5;
|
82
82
|
if (targetLiqUtilizationRateBps !== undefined &&
|
83
83
|
targetLiqUtilizationRateBps === 0) {
|
package/package.json
CHANGED
package/src/utils/numberUtils.ts
CHANGED
@@ -105,8 +105,8 @@ export function getSolautoFeesBps(
|
|
105
105
|
} {
|
106
106
|
const minSize = 10_000; // Minimum position size
|
107
107
|
const maxSize = 500_000; // Maximum position size
|
108
|
-
const maxFeeBps =
|
109
|
-
const minFeeBps =
|
108
|
+
const maxFeeBps = 100; // Fee in basis points for minSize (1%)
|
109
|
+
const minFeeBps = 25; // Fee in basis points for maxSize (0.25%)
|
110
110
|
const k = 1.5;
|
111
111
|
|
112
112
|
if (
|