From 03fbacad67eed951055c3c7859c09dc2c6cf3d97 Mon Sep 17 00:00:00 2001 From: Douglas Horn <37677685+DouglasHorn@users.noreply.github.com> Date: Sun, 25 Oct 2020 23:24:51 -0700 Subject: [PATCH] Fix REX maturity date bug Fixing bug in REX maturity calculation that writes `2106-02-07T06:28:15` as the maturity date of some deposits instead of the proper maturity date, therefore locking SYS tokens in REX. --- contracts/eosio.system/src/rex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/eosio.system/src/rex.cpp b/contracts/eosio.system/src/rex.cpp index 8e9d881f3..61a57410c 100644 --- a/contracts/eosio.system/src/rex.cpp +++ b/contracts/eosio.system/src/rex.cpp @@ -1180,7 +1180,7 @@ namespace eosiosystem { if ( !rb.rex_maturities.empty() && rb.rex_maturities.back().first == end_of_days ) { rb.rex_maturities.back().second += rex; } else { - rb.rex_maturities.emplace_back( end_of_days, rex ); + rb.rex_maturities.emplace_back( get_rex_maturity(), rex ); } }); }