| 143 | } |
| 144 | |
| 145 | price 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 | |
| 152 | asset asset_object::amount_from_string(string amount_string) const |
| 153 | { try { |
no test coverage detected