-
Notifications
You must be signed in to change notification settings - Fork 415
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looks good, this change does remove the artificial REX lower limit of 20%
This unlocks the full REX liquidity available to borrowers
REX rental prices are still computed using the Bancor formula, however now has access to the full 100% liquidity of REX
Before
// variables
total_lent = 818945770886 // 81.8mm
total_unlent = 163789519271 // 16.3mm
// calculations
unlent_lower_bound = 2 * total_lent / 10
//=> 163789154177
available_unlent = total_unlent - unlent_lower_bound
//=> 365094
After
// variables
total_lent = 818945770886 // 81.8mm
total_unlent = 163789519271 // 16.3mm
// calculations
unlent_lower_bound = 0;
available_unlent = total_unlent - unlent_lower_bound
//=> 163789519271
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fairer measure.
Have you considered what would happen if total_unlent becomes small? Apparently the rental fee might fall drastically for subsequent loans. |
@sergioyuhjtman When a loan expires, the rented resources are moved from The amount of CPU one gets per EOS is determined by e.g. if total_unlent was 10,000 EOS and total_rent was 99,990,000 EOS, you would get 0.0001 EOS of CPU/EOS |
@jafri it does seem that if there are loans outstanding and rex holders pull out all the unlent rex, So there is a reason for the buffer. We need to set it above zero. |
Fair enough @andybets That edge case would only apply to the first loan after it hits 0 and requires a full exodus of all tokens. The minimum unlent lower bound value can be set to 1 instead of 0 |
Removes REX lower unlent limit from 20% to 0%