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