🛡️Protocol and Safety Parameters
Last updated
Last updated
In this section, we will be covering the following protocol parameters:
Parameter | Value | Unit | Description |
---|---|---|---|
To protect FLP from short-term price manipulation for less liquid markets, we put in place a Minimum Profit Duration for trader. During this period, the PnL for a trade is calculated as follow:
The Min Profit Durations for each trade size are as followed:
The Min Profit Duration for Forex and Commodity market are as followed:
In order to limit the FLP exposure per trade, we implemented a limit trade size that is relative to FLP size.
Max $ / Trade: Max value of position size per trade
Max Position Size: Max value of position size per market per sub-account
You can check the Max $ / Trade and Max Position Size here. TBC
Flex Perpetuals charges Trading Fees on the traders' position size. The table below summarizes the trading fees for each asset class:
In celebration of FLEX's launch on the BASE mainnet, we're excited to announce a special discount on trading fees for BTC and ETH market to 0.02%!
FLEX charges Adaptive Trading Fees (ATF) on ALL crypto markets EXCEPT BTC and ETH, where users can still enjoy the same flat low 0.02% trading fees.
ATF is calculated based on various variables including asset’s volatility and trading size relative to asset’s liquidity depth on CEX. The formula and the parameters for ATF are as follow:
Initial Margin Fraction (IMF): The Initial Margin Fraction is used to determine the initial margin requirement. It is displayed as a percentage & different asset classes will have different IMF.
Maintenance Margin Fraction (MMF): The Maintenance Margin Fraction is used to determine the Maintenance Margin Requirement. It is displayed as a percentage & similar to IMF, the MMF will be different for different asset classes.
Note: the FLP total deposit / withdrawal fees is the sum of base fee % and tax rate %
and can range from 0.0% -> 0.8%
FLP might also contain other assets as they are collected from collateral of losing trades. These assets will be swapped into USDbC, WETH, or WBTC periodically to maintain the desired target weight.
A discount factor applied to the deposited collateral based on the risk of the asset.
Flex Perpetuals currently uses a single-slope, utilization-based Borrowing Rate model, where the Max Borrowing Rate of 0.01% per hour is charged when 100% of the asset in the FLP vault is utilized and linearly decreases to 0% per hour at 0% utilization.
The borrowing interest is assessed on the Reserved Profit Amount and NOT the Position Size. The profit reserve refers to the earmarked amount from the FLP pool to pay out the profitable trading position.
The reserve amount is a function of the % of initial margin fraction and is based on the asset class.
Example:
Alice opens a BTC long position with the size of $100,000 USD
BTC initial margin fraction: 1%
Crypto Profit Reserve factor: 3,500%
Profit Reserve = 1% * 3,500% * $100,000 = $35,000
Thus, Alice is paying the borrowing interest on $35,000 and NOT $100,000
Flex Perpetuals utilizes a velocity-based funding rate model. Instead of the typical model where the long-short skew determines the funding rate, our model have the skew determine the velocity of the funding rate.
This slight adjustment in the formula has a large implication. With the traditional model, there is no incentive to completely eliminate the skew as funding would immediately go to zero, and some arbitrage strategies -e.g., carry trade, would no longer be viable. However, with the velocity-based model, the rate will only gradually increase or decrease overtime. So even after the skew is offset, the funding rate will persist overtime until the market has shifted to the other side, creating a better incentive model to maintain the neutrality for the market.
The following is the equation for Funding Rate & Funding Fee calculation:
Note that the Funding Rate accrues over time and get settled every time a position is modified, opened, or closed.
Below we share the sources of revenue for Flex Perpetuals and how they will be distributed to the different stakeholders.
*Development Fund **Protocol Owned Liquidity
*Liquidation is a flat $5 fee to cover operating cost
Trade Size | Min Profit Duration (second) |
---|---|
Min Profit Duration (second) | Market |
---|---|
Asset Class | Trading Fees (% of Position Size) |
---|---|
Parameter | Value |
---|---|
Asset Class | Initial Margin Fraction (IMF) | Maintenance Margin Fraction (MMF) |
---|---|---|
Parameters | Value | Description |
---|---|---|
Asset | Target Weight |
---|---|
Asset | Type | LTV |
---|---|---|
Asset Class | Profit Reserve % |
---|---|
Source | FLP Stakers | stFDXLP Stakers | DevFund* | POL** |
---|---|---|---|---|
Funding Interval
1
Second
Funding interval to charge borrowing fee and funding fee
Max Position per Sub-account
10
Position
Max # of active positions. To have more positions, use an additional sub account. Limit is in place to efficiently manage liquidation as well as limit gas fee / tx.
PnL Collateral factor
0.8
n/a
Collateral factor given to unrealized PnL
0 - 100k
60
100k - 200k
300
200k
600
60
JPYUSD, XAUUSD, EURUSD, XAGUSD, AUDUSD, GBPUSD, USDCHF, USDSGD, USDCNH, USDHKD, DIX, USDSEK
BTC & ETH
0.02%
Other Cryptocurrency
0.05%
FX
0.01%
Commodity
0.05%
k1
1.25
k2
0.005
Cryptocurrency
1.0%
0.5%
FX
0.1%
0.05%
Commodity
2.0%
1.0%
FLP Base Deposit Fee %
0.30%
Base Fee for depositing in FLP (see calculation below.)
FLP Base Withdrawal Fee %
0.30%
Base Fee for withdrawing from FLP (see calculation below.)
FLP Tax Rate %
0.50%
The dynamic fee can be + / - and will be charged or discounted in addition to deposit/withdrawal fee depending if the transaction moves the pool's weight further away from / closer to the target weight.
Max Utilization %
80%
Max utilization for FLP, beyond which new positions are not allowed to be opened (traders are still allowed to reduce their OIs.) This parameter is in place to ensure some liquidity is always available for LPs to withdraw.
FLP Profit Reserve Buffer %
20%
Flex Perpetuals keeps track of the net global PnL of all traders against the FLP pool. Once the net global PnL hits a percentage threshold relative to the FLP's TVL, the protocol will start auto deleveraging open positions, starting from the most in-profit positions
WETH
20%
WBTC
25%
USDbC
55%
BTC
Volatile Asset
0.90
ETH
Volatile Asset
0.90
USDbC
Stable Asset
1.00
USDC
Stable Asset
1.00
BTC & ETH
3,500%
Other Cryptocurrency
4,000%
FX
5,000%
Commodity
750%
Trading Fee
45%
30%
10%
15%
Borrowing Fee
45%
30%
10%
15%
Liquidation Fee*
50%
50%
0%
0%
FLP Deposit / Withdrawal
45%
30%
10%
15%