mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-26 22:39:12 +00:00
proofEnd returns end or past timestamp
This commit is contained in:
parent
716b864f02
commit
fdc0e7d58a
@ -182,10 +182,11 @@ contract Marketplace is Collateral, Proofs {
|
||||
}
|
||||
|
||||
function proofEnd(bytes32 slotId) public view returns (uint256) {
|
||||
uint256 end = _end(slotId);
|
||||
if (!_slotAcceptsProofs(slotId)) {
|
||||
return block.timestamp - 1;
|
||||
return end < block.timestamp ? end : block.timestamp - 1;
|
||||
}
|
||||
return _end(slotId);
|
||||
return end;
|
||||
}
|
||||
|
||||
function _price(
|
||||
|
Loading…
x
Reference in New Issue
Block a user