MrChico / stablecoin.services

A gas free offering of common Dai and Chai operations
https://stablecoin.services
33 stars 7 forks source link

Gas and fee handling #5

Closed MrChico closed 4 years ago

MrChico commented 5 years ago

Without employing any complicated resubmitting functionality + nonce handling + gas calculations, the fee users need to pay for a given cheque should only be fixed, and given by a server side calculation. The price will be delivered to the front end by a call to an api function, getPermitAndChequeFee() or getChequeFee() (depending on whether the user has already permitted the dach or not). The result of this call would be inserted into the fee box in the front end.

Similarly, for swapToEth.