@@ -683,13 +683,13 @@ export function calculateSpreadBN(
683683 shortSpread = Math . max (
684684 shortSpread ,
685685 lastOracleReservePriceSpreadPct . abs ( ) . toNumber ( ) +
686- shortVolSpread . toNumber ( )
686+ shortVolSpread . toNumber ( )
687687 ) ;
688688 } else if ( lastOracleReservePriceSpreadPct . lt ( ZERO ) ) {
689689 longSpread = Math . max (
690690 longSpread ,
691691 lastOracleReservePriceSpreadPct . abs ( ) . toNumber ( ) +
692- longVolSpread . toNumber ( )
692+ longVolSpread . toNumber ( )
693693 ) ;
694694 }
695695 spreadTerms . longSpreadwPS = longSpread ;
@@ -777,7 +777,7 @@ export function calculateSpreadBN(
777777 maxRetreat ,
778778 Math . floor (
779779 ( baseSpread * netRevenueSinceLastFunding . abs ( ) . toNumber ( ) ) /
780- DEFAULT_REVENUE_SINCE_LAST_FUNDING_SPREAD_RETREAT . abs ( ) . toNumber ( )
780+ DEFAULT_REVENUE_SINCE_LAST_FUNDING_SPREAD_RETREAT . abs ( ) . toNumber ( )
781781 )
782782 ) ;
783783 }
@@ -1035,7 +1035,7 @@ export function calculateSpreadReserves(
10351035 maxOffset = Math . max (
10361036 amm . maxSpread / 2 ,
10371037 ( PERCENTAGE_PRECISION . toNumber ( ) / 10000 ) *
1038- ( amm . curveUpdateIntensity - 100 )
1038+ ( amm . curveUpdateIntensity - 100 )
10391039 ) ;
10401040
10411041 const liquidityFraction =
@@ -1052,8 +1052,8 @@ export function calculateSpreadReserves(
10521052 let liquidityFractionAfterDeadband = liquidityFractionSigned ;
10531053 const deadbandPct = amm . referencePriceOffsetDeadbandPct
10541054 ? PERCENTAGE_PRECISION . mul (
1055- new BN ( amm . referencePriceOffsetDeadbandPct as number )
1056- ) . divn ( 100 )
1055+ new BN ( amm . referencePriceOffsetDeadbandPct as number )
1056+ ) . divn ( 100 )
10571057 : ZERO ;
10581058 if ( ! liquidityFractionAfterDeadband . eq ( ZERO ) && deadbandPct . gt ( ZERO ) ) {
10591059 const abs = liquidityFractionAfterDeadband . abs ( ) ;
0 commit comments