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

Commit

Permalink
more clear message when unstaking is forbidden due to 15% rule #3931
Browse files Browse the repository at this point in the history
  • Loading branch information
moskvanaft committed Jun 7, 2018
1 parent ab163e6 commit ff0447c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/eosio.system/delegate_bandwidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ namespace eosiosystem {
eosio_assert( asset() <= unstake_cpu_quantity, "must unstake a positive amount" );
eosio_assert( asset() <= unstake_net_quantity, "must unstake a positive amount" );
eosio_assert( asset() < unstake_cpu_quantity + unstake_net_quantity, "must unstake a positive amount" );
eosio_assert( _gstate.total_activated_stake >= min_activated_stake, "the chain has not been activate yet (less than 15% of token volume participated in voting)" );
eosio_assert( _gstate.total_activated_stake >= min_activated_stake, "the chain has not been activated yet (less than 15% of all tokens have participated in voting)" );

changebw( from, receiver, -unstake_net_quantity, -unstake_cpu_quantity, false);
} // undelegatebw
Expand Down
2 changes: 1 addition & 1 deletion contracts/eosio.system/producer_pay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace eosiosystem {
const auto& prod = _producers.get( owner );
eosio_assert( prod.active(), "producer does not have an active key" );

eosio_assert( _gstate.total_activated_stake >= min_activated_stake, "the chain has not been activate yet (less than 15% of token volume participated in voting)" );
eosio_assert( _gstate.total_activated_stake >= min_activated_stake, "the chain has not been activated yet (less than 15% of all tokens participated in voting)" );

auto ct = current_time();

Expand Down

0 comments on commit ff0447c

Please sign in to comment.