diff --git a/primitives/proofs/src/traits.rs b/primitives/proofs/src/traits.rs index 5e0d82488..dd53c6236 100644 --- a/primitives/proofs/src/traits.rs +++ b/primitives/proofs/src/traits.rs @@ -43,12 +43,14 @@ pub trait Market { compute_cid: bool, ) -> Result, ConstU32>, DispatchError>; - /// Activate a set of deals grouped by sector, returning the size and - /// extra info about verified deals. - /// Sectors' deals are activated in parameter-defined order. - /// Each sector's deals are activated or fail as a group, but independently of other sectors. - /// Note that confirming all deals fit within a sector is the caller's responsibility - /// (and is implied by confirming the sector's data commitment is derived from the deal pieces). + /// Terminate a set of deals in response to their sector being terminated. + /// + /// Slashes the provider collateral, refunds the partial unpaid escrow amount to the client. + /// + /// A sector can be terminated voluntarily — the storage provider terminates the sector — + /// or involuntarily — the sector has been faulty for more than 42 consecutive days. + /// + /// Source: fn on_sectors_terminate( storage_provider: &AccountId, sector_ids: BoundedVec>,