Skip to content

Commit 4cb5e94

Browse files
committed
fix: round pyth timestamp
1 parent f7da52b commit 4cb5e94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/attachSDK.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export default async function attachSDK(): Promise<ICreditAccountsService> {
7272
gateways: config.redstoneGateways,
7373
},
7474
pyth: {
75-
historicTimestamp: optimisticTimestamp,
75+
historicTimestamp: optimisticTimestamp
76+
? Math.floor(optimisticTimestamp / 1000)
77+
: undefined,
7678
},
7779
logger,
7880
});

0 commit comments

Comments
 (0)