Skip to content

Commit

Permalink
Update monitored asset options
Browse files Browse the repository at this point in the history
  • Loading branch information
kfabianova committed Jun 27, 2018
1 parent 88958c2 commit 5d8461e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/serializer/src/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@ export const price = new Serializer(
}
);

export const coreExchangeRate = new Serializer(
"core_exchange_rate", {
core_exchange_rate: price
}
);

export const account_update = new Serializer(
"account_update", {
fee: asset,
Expand Down Expand Up @@ -503,6 +509,9 @@ export const asset_options = new Serializer(

export const monitored_asset_options = new Serializer(
"monitored_asset_options", {
feeds: map((protocol_id_type("account")), (array(time_point_sec, coreExchangeRate))),
current_feed: coreExchangeRate,
current_feed_publication_time: time_point_sec,
feed_lifetime_sec: uint32,
minimum_feeds: uint8,
}
Expand Down

0 comments on commit 5d8461e

Please sign in to comment.