Open mfw78 opened 2 years ago
If using Mt Perelin, it could be opted to use USDC for that method (Mt Perelin supports USDC on Gnosis Chain).
As USDC on Gnosis Chain is a standard bridged token, the contract supports and implements the EIP2612 standard.
With this, instead of generating a signed TX in the above flow, a Permit hash could instead be signed, then send this to a relayer service to facilitate payment on behalf of the user.
This would require refactoring of the smart contract so new stays could be paid for on behalf of another user (as is the case with the relayer which would be msg.sender
).
UX issues:
Ramp.network does support the USA, though perhaps they can be approached to facilitate payment of USDC on Gnosis Chain.
Use ramp.network, or Mt Pelerin to do credit/debit card to crypto (xDai).
The rough process would be something like:
Risks may be setting too low a max base fee which could result in volatile gas price movements, and at the same have insufficient funds (by a few Wei) to cover the transaction / purchase.