contracts/arisen.system/src/com.cpp
/**
    * @brief Transfers tokens to owner COM fund
    *
    * @param owner - owner account name
    * @param amount - tokens to be transfered to COM fund
    */
@brief Transfers tokens to owner COM fund
@param owner - owner account name
@param amount - tokens to be transfered to COM fund
@brief Transfers tokens to owner COM fund @param owner - owner account name @param amount - tokens to be transfered to COM fund
void system_contract::transfer_to_fund( const name& owner, const asset& amount )
   {
      check( 0 < amount.amount && amount.symbol == core_symbol(), "must transfer positive amount to COM fund" );
      auto itr = _comfunds.find( owner.value );
      if ( itr == _comfunds.end() ) {
         _comfunds.emplace( owner, [&]( auto& fund ) {
            fund.owner   = owner;
            fund.balance = amount;
         });
      } else {
         _comfunds.modify( itr, same_payer, [&]( auto& fund ) {
            fund.balance.amount += amount.amount;
         });
      }
   }
void system_contract :: transfer_to_fund ( const name & owner , const asset & amount ) { check ( 0 < amount . amount && amount . symbol == core_symbol ( ) , " " ) ; auto itr = _comfunds . find ( owner . value ) ; if ( itr == _comfunds . end ( ) ) { _comfunds . emplace ( owner , [ & ] ( auto & fund ) { fund . owner = owner ; fund . balance = amount ; } ) ; } else { _comfunds . modify ( itr , same_payer , [ & ] ( auto & fund ) { fund . balance . amount += amount . amount ; } ) ; } }
@brief Transfers tokens to owner COM fund
 @param owner - owner account name
 @param amount - tokens to be transfered to COM fund
@brief Transfers tokens to owner COM fund @param owner - owner account name @param amount - tokens to be transfered to COM fund