Fee Operations (F)
Transaction Fee
We will charge transaction fees when users buy/sell FT/XT in the pool according to their yields. In TermMax, we define the yield as the net profit of the trade at maturity. For example, if a user pays UT to buy FT, he will mint XT and FT first and sell the XT for FT according to the swap operation. The cost of the trade is UT and the gain is FT. At maturity, FT can be redeemed for UT. Therefore the yield of the trade can be derived as .
The yield of other swap operations can be derived in the same way.
The transaction fee for each trade is calculated based on the yield of the operation and its type. There are two types of operations: lending (buy FT/sell XT) and borrowing (buy XT/sell FT), each with a distinct fee ratio. Using the lending and borrowing fee ratios, we can determine the transaction fee for both types of operations.
General Formula
For lending:
For borrowing:
Transaction Fee Distribution
TermMax, a fixed lending and borrowing protocol, provides fixed rates and maturity dates. In line with the fixed-income market norms, trading yields within the pool gradually decrease from the market opening date to the maturity date. The transaction fees also decline in tandem with this trend. To incentivize liquidity providers (LPs) to keep their liquidity in the pool for as long as possible, we have developed a diamond-hand strategy, designed to reward long-term LPs—our "diamond-hand partners"— generously.
In , the yellow triangle represents the accumulated transaction fee in the pool from the market opening time to the maturity time, decreasing over this period. Conversely, the green triangle represents the fee distribution structure designed to incentivize our diamond-hand LPs. Under this system, LP rewards increase from the beginning to the end of the period.
When a LP decides to withdraw liquidity, only the rewards represented by the bright-green triangle will be distributed. These rewards are allocated based on the LP’s share relative to the total LP supply and the total LP reward pool (illustrated as the bright-yellow trapezoid).
According to Triangle similarity theorems, we can derive
With and , we can derive
Therefore,
The reward of the LP with will be
The will be accumulated in terms of LP tokens holding by the market. Therefore, we need to subtract the from total when calculate the share of the against .
Last updated