dmihal / eth-permit

Lightweight library for signing ERC-2612 permit signatures.
https://www.npmjs.com/package/eth-permit
139 stars 30 forks source link

There's no way to set `allowed: false` on Dai permits #12

Open lukehutch opened 2 years ago

lukehutch commented 2 years ago

Dai permits are hard-coded to allow: true. Consequently there is no way to set the allowance back to zero using the permitting API, once permitting should be disallowed.

https://github.com/dmihal/eth-permit/blob/master/src/eth-permit.ts#L116