Here's a snippet from the DAI stablecoin permit function:
uint wad = allowed ? uint(-1) : 0;
allowance[holder][spender] = wad;
emit Approval(holder, spender, wad);
(full source code can be found here)
Differently from the EIP-2612 which defines a "value" for the allowance DAI's approach appears to approve an unlimited allowance for the spender address.
Is it safe to permit a protocol to spend DAI on my behalf?
If not, to which use cases is DAI-style permit targeted to?