feat: Move UniswapX signature expiry back to deadline (#7402)
startTime -> deadline
This commit is contained in:
parent
3ad4fb6846
commit
463dd6fdfb
@ -90,7 +90,7 @@ export function useUniswapXSwapCallback({
|
|||||||
const { domain, types, values } = updatedOrder.permitData()
|
const { domain, types, values } = updatedOrder.permitData()
|
||||||
|
|
||||||
const signature = await signTypedData(provider.getSigner(account), domain, types, values)
|
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()
|
throw new SignatureExpiredError()
|
||||||
}
|
}
|
||||||
return { signature, updatedOrder }
|
return { signature, updatedOrder }
|
||||||
|
Loading…
Reference in New Issue
Block a user