[marketplace] Rename _freeSlot() -> _forciblyFreeSlot()

This commit is contained in:
Mark Spanbroek 2022-11-23 15:10:58 +01:00 committed by markspanbroek
parent a96333ce5f
commit 6e0dfdf7db
4 changed files with 5 additions and 5 deletions

View File

@ -118,7 +118,7 @@ contract Marketplace is Collateral, Proofs {
} }
} }
function _freeSlot(SlotId slotId) function _forciblyFreeSlot(SlotId slotId)
internal internal
slotMustAcceptProofs(slotId) slotMustAcceptProofs(slotId)
marketplaceInvariant marketplaceInvariant

View File

@ -94,7 +94,7 @@ contract Storage is Collateral, Marketplace {
// When the collateral drops below the minimum threshold, the slot // When the collateral drops below the minimum threshold, the slot
// needs to be freed so that there is enough remaining collateral to be // needs to be freed so that there is enough remaining collateral to be
// distributed for repairs and rewards (with any leftover to be burnt). // distributed for repairs and rewards (with any leftover to be burnt).
_freeSlot(slotId); _forciblyFreeSlot(slotId);
} }
} }
} }

View File

@ -26,8 +26,8 @@ contract TestMarketplace is Marketplace {
return _isSlotCancelled(slotId); return _isSlotCancelled(slotId);
} }
function freeSlot(SlotId slotId) public { function forciblyFreeSlot(SlotId slotId) public {
_freeSlot(slotId); _forciblyFreeSlot(slotId);
} }
function slot(SlotId slotId) public view returns (Slot memory) { function slot(SlotId slotId) public view returns (Slot memory) {

View File

@ -20,7 +20,7 @@ async function waitUntilFailed(contract, request, slot) {
for (let i = 0; i <= request.ask.maxSlotLoss; i++) { for (let i = 0; i <= request.ask.maxSlotLoss; i++) {
slot.index = i slot.index = i
let id = slotId(slot) let id = slotId(slot)
await contract.freeSlot(id) await contract.forciblyFreeSlot(id)
} }
} }