Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions contracts/vesting.tmy/include/vesting.tmy/vesting.tmy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ namespace vestingtoken
{26, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Platform Dev
{27, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Staking & Infra Rewards
{28, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Ecosystem
{29, {days(0 * 30), days(26), days(6 * 30), 0.15}}, // Double Special Round - Full
{30, {days(0 * 30), days(26), days(3 * 30), 0.3}}, // Double Special Round - Part 1
{31, {days(0 * 30), days(26 + 3 * 30), days(3 * 30), 0.0}}, // Double Special Round - Part 2
// Testing categories:
#ifdef BUILD_TEST
{997, {days(6 * 30), days(0 * 30), days(2 * 365), 0.0}}, // TESTING ONLY
Expand Down
2 changes: 1 addition & 1 deletion contracts/vesting.tmy/src/vesting.tmy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ namespace vestingtoken
// Checks to verify new allocation is valid
eosio::check(iter->tokens_allocated.amount == old_amount.amount, "Old amount does not match existing allocation");
eosio::check(iter->vesting_category_type == old_category_id, "Old category does not match existing allocation");
eosio::check(iter->tokens_claimed.amount < new_amount.amount, "New amount is less than the amount already claimed");
eosio::check(iter->tokens_claimed.amount <= new_amount.amount, "New amount is less than the amount already claimed");

// Modify the table row data, and update the table
vesting_table.modify(iter, get_self(), [&](auto &row)
Expand Down