Borrowing Fee
Last updated
Last updated
Takers pay borrowing fees similar to interest paid to borrow tokens on lending platforms and it based on the utilization ratio of makers in that market.
In general, takers pay borrowing fees for all open positions.
Maker (LP) positions generally receive a borrowing fee, and pay the fee in some instances.
Borrowing fees are pending until settlement by the Vault when certain events occur.
A positive fee is one that is payed; a negative fee is one that is received (earned).
Borrowing fees are paid directly to/from the position margin, thus affecting margin ratio over time.
Borrowing fees are initially pending fees, and can be settled by calling _settleBorrowingFee
.
Long and short states are separate and independent.
Receiver: a user that earns borrowing fees: generally a subset of makers; cannot increase position proactively; cannot censor orders in any circumstances.
Payer: a user that pays borrowing fees; any user that is not a receiver is a payer.
Takers can only be payers; makers/LPs can be either payer or receiver.
A trader can have one or two roles
Maker: trader who guarantees to provide passive liquidity
Taker: trader who takes that liquidity
If a certain type of maker qualifies as a receiver, the system will compensate the maker with borrowing fees paid by takers.
Borrowing fees for long and short positions are separate. Unlike traditional funding rates based on position size, borrowing fee rates are based on open notional. Example:
Receives borrowing fees based on their utilization ratio
Does not pay borrowing fees
Maker must fill any order received. Notes:
The only way we can think of that can guarantee is to whitelist smart contract controlled by DAO, and the pricing mechanism has no off-chain component
Other than that there’s no perfect way to guarantee this on-chain. bad actor can accept order in a ridiculous price if she does not want to accept the order. restricting a price range may help but still not good enough
Maker cannot increase position actively. Notes:
This limitation is needed to prevent whitelisted makers from gaming borrowing fees.
Can reduce position actively, which gives the maker some characteristics of a taker.
Maker must have no position initially.
The Perpetual DAO is charged with adding/removing makers from whitelist.
Non-whitelisted maker feature will be activated after launch.
Accounts that are not a whitelisted maker will earn, and may also pay borrowing fees.
No restrictions on what orders may be filled / not filled
Examples
The party acting as the maker in the off-chain order book.
Other unofficially maintained private makers. (Not open to private makers for now)