# - Yield Sharing

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.



<figure><img src="https://21357600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7jZdssaePVn3tOxj0Orj%2Fuploads%2Fh5Zq1kdYwG2WUqL3PVJp%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-07-19%20%D0%B2%2022.41.01.png?alt=media&#x26;token=364dc9d1-8bd8-488d-9819-5bb83d983eb2" alt=""><figcaption></figcaption></figure>

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.



<figure><img src="https://21357600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7jZdssaePVn3tOxj0Orj%2Fuploads%2FOA9QAKXc6Y4q4V2wyjQP%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-07-19%20%D0%B2%2022.41.52.png?alt=media&#x26;token=b300c64b-96f7-4441-a825-dace3d313e7c" alt="" width="375"><figcaption></figcaption></figure>

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.
