mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-04 06:13:09 +00:00
[marketplace] Rename _freeSlot() -> _forciblyFreeSlot()
This commit is contained in:
parent
a96333ce5f
commit
6e0dfdf7db
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user