feat: Move UniswapX signature expiry back to deadline (#7402)

startTime -> deadline
This commit is contained in:
Tina 2023-10-03 14:29:03 -04:00 committed by GitHub
parent 3ad4fb6846
commit 463dd6fdfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -90,7 +90,7 @@ export function useUniswapXSwapCallback({
const { domain, types, values } = updatedOrder.permitData()
const signature = await signTypedData(provider.getSigner(account), domain, types, values)
if (startTime < Math.floor(Date.now() / 1000)) {
if (deadline < Math.floor(Date.now() / 1000)) {
throw new SignatureExpiredError()
}
return { signature, updatedOrder }