Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokenomics - REX Upgrade #80

Merged
merged 11 commits into from
Jun 14, 2024
Prev Previous commit
remove unecessary tests
  • Loading branch information
Nathan James committed Jun 13, 2024
commit 126d5f82caa05f8f54abe2f507befb473b467358
4 changes: 0 additions & 4 deletions tests/eosio.system_rex_matured_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ BOOST_FIXTURE_TEST_CASE( buy_sell_matured_rex, eosio_system_tester ) try {

// 4.1. Test selling less than all their matured rex, and having all of their already matured rex sold regardless
BOOST_REQUIRE_EQUAL( core_sym::from_string("2.5000"), get_sellrex_result( mark, asset::from_string("1.0000 REX") ) );
BOOST_REQUIRE_EQUAL( get_rex_balance_obj( mark )["vote_stake"].as<asset>(), core_sym::from_string("0.0000") );
BOOST_REQUIRE_EQUAL( asset::from_string("10000.0000 REX"), get_buyrex_result( mark, core_sym::from_string("1.0000") ) );
BOOST_REQUIRE_EQUAL( success(), mvfrsavings( mark, asset::from_string("10000.0000 REX") ) );
// BOOST_REQUIRE_EQUAL( get_rex_balance_obj( mark )["rex_maturities"].get_array()[0].as<time_point>(), get_rex_balance_obj( mark )["matured_rex"].as<time_point>() );

BOOST_REQUIRE_EQUAL( success(), mvfrsavings( david, asset::from_string("10000.0000 REX") ) ); // must move REX from savings to initiate matured REX unstaking process
BOOST_REQUIRE_EQUAL( wasm_assert_msg("insufficient available rex"), sellrex( david, asset::from_string("25000.0000 REX") ) ); // already sold when previously buying REX
Expand Down
Loading