Ignore ctx.amount in get_allowed_withdraw() #625

This commit is contained in:
theoreticalbts 2016-03-25 13:09:19 -04:00
parent 395a68d61f
commit f049fce4e9

View file

@ -64,7 +64,7 @@ asset linear_vesting_policy::get_allowed_withdraw( const vesting_policy_context&
}
}
return asset( allowed_withdraw, ctx.amount.asset_id );
return asset( allowed_withdraw, ctx.balance.asset_id );
}
void linear_vesting_policy::on_deposit(const vesting_policy_context& ctx)