Yield Sharing
Last updated
Last updated
A leveraged position on Stella Strategy consists of two parts: the supplied tokens and borrowed tokens. The yield sharing should apply to only the yield generated from the borrowed tokens, excluding initial capital supplied by the leveragoor.
To calculate the yield sharing, the annualized yield will be used.
And after determining the yield to be shared with lenders and leveragoor in USD value, Stella proceeds to calculate the token amounts for proportional distribution among the different portions of the borrowed assets.
The lenders will receive the yield in the form of in-kind tokens. To determine the distribution, Stella calculates the number of tokens that the leveragoor needs to allocate for each portion of the borrowed assets. In some cases, swapping may be necessary if the generated yield is insufficient in that particular asset.
Lastly, after repaying the debt and sharing the yield all the assets left in the position will be transferred to the leveragoor including the supply and yield.
Alice input 1000 USDC and open a position with leverage 4x on Uniswap V3 ETH/USDC 0.3% strategy by borrowing 2 ETH and 1000 USDC where ETH@1000
As time passed for exactly 30 days, Alice's position accrue the trading fee and her current position value is now $4,200
Alice closes the position getting a yield of $200 over 30 days
So, Alice's position has the following information
Yield = $200
Annualized Yield = 60.83%
Yield Cut = 31.36%
After closing a position, the system will split the generated yield between a leveragoor and lenders as followed:
The total yield of $150 will be splitted into 2 parts:
$50 Base Yield that the position will get at 1x (without any leverages)
$150 Leveraged Yield from levering up
The leveraged yield $150 will be applied with the Yield Cut of 31.36% to lenders resulting in
$102.96 to Leveragoor
$47.04 to Lenders
So the total yield that each party will get will be as follows
$50 + $102.96 = $152.96 to Leveragoor
$47.04 to Lenders before deducting the protocol fee
Stella deducts 25% of the amount splitted to lenders as a Protocol Fee. The net portion dedicated to lenders will be splitted again based on the borrowed value of each token proportionally.
Assume that the current composition of Alice's position is 2.05 ETH + 2,150 USDC where ETH price is still the same @1000, after repaying debt Alice's position is left with 0.05 ETH + 1,150 USDC.
We can calculate the token amounts need to share to the lenders as follows
Calculate the borrowing proportion
Alice borrows 2 ETH and 1,000 USDC so the proportion will be 2:1, ETH:USDC where ETH@1000
Total borrow value = $1,000 + $2,000 = $3,000
Calculate the token amount needed for each portion
USDC = 47.04/1 * 1/3 = 15.68 USDC
ETH = 47.04/1,000 * 2/3 = 0.03136 ETH
Share the yield with lenders then the position is left with the following amount of tokens and will be returned to the leveragoor
USDC = 1,150 - 15.68 = 1134.32 USDC
ETH = 0.05 - 0.03136 = 0.01864 ETH
In conclusion, the leverager supplied 1,000 USDC, borrowed 1,000 USDC + 2 ETH to open the leveraged position, and obtained a yield of $152.96, which is equivalent to 134.32 USDC ($134.32) and 0.01864 ETH ($18.64).