contracts/arisen.system/src/com.cpp
/**
    * @brief Calculates maturity time of purchased COM tokens which is 4 days from end
    * of the day UTC
    *
    * @return time_point_sec
    */
@brief Calculates maturity time of purchased COM tokens which is 4 days from end
of the day UTC


@brief Calculates maturity time of purchased COM tokens which is 4 days from end of the day UTC
time_point_sec system_contract::get_com_maturity()
   {
      const uint32_t num_of_maturity_buckets = 5;
      static const uint32_t now = current_time_point().sec_since_epoch();
      static const uint32_t r   = now % seconds_per_day;
      static const time_point_sec rms{ now - r + num_of_maturity_buckets * seconds_per_day };
      return rms;
   }
time_point_sec system_contract :: get_com_maturity ( ) { const uint32_t num_of_maturity_buckets = 5 ; static const uint32_t now = current_time_point ( ) . sec_since_epoch ( ) ; static const uint32_t r = now % seconds_per_day ; static const time_point_sec rms { now - r + num_of_maturity_buckets * seconds_per_day } ; return rms ; }
@brief Calculates maturity time of purchased COM tokens which is 4 days from end
 of the day UTC
@brief Calculates maturity time of purchased COM tokens which is 4 days from end of the day UTC