Skip to content

Commit

Permalink
turn margin fee negative
Browse files Browse the repository at this point in the history
  • Loading branch information
nissoh committed Jan 15, 2024
1 parent 820cf83 commit 2e04dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/src/v2/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function getMarginFee(marketInfo: IMarketInfo, forPositiveImpact: boolean
? marketInfo.config.positionFeeFactorForPositiveImpact
: marketInfo.config.positionFeeFactorForNegativeImpact

return applyFactor(sizeDeltaUsd, factor)
return -applyFactor(sizeDeltaUsd, factor)
}


Expand Down

0 comments on commit 2e04dfd

Please sign in to comment.