mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
removed logs and added some explanations
This commit is contained in:
parent
aec4568412
commit
4f14ffc265
@ -179,6 +179,7 @@ function getAccessDetailsFromTokenPrice(
|
|||||||
// asset is owned if there is an order and asset has timeout 0 (forever) or if the condition is valid
|
// asset is owned if there is an order and asset has timeout 0 (forever) or if the condition is valid
|
||||||
accessDetails.isOwned =
|
accessDetails.isOwned =
|
||||||
timeout === 0 || Date.now() / 1000 - order.createdTimestamp < timeout
|
timeout === 0 || Date.now() / 1000 - order.createdTimestamp < timeout
|
||||||
|
// the last valid order should be the last reuse order tx id if there is one
|
||||||
accessDetails.validOrderTx = reusedOrder ? reusedOrder.tx : order.tx
|
accessDetails.validOrderTx = reusedOrder ? reusedOrder.tx : order.tx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user