remove not needed period calculation
This commit is contained in:
parent
26b987a6d2
commit
30c95f6010
1 changed files with 1 additions and 5 deletions
|
|
@ -762,12 +762,8 @@ double calculate_vesting_factor(const database& d, const account_object& stake_a
|
||||||
// coefficient calculation is: (n-1)/number_of_subperiods
|
// coefficient calculation is: (n-1)/number_of_subperiods
|
||||||
double n = number_of_subperiods + 1;
|
double n = number_of_subperiods + 1;
|
||||||
|
|
||||||
auto period = std::find_if(period_list.begin(), period_list.end(),[&](uint32_t p) {
|
|
||||||
return (p == current_period);
|
|
||||||
});
|
|
||||||
|
|
||||||
// todo: improve this loop
|
// todo: improve this loop
|
||||||
std::list<uint32_t> subperiod_list(*period);
|
std::list<uint32_t> subperiod_list(current_period);
|
||||||
std::iota(subperiod_list.begin(), subperiod_list.end(), 1);
|
std::iota(subperiod_list.begin(), subperiod_list.end(), 1);
|
||||||
|
|
||||||
for(auto subperiod: subperiod_list)
|
for(auto subperiod: subperiod_list)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue