Skip to content
Permalink
Browse files

Fixed Typo on the unstake for locked up tokens.

  • Loading branch information...
dallasjohnson committed Oct 29, 2018
1 parent 6248c77 commit 280524549783917e9bca7f8ce17af97718fca077
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -56,7 +56,7 @@ void daccustodian::unstake(name cand) {
const auto &reg_candidate = registered_candidates.get(cand, "ERR::UNSTAKE_CAND_NOT_REGISTERED::Candidate is not already registered.");
eosio_assert(!reg_candidate.is_active, "ERR::UNSTAKE_CANNOT_UNSTAKE_FROM_ACTIVE_CAND::Cannot unstake tokens for an active candidate. Call withdrawcand first.");

eosio_assert(reg_candidate.custodian_end_time_stamp < now(), "ERR::UNSTAKE_CANNOT_UNSTAKE_FROM_ACTIVE_CAND::Cannot unstake tokens before they are unlocked from the time delay.");
eosio_assert(reg_candidate.custodian_end_time_stamp < now(), "ERR::UNSTAKE_CANNOT_UNSTAKE_UNDER_TIME_LOCK::Cannot unstake tokens before they are unlocked from the time delay.");

registered_candidates.modify(reg_candidate, cand, [&](candidate &c) {
// Ensure the candidate's tokens are not locked up for a time delay period.

0 comments on commit 2805245

Please sign in to comment.
You can’t perform that action at this time.