For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trading Fees

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.

Last updated