Questions tagged [erc20]

ERC-20 is a smart contract standard defining an interface and a set of rules for development of fungible tokens on the Ethereum platform.

462 questions
0
votes
1 answer

Solidity ERC20 Contract with UTF-8 Decoded Characters

I need to write a contract that uses verbiage from a latin based language. Which takes special characters such as é, ç, ã, ô etc.... I'm using Hard hat to write it. I've found an example here, also using open Zeppelin: Example that works When…
Null isTrue
  • 1,882
  • 6
  • 26
  • 46
0
votes
1 answer

Solidity - ERC20 Legal Verbiage

Where in the code and what is the proper way to add legal verbiage to my ERC20 Smart Contract? I've seen a few samples where it gets saved on a variable and then that variable value is referenced in the body of a function using memory. i.e. contract…
Null isTrue
  • 1,882
  • 6
  • 26
  • 46
0
votes
1 answer

Get proper sell price from Uniswap V2

I was able to fetch proper trade result of swapping 1 WETH to DAI using Uniswap v2 SDK. Now I wanted to fetch how much DAI I need to provide, to get 1 WETH. To trigger this on the Uniswap Interface you simply create trade DAI -> WETH and then type 1…
Karzel
  • 928
  • 9
  • 24
0
votes
1 answer

BEP-20 Contract no deploy public view functions

I am studying how to make BEP-20 tokens. For this I copied the following contract in remix to be able to study it: Contract in BscScan If I copy the whole file and compile it in Remix, when I deploy it it doesn't show me any getters. No public view…
Fernando López
  • 184
  • 1
  • 11
0
votes
1 answer

ERC20 - How to split the initial token supply on multiple accounts?

Can someone explain to me why it's not possible to split the initial total supply with the Transfer event to multiple address that are not the _msgSender() address ? The goal here is to "mint" with the 0x00 address the tokens on multiple wallets…
0
votes
1 answer

ERC20 token contracts / after verifying on Etherscan, all token contracts become visible to the public

I have a question about ERC20 token contracts in general: Apparently after verifying on Etherscan, all token contracts become visible to the public. Isn't that a security risk ? What if we do not verify our contract ? Can some of these contracts…
John M
  • 13
  • 4
0
votes
1 answer

How can a crypto be transfered from a wallet to another, through an other blockchain than it's own?

let me just clarify my question with an example: Let's say you want to transfer 1 eth from an account A to an account B, both on the binance exchange. When A goes to "Withdrawal" on his eth on binance to send his eth to B there is two options…
0
votes
2 answers

How to add "transaction fee" to ERC20 or BEP20 smart contracts?

There's new tokens that "charge a transaction fee" aside the usual ETH gas fee. I'm talking about a transaction fee that subtracts from the token itself. Let's say 100 tokens are transferred. 1 token goes into a central account as "transaction fee".…
0
votes
1 answer

How to generate a Blockcypher contract without error?

I was building my own contract here: https://www.blockcypher.com/dev/ethereum/#create-contract-endpoint ENGINE.PHP
Mystogan
  • 114
  • 2
  • 13
0
votes
1 answer

Transaction to Uniswap failing on Ropsten TestNet

I am trying to create a transaction on Uniswap programatically, the flow nd code seems to be there, but for whatever reason the transaction fails on Ropsten for "Warning! Error encountered during contract execution [Reverted]". I am using javascript…
Pespi coke
  • 1
  • 1
  • 1
0
votes
1 answer

Solidity Import Multiple Declarations

I need to use external contracts (AAVE) so to call their methods I import them. Nevertheless, this import conflicts with the previous ERC20 Declaration and I have the next error: browser/Project.sol:10:1: DeclarationError: Identifier already…
0
votes
1 answer

Solidity gas estimation - always out of gas when setting to 0

I'm trying to figure out a solution to this problem, to do with transaction confirmation order and setting values to 0 pragma solidity ^0.5.17; contract Test { uint256 amount; constructor() public {} function join() public { …
Boyswan
  • 224
  • 1
  • 4
  • 12
0
votes
1 answer

How to send erc20 token from my metamask wallet to other address without private key?

I'm going to send erc20 token to other metamask wallet address in node.js. Now I can send erc20 token using my wallet private key. But I want to send it without private key. How can I do for it? Please Help me!
0
votes
0 answers

Can not Deploy ERC20 Token using Truffle

I'd like to deploy follow "StandardERC20" token to kovan test net using Truffle. I want to deploy same contract like "https://etherscan.io/address/0x69d9905b2e5f6f5433212b7f3c954433f23c1572#code" to kovan. But I got follow errors. I added error log…
0
votes
0 answers

Module not found - project directory path error

I am getting an error message that says: Module not found: You attempted to import ../contracts/PreciousChickenToken.json which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. How do i setup my…
Luke
  • 83
  • 1
  • 1
  • 5