mosendo / gasless

Send DAI without ETH in your wallet
https://medium.com/mosendo/gasless-by-mosendo-3030f5e99099
42 stars 12 forks source link

Some work for extending gasless to support DSR via CHAI #12

Open datgrog opened 4 years ago

datgrog commented 4 years ago

@nourharidy following telegram conv, here is the pr

In my end, when playing with galess I didn't need UniswapExchange related feature at all so I simply delete it. I kind of swap UniswapExchange to CHAI and add some functions to:

I also modify SEND_TYPEHASH params order for consistency.

For the Gasless contract to work, it needs: Action Contract holder spender
permit() Dai EOA Gasless
permit() Chai EOA Gasless
approve() Dai Gasless Chai

The approve() is done on the constructor but the permit has to be done "manually" for each user

To clarify, its still WIP and I got no intention to maintain it as I will use ds-dach but It was really nice to place with your contract for a good starting point!