@haven-fi/solauto-sdk 1.0.93 → 1.0.94

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.
@@ -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 = 1000000; // Maximum position size
72
+ const maxSize = 500000; // Maximum position size
73
73
  const maxFeeBps = 500; // Fee in basis points for minSize (5%)
74
- const minFeeBps = 10; // Fee in basis points for maxSize (0.1%)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -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 = 1_000_000; // Maximum position size
100
+ const maxSize = 500_000; // Maximum position size
101
101
  const maxFeeBps = 500; // Fee in basis points for minSize (5%)
102
- const minFeeBps = 10; // Fee in basis points for maxSize (0.1%)
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;