fix: is_benefactor_reward had the default value of true when not set
This commit is contained in:
parent
56de34d3ec
commit
2c14af0699
1 changed files with 1 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ map< account_id_type, vector< uint16_t > > asset_object::distribute_winners_part
|
|||
auto winner_num = winner_numbers[c];
|
||||
lottery_reward_operation reward_op;
|
||||
reward_op.lottery = get_id();
|
||||
reward_op.is_benefactor_reward = false;
|
||||
reward_op.winner = holders[winner_num];
|
||||
reward_op.win_percentage = tickets[c];
|
||||
reward_op.amount = asset( jackpot * tickets[c] * ( 1. - sweeps_distribution_percentage / (double)GRAPHENE_100_PERCENT ) / GRAPHENE_100_PERCENT , db.get_balance(id).asset_id );
|
||||
|
|
|
|||
Loading…
Reference in a new issue