BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Macros
asset_object.cpp File Reference
#include <graphene/chain/asset_object.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/hardfork.hpp>
#include <fc/io/raw.hpp>
#include <fc/uint128.hpp>

Go to the source code of this file.

Macros

#define CALCULATE_MEDIAN_VALUE(r, data, field_name)
 
#define CHECK_AND_CALCULATE_MEDIAN_VALUE(r, data, field_name)
 

Macro Definition Documentation

#define CALCULATE_MEDIAN_VALUE (   r,
  data,
  field_name 
)
Value:
std::nth_element( current_feeds.begin(), median_itr, current_feeds.end(), \
[](const price_feed_with_icr& a, const price_feed_with_icr& b) { \
return a.field_name < b.field_name; \
}); \
median_feed.field_name = median_itr->get().field_name;
defines market parameters for margin positions, extended with an initial_collateral_ratio field ...
#define CHECK_AND_CALCULATE_MEDIAN_VALUE (   r,
  data,
  field_name 
)
Value:
if( options.extensions.value.field_name.valid() ) { \
median_feed.field_name = *options.extensions.value.field_name; \
} else { \
CALCULATE_MEDIAN_VALUE(r, data, field_name); \
}
#define CALCULATE_MEDIAN_VALUE(r, data, field_name)