contracts/arisen.system/src/com.cpp
/**
    * @brief Channels system fees to COM pool
    *
    * @param from - account from which asset is transfered to COM pool
    * @param amount - amount of tokens to be transfered
    */
@brief Channels system fees to COM pool
@param from - account from which asset is transfered to COM pool
@param amount - amount of tokens to be transfered
@brief Channels system fees to COM pool @param from - account from which asset is transfered to COM pool @param amount - amount of tokens to be transfered
void system_contract::channel_to_com( const name& from, const asset& amount )
   {
#if CHANNEL_RAM_AND_NAMEBID_FEES_TO_COM
      if ( com_available() ) {
         _compool.modify( _compool.begin(), same_payer, [&]( auto& rp ) {
            rp.total_unlent.amount   += amount.amount;
            rp.total_lendable.amount += amount.amount;
         });
         token::transfer_action transfer_act{ token_account, { from, active_permission } };
         transfer_act.send( from, com_account, amount,
                            std::string("transfer from ") + from.to_string() + " to arisen.com" );
      }
#endif
   }
void system_contract :: channel_to_com ( const name & from , const asset & amount ) { #if CHANNEL_RAM_AND_NAMEBID_FEES_TO_COM if ( com_available ( ) ) { _compool . modify ( _compool . begin ( ) , same_payer , [ & ] ( auto & rp ) { rp . total_unlent . amount += amount . amount ; rp . total_lendable . amount += amount . amount ; } ) ; token :: transfer_action transfer_act { token_account , { from , active_permission } } ; transfer_act . send ( from , com_account , amount , std :: string ( " " ) + from . to_string ( ) + " " ) ; } #endif }
@brief Channels system fees to COM pool
 @param from - account from which asset is transfered to COM pool
 @param amount - amount of tokens to be transfered
@brief Channels system fees to COM pool @param from - account from which asset is transfered to COM pool @param amount - amount of tokens to be transfered
// inline transfer to com_account