Skip to content

Commit c05e8a8

Browse files
authored
Merge pull request #171 from Tonomy-Foundation/hotfix/double-special-round-vesting-categories
Hotfix/double special round vesting categories
2 parents bec974b + 5af8d60 commit c05e8a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contracts/vesting.tmy/include/vesting.tmy/vesting.tmy.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ namespace vestingtoken
6161
{26, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Platform Dev
6262
{27, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Staking & Infra Rewards
6363
{28, {days(0 * 30), days(0 * 30), days(5 * 365), 0.0}}, // Ecosystem
64+
{29, {days(0 * 30), days(26), days(6 * 30), 0.15}}, // Double Special Round - Full
65+
{30, {days(0 * 30), days(26), days(3 * 30), 0.3}}, // Double Special Round - Part 1
66+
{31, {days(0 * 30), days(26 + 3 * 30), days(3 * 30), 0.0}}, // Double Special Round - Part 2
6467
// Testing categories:
6568
#ifdef BUILD_TEST
6669
{997, {days(6 * 30), days(0 * 30), days(2 * 365), 0.0}}, // TESTING ONLY

contracts/vesting.tmy/src/vesting.tmy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ namespace vestingtoken
176176
// Checks to verify new allocation is valid
177177
eosio::check(iter->tokens_allocated.amount == old_amount.amount, "Old amount does not match existing allocation");
178178
eosio::check(iter->vesting_category_type == old_category_id, "Old category does not match existing allocation");
179-
eosio::check(iter->tokens_claimed.amount < new_amount.amount, "New amount is less than the amount already claimed");
179+
eosio::check(iter->tokens_claimed.amount <= new_amount.amount, "New amount is less than the amount already claimed");
180180

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

0 commit comments

Comments
 (0)