Your TRX prepayment in an Energy rental order includes the rent and the security deposit. The formulas and rules for calculation are as follows:
Rent = Energy rental amount * Unit price for Energy rental * Rental duration (Day / Hour)
Security deposit = Energy rental amount * Unit price for Energy rental + Liquidation fee
Commonly, all of your security deposit will be returned when the rental is ended. However, in the following scenarios, part of your security deposit will be deducted:
- If you end your rental when the used Energy is not recovered to the original amount, your security deposit will be deducted accordingly. Security deposit deducted = (Energy used / Total Energy rented) / * Unit price for Energy rental * 0.5.
- If you do not end your rental before expiration, the security deposit will be deducted based on the exceeded duration.
- If your rental is liquidated due to expiration, the liquidation fee will be deducted from your security deposit.
For example, a user wants to rent 1,000,000 Energy for 3 days. Currently, 100,000 Energy costs 12 TRX every day for rental. If you choose to get 100,000 Energy by staking, 6,000 TRX will need to be staked.
Rent = 12 TRX/Day * 1,000,000 / 100,000 * 3 days = 360 TRX
Security deposit = 12 TRX * 1,000,000 / 100,000 + 40 TRX = 160 TRX
The following section describes common scenarios when the rental ends:
1. The user ends the rental early (no price fluctuation)
① Used Energy fully recovered: all security deposit will be returned (160 TRX)
② Used Energy recovered to 60% of the original amount: Security deposit to be returned = 160 TRX - 40% * 12 TRX * 1,000,000 / 100,000 * 0.5 = 136 TRX
2. The user ends the rental 12 hours (0.5 day) after expiration but is not liquidated (no price fluctuation)
① Used Energy fully recovered: Security deposit to be returned = 160 TRX - 12 TRX/Day * 1,000,000 / 100,000 * 0.5 day = 100 TRX
② Used Energy recovered to 60% of the original amount: Security deposit to be returned = 160 TRX - 12 TRX/Day * 1,000,000 / 100,000 * 0.5 day - 40% * 12 TRX * 1,000,000 / 100,000 * 0.5 = 76 TRX
3. The user does not end the rental upon expiration and is liquidated at that moment (no price fluctuation)
① Used Energy fully recovered: Security deposit to be returned = 160 TRX - Max(40 TRX, 6,000 TRX * 1,000,000 / 100,000 * 0.05%) = 120 TRX
② Used Energy recovered to 60% of the original amount: Security deposit to be returned = 160 TRX - Max(40 TRX, 6,000 TRX * 1,000,000 / 100,000 * 0.05%) - 40% * 12 TRX * 1,000,000 / 100,000 * 0.5 = 96 TRX
Therefore, you can get all your security deposit back when you end the rental on time and with all Energy recovered to the original amount.