@haven-fi/solauto-sdk 1.0.93 → 1.0.94
Sign up to get free protection for your applications and to get access to all the features.
@@ -69,9 +69,9 @@ function getDebtAdjustmentUsd(liqThresholdBps, supplyUsd, debtUsd, targetLiqUtil
|
|
69
69
|
}
|
70
70
|
function getSolautoFeesBps(isReferred, feeType, positionNetWorthUsd) {
|
71
71
|
const minSize = 10000; // Minimum position size
|
72
|
-
const maxSize =
|
72
|
+
const maxSize = 500000; // Maximum position size
|
73
73
|
const maxFeeBps = 500; // Fee in basis points for minSize (5%)
|
74
|
-
const minFeeBps =
|
74
|
+
const minFeeBps = 50; // Fee in basis points for maxSize (0.5%)
|
75
75
|
const k = 0.55;
|
76
76
|
let feeBps = 0;
|
77
77
|
if (feeType === generated_1.FeeType.Small) {
|
package/package.json
CHANGED
package/src/utils/numberUtils.ts
CHANGED
@@ -97,9 +97,9 @@ export function getSolautoFeesBps(
|
|
97
97
|
total: number;
|
98
98
|
} {
|
99
99
|
const minSize = 10_000; // Minimum position size
|
100
|
-
const maxSize =
|
100
|
+
const maxSize = 500_000; // Maximum position size
|
101
101
|
const maxFeeBps = 500; // Fee in basis points for minSize (5%)
|
102
|
-
const minFeeBps =
|
102
|
+
const minFeeBps = 50; // Fee in basis points for maxSize (0.5%)
|
103
103
|
const k = 0.55;
|
104
104
|
|
105
105
|
let feeBps: number = 0;
|