{"repo":"vittominacori/eth-token-recover","free":true,"listed":false,"github":"https://github.com/vittominacori/eth-token-recover","clone":"git clone https://github.com/vittominacori/eth-token-recover.git","description":"TokenRecover allows to recover any ERC-20 or NFT (ERC-721) token sent into the contract and sends them to a receiver.","language":"JavaScript","stars":44,"topics":["ethereum","smart-contracts","erc20","solidity","erc721"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"ETH Token Recover TokenRecover allows to recover any ERC-20 or NFT (ERC-721) token sent into the contract and sends them to a receiver. There are lots of tokens lost forever into Smart Contracts (see OMG token balances). Each Ethereum contract, as well as any EVM compatible contract, is a potential token trap for ERC-20 or ERC-721 tokens. They can't be recovered, so it means money losses for end users. By using TokenRecover, any smart contract can offer users a robust solution for reclaiming mistakenly or erroneously sent tokens, enhancing the overall user experience and confidence in the decentralized ecosystem. Installation Hardhat Foundry Add the below in remappings.txt : Recovers The recover contracts define internal methods that can be used in derived contracts. RecoverERC20 RecoverERC20.sol Allows to recover any ERC-20 token sent into the contract and sends them to a receiver. [!WARNING] It allows everyone to recover tokens. Access controls MUST be defined in derived contracts. RecoverERC721 RecoverERC721.sol Allows to recover any ERC-721 token sent into the contract and sends them to a receiver. [!WARNING] It allows everyone to recover tokens. Access controls MUST be defined in derived contracts. Usage The below contracts define high level code that can be inherited as is or extended to cover desired behaviors. ERC20Recover ERC20Recover.sol Allows the contract owner to recover any ERC-20 token sent into the contract and sends them to a receiver. [!IMPORTANT] This contr","default_branch":null,"files":null,"tree":[],"storefront":"/r/vittominacori","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vittominacori/eth-token-recover/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}