libraries/chain/util/xtt_token.cpp
// If we increase the value of XTT_MAX_ICO_TIERS, we should track the size in the ICO object
If we increase the value of XTT_MAX_ICO_TIERS, we should track the size in the ICO object
If we increase the value of XTT_MAX_ICO_TIERS we should track the size in the ICO object
std::size_t ico_tier_size( database& db, const asset_symbol_type& symbol )
{
   std::size_t num_ico_tiers = 0;
   const auto& ico_tier_idx = db.get_index< xtt_ico_tier_index, by_symbol_xgt_units_cap >();
   auto ico_tier_itr = ico_tier_idx.lower_bound( symbol );
   while ( ico_tier_itr != ico_tier_idx.end() && ico_tier_itr->symbol == symbol )
   {
      num_ico_tiers++;
      ++ico_tier_itr;
   }
   return num_ico_tiers;
}
std :: size_t ico_tier_size ( database & db , const asset_symbol_type & symbol ) { std :: size_t num_ico_tiers = 0 ; const auto & ico_tier_idx = db . get_index < xtt_ico_tier_index , by_symbol_xgt_units_cap > ( ) ; auto ico_tier_itr = ico_tier_idx . lower_bound ( symbol ) ; while ( ico_tier_itr != ico_tier_idx . end ( ) && ico_tier_itr -> symbol == symbol ) { num_ico_tiers ++ ; ++ ico_tier_itr ; } return num_ico_tiers ; }
If we increase the value of XTT_MAX_ICO_TIERS, we should track the size in the ICO object
If we increase the value of XTT_MAX_ICO_TIERS we should track the size in the ICO object