@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:
create chai (dsr's token's representation) from dai join_chain()
exitAll chai to dai exit_chai() witch withdraw all user's compounding dsr to dai
exitdraw_chai() witch withdraw a specific amount of user's chai to dai, but the value unit is in dai so that user know exactly what he get at the end.
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!
@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:
join_chain()
exit_chai()
witch withdraw all user's compounding dsr to daidraw_chai()
witch withdraw a specific amount of user's chai to dai, but thevalue
unit is in dai so that user know exactly what he get at the end.I also modify SEND_TYPEHASH params order for consistency.
The
approve()
is done on the constructor but the permit has to be done "manually" for each userTo 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!