# \#erc20

**URL:** https://forum.openzeppelin.com/tag/erc20/1.md

[Latest](https://forum.openzeppelin.com/latest.md) · [Categories](https://forum.openzeppelin.com/categories.md) · [Tags](https://forum.openzeppelin.com/tags.md)

---

## [0.1% transfer tax on an ERC-20 token with 0 decimals?](https://forum.openzeppelin.com/t/0-1-transfer-tax-on-an-erc-20-token-with-0-decimals/45626)

<div class="topic-metadata">

**Author:** [@DollarMarathonGaming](https://forum.openzeppelin.com/u/DollarMarathonGaming)\
**Replies:** 1\
**Last updated:** [October 6, 2026, 2:42pm UTC](https://forum.openzeppelin.com/t/0-1-transfer-tax-on-an-erc-20-token-with-0-decimals/45626 "2026-10-06T14:42:56Z")

</div>

Let's say you have an ERC-20 token with 0 decimals. Can you have a 0.1% transfer tax on such a token? What about a 0.1% buy/sell tax? Thanks!

---

## [Mitigating Inflation Attacks on an ERC-4626 Freelance Escrow Vault Routing Idle Capital to Aave v3](https://forum.openzeppelin.com/t/mitigating-inflation-attacks-on-an-erc-4626-freelance-escrow-vault-routing-idle-capital-to-aave-v3/45592)

<div class="topic-metadata">

**Author:** [@joop](https://forum.openzeppelin.com/u/joop)\
**Replies:** 0\
**Last updated:** [September 17, 2026, 8:49pm UTC](https://forum.openzeppelin.com/t/mitigating-inflation-attacks-on-an-erc-4626-freelance-escrow-vault-routing-idle-capital-to-aave-v3/45592 "2026-09-17T20:49:49Z")

</div>

Hello everyone, I am building a multi-sided marketplace architecture (Trestle DeFi) where idle freelance escrow funds are swept into an ERC-4626 Auto-Yield Vault (routing to external money markets like Aave v3) to keep …

---

## [Review Request: AOXC Upgradeable Token with Inflation Control & Daily Limits](https://forum.openzeppelin.com/t/review-request-aoxc-upgradeable-token-with-inflation-control-daily-limits/45189)

<div class="topic-metadata">

**Author:** [@orcun](https://forum.openzeppelin.com/u/orcun)\
**Replies:** 0\
**Last updated:** [February 2, 2026, 9:47pm UTC](https://forum.openzeppelin.com/t/review-request-aoxc-upgradeable-token-with-inflation-control-daily-limits/45189 "2026-02-02T21:47:14Z")

</div>

\`\`\`solidity // SPDX-License-Identifier: MIT pragma solidity ^0.8.33; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {UUPSUpgradeable} from "@openzeppelin/contr…

---

## [Issue compiling MEV bot (Rusty-Sando) due to deleted Foundry branches and Solar/ethers conflicts](https://forum.openzeppelin.com/t/issue-compiling-mev-bot-rusty-sando-due-to-deleted-foundry-branches-and-solar-ethers-conflicts/45128)

<div class="topic-metadata">

**Author:** [@meowking](https://forum.openzeppelin.com/u/meowking)\
**Replies:** 0\
**Last updated:** [January 4, 2026, 1:24am UTC](https://forum.openzeppelin.com/t/issue-compiling-mev-bot-rusty-sando-due-to-deleted-foundry-branches-and-solar-ethers-conflicts/45128 "2026-01-04T01:24:10Z")

</div>

Hi everyone, I'm currently working on setting up the rusty-sando MEV bot (https://github.com/mouseless0x/rusty-sando). I have already deployed the contracts, but I'm stuck at the compilation stage of the bot. The origi…

---

## [Changing/Adding Base Contract (V2)](https://forum.openzeppelin.com/t/changing-adding-base-contract-v2/45063)

<div class="topic-metadata">

**Author:** [@degendeveloper](https://forum.openzeppelin.com/u/degendeveloper)\
**Replies:** 0\
**Last updated:** [November 10, 2025, 12:59pm UTC](https://forum.openzeppelin.com/t/changing-adding-base-contract-v2/45063 "2025-11-10T12:59:30Z")

</div>

If I have this (V1) contract: contract MineV1 is ERC20Upgradeable, AccessControlUpgradeable {…} (using OZ v4), and I want to upgrade it to V2 adding Pauseable & Blacklistable features to the contract (one requiring a sto…

---

## [Designing a Secure USDC-Based Raffle Contract](https://forum.openzeppelin.com/t/designing-a-secure-usdc-based-raffle-contract/44989)

<div class="topic-metadata">

**Author:** [@Yashwanth933](https://forum.openzeppelin.com/u/Yashwanth933)\
**Replies:** 2\
**Last updated:** [November 7, 2025, 3:38pm UTC](https://forum.openzeppelin.com/t/designing-a-secure-usdc-based-raffle-contract/44989 "2025-11-07T15:38:44Z")

</div>

Hi everyone :waving\_hand: I'm working on a smart contract that implements a simple raffle system using USDC (ERC20) instead of ETH. :bullseye: Concept Overview Users enter the raffle by staking USDC. The contract hold…

---

## [Simple ERC20 token fees](https://forum.openzeppelin.com/t/simple-erc20-token-fees/29476)

<div class="topic-metadata">

**Author:** [@Team\_X](https://forum.openzeppelin.com/u/Team_X)\
**Replies:** 15\
**Last updated:** [November 6, 2025, 3:45pm UTC](https://forum.openzeppelin.com/t/simple-erc20-token-fees/29476 "2025-11-06T15:45:44Z")

</div>

Hey guys! As I see a lot of people out there starting with solidity but wondering how do to simple token transfer fees I will showcase some solutions for that. function \_transfer( address from, address…

---

## [How to add the developer's wallet, the marketing wallet in the smart contract](https://forum.openzeppelin.com/t/how-to-add-the-developers-wallet-the-marketing-wallet-in-the-smart-contract/26071)

<div class="topic-metadata">

**Author:** [@Mike\_Go](https://forum.openzeppelin.com/u/Mike_Go)\
**Replies:** 7\
**Last updated:** [September 3, 2025, 2:11pm UTC](https://forum.openzeppelin.com/t/how-to-add-the-developers-wallet-the-marketing-wallet-in-the-smart-contract/26071 "2025-09-03T14:11:05Z")

</div>

Hi everyone ! I would like to transfer a amount of tokens to the developer wallet, as well as to the wallet for marketing, and the founder wallet but I have no idea how to do it. I'm a beginner, please forgive me lol

---

## [Willing to test out new features for our business asset marketplace (LayerMarket)?](https://forum.openzeppelin.com/t/willing-to-test-out-new-features-for-our-business-asset-marketplace-layermarket/41313)

<div class="topic-metadata">

**Author:** [@anotherbuilder](https://forum.openzeppelin.com/u/anotherbuilder)\
**Replies:** 1\
**Last updated:** [August 26, 2025, 10:23am UTC](https://forum.openzeppelin.com/t/willing-to-test-out-new-features-for-our-business-asset-marketplace-layermarket/41313 "2025-08-26T10:23:40Z")

</div>

Simply put, we’re building LayerMarket, an online marketplace to buy and sell business assets, such as Datasets and IP, on top of Ethereum and Layer 2 networks (Arbitrum, Base, and Optimism). We’ve made some exciting up…

---

## [onlyOwner does not work for burn addresses?](https://forum.openzeppelin.com/t/onlyowner-does-not-work-for-burn-addresses/44867)

<div class="topic-metadata">

**Author:** [@donaldTramp](https://forum.openzeppelin.com/u/donaldTramp)\
**Replies:** 1\
**Last updated:** [August 24, 2025, 8:15pm UTC](https://forum.openzeppelin.com/t/onlyowner-does-not-work-for-burn-addresses/44867 "2025-08-24T20:15:43Z")

</div>

// SPDX-License-Identifier: MIT // Compatible with OpenZeppelin Contracts ^5.4.0 pragma solidity ^0.8.28; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {ERC20Burnable} from "@openzeppelin/…

---

## [About governance contract in version 5.4.0](https://forum.openzeppelin.com/t/about-governance-contract-in-version-5-4-0/44801)

<div class="topic-metadata">

**Author:** [@zenhaditaka](https://forum.openzeppelin.com/u/zenhaditaka)\
**Replies:** 0\
**Last updated:** [August 14, 2025, 2:19pm UTC](https://forum.openzeppelin.com/t/about-governance-contract-in-version-5-4-0/44801 "2025-08-14T14:19:38Z")

</div>

I'm a newcomer in this smart contract world, I want to clarify that this snippet Governance contract need a separated Timelock Controller contract or not :1234: Code to reproduce // SPDX-License-Identifier: MIT // Comp…

---

## [Unable to sell tokens - scam?](https://forum.openzeppelin.com/t/unable-to-sell-tokens-scam/37649)

<div class="topic-metadata">

**Author:** [@R4v1p](https://forum.openzeppelin.com/u/R4v1p)\
**Replies:** 34\
**Last updated:** [August 13, 2025, 3:14pm UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens-scam/37649 "2025-08-13T15:14:46Z")

</div>

Hi. I bought a coin which I'm not able to sell. I'm terrible with code and want to see if there is any chance at all I can recover any BNB from this. The contract address is: 0x11111111a9345bc43eb4C3738EA25f4b401EcE5C …

---

## [Is there any way to prevent bots from depleting the liquidity of new tokens?](https://forum.openzeppelin.com/t/is-there-any-way-to-prevent-bots-from-depleting-the-liquidity-of-new-tokens/39203)

<div class="topic-metadata">

**Author:** [@E-Thor](https://forum.openzeppelin.com/u/E-Thor)\
**Replies:** 2\
**Last updated:** [August 4, 2025, 9:53am UTC](https://forum.openzeppelin.com/t/is-there-any-way-to-prevent-bots-from-depleting-the-liquidity-of-new-tokens/39203 "2025-08-04T09:53:22Z")

</div>

I want to launch a token, but I've consistently encountered a problem. Many bots take significant chunks of liquidity and dump after some sales, draining basically everything out of liquidity, leaving it fully depleted. …

---

## [Seeking Best Solution for Consolidating Funds From Multiple Wallets to One Destination](https://forum.openzeppelin.com/t/seeking-best-solution-for-consolidating-funds-from-multiple-wallets-to-one-destination/44546)

<div class="topic-metadata">

**Author:** [@AC\_Lover](https://forum.openzeppelin.com/u/AC_Lover)\
**Replies:** 0\
**Last updated:** [July 15, 2025, 12:31am UTC](https://forum.openzeppelin.com/t/seeking-best-solution-for-consolidating-funds-from-multiple-wallets-to-one-destination/44546 "2025-07-15T00:31:15Z")

</div>

I’m building a P2P platform and need to consolidate balances from multiple source wallets (e.g., Wallet Origin 1, 2, 3, 4) into a single destination wallet efficiently. Ideally, I'd like: To gather funds from several a…

---

## [Converting newly created contract address to address variable](https://forum.openzeppelin.com/t/converting-newly-created-contract-address-to-address-variable/44502)

<div class="topic-metadata">

**Author:** [@Snowpiercer](https://forum.openzeppelin.com/u/Snowpiercer)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 2:40am UTC](https://forum.openzeppelin.com/t/converting-newly-created-contract-address-to-address-variable/44502 "2025-07-10T02:40:36Z")

</div>

I am a noob help me please. :cry: :sob: X public xcreation = new X(); address payable Xpayable = xcreation;

---

## [Liquidity, trading, Bot Tax, deadblocks](https://forum.openzeppelin.com/t/liquidity-trading-bot-tax-deadblocks/37301)

<div class="topic-metadata">

**Author:** [@Quinn](https://forum.openzeppelin.com/u/Quinn)\
**Replies:** 15\
**Last updated:** [August 9, 2023, 8:28am UTC](https://forum.openzeppelin.com/t/liquidity-trading-bot-tax-deadblocks/37301 "2023-08-09T08:28:14Z")

</div>

I have a contract in that contract I have functions like enable trading, bot tax, deadblocks. Now I want to go live on rocketswap, the problem is I can’t add liquidity I get an error. I put the rocketswap router in con…

---

## [Refactor contracts to implement Diamond Storage Pattern](https://forum.openzeppelin.com/t/refactor-contracts-to-implement-diamond-storage-pattern/44204)

<div class="topic-metadata">

**Author:** [@Alexander-Herranz](https://forum.openzeppelin.com/u/Alexander-Herranz)\
**Replies:** 3\
**Last updated:** [June 18, 2025, 5:45pm UTC](https://forum.openzeppelin.com/t/refactor-contracts-to-implement-diamond-storage-pattern/44204 "2025-06-18T17:45:35Z")

</div>

Hi everyone, We have been using OpenZeppelin libraries from the beginning, but now we are requested to implement Diamond Storage Pattern (EIP-2535) to extend standard storage limitations in Solidity. The idea sounds go…

---

## [How can I implement role-based access control with OpenZeppelin’s AccessControl?](https://forum.openzeppelin.com/t/how-can-i-implement-role-based-access-control-with-openzeppelin-s-accesscontrol/44363)

<div class="topic-metadata">

**Author:** [@Suheb](https://forum.openzeppelin.com/u/Suheb)\
**Replies:** 1\
**Last updated:** [June 18, 2025, 12:28am UTC](https://forum.openzeppelin.com/t/how-can-i-implement-role-based-access-control-with-openzeppelin-s-accesscontrol/44363 "2025-06-18T00:28:14Z")

</div>

How can I implement role-based access control with OpenZeppelin’s AccessControl?

---

## [Help with https://bscscan.com/verifyContract please](https://forum.openzeppelin.com/t/help-with-https-bscscan-com-verifycontract-please/44349)

<div class="topic-metadata">

**Author:** [@Ahmed\_Omar](https://forum.openzeppelin.com/u/Ahmed_Omar)\
**Replies:** 0\
**Last updated:** [June 15, 2025, 3:42pm UTC](https://forum.openzeppelin.com/t/help-with-https-bscscan-com-verifycontract-please/44349 "2025-06-15T15:42:10Z")

</div>

Dears, I need someone to help with this please, this was the flattened code generated from remix The Contract address: 0x5a66adead2015e28528b9893cf3501e47ede2e63

---

## [How to Create an ERC-20 Token](https://forum.openzeppelin.com/t/how-to-create-an-erc-20-token/43976)

<div class="topic-metadata">

**Author:** [@lara\_vinson](https://forum.openzeppelin.com/u/lara_vinson)\
**Replies:** 2\
**Last updated:** [June 11, 2025, 5:59am UTC](https://forum.openzeppelin.com/t/how-to-create-an-erc-20-token/43976 "2025-06-11T05:59:43Z")

</div>

What is an ERC-20 Token? An ERC-20 token is a type of cryptocurrency built on the Ethereum blockchain that follows a standard interface. This standard, defined in EIP-20, ensures compatibility with wallets, exchanges, an…

---

## [Why can i not extract funds after wallet?](https://forum.openzeppelin.com/t/why-can-i-not-extract-funds-after-wallet/44289)

<div class="topic-metadata">

**Author:** [@X3\_Dev](https://forum.openzeppelin.com/u/X3_Dev)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 1:09am UTC](https://forum.openzeppelin.com/t/why-can-i-not-extract-funds-after-wallet/44289 "2025-06-10T01:09:35Z")

</div>

Hello I am attempting to add crypto to my online casino but I cant figure out how to auto approve my wallet? I am very new to smart contracts but I would like to expand and set a max allowance on each wallet I am unsure…

---

## [How to connect tronlink wallet with tron ide](https://forum.openzeppelin.com/t/how-to-connect-tronlink-wallet-with-tron-ide/43959)

<div class="topic-metadata">

**Author:** [@airndprocess](https://forum.openzeppelin.com/u/airndprocess)\
**Replies:** 5\
**Last updated:** [May 19, 2025, 11:28pm UTC](https://forum.openzeppelin.com/t/how-to-connect-tronlink-wallet-with-tron-ide/43959 "2025-05-19T23:28:28Z")

</div>

How to connect tronlink wallet with tron ide ?

---

## [Need someone expert in create a stablecoin](https://forum.openzeppelin.com/t/need-someone-expert-in-create-a-stablecoin/30688)

<div class="topic-metadata">

**Author:** [@gvarela](https://forum.openzeppelin.com/u/gvarela)\
**Replies:** 3\
**Last updated:** [May 16, 2025, 3:04pm UTC](https://forum.openzeppelin.com/t/need-someone-expert-in-create-a-stablecoin/30688 "2025-05-16T15:04:33Z")

</div>

Hi, i am looking for someone who knows how to create a stablecoin

---

## [Safest solution for recovering ERC20 token](https://forum.openzeppelin.com/t/safest-solution-for-recovering-erc20-token/44080)

<div class="topic-metadata">

**Author:** [@DSuser](https://forum.openzeppelin.com/u/DSuser)\
**Replies:** 0\
**Last updated:** [May 16, 2025, 1:21pm UTC](https://forum.openzeppelin.com/t/safest-solution-for-recovering-erc20-token/44080 "2025-05-16T13:21:47Z")

</div>

Hey, I'm implementing to my staking contract the solution to recover funds. My own ERC20 token is staked and this token is also used as the rewards. I didn't implement any recoverERC20() function or recoverMyToken(), s…

---

## [I need help to recover money in the nte5.cc project](https://forum.openzeppelin.com/t/i-need-help-to-recover-money-in-the-nte5-cc-project/43972)

<div class="topic-metadata">

**Author:** [@Edson\_Barbosa\_da\_Sil](https://forum.openzeppelin.com/u/Edson_Barbosa_da_Sil)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 11:56pm UTC](https://forum.openzeppelin.com/t/i-need-help-to-recover-money-in-the-nte5-cc-project/43972 "2025-04-29T23:56:19Z")

</div>

Good morning everyone! I'm Edson and I live in Brazil. A few days ago I joined the nte5.cc project through the Onechain wallet. I deposited 10 thousand reais, 177 USDT. After a few days, the withdrawal channel was closed…

---

## [Lose my eth cuz im fuckin dumb deploy contract without any knowledge](https://forum.openzeppelin.com/t/lose-my-eth-cuz-im-fuckin-dumb-deploy-contract-without-any-knowledge/44043)

<div class="topic-metadata">

**Author:** [@Luxiou\_OG](https://forum.openzeppelin.com/u/Luxiou_OG)\
**Replies:** 5\
**Last updated:** [May 13, 2025, 10:06am UTC](https://forum.openzeppelin.com/t/lose-my-eth-cuz-im-fuckin-dumb-deploy-contract-without-any-knowledge/44043 "2025-05-13T10:06:10Z")

</div>

"I only deployed RecoveryFactory and never deployed Withdraw or anything else. When RecoveryFactory was deployed, no salt was created. If there were a salt, I wouldn't be asking. That's why I'm confused—when was this 'sa…

---

## [Validadores de ethereum](https://forum.openzeppelin.com/t/validadores-de-ethereum/43992)

<div class="topic-metadata">

**Author:** [@Orland](https://forum.openzeppelin.com/u/Orland)\
**Replies:** 2\
**Last updated:** [May 3, 2025, 12:05am UTC](https://forum.openzeppelin.com/t/validadores-de-ethereum/43992 "2025-05-03T00:05:51Z")

</div>

como desplegar contrato de validacion en ethereum mainnet

---

## [How to Estimate the Cost of Developing Secure Smart Contracts Using OpenZeppelin Libraries?](https://forum.openzeppelin.com/t/how-to-estimate-the-cost-of-developing-secure-smart-contracts-using-openzeppelin-libraries/43934)

<div class="topic-metadata">

**Author:** [@jameswood32](https://forum.openzeppelin.com/u/jameswood32)\
**Replies:** 1\
**Last updated:** [April 28, 2025, 12:35am UTC](https://forum.openzeppelin.com/t/how-to-estimate-the-cost-of-developing-secure-smart-contracts-using-openzeppelin-libraries/43934 "2025-04-28T00:35:51Z")

</div>

Hi everyone, I'm planning a decentralized app (dApp) project and intend to use OpenZeppelin libraries for smart contract development. Could anyone share advice or methods on how to accurately estimate the cost involved,…

---

## [Potential false positive "Missing initializer calls for one or more parent contracts"](https://forum.openzeppelin.com/t/potential-false-positive-missing-initializer-calls-for-one-or-more-parent-contracts/43911)

<div class="topic-metadata">

**Author:** [@Heuristik](https://forum.openzeppelin.com/u/Heuristik)\
**Replies:** 2\
**Last updated:** [April 24, 2025, 7:03am UTC](https://forum.openzeppelin.com/t/potential-false-positive-missing-initializer-calls-for-one-or-more-parent-contracts/43911 "2025-04-24T07:03:33Z")

</div>

:1234: Code to reproduce I think I've handled the initializer calls for my upgradeable ERC20 token contract correctly. // SPDX-License-Identifier: MIT pragma solidity 0.8.28; import {UUPSUpgradeable} from "@openzeppeli…

---

## [This transaction would fail error](https://forum.openzeppelin.com/t/this-transaction-would-fail-error/43909)

<div class="topic-metadata">

**Author:** [@Cryptomaster](https://forum.openzeppelin.com/u/Cryptomaster)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 5:08am UTC](https://forum.openzeppelin.com/t/this-transaction-would-fail-error/43909 "2025-04-23T05:08:16Z")

</div>

Hello guys, I have seen a lot people getting This transaction would fail error when they trying to remove liquidity. This transaction would fail error can cause from different smart contract . This transaction would fai…

[Next page](https://forum.openzeppelin.com/tag/erc20/1.md?match_all_tags=true&page=1&tags%5B%5D=erc20)
