diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index 7be68e4b4f..919b7fe3d3 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -1869,10 +1869,10 @@ vector database_api_impl::get_liquidity_pools_by vector results; results.reserve( limit ); - auto pools_end = pools.end(); - for ( ; itr != pools_end && results.size() < limit; ++itr ) + while( itr != pools.end() && results.size() < limit ) { results.emplace_back( extend_liquidity_pool( (*itr)(_db), with_stats ) ); + ++itr; } return results;