Supporting meta transactions
Last updated
Was this helpful?
Last updated
Was this helpful?
All Swipeswap pool tokens support meta-transaction approvals via the permit function. This obviates the need for a blocking approve transaction before programmatic interactions with pool tokens can occur.
In vanilla ERC-20 token contracts, owners may only register approvals by directly calling a function which uses msg.sender
to permission itself. With meta-approvals, ownership and permissioning are derived from a signature passed into the function by the caller (sometimes referred to as the relayer). Because signing data with Ethereum private keys can be a tricky endeavor, Swipeswap relies on , a signature standard with widespread community support, to ensure user safety and wallet compatibility.
name
is always Uniswap V2
.
chainId
is determined from the chainid
opcode.
address(this)
is the address of the pair, see .