Commit 463dd6fd authored by Tina's avatar Tina Committed by GitHub

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

startTime -> deadline
parent 3ad4fb68
......@@ -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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment