Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove artificial REX lower limit #369
DenisCarriere left a comment •
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
// 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
// variables total_lent = 818945770886 // 81.8mm total_unlent = 163789519271 // 16.3mm // calculations unlent_lower_bound = 0; available_unlent = total_unlent - unlent_lower_bound //=> 163789519271
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.