Collected at openPosition if FEE_FACTOR > 0. The fee is applied to the swapping margin + the borrowed amount. The corresponding LP and treasury split the fees based on _treasuryRate.
openPosition
FEE_FACTOR > 0
_treasuryRate
Last updated 2 years ago