1
0
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:
Bogdan Fazakas 2022-05-26 17:58:17 +03:00
parent aec4568412
commit 4f14ffc265

View File

@ -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
accessDetails.isOwned =
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
}