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
0answers
4 views

clone pancakeswap but it's show error Unhandled Rejection (Error)

I clone pancakeswap-frontend. when run I got above error. But I can't solve this problem. Unhandled Rejection (Error): invalid address (argument="address", value=undefined, code=...
0
votes
1answer
12 views

How much liquidity to provide to Uniswap?

So you deployed your brand new ERC20 token to Uniswap. I understand you need to provide liquidity for your token pair in Uniswap so people can start buying your token. Now, what I'm trying to wrap my ...
0
votes
0answers
11 views

erc20 staking analytics

I am trying to analyze if/how staking affects the price of an ERC-20. Is there a way to find the total number of a specific ERC20 token staked each day? Does the transaction hash or input provide any ...
1
vote
0answers
12 views

Running ERC20 contract on RSK

I have been reading about RSK lately and was wondering about the compatibility and possibilities, so I wanted to ask for some basic info in case there's someone more knowleadgable. I have a smart ...
1
vote
1answer
30 views

Get total supply of any ERC20 token in Solidity

I'm a new developper on Solidity and maybe this is a trivial question but it is a crucial point for my project. Is there any way to get the total supply of any ERC20 token (WBTC, and others) on ...
0
votes
0answers
13 views

How to add Lock Function on solidity?

I have code for the ERC20 token which has freeze, unfreeze, lockUser & unlockUser functions. I want: When I lock someone he will be automatically unlocked after x days or, Scheduled release of ...
0
votes
1answer
26 views

How to write a simple token contract which token can only be transferred within the specific geographical region?

In my use case, I want to build a local currency system with solidity. The core concept of local currency is that the currency can only be used in the specific region. It aims to encourage spending ...
0
votes
1answer
21 views

ERC20 Token Batch Send Security

I've written a function to send tokens in a batch, just wondering if this is secure, and if this is the best way to go about it (instead of using something like Token Multisender). Here is the ...
0
votes
0answers
25 views

Non-native tokens versus Native tokens

to me ERC-20 tokens are a sub-class of Ether, yet they are referred to as "non-native tokens". Why would they be called non-native? What would be native in the Ethereum sense then? Cardano-...
0
votes
0answers
13 views

ERC-20 tokens parked (now trapped) in smart contract pre-mist and after Ethereum Wallet sunsetting

I have the keystore file, paper wallet and passphrase for the wallet. On my very first day learning about ethereum I installed Ethereum Wallet that does not get supported anymore. I downloaded the ...
0
votes
1answer
24 views

Problem with implementing ERC-20 interface in Solidity contract

I'm trying to implement contract which interacts with ERC-20 via interface. Code of interface was taken from openzeppelin github. The problem is that it fails any transaction which triggers contract ...
0
votes
1answer
19 views

Deploy ERC20 token first while still developing the main contract?

Would there be any issues if I deploy the ERC20 token first while still developing the main contract that will give utility to the said ERC20 token? Also, on the main contract, how do I reference the ...
0
votes
0answers
23 views

Mistake when deploying erc20 contract [closed]

I accidently set the total supply of my erc20 token to 1,000,000 with 6 decimal places. If I'm correct, that means that there's only 1 token that will be minted. A) Is what I said correct? B) If so, ...
0
votes
0answers
101 views

How to convert my custom ERC20 token to BEP20?

I have my custom token on the Ethereum network and I want to send part of the tokens to the binance smart chain. That is, issue a wrapped token.For example: https://etherscan.io/token/...
0
votes
0answers
25 views

how to create a smart contract that uses ERC20 as way of payment?

im creating a smart contract that will receive and automatically redistribute erc20 tokens! how can i implement that in solidity? i've tried a couple of codes examples but nothing have worked so far! ...
0
votes
1answer
34 views

swap token for usdt, create function send 1 usdt and receive 1 token

I need to create a smart contract where each token of mine will be exchanged for 1 usdt, that is, a person sends 1 usdt to the function and he adds 1 token to his balance sheet. How can I do it? with ...
0
votes
2answers
39 views

how can we stop front running for `approve` [duplicate]

function approve(address _spender, uint256 _value) returns (bool success) This is the ordinary ERC20 approval method. It's easy to figure out that we have a problem of front-running. Alice gives ...
0
votes
0answers
15 views

Is this transaction fee for contract creation normal?

I am creating erc20 token. Transaction fee for it is about 0.3ETH. Contract size is not big. Is this price normal or am I doing something wrong? Gwei 262. Current Eth price 1917USD. Contract : pragma ...
1
vote
0answers
12 views

API for circulating supply

I am trying to list circulating supply on coingecko for an ERC20 token - how would I go about doing this? I've been able to find one for total supply, but not circulating however.
0
votes
0answers
17 views

Web3 + Truffle, is this the correct way to approve a spend?

I have created an ERC20 token using Web3, Openzeppelin and Truffle, and minted some tokens. const LToken1 = await ERC20.new('Test L Token 1', "TEST1", web3.utils.toWei('1000000')); I would ...
0
votes
0answers
18 views

How to send ERC-20 tokens to many different addresses in one transaction? [duplicate]

kindly help. How to send the same ERC-20 tokens to many different addresses in one transaction and save the gas fees?
0
votes
0answers
23 views

Where should I put the estimate gas produced by the remix IDE in my code?

I'm creating the ERC20 smartcontract transfer with web3. I just want to use gas optimally so that users want to do token transfer. From the Remix IDE I got the GASESTIMATES. But I don't know where to ...
0
votes
0answers
19 views

Transactions between ERC-20 Token and DEX on Etherscan

Below is a screenshot of transactions at an address I take to be the ERC-20 token SAND (Sandbox). Is this right? that the link below the image is the singular address where this ERC-20 token issues ...
0
votes
1answer
21 views

Sequential swaps on dexes

I wrote a smart contract in solidity to swap ERC20 tokens on different exchanges, however I'm still stuck on how to get my transaction to go from one dex to another without having to use my smart ...
0
votes
0answers
9 views

Are there any open source accounting systems

I am looking for some accounting system for my project. I am developing an app where people have their own accounts, just like on any centralized exchange. Users will be able to deposit some ERC20 ...
0
votes
0answers
10 views

How to create a smart contract which hold different erc20 tokens or ETH?

I want to make a simple smart contract. where any user can send ETH (or any ERC20 token) to the smart contract. but how to keep track of every token, their weight in the smart contract, and the ...
1
vote
1answer
38 views

Experiencing an “invalid signature error” when trying to use the “permit” feature of ERC20 tokens that support EIP712

I'm currently writing a few smart contracts in solidity and interacting with them through web3. The premise being that a token can be deposited into a pool and can then subsequently withdraw at a ...
0
votes
0answers
29 views

Getting the address of an ERC20 Token?

I am trying to understand how to use the IERC20 token interface. From what I understand, I need to create an instance of an IERC20 token with the address of the token contract. Something like this: ...
0
votes
0answers
16 views

List of Smart Contract Addresses for all recently created Tokens

Is there a way to Get a list of Smart Contract Addresses for all recently created ERC-20 Tokens? Recently means for the last 24 hours (for example) or for/in the last block. Thanks in advance!
0
votes
1answer
14 views

Why is my approve() function using incorrect token_id

I have created an ERC20 token using openzeppelin and web3. I am then trying add some of this new token to a contract (An instance of UniswapV2Router02.sol) in order to add liquidity to a liquidity ...
2
votes
1answer
30 views

How to get the sum of tokens on all Ethereum addresses generated by one private key?

I need a tool that automatically show all wallet addresses generated with one private key. Ideally, it would be to manage tokens on any of the addresses from one place. This is implemented in the web ...
0
votes
0answers
34 views

Non ERC 20 coin sent by mistake to MyEtherWallet (MEW)

Newbie here - apologies for anything inappropriate and lack of tech expertise. I made a dumb mistake and sent some THETA tokens to a MEW Ether address. My bad - I had not realised that THETA had moved ...
2
votes
1answer
25 views

Life cycle of ERC-20 token: how to modify token in the future

I am wondering how the life cycle of a ERC20 token operates. Say at stage 1 an ERC20 token 'anytoken' is created along with a proposed road map of desired future development for 'anytoken'. After ...
0
votes
1answer
43 views

Attempting to transfer erc20 elrond to elrond gold in trust wallet - error insufficient funds

Does anyone have a step by step guide to transfer my 7566 elrond to elrond gold? My elrond is in Trust Wallet and tried to send to my elrond gold wallet but network said I have insufficient funds and ...
0
votes
1answer
23 views

Learing to work with ethereum ERC-20 - How to issue new tokens? How to destroy tokens? How to split tokens?

I am learning to write ERC-20 contracts and I try to emulate common stocks. I would like some tips on how to implement it. How to issue new tokens? - Emulate issuing new stocks. How to destroy tokens? ...
0
votes
0answers
292 views

Unable to swap scam token on uniswap

I think I have been scammed with a fake token on uniswap. Yesterday I bought a safepal token in exchange for ethereum. After I started to suspect I tried to swap back the safepal token to ethereum. ...
1
vote
0answers
11 views

Transfer loan to other wallet

Say I have deposited to the y-pool at curve.fi and staked the corresponding crv tokens at the gauge. Is it possible to transfer that "loan" to another wallet without unstaking?
0
votes
1answer
23 views

Restrict ERC20 transfer and reception to owners of a particular NFT

I need to create an ERC20 token which transfer and reception is restricted by a membership, indicated by an NFT (ERC721) in the sender's and receiver's address/wallet. How can I check in the ERC20 ...
1
vote
2answers
45 views

Use bytes32 instead of string for token metadata

I'm writing a contract for an ERC-20 token, and I've been trying to optimize for gas (since the fees are ridiculous at the moment). I was wondering if instead of using a string, I could use a bytes32 ...
1
vote
1answer
33 views

How can oracle PROVE that a transaction was mined?

I want to build an oracle similar to OmniBridge for xDai or Arbitrary Message Bridge but I am worried about how to make it secure. It would seem such an oracle should be reliable, as long as there is ...
0
votes
0answers
31 views

Withdraw erc20 DAI token from smart contract but get DAI/insufficient-allowance

I try to withdraw DAI token from smart contract into my wallet on kovan net that holds around 20 dai by executing the following: const mantissa = (numberOfDaiTransfer * Math.pow(10, underlyingDecimals)...
0
votes
0answers
5 views

Getting signed out of MyEtherWallet after trying to sign contract

I am trying to create a token in testnet. I sign-in using MEW Wallet and when trying to deploy a contract, I need to verify it using my phone. But I don't get to that part, because I get signed out ...
0
votes
1answer
17 views

ERC20 Contract transfer call failed multiple times, no idea why

I found this token that got airdropped on me a while ago, and I don't want it. It was valued at $18 or so. I decided to sell it, but the exchange had a minimum amount, so I simply bought more so I ...
0
votes
0answers
20 views

What is the difference between SafeERC20.sol VS ERC20.sol

Need to understand the safeERC20.sol and ERC20.sol from openzeppelin I was reading the medium articles and unable to understand why safeERC20.sol has been used Please help me understand this Thanks
3
votes
1answer
418 views

How Do Sniper Bots Really Work?

If you ever traded in defi, you probably have seen coins getting sniped at the very second of their launch and drastically inflating the prices. I assume these bots are written in js, ad using web3 ...
0
votes
0answers
83 views

I accidentally sent uni token to contract address. Can i get it back?

Instead of transferring my Uni token to my binance wallet, tokens dropped to contract address. I tried to send my 400 uni tokens to my wallet in binance with the metamask wallet. but as you can see ...
0
votes
1answer
41 views

How to acquire ERC20 tokens on a test net?

I want to interact with a smart contract on Rinkeby, but I need to have ERC20 tokens to do so. I know how to get Ether on Rinkeby, but how would I get ERC20 tokens? Do I have to deploy and ERC20 ...
0
votes
0answers
11 views

Tool to find addresses owning a specific set of tokens

Does a tool (similar to etherscan or nansen) exist to identify addresses, which own a specific set of ERC20 tokens? I.e. Being able to find an array of addresses owning both the token $rook and $mta.
2
votes
1answer
33 views

What is this allowance check in ERC20 transferFrom implementation

There is something i do not understand in this file: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol function transferFrom(address from, address to, uint value) ...
1
vote
1answer
44 views

How to create a snapshot of ERC-20 token balances?

Token holder snapshots are useful for airdrops, dividends and such. How to create one?

1
2 3 4 5
30