Skip to content

Commit

Permalink
slash dispute bond
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Mar 27, 2023
1 parent b8cd91a commit 5d6df79
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zrml/prediction-markets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ mod pallet {
let market_status = market.status;
let market_account = <zrml_market_commons::Pallet<T>>::market_account(market_id);

if Self::is_dispute_bond_pending(&market_id, &market, false) {
Self::unreserve_dispute_bond(&market_id)?;
}

// Slash outstanding bonds; see
// https://github.com/zeitgeistpm/runtime-audit-1/issues/34#issuecomment-1120187097 for
// details.
Expand Down Expand Up @@ -2059,6 +2055,9 @@ mod pallet {
if Self::is_outsider_bond_pending(market_id, market, false) {
Self::slash_outsider_bond(market_id, None)?;
}
if Self::is_dispute_bond_pending(market_id, market, false) {
Self::slash_dispute_bond(market_id, None)?;
}
Ok(())
}

Expand Down

0 comments on commit 5d6df79

Please sign in to comment.