@@ -163,8 +163,8 @@ const fundingRateConfig_Low: FundingRateConfig = {
163163
164164 maxFundingFactorPerSecond : percentageToFloat ( "75%" ) . div ( SECONDS_PER_YEAR ) ,
165165
166- thresholdForStableFunding : 0 ,
167- thresholdForDecreaseFunding : percentageToFloat ( "2%" ) ,
166+ thresholdForStableFunding : percentageToFloat ( "4%" ) ,
167+ thresholdForDecreaseFunding : 0 ,
168168} ;
169169
170170const fundingRateConfig_Default : FundingRateConfig = {
@@ -181,8 +181,8 @@ const fundingRateConfig_Default: FundingRateConfig = {
181181
182182 maxFundingFactorPerSecond : percentageToFloat ( "90%" ) . div ( SECONDS_PER_YEAR ) ,
183183
184- thresholdForStableFunding : 0 ,
185- thresholdForDecreaseFunding : percentageToFloat ( "2%" ) ,
184+ thresholdForStableFunding : percentageToFloat ( "4%" ) ,
185+ thresholdForDecreaseFunding : 0 ,
186186} ;
187187
188188const fundingRateConfig_High : FundingRateConfig = {
@@ -199,8 +199,8 @@ const fundingRateConfig_High: FundingRateConfig = {
199199
200200 maxFundingFactorPerSecond : percentageToFloat ( "100%" ) . div ( SECONDS_PER_YEAR ) ,
201201
202- thresholdForStableFunding : 0 ,
203- thresholdForDecreaseFunding : percentageToFloat ( "2%" ) ,
202+ thresholdForStableFunding : percentageToFloat ( "4%" ) ,
203+ thresholdForDecreaseFunding : 0 ,
204204} ;
205205
206206const fundingRateConfig_SingleToken : FundingRateConfig = {
@@ -217,8 +217,8 @@ const fundingRateConfig_SingleToken: FundingRateConfig = {
217217
218218 maxFundingFactorPerSecond : percentageToFloat ( "90%" ) . div ( SECONDS_PER_YEAR ) ,
219219
220- thresholdForStableFunding : 0 ,
221- thresholdForDecreaseFunding : percentageToFloat ( "2%" ) ,
220+ thresholdForStableFunding : percentageToFloat ( "4%" ) ,
221+ thresholdForDecreaseFunding : 0 ,
222222} ;
223223
224224type BorrowingRateConfig = Partial < {
@@ -922,8 +922,8 @@ const config: {
922922 // minCollateralFactor of 0.005 (0.5%) when open interest is 25,000,000 USD
923923 minCollateralFactorForOpenInterestMultiplier : exponentToFloat ( "2e-10" ) ,
924924
925- reserveFactor : percentageToFloat ( "265 %" ) ,
926- openInterestReserveFactor : percentageToFloat ( "260 %" ) ,
925+ reserveFactor : percentageToFloat ( "275 %" ) ,
926+ openInterestReserveFactor : percentageToFloat ( "270 %" ) ,
927927
928928 positionImpactPoolDistributionRate : bigNumberify ( 0 ) , // expandDecimals(230, 33), // 0.2300306+36, 20 SOL / day
929929 minPositionImpactPoolAmount : expandDecimals ( 219 , 9 ) , // 219 SOL
@@ -1366,9 +1366,6 @@ const config: {
13661366 negativeMaxPositionImpactFactor : percentageToFloat ( "0.5%" ) ,
13671367 maxPositionImpactFactorForLiquidations : bigNumberify ( 0 ) , // 0%
13681368
1369- positionFeeFactorForPositiveImpact : percentageToFloat ( "0.05%" ) ,
1370- positionFeeFactorForNegativeImpact : percentageToFloat ( "0.07%" ) ,
1371-
13721369 minCollateralFactor : percentageToFloat ( "1%" ) , // 100x leverage
13731370 minCollateralFactorForOpenInterestMultiplier : exponentToFloat ( "2.5e-9" ) ,
13741371
@@ -2046,9 +2043,6 @@ const config: {
20462043 negativeMaxPositionImpactFactor : percentageToFloat ( "0.5%" ) ,
20472044 maxPositionImpactFactorForLiquidations : bigNumberify ( 0 ) , // 0%
20482045
2049- positionFeeFactorForPositiveImpact : percentageToFloat ( "0.05%" ) ,
2050- positionFeeFactorForNegativeImpact : percentageToFloat ( "0.07%" ) ,
2051-
20522046 fundingDecreaseFactorPerSecond : decimalToFloat ( 0 ) , // not applicable if thresholdForDecreaseFunding = 0
20532047 thresholdForDecreaseFunding : decimalToFloat ( 0 ) , // 0%
20542048
@@ -2332,6 +2326,93 @@ const config: {
23322326 maxOpenInterest : decimalToFloat ( 1_000_000 ) ,
23332327 maxPoolUsdForDeposit : decimalToFloat ( 1_500_000 ) , // 1.5x the max open interest
23342328
2329+ maxLongTokenPoolAmount : expandDecimals ( 600 , 18 ) , // ~2M USD (2x the max open interest)
2330+ maxShortTokenPoolAmount : expandDecimals ( 2_000_000 , 6 ) , // ~2M USD (2x the max open interest)
2331+ } ,
2332+ {
2333+ tokens : { indexToken : "TRUMP" , longToken : "WETH" , shortToken : "USDC" } ,
2334+ virtualTokenIdForIndexToken : hashString ( "PERP:TRUMP/USD" ) ,
2335+ virtualMarketId : hashString ( "SPOT:ETH/USD" ) ,
2336+
2337+ ...syntheticMarketConfig ,
2338+ ...fundingRateConfig_High ,
2339+ ...borrowingRateConfig_HighMax_WithHigherBase ,
2340+
2341+ negativePositionImpactFactor : exponentToFloat ( "5e-7" ) ,
2342+ positivePositionImpactFactor : exponentToFloat ( "2.5e-7" ) ,
2343+ positionImpactExponentFactor : exponentToFloat ( "1.7e0" ) ,
2344+
2345+ negativeSwapImpactFactor : exponentToFloat ( "3.5e-9" ) ,
2346+ positiveSwapImpactFactor : exponentToFloat ( "1.75e-9" ) ,
2347+
2348+ minCollateralFactorForOpenInterestMultiplier : exponentToFloat ( "2e-8" ) ,
2349+
2350+ reserveFactor : percentageToFloat ( "40%" ) , // default is 95%
2351+ openInterestReserveFactor : percentageToFloat ( "35%" ) , // default is 90%
2352+
2353+ maxPnlFactorForTraders : percentageToFloat ( "50%" ) , // default is 60%
2354+
2355+ maxOpenInterest : decimalToFloat ( 750_000 ) ,
2356+ maxPoolUsdForDeposit : decimalToFloat ( 2_500_000 ) ,
2357+
2358+ maxLongTokenPoolAmount : expandDecimals ( 900 , 18 ) ,
2359+ maxShortTokenPoolAmount : expandDecimals ( 3_000_000 , 6 ) ,
2360+ } ,
2361+ {
2362+ tokens : { indexToken : "MELANIA" , longToken : "WETH" , shortToken : "USDC" } ,
2363+ virtualTokenIdForIndexToken : hashString ( "PERP:MELANIA/USD" ) ,
2364+ virtualMarketId : hashString ( "SPOT:ETH/USD" ) ,
2365+
2366+ ...syntheticMarketConfig ,
2367+ ...fundingRateConfig_Default ,
2368+ ...borrowingRateConfig_HighMax_WithHigherBase ,
2369+
2370+ negativePositionImpactFactor : exponentToFloat ( "5e-7" ) ,
2371+ positivePositionImpactFactor : exponentToFloat ( "2.5e-7" ) ,
2372+ positionImpactExponentFactor : exponentToFloat ( "1.7e0" ) ,
2373+
2374+ negativeSwapImpactFactor : exponentToFloat ( "3.5e-9" ) ,
2375+ positiveSwapImpactFactor : exponentToFloat ( "1.75e-9" ) ,
2376+
2377+ minCollateralFactorForOpenInterestMultiplier : exponentToFloat ( "2e-8" ) ,
2378+
2379+ reserveFactor : percentageToFloat ( "40%" ) , // default is 95%
2380+ openInterestReserveFactor : percentageToFloat ( "35%" ) , // default is 90%
2381+
2382+ maxPnlFactorForTraders : percentageToFloat ( "50%" ) , // default is 60%
2383+
2384+ maxOpenInterest : decimalToFloat ( 500_000 ) ,
2385+ maxPoolUsdForDeposit : decimalToFloat ( 750_000 ) , // 1.5x the max open interest
2386+
2387+ maxLongTokenPoolAmount : expandDecimals ( 300 , 18 ) , // ~1M USD (2x the max open interest)
2388+ maxShortTokenPoolAmount : expandDecimals ( 1_000_000 , 6 ) , // ~1M USD (2x the max open interest)
2389+ } ,
2390+ {
2391+ tokens : { indexToken : "ENA" , longToken : "WETH" , shortToken : "USDC" } ,
2392+ virtualTokenIdForIndexToken : hashString ( "PERP:ENA/USD" ) ,
2393+ virtualMarketId : hashString ( "SPOT:ETH/USD" ) ,
2394+
2395+ ...syntheticMarketConfig ,
2396+ ...fundingRateConfig_Default ,
2397+ ...borrowingRateConfig_HighMax_WithHigherBase ,
2398+
2399+ negativePositionImpactFactor : exponentToFloat ( "8e-7" ) ,
2400+ positivePositionImpactFactor : exponentToFloat ( "4e-7" ) ,
2401+ positionImpactExponentFactor : exponentToFloat ( "1.6e0" ) ,
2402+
2403+ negativeSwapImpactFactor : exponentToFloat ( "3.5e-9" ) ,
2404+ positiveSwapImpactFactor : exponentToFloat ( "1.75e-9" ) ,
2405+
2406+ minCollateralFactorForOpenInterestMultiplier : exponentToFloat ( "2e-10" ) ,
2407+
2408+ reserveFactor : percentageToFloat ( "75%" ) , // default is 95%
2409+ openInterestReserveFactor : percentageToFloat ( "70%" ) , // default is 90%
2410+
2411+ maxPnlFactorForTraders : percentageToFloat ( "90%" ) , // default is 60%
2412+
2413+ maxOpenInterest : decimalToFloat ( 1_000_000 ) ,
2414+ maxPoolUsdForDeposit : decimalToFloat ( 1_500_000 ) , // 1.5x the max open interest
2415+
23352416 maxLongTokenPoolAmount : expandDecimals ( 600 , 18 ) , // ~2M USD (2x the max open interest)
23362417 maxShortTokenPoolAmount : expandDecimals ( 2_000_000 , 6 ) , // ~2M USD (2x the max open interest)
23372418 } ,
0 commit comments