Skip to content
Permalink
Browse files

Cancel force-settlement order when offset is 100%

  • Loading branch information...
abitmore authored and pmconrad committed Sep 5, 2019
1 parent ff65d06 commit ed6b6d8dc93d266407959d342235aaa740d64dc5
Showing with 7 additions and 0 deletions.
  1. +7 −0 libraries/chain/db_update.cpp
@@ -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.

0 comments on commit ed6b6d8

Please sign in to comment.
You can’t perform that action at this time.