contracts/arisen.system/src/com.cpp
/**
    * @brief Updates COM owner maturity buckets
    *
    * @param bitr - iterator pointing to com_balance object
    */
@brief Updates COM owner maturity buckets
@param bitr - iterator pointing to com_balance object
@brief Updates COM owner maturity buckets @param bitr - iterator pointing to com_balance object
void system_contract::process_com_maturities( const com_balance_table::const_iterator& bitr )
   {
      const time_point_sec now = current_time_point();
      _combalance.modify( bitr, same_payer, [&]( auto& rb ) {
         while ( !rb.com_maturities.empty() && rb.com_maturities.front().first <= now ) {
            rb.matured_com += rb.com_maturities.front().second;
            rb.com_maturities.pop_front();
         }
      });
   }
void system_contract :: process_com_maturities ( const com_balance_table :: const_iterator & bitr ) { const time_point_sec now = current_time_point ( ) ; _combalance . modify ( bitr , same_payer , [ & ] ( auto & rb ) { while ( ! rb . com_maturities . empty ( ) && rb . com_maturities . front ( ) . first <= now ) { rb . matured_com += rb . com_maturities . front ( ) . second ; rb . com_maturities . pop_front ( ) ; } } ) ; }
@brief Updates COM owner maturity buckets
 @param bitr - iterator pointing to com_balance object
@brief Updates COM owner maturity buckets @param bitr - iterator pointing to com_balance object