Пример #1
0
 void set_feed(share_type usd, share_type core) {
     price_feed feed;
     feed.maintenance_collateral_ratio = 1750; // need to set this explicitly, testnet has a different default
     feed.settlement_price = swan().amount(usd) / back().amount(core);
     publish_feed(swan(), feedproducer(), feed);
 }
Пример #2
0
 void publish_feed(asset_id_type mia, account_id_type by, const price_feed& f)
 { publish_feed(mia(db), by(db), f); }