![Getting the "Fail with error 'ERC20: transfer amount exceeds allowance'" error when depositing to a smart contract through a function : r/ethdev Getting the "Fail with error 'ERC20: transfer amount exceeds allowance'" error when depositing to a smart contract through a function : r/ethdev](https://preview.redd.it/kxucyz9jafp91.png?width=851&format=png&auto=webp&s=d4381274a78a4562191443ddbb47169f24238ec0)
Getting the "Fail with error 'ERC20: transfer amount exceeds allowance'" error when depositing to a smart contract through a function : r/ethdev
![Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium](https://miro.medium.com/v2/resize:fit:1400/1*yQ3KF-TvAIdLcLg4tHXZgQ.png)
Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium
![MetaMask shows I have coins, but when i try and send I get the error "Fail with error 'ERC20: transfer amount exceeds balance'" : r/Metamask MetaMask shows I have coins, but when i try and send I get the error "Fail with error 'ERC20: transfer amount exceeds balance'" : r/Metamask](https://preview.redd.it/rgsovi0og0661.jpg?width=527&format=pjpg&auto=webp&s=0fff8e49ac8d4cce29271db20a42f6e6a6f7e0b5)
MetaMask shows I have coins, but when i try and send I get the error "Fail with error 'ERC20: transfer amount exceeds balance'" : r/Metamask
![Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium](https://miro.medium.com/v2/resize:fit:1400/1*VluKRD1r0yxiYsSJu2me6A.png)
Learn Solidity lesson 29. OpenZeppelin's implementation of the ERC20 token. | by João Paulo Morais | Coinmonks | Medium
![Learn Solidity lesson 28. Understanding the ERC-20 token. | by João Paulo Morais | Coinmonks | Medium Learn Solidity lesson 28. Understanding the ERC-20 token. | by João Paulo Morais | Coinmonks | Medium](https://miro.medium.com/v2/resize:fit:554/1*kBB0f8kOFdV0UsmNJKKc4g.png)
Learn Solidity lesson 28. Understanding the ERC-20 token. | by João Paulo Morais | Coinmonks | Medium
![erc 20 - Transfer of ERC-20 tokens fails, even though smart contract has enough token balance - Ethereum Stack Exchange erc 20 - Transfer of ERC-20 tokens fails, even though smart contract has enough token balance - Ethereum Stack Exchange](https://i.stack.imgur.com/HfRAm.png)
erc 20 - Transfer of ERC-20 tokens fails, even though smart contract has enough token balance - Ethereum Stack Exchange
![PreciousChickenToken: A guided example of OpenZeppelin's ERC20 using Ethers, Truffle and React · PreciousChicken: Blog PreciousChickenToken: A guided example of OpenZeppelin's ERC20 using Ethers, Truffle and React · PreciousChicken: Blog](https://www.preciouschicken.com/blog/images/metamask_gc_eventsuccess.png)