Proposal : XSC002 // Permit

  • An adaptation of EIP-2612 for Xian.
  • Allows for a user to grant a spender a certain amount of tokens to spend on their behalf, without having to submit a transaction to the network.

Enables things like :
Gas stations (spend any token for gas, not just Xian), useful when a user has just bridged in a token.

2 Likes

So after permit do you have to call transfer_from to do the transfer? I don’t really get it

the flow would go like this :

  • User interacts with a frontend dapp and signs the permit message
  • Dapp can take the signature and submit it on behalf of the user
  • Dapp is now approved to spend users tokens as normal
1 Like

Ok. But isn’t transfer_from supposed to be checking the deadline?

No, the deadline is just a timeframe within which the permit must be submitted

1 Like

It’s clearer now. Can you kindly add that to the README? Was confused

Readme updated !!!

1 Like