Questions tagged [bep20]

68 questions
1
vote
1 answer

What if we don't emit event in smartcontract

In ERC20 interface, there are 2 events to be implemented. ​ event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); What if we actually implement…
Edmund
  • 53
  • 3
1
vote
1 answer

Will using import statement in my BEP20 Token code affect me in the future?

I recently created a BEP20 token on remix etherium. But instead of writing the whole code, I used import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol" and added some 5-6 lines of my own. If by…
0
votes
0 answers

Transaction has been reverted by the EVM

I am trying to send bep20 tokens by using smart contract's transfer method, kindly refer code snippet mentioned below let contract= new web3.eth.Contract(contractABI, tokenaddress, {from: fromAddress}); const receipt = await…
0
votes
1 answer

how to reduce token total supply from Bep20?

I have created a Bep20 contract using Binance template you may find the template here: https://docs.bnbchain.org/docs/issue-BEP20 and now i want to reduce the total supply of token/burn token but i have not fund any function/method to reduce the…
jyoti
  • 1
  • 1
0
votes
0 answers

How to buy both USDT and ETH in Token Presale?

I have created an ERC20 token. I want to create a new contract called Presale and collect it here presale. The token can be purchased on both ETH and USDT. There is one problem. How can I set up selling with both ETH and USDT. So if the token price…
0
votes
1 answer

Faucet contract only permits owner to perform transactions

All is good and work very well, but why when I need to call function requestTokens, only owner can have success on transaction while other address can't use the function because the contract cause execution…
0
votes
1 answer

Transferring ERC20 contract to BEP20

So I have a working contract code on Remix, but it's written for ERC20 and I need to somehow change it so that it works on BEP20. I'm like really-really new to all of this and can't understand much of Solidity. Sorry if the question is stupid by…
run4w4y
  • 1
  • 1
0
votes
1 answer

It is possible to change BEP-20 smart contract code?

I have deployed a contract on the BEP-20 network and now I don't need mint and owner address transfer functionality. So I want to remove these options from the "write contract" options list. If it is possible if yes then what can I do?
Rk dev tech
  • 190
  • 1
  • 14
0
votes
1 answer

MetaMask can't submit transacion

When a user using walletconnect on our dapp sends a transaction (calling transfer method of smart contract of BEP-20 token) the transfer popup show up but nothing happens after confirm button click (reject is able to click) Everything worked fine…
Claire
  • 93
  • 6
0
votes
0 answers

Requesting random number on Chainlink Testnet and getting zeroes

I have been working on something that encapsulates chainlink random number on nfts to provide them to users, using a chainlink subscription and adding my smart contract as a comsumer. When working on testnet I am finding some times it gives me zero…
eac
  • 1
  • 1
0
votes
1 answer

How do I increase the token amount? (BEP20)

I created BEP20 token via remix, now I want to increase this token amount. How can I make 100 thousand tokens 200 thousand?
Learning
  • 33
  • 3
0
votes
0 answers

bsc geth smartcontract doesn't react to eth_call

In my project - I try to iterate with smartcontracts(bep20/erc20). I've implemented some dummy bep20/erc20 smartcontracts and prepared docker images to run with premined deposited addresses my integrational tests. In eth chain I'have no problems - I…
0
votes
0 answers

How to secure Web3 JS code for Token Claim function

I am new in web3 JS and using this code to Claim token from my smart contract to users. It's working fine, on button click metamask will open and user pay gas fee and token claim will be done, but where is security? anyone copy this code and…
Yogesh Saroya
  • 1,401
  • 5
  • 23
  • 52
0
votes
0 answers

what is the correct address for BUSD Testnet for transferring with Web3/Metamask?

I have a requirement of building Smart contract where BUSD is concerned.After googling, i came to know about 2 BUSD address and I don't know which one is going to used in smart contract implementation(Testing Mode). 1st Contract Address -…
0
votes
1 answer

What Does this code mean in BEP20 token writting with Solidity

I'm trying to understand what this lines of BEP20 code mean, it is written in solidity constructor () { _rOwned[owner()] = _rTotal; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E); …