Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/Classes/APIBots/OpenSeaSaleBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export class OpenSeaSaleBot {
console.log(
'New stream sale event:',
event.payload.item.metadata.name,
new Date(event.payload.event_timestamp).toISOString()
'timestamp:',
new Date(event.payload.event_timestamp).toISOString(),
'sent at:',
event.sent_at
)

const ethPrice = parseFloat(
Expand Down Expand Up @@ -179,9 +182,9 @@ export class OpenSeaSaleBot {
const timestamp = sale.timestamp
const now = Date.now()
const timeDiff = now - timestamp
if (timeDiff > 1000 * 60 * 60 * 24) {
if (timeDiff > 1000 * 60 * 60 * 4) {
console.log(
`Skipping OpenSea sale from more than 24 hours ago: ${timestamp}`
`Skipping OpenSea sale from more than 4 hours ago: ${timestamp}`
)
return
}
Expand Down