MCPcopy Create free account
hub / github.com/bitshares/bitshares-core / get_initial_collateralization

Method get_initial_collateralization

libraries/chain/asset_object.cpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145price price_feed_with_icr::get_initial_collateralization()const
146{
147 if( settlement_price.is_null() )
148 return price();
149 return ~settlement_price * ratio_type( initial_collateral_ratio, GRAPHENE_COLLATERAL_RATIO_DENOM );
150}
151
152asset asset_object::amount_from_string(string amount_string) const
153{ try {

Callers 1

refresh_cacheMethod · 0.80

Calls 2

priceClass · 0.50
is_nullMethod · 0.45

Tested by

no test coverage detected