From f049fce4e97154ce0d037ee2818a285ebffb944f Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Fri, 25 Mar 2016 13:09:19 -0400 Subject: [PATCH] Ignore ctx.amount in get_allowed_withdraw() #625 --- libraries/chain/vesting_balance_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/chain/vesting_balance_object.cpp b/libraries/chain/vesting_balance_object.cpp index 8414840c..73448e04 100644 --- a/libraries/chain/vesting_balance_object.cpp +++ b/libraries/chain/vesting_balance_object.cpp @@ -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)