[marketplace] formatting

reformatting using prettier
This commit is contained in:
Mark Spanbroek 2022-10-26 10:58:14 +02:00
parent c29fb75a48
commit fb47176450
1 changed files with 6 additions and 8 deletions

View File

@ -82,10 +82,7 @@ contract Marketplace is Collateral, Proofs {
_lock(msg.sender, lockId); _lock(msg.sender, lockId);
ProofId proofId = _toProofId(slotId); ProofId proofId = _toProofId(slotId);
_expectProofs( _expectProofs(proofId, _toEndId(requestId), request.ask.proofProbability);
proofId,
_toEndId(requestId),
request.ask.proofProbability);
_submitProof(proofId, proof); _submitProof(proofId, proof);
slot.host = msg.sender; slot.host = msg.sender;
@ -124,9 +121,10 @@ contract Marketplace is Collateral, Proofs {
Request storage request = _request(requestId); Request storage request = _request(requestId);
uint256 slotsLost = request.ask.slots - context.slotsFilled; uint256 slotsLost = request.ask.slots - context.slotsFilled;
if (slotsLost > request.ask.maxSlotLoss && if (
context.state == RequestState.Started) { slotsLost > request.ask.maxSlotLoss &&
context.state == RequestState.Started
) {
context.state = RequestState.Failed; context.state = RequestState.Failed;
_setProofEnd(_toEndId(requestId), block.timestamp - 1); _setProofEnd(_toEndId(requestId), block.timestamp - 1);
context.endsAt = block.timestamp - 1; context.endsAt = block.timestamp - 1;