contracts/eoslib/token.hpp
price( BaseToken base, QuoteToken quote ) {
      assert( base  >= BaseToken(1ul), "invalid price" );
      assert( quote >= QuoteToken(1ul), "invalid price" );

      base_per_quote = base.quantity;
      base_per_quote *= precision;
      base_per_quote /= quote.quantity;
    }
/**
    * Construction for price given the base token and quote token.
    * @brief Construction for price given the base token and quote token.
    * @param base - base token
    * @param quote - quote token
    */
Construction for price given the base token and quote token.
@brief Construction for price given the base token and quote token.
@param base - base token
@param quote - quote token
Construction for price given the base token and quote token . @brief Construction for price given the base token and quote token . @param base - base token @param quote - quote token
price( BaseToken base, QuoteToken quote ) {
      assert( base  >= BaseToken(1ul), "invalid price" );
      assert( quote >= QuoteToken(1ul), "invalid price" );
      base_per_quote = base.quantity;
      base_per_quote *= precision;
      base_per_quote /= quote.quantity;
    }
price ( BaseToken base , QuoteToken quote ) { assert ( base >= BaseToken ( 1ul ) , " " ) ; assert ( quote >= QuoteToken ( 1ul ) , " " ) ; base_per_quote = base . quantity ; base_per_quote *= precision ; base_per_quote /= quote . quantity ; }
Construction for price given the base token and quote token.
Construction for price given the base token and quote token .