Questions tagged [bsc]

86 questions
0
votes
1 answer

Sending BNB from inside smart contracts with solidity

I need to transfer BNB from inside my token contract with solidity,can any one help about that? On bsc network.
M.Alaghemand
  • 105
  • 2
  • 6
0
votes
1 answer

Solidity: Binance smart chain token: Why I can't find definition of transaction fee setting?

There is the code of one bsc (binance smart chain) contract. It is quite clear. But I can't find one thing here. They have written on the website that 2% of each transaction goes to charity, 3% to liquidity pool and 2% are tipsy rewards. These fee…
-1
votes
0 answers

Contract call function works on testnet but doesn't work on mainnet on bsc chain

The call function for getTokensForUSD works perfectly on testnet and hardforks but doesn't work on mainnet... Here's the function code :- function getTokenForUSD(uint256 _usdAmount) public view returns(uint256 , uint256 tokenAmountRequired) { …
Mr Beast
  • 1
  • 1
-1
votes
0 answers

The contract function "addLiquidityETH" reverted with the following reason: PancakeLibrary: INSUFFICIENT_LIQUIDITY 2

-1 I got an error when adding liquidity to my coin on the BNB Smart Chain mainnet. During development and testing on the test network, there were no problems. It appeared only on the mainnet. the error appears when I want to add liquidity on…
-1
votes
0 answers

The contract function "addLiquidityETH" reverted with the following reason: PancakeLibrary: INSUFFICIENT_LIQUIDITY

I got an error when adding liquidity to my coin on the BNB Smart Chain mainnet. During development and testing on the test network, there were no problems. It appeared only on the mainnet. the error appears when I want to add liquidity on…
-1
votes
0 answers

web3 TransactionRevertedWithoutReasonError: Transaction has been reverted by the EVM: ...code: 405

I'm trying to send some USDT (BEP20) from a wallet to another wallet. But always getting the same error. Warning! Error encountered during contract execution [out of gas] The Transaction on BSCscan:…
-1
votes
1 answer

I need help to customize my smart contract lottery project

Things that I need to add as functions: I want to integrate a management fee of 1% of the total pot. Execution: The management fee (going to contract owner) will be deducted to the total prize before the remaining 99% amount will be sent to the…
-1
votes
1 answer

BSC transaction without fees

Can anyone understand how this guy sent the transaction without fees https://bscscan.com/tx/0x96d769ddb8725ded79eaf89e1a240948aa4b036e8188b8678298c19851407fdc
-1
votes
1 answer

bep20 web3 send tokens between accounts example

someone can provide how to transfer bep20 token on BSC testnet between accounts. I tried in different ways but have a problem
singlesly
  • 101
  • 2
  • 3
-2
votes
1 answer

Cannot Deploy Smart Conract to BSC TESTNET in Remix IDE

I am trying to deploy a smart contract using Remix and the injected Metamask provider connected to the Binance Smart Chain Testnet (BSC Testnet). Everything was working fine yesterday, but today I want to deploy the latest version of the smart…
1 2 3 4 5
6