What is Permit2Proxy and how does it work?
masterPermit2Proxy is a proxy contract designed to enable the use of Uniswap's Permit2 permitTransferFrom within the 1inch Limit Order Protocol. It allows limit orders to use Permit2 assets as maker assets by mimicking the IERC20.transferFrom interface.
Critical Limitation: Permit2's SignatureTransfer nonces are single-use. Once a nonce is consumed during the first fill, any subsequent attempt at a partial fill will revert. This means orders using this proxy are effectively 'all-or-nothing' regarding the specific nonce used.