Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Remove artificial REX lower limit #369

Closed
wants to merge 6 commits into from
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/eosio.system/src/rex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ namespace eosiosystem {
asset stake_change( 0, core_symbol() );
bool success = false;

const int64_t unlent_lower_bound = ( uint128_t(2) * rexitr->total_lent.amount ) / 10;
const int64_t available_unlent = rexitr->total_unlent.amount - unlent_lower_bound; // available_unlent <= 0 is possible
const int64_t unlent_lower_bound = 0;
const int64_t available_unlent = rexitr->total_unlent.amount - unlent_lower_bound;
if ( proceeds.amount <= available_unlent ) {
const int64_t init_vote_stake_amount = bitr->vote_stake.amount;
const int64_t current_stake_value = ( uint128_t(bitr->rex_balance.amount) * S0 ) / R0;
Expand Down