Skip to content

Commit

Permalink
Merge pull request #1976 from bitshares/release
Browse files Browse the repository at this point in the history
Release -> master
  • Loading branch information
pmconrad authored Sep 5, 2019
2 parents ba19d55 + bae1d73 commit ca8e352
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/chain/db_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ void database::clear_expired_orders()
cancel_settle_order(order);
continue;
}
if( GRAPHENE_100_PERCENT == mia.options.force_settlement_offset_percent ) // settle something for nothing
{
ilog( "Canceling a force settlement in ${asset} because settlement offset is 100%",
("asset", mia_object.symbol));
cancel_settle_order(order);
continue;
}
if( max_settlement_volume.asset_id != current_asset )
max_settlement_volume = mia_object.amount(mia.max_force_settlement_volume(mia_object.dynamic_data(*this).current_supply));
// When current_asset_finished is true, this would be the 2nd time processing the same order.
Expand Down

0 comments on commit ca8e352

Please sign in to comment.