Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [erc-20]

The ERC20 Token Standard is a set of 8 functions to be included (in an agreed upon language) in a smart token contract in order to enable interoperability across multiple interfaces and dapps. These functions relate to (1) how tokens can be transferred (2) how to access data about the token, and (3) how to format key events like transfers and approvals. ERC stands for Ethereum Request for Comments.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Issue with ERC20 Contract Verification on Base API Despite Successful Response

I'm attempting to verify my ERC20 contract using the Base API. I'm receiving a positive response with the following: { "status": "1", "message": "OK", ...
Yazan Ali's user avatar
0 votes
0 answers
21 views

How come a memecoin like `PEPE` become popular with a very simple source code [closed]

I am reading some memecoin smart contract source code from etherscan. One of them is PEPE as an example, its source code is very simple, just a little extension from ERC20, below is the source code I ...
Joey Yi Zhao's user avatar
0 votes
0 answers
10 views

Subdecimals in ERC20 tokens and wallets?

Is there any standard or any discussion of standard for wallets to display not the standard unit of a token, but perhaps 10^-3n, such as one thousandth, one millionth. Much like wei, gigawei, etc. ...
BipedalJoe's user avatar
0 votes
1 answer
18 views

Is there Uniswap V2/V3 function to get initial token supply amount in pool?

I need to get initial token supply when liquidity pool was created by querying Ethereum node (RPC) or Uniswap contract and not Mint() function, is it possible to do (python)? To get reserves on any ...
sirjay's user avatar
  • 121
0 votes
1 answer
17 views

Congestion in ERC20, not allowing me access to my transfer unless I pay 10% or it will be lost

I transferred 3mil from Coinbase Wallet, CounbaseETF. I was informed that the transfer was congested in the ERC20 network and I will not have access unless I pay a 10% fee within 20 days. Is this ...
Danny B's user avatar
1 vote
1 answer
15 views

ERC-20 Tokens Stuck on MIST Multisig Contract on the Polygon Network

Help! I can't get access to these tokens.... I have ERC-20 tokens attached to a MIST multisig contract on the polygon network. Here's a contract similar to mine (by not mine). This might actually ...
sisafish's user avatar
2 votes
1 answer
143 views

Are there any no-code tools for deploying ERC-20 tokens?

As the title says: are there any no-code tools for deploying ERC-20 tokens?
Paul Razvan Berg's user avatar
0 votes
1 answer
13 views

Transferring funds after Permit is given

I have 20 ERC 20 tokens. I use Permit and give my signature to allow a contract to spend 20 of my tokens. However, I move these tokens to another wallet before transferFrom happens. What happens when ...
Anthony Chung's user avatar
0 votes
0 answers
13 views

How can i claim airdrop from contract with another wallet not whitelisted

i have an airdrop wallet to claim DOP token on erc20 which cant be transfer yet on chain, but the wallet is compromised, i need a way out
Wagmi Bruh's user avatar
0 votes
0 answers
13 views

I have a staked token in my wallet that seems to be increasing in amount over time. Is this a special type of contract?

I staked a token and the amount increases over time. Is this a special type of contract? Is it still considered an ERC-20?
Patoshi パトシ's user avatar
0 votes
0 answers
16 views

How do you actually link Real World Asset to newly issued tokens?

I've been exploring possibilities to tokenize real world assets, such as a real estate, and I came across the concept called Real World Asset Tokenization link. Aside from all the gibberish about how ...
Hitit's user avatar
  • 101
0 votes
0 answers
17 views

Downscaling liquidity tax according to ETH reserves for fair distribution without presale

So I wanted to try and solve the problems that arise when releasing a token with very low liquidity. Presaling should absolutely be avoided since holders always dump at the start. Assume 50 to 100% of ...
Ashraile's user avatar
  • 125
0 votes
1 answer
30 views

TotalSupply of token not showing

Trying to practice web3, I want to show the total supply of ERC20 token by making a frontend. Please help ! import React, { useState, useEffect } from 'react'; import Web3 from 'web3'; import erc20ABI ...
Asad Arslan's user avatar
0 votes
1 answer
28 views

SwapRouter02 not working with custom ERC20 token

I am trying to programmatically swap ETH for a custom ERC 20 token (let me take a meme token as an example) Here is my code that I swapped ETH for USDC: const { ethers } = require("hardhat");...
duyanhhz's user avatar
0 votes
1 answer
15 views

Gas Estimation Error - Simple Token + ICO Project

I am a beginner in Solidity and created a simple token + ico file and am testing the code on Base Sepolia Testnet and am running into a peculiar error. I keep getting Gas Esimation Error on the ...
QuantPhdResearch's user avatar
0 votes
0 answers
12 views

Smart Contract on Trust Wallet

After the lock up period of 180 days in a smart contract Ethereum blockchain how can I get my fund back? Should I do anything or it is received automatically?
Mrityunjoy Ghosh's user avatar
0 votes
1 answer
14 views

ERC-20 allowance always 0 after approval

I'm writing a smart contract that transfers ERC-20 tokens from wallet A (sender) to wallet B (receiver) and deducts a fee to wallet C (owner of the contract). The problem is that when I'm trying to ...
Buffer's user avatar
  • 5
0 votes
1 answer
37 views

Transfer erc20 tokens ethers-v6

I was using token contract to transfer erc20 tokens to an address and it was working perfectly fine. but since i have migrated to ethers v6. everything has messed up. All the methods are either ...
Faisal Anwar's user avatar
0 votes
1 answer
31 views

Solidity fundamentals

sometimes I am confused of how solidity works. For example in this case: function claimAssetsFromBridge( bytes calldata message, bytes calldata attestation ) public { IMessageTransmitter(...
Agustin Gonzalez Ribas's user avatar
0 votes
1 answer
35 views

Insufficient Allowance ERC20 when adding liquidity to Uniswap V2 Pool

I am trying to create a contract with a Uniswap V2 Pair for my TestMe Token on Sepolia Testnet. Smart Contract: // SPDX-License-Identifier: MIT pragma solidity 0.8.24; import "lib/openzeppelin-...
SolidityNewbie's user avatar
0 votes
2 answers
24 views

Gas estimation error when trying to send ERC 20 to multiple addresses

I was trying to programmatically send ERC 20 tokens from one wallet to multiple other wallets Here is the code from Disperse App that I referenced to: //SPDX-License-Identifier: UNLICENSED pragma ...
duyanhhz's user avatar
0 votes
0 answers
8 views

Efficient way to find ERC20 token contract deployments in a given time range

Given a time range, say in last 24 hours, I want to get the list of all ERC20 compatible contracts deployed efficiently. Currently, only two ways I can think of are: scan through all transactions and ...
explorer66's user avatar
0 votes
0 answers
16 views

unable to sell token despite seeing other wallets selling

I bought this token on base network and the contract looks perfect to me, but i realize i was unable to sell/swap the token after increasing the slippage to 50%, i can see other wallets selling and i ...
Job Toni's user avatar
0 votes
1 answer
42 views

ERC20 Token Balance to Zero After Swap

I tried to do some token swaps on Uniswap. I also checked other topics in the forum but couldn't understand what really happened because I couldn't find any transactions that shows something happened ...
morez890's user avatar
0 votes
2 answers
46 views

Unknown Selector Error (0x98296c54) in BIGTTokenTest.t.sol

Unknown Selector Error (0x98296c54) in BIGTTokenTest.t.sol Description: I'm encountering an "unknown selector 0x98296c54 for VmCalls" error in my testbobBalance function within the ...
Hessamedean Aghajanlou's user avatar
0 votes
0 answers
23 views

Code not executing after initializing new Ethers Interface

I'm trying to use Ethers to create an ABI interface that I can use to query block specific data with Alchemy. The document I'm referencing is https://docs.alchemy.com/docs/how-to-get-erc-20-token-...
Dylan Nguyen's user avatar
6 votes
2 answers
88 views

Can the `totalSupply` of a token be different than the sum of all account balances?

If I'm building a rebase token that has a difference of 1 wei sometimes (pre/post rebase) between the totalSupply and the sum of the balances of all holders, does that pose an attack risk within the ...
dNyrM's user avatar
  • 908
0 votes
0 answers
10 views

How malicious are approvals on default ERC standards?

Assuming i have deployed contract A, that is a marketplace for tokens. Contract A uses all default OpenZeppelin interfaces. Multiple approve for example unlimited USDT to contract A. After some weeks, ...
De ruige's user avatar
  • 123
0 votes
2 answers
18 views

TypeError: Member "isUserBlackListed" not found or not visible after argument-dependent lookup in contract IERC20

I created the ERC20 smartcontract and presale token contract. But when I try to call the function token.isUserBlacklisted(msg.sender) from the ERC20 contract I receive the next error: TypeError: ...
Olena Stasiuk's user avatar
0 votes
0 answers
74 views

do LP and Swap by using uiniswap V2 in Sepolia Testnet

I deployed a contract on the Sepolia Testnet to facilitate Liquidity Provision (LP) and swapping using Uniswap V2. The deployed contract can be found at the address: https://sepolia.etherscan.io/...
rebwar's user avatar
  • 3
1 vote
1 answer
14 views

Advantages of projects issuing their own proprietary tokens

If you were to start a GameFi project, wouldn't you get more users using ETH than issuing your own tokens? I myself would be interested in that if I could get ETH for completing the game. Issuing your ...
chan's user avatar
  • 11
0 votes
0 answers
8 views

new link on the 1 inch app

I have a 1inch account and I invest in usdt! I haven't been online for a while on 1inch and on the "ercusdt.net" site. Does anyone in the community know the new site by any chance so they ...
andrea's user avatar
  • 1
0 votes
1 answer
27 views

ERC20 Transfer doesn’t work

I am new to smart contracts, trying to make an NFT Raffle contract. I wanted to allow people to buy with chain currency (MATIC) and a custom ERC20 token. I got it to work with main chain currencies ...
Mohamed Wael's user avatar
0 votes
2 answers
36 views

Smart contract creation

I just joined because I am trying to learn how to create Solidity contracts using OpenZepplin. I am using also claude AI to guide me but it has a limit and it's going in circles now. Until now I ...
Onigiri's user avatar
0 votes
0 answers
8 views

multiple claim with same amount

my smart contract is deployed to mainnet and my claim function has deadline of 2 min but in between user can go to explorer and claim the amount twice and I cant chnage contract code because there are ...
Rashmi Chouhan's user avatar
0 votes
0 answers
32 views

How to get the token prices from the uniswap v3 pools?

I have to write the solidity code to fetch the prices of token pairs from the uniswap v3 pools but I have no idea how to get the prices of the token pairs from the uniswap v3 pools to my smart ...
kumar's user avatar
  • 61
0 votes
0 answers
11 views

Custom Taxation Logic Not Functioning on Token Contract - Previously Deployed Contract Exhibited Proper Functionality

I'm encountering an issue with the custom taxation logic implemented on my token contract. Interestingly, I've deployed a similar contract last year with the same logic, and it was functioning ...
Abdullah Hanif Chaudhary's user avatar
1 vote
1 answer
137 views

Web3 Contract (React) - SafeERC20 Low Level Call failed with ERC20 Token (USDT)

I am working since 8 days on a problem with my smart contract and / or with my Web3 App. If I try to use the contract with ETH it works well in the moment I try to use it with an ERC20 token (USDT) it ...
Aleksandar's user avatar
1 vote
1 answer
70 views

Cannot send USDT on Polygon : Error happened while trying to execute a function inside a smart contract

//token_address is the adress of the contract : 0xc2132D05D31c914a87C6611C10748AEb04B58e8F //because USDT on polygon is a Proxy contract, minABI is the abi of the contract where it redirect : https://...
Francois's user avatar
0 votes
1 answer
24 views

ERC20 payment mechanism solution

I want to implement payment mechanism on my web site . after too many search on internet . i understood payment gateways like cryptomus or bitpay generate new address peer payment order . then never ...
mah454's user avatar
  • 101
0 votes
1 answer
22 views

Paying fees in custom ERC20 tokens in MATIC blockchain

I came across a statement that I find quite undoable. How can you pay the fees using your custom token in MATIC? Is this doable or am I missing something?
Allennick's user avatar
  • 253
2 votes
0 answers
50 views

Metamask doesn't work when sending EIP-681 transactions

I use this website to create EIP-681 transactions: https://brunobar79.github.io/eip681-link-generator/# My default wallet is Metamask. When I scan the QR code for the transaction and proceed it, it ...
Dakata's user avatar
  • 225
1 vote
1 answer
21 views

How to Securely Call Internal Functions from a Factory Contract in Solidity?

I have two Solidity contracts: a token contract and a token factory contract. The token factory contract is responsible for deploying various tokens. Within the token contract, I have defined mint and ...
Asir Shahriar Roudra's user avatar
1 vote
2 answers
27 views

How does the real Ether work in ERC20 protocol?

I am reading ERC20 protocol and learning how that is implemented from OpenZeppelin: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol The code demoed ...
Joey Yi Zhao's user avatar
0 votes
1 answer
51 views

How to Add a Custom Contract to Trust Wallet

If I deploy a contract on the Ethereum Mainnet or a testnet like Sepolia and store USDT in that contract, will Trust Wallet display my balance and the USDT stored in that custom contract?
freak OG's user avatar
0 votes
2 answers
26 views

Can ERC-20 tokens be used in a smart contract?

All of the dApps I’ve seen and used so far only accept ethereum as a payment. Is it possible for dApps (not including the token’s smart conract) to use ERC-20 tokens?
11111's user avatar
  • 101
0 votes
0 answers
16 views

I have sent SYN tokens and are stuck in my ETH wallet. What can I do?

I have my SYN tokens stuck in my ETH wallet and can see them in etherscan. Anyway to send them out back to the original address the tokens weren't sent from? 0xF66Bd3fa316aBD9c44492bc92AefC90652AE9311 ...
Kevin B's user avatar
1 vote
0 answers
23 views

Solidity: ParserError: Expected primary expression

I coded this // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "/contracts/HAHA.sol"; interface ERC20 { function transfer(address to, uint256 amount) external returns (...
Francesco Battarano's user avatar
0 votes
0 answers
23 views

Dividend paying with Erc20Votes

I want to implement dividends in my platform working with an erc20votes token from Openzeppelin. The platform works with holders delegating their balance as votes to a representative. The elected ...
wolf dun's user avatar
0 votes
1 answer
66 views

Bridge of tokens to L2?

I am developing erc20 tokens and Dapps. If we can issue tokens to ethereum and when they are moved (e.g. when we move tokens according to Dapps rules) we can use polygonZkEVM or optimism with high ...
tjtr's user avatar
  • 1

1
2 3 4 5
52