Gate optimistic market payouts on proposal and dispute rounds
This commit is contained in:
@@ -141,6 +141,9 @@ impl Listing {
|
||||
#[derive(Deserialize)]
|
||||
#[serde(tag = "op", rename_all = "snake_case", deny_unknown_fields)]
|
||||
pub(crate) enum Query {
|
||||
Resolution {
|
||||
market: String,
|
||||
},
|
||||
Assets {
|
||||
market: String,
|
||||
},
|
||||
@@ -171,6 +174,7 @@ pub(crate) enum Query {
|
||||
impl Query {
|
||||
pub fn read(self, db: &Connection) -> Result<Value> {
|
||||
match self {
|
||||
Self::Resolution { market } => crate::resolution::read(db, &market),
|
||||
Self::Assets { market } => assets::market_assets(db, &market),
|
||||
Self::Positions(filter) => filter.read(db),
|
||||
Self::Trades(filter) => filter.read(db),
|
||||
|
||||
Reference in New Issue
Block a user