Skip to main content

Borrow fees (coming soon)

:::caution Coming soon Borrow is not live. Treat the rates below as the planned on-chain schedule for MarginRFQCore. Names and payloads may change. :::

Protocol fees on Borrow are charged on-chain by MarginRFQCore and transferred to MarginRFQTreasury. Lender interest (interestRateBpsPerAnnum) is not a protocol fee.

Same formula as options fees: power-of-two right shifts. fee = amount >> power. These powers are immutable constants on the core (borrowFeeDivisorByTwo, liquidationFeeDivisorByTwo): not owner-settable like options treasury powers.

Defaults​

FeePowerFractionApprox. bpsCharged onTokenWho paysWhen
Borrow protocol91/51219.53Loan principalLoan tokenPulled from the lender; borrower receives amount - feeborrow
Refinance protocol91/51219.53New loan principalLoan tokenPulled from the new lender; taken from borrower proceeds after the old loan is repaidrefinance
Liquidation protocol71/12878.125Surplus after the lender’s expected amountLoan tokenBorrower’s leftover surplusliquidateFull, liquidatePartial, liquidateEarly

Outstanding principal is the full loan amount, including the borrow fee the borrower never received. Refinance reverts RefinanceInsufficientLoanAmount if the new amount does not cover the old amount owed plus the new borrow fee.

What moves​

ActionLenderBorrowerTreasury
borrowSends full principalReceives principal minus borrow feeBorrow fee
refinanceNew lender sends full new principal; old lender is repaid amount owedReceives newAmount - amountOwed - fee (may be 0)Borrow fee on the new principal
Liquidation (surplus)Expected repayment (capped at collateral / seized value)Remaining surplus after haircut tip/penalty and liquidation feesurplus >> 7
Liquidation (no surplus)Whatever collateral covers00
repay / repayFullCredited repaymentPays amount owed (principal + accrued interest)none

Liquidation surplus is collateralOrSeizedValue - lenderExpected. The protocol fee is taken from that remainder; if the fee exceeds the borrower’s share, the borrower gets 0.

Not charged​

  • No protocol fee on repay, repayFull, lender escrow withdraw, or write-off
  • No referral fees
  • No liquidation fee when there is no surplus over the lender’s expected amount
  • Options premium / underlying / exercise fees are separate: Fees