I am developing a website which helps users to perform the escrow of ERC20 tokens. The particular platform only accepts the said ERC20 token. I need my client to deposit the ERC20 token to the escrow contract until he get delivered with the service/product. My doubts are,
- Is it possible to do an escrow contract for ERC20 tokens. I can't use Metamask(As web3 provider)since it is not possible to transfer tokens using metamask.
It will be great if someone guide me to find a solution with a sample contract if available, Thanks a lot :).
Best Answer
We created a solution for escrow functionality for ERC20 tokens. Hope this helps.
The code we used is as follows.
The explanation of the code, including the code can be found on https://medium.com/@s_van_laar/how-to-build-an-escrow-contract-with-an-ethereum-erc20-token-bfc4825b0dd7