here is the limit for the short price at market engine
market_engine.cpp:78
if( pending_block_num >= BTSX_MARKET_FORK_4_BLOCK_NUM )
{
if( median_price )
max_short_bid = *median_price;
else
max_short_bid = market_stat->avg_price_1h;
}
here is the limit for client. I think it should change like above?
market_operation.cpp:145
if( market_stat->avg_price_1h.quote_asset_id != 0 )
{
if( eval_state._current_state->get_head_block_num() > BTS_BLOCKCHAIN_NEW_SHORTS_LIMIT_TO_1HR_AVG )
{
FC_ASSERT( short_index.order_price < market_stat->avg_price_1h, "", ("order",*this)("market_stat",market_stat) );
}
else
{
FC_ASSERT( short_index.order_price < market_stat->maximum_bid(), "", ("order",*this)("market_stat",market_stat) );
}
}