ποΈEquity management
Once a position has been opened, a trader can add or remove equity. Equity is the sum between the initial margin and a trader's P&L. The table below summarises the impact of each action on the long and short positions.
Add equity
Remove money from the borrowing position, i.e. the trader could recover part of the interest paid in advance
Add money to the lending position, i.e. the trader will get extra income
Remove equity
Add money to the borrowing position, i.e. the trader will pay the interest on the removed equity amount
Remove money from the lending position, i.e. the trader will get less income from the lent amount
The following examples do take into account potential liquidation for low collaterisation ratios. They are indicative to better understand the impact of equity management.
In this section, the collatisation ratio for borrowing CRborrowβ refers to the one on the underlying borrowing protocol and not on the expirabel position itself.
Long position
Below we will consider the numerical example of a long position opened in position opening where:
SLβ=100.10DAI
the trader has posted 50DAI as margin
the price to open the long position is PO,Lβ=100.59DAI
0.9929ETHhave been lent, i.e. the equivalent of 0.9929β99.90=99.19DAI
the debt (principal + interest) is D=50.59DAI.
Remembering the concept of flash swaps used in the protocol (see the borrowing and lending section), where the zero-coupon bond for lending ETH is used as collateral to borrow DAI, we find a collaterisation ratio for borrowing of CRborrowβ=50.5099.19β=196.07%.
Add equity
When equity is added to a position, it is used to repay earlier some debt and hence increase the collaterisation ratio for borrowing CRborrowβ of the borrowed DAI. Taking the example of the long position which has been opened, and supposing that the spot price remains the same, let's say a trader wants to add 20DAI at T=0.2 when rQ,lβ=9%:
the debt recovered is 20β(1+0.09)0.2=20.35DAI
The remaining debt is D=50.59β20=30.24DAI
and the new collaterisation ratio for borrowing would be CRborrowβ=30.2499.19β=327.99%.
Remove equity
Since the initial posted DAIwas used to buy the required ETH, this equity is no more available and a trader cannot simply withdraw it. Hence, if a trader wants to remove some equity to decrease the collaterisation ratio CRborrowβ, the protocol will simply borrow the required DAI directly at a fixed rate on an underlying fixed rate protocol. Taking the example of the long position which has been opened, and supposing that the spot price remains the same, let's say a trader wants to remove 10DAI at T=0.2 when rQ,bβ=10%:
the extra debt (principal + interest) is 10β(1+0.1)0.2=10.19DAI
the total debt will become D=50.59+10.19=60.78DAI
and the new collaterisation ratio for borrowing would be CRborrowβ=60.7899.19β=163.19%.
The mechanism used in Contango to remove equity implies that a trader can remove an amount of equity higher than the initial posted margin. This allows a trader to get out some equity, or crystallise the P&L, without having to partially close a position.
Short Position
Below we will consider the numerical example of a short position opened in position opening where:
SSβ=99.90DAI
the trader has posted 50DAI as margin
the price to open the short position is PO,Sβ=102.70DAI
0.9924ETH have been borrowed, i.e. the equivalent of 0.9924β99.90=99.14DAI
the lent amount (principal + interest) is L=152.70DAI.
Remembering the concept of flash swaps used in the protocol (see the borrowing and lending section), where the zero-coupon bond for lending DAI is used as collateral to borrow ETH, we find a collaterisation ratio for borrowing of CRborrowβ=99.14152.70β=154.02%.
Add equity
Adding equity is equivalent to lend more DAI, i.e. add more collateral for the debt and increase the collaterisation ratio. Taking the example of adding 30DAI at T=0.2 when rQ,lβ=9%:
the new lent amount at expiry (principal + interest) is 30β(1+0.09)0.2=30.52DAI
the total lent amount is now L=152.70+30.52=183.22DAI
and the new collaterisation ratio for borrowing would be CRborrowβ=99.14183.22β=184.81%.
Remove equity
Removing equity is equivalent to remove money from the lending position. Taking the example of removing 10DAI at T=0.2 when rQ,bβ=10%:
the lent amount to remove (principal + interest) is 50β(10+0.1)0.2=10.19DAI
the remaining total amount is L=152.70β10.19=142.51DAI
and the new collaterisation ratio for borrowing would be CRborrowβ=99.14142.51β=143.74%.
Last updated