Skip to content

Payment processing #3275

Answered by zemse
restyler asked this question in Q&A
Discussion options

You must be logged in to vote

In such use cases where sender address is not confirmed, you have two ways of dealing with this:

  • Bit advanced: Unique deposit addresses for every user by calculating CREATE2 address in which salt is derived using user's identifier. Once user deposits at that address, the contract can later pull tokens by deploying a contract on that address.
  • Pretty simple: You can ensure every concurrent customer has unique amount. e.g. if someone had to transfer you $100, you can instead have them transfer $0.001234 more or less. The amount is so less that the user or company would not care.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by restyler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants