Questions tagged [binance-smart-chain]

The tag has no usage guidance.

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

safest way to lock or burn LP?

I wrote a contract to buy liquidity as it sells tokens. The LP tokens are "public liquidity" that never shouldn't be removed from the pool. I actually send LP to the 0x0 address. As I only ...
0
votes
1answer
18 views

After all attempts to verify the smart contract, i keep getting PaserError - not found: File import callback not supported

This is the issue: ParserError: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported. Showing a picture below. It's on bscscan between to verify. ...
1
vote
1answer
17 views

Getting the functions of an unpublished contract

New to all this so please be gentle. Suppose a contract is deployed, eg: 0xfc0995dc31ff8986bedbb3e88c21a89997f54c12 Checking its contract tab under bscscan shows it hasnt been published, though its ...
0
votes
0answers
13 views

please help... How do I fix these issues

from solidity: DeclarationError: Non-abstract contracts cannot have internal constructors. Remove the "internal" keyword and make the contract abstract to fix this. --> .deps/npm/@...
0
votes
0answers
16 views

BEP20 - Is this a bad practice / security issue or moral issue?

I have the following BEP20 token, pretty simple extending from openzeppelin implementation. pragma solidity >=0.6.12; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "...
0
votes
0answers
26 views

Trust Wallet mnemonic gives binascii.Error: Non-hexadecimal digit found

It's impossible to extract the private key from Trust Wallet. Trying to use their mnemonic in python gives me this error. There isn't a fully working solution on stack for this particular problem. ...
1
vote
1answer
12 views

Creation of contract pending

So I have tried to create my own token on Binance Smart Chain Network. For some reason in Remix my creation of contract is still pending while I looked on BSC and there it shows that transaction went ...
0
votes
1answer
32 views

How to Sort total liquidity by top liquidity available?

Hi I am making a DEX and I am stuck with a problem, I want to Sort total liquidity by top liquidity available for a token paired with BNB or native token. I am using 0x API but there is nothing to do ...
0
votes
0answers
32 views

Changing fees in smart contract

I am quite beginner to solidity, trying to learn smart contracts. so here in this code: bool autoLiquifyEnabled = true; uint256 liquidityFee = 600; uint256 liquidityFeeAccumulator; uint256 buybackFee ...
0
votes
0answers
117 views

How to get Pair Contract Address or LP Pool Address of a Token in web3.py

I managed to have this code run after few hours of searches but unfortunately, this does not produce the output I wanted. Any ideas what could be the problem? from web3 import Web3 from eth_abi....
0
votes
0answers
26 views

New BEP-20 Liquidity Pool Issue - Left Over Tokens after burn

I am new to liquidity so I think I made a mistake that I can't afford being a new "legitimate" startup company with a real purpose. I minted 1,000,000,000,000,000 and burned 550,000,000,000,...
0
votes
1answer
18 views

Approve BNB spend

This is not ERC20 related, rather for BSC. Before a pre-sale, I want to manually approve a contract allowing the site to spend my BNB. I've seen how this can be done from bscscan.com (contract -> ...
0
votes
0answers
115 views

Getting the Liquidity Pool Address of a token using web3.py connected in Binance Smart Chain

The snippet below checks for the latest added Liquidity Pool of a token. In poocoin.app, the LP Pool Address can be checked based on the pair (TOKEN/BNB LP Holdings). I wanted to know if web3.py can ...
0
votes
0answers
34 views

Pancakeswap: TRANSFER_FAILED. Why?

I am trying to buy a token at the listing time, but my transactions get rejected with the error "TRANSFER_FAILED" while other transactions at the same time are successful. I have tried high ...
1
vote
1answer
34 views

Is it possible to create a game that can withdraw a coin balances tracked off-chain?

I have a game where the data is saved in a MYSQL database Is it possible to create a "play to earn" game, that the balance is saved in the database and the user can make the withdraw using ...
0
votes
1answer
91 views

BSC token swap API error with 0x.org

I am using 0x for swapping my Binance token to other respected tokens. I got the required data from the 0X API but every time it's showing that the transaction reverted without reason error by the EVM....
0
votes
1answer
1k views

What's the BNB Contract Address on Binance Smart Chain?

What is the BNB contract address on Binance Smart Chain if any?
1
vote
1answer
18 views

Run Binance Smart Chain Price Feeds from Chainlink on Testnet

I found the following link to get a price feed on Binance Smart Chain: https://docs.binance.org/smart-chain/developer/link.html However, I want to run it on a testnet first. How could I do that?
2
votes
1answer
542 views

Uniswap Router initialization in Ethereum mainnet versus BSC

I analyzed the source code contracts of several tokens, and I noticed a line of code that differs between two similar ones that I am trying to make sense of. Specifically, I would appreciate your ...
0
votes
0answers
27 views

I am unable to find my USDT after i swapped it using the Binance Smart Chain Network

I deposited BNB in the metamask Binance Smart Chain Mainnet and swapped it with USDT in PancakeSwap. After a while, I am unable to view where the USDT coins are. I imported the USDT tokens manually ...
0
votes
0answers
51 views

BalanceOf always returns 0

I am trying to get the WBNB balance for an address by executing the following: const ethers = require('ethers'); const secrets = require('./secrets.json'); const WBNB = "...
0
votes
1answer
178 views

What is the best way to create Binance Smart Chain (BSC) transactions via geth without a full node?

I currently run geth to create and query the ethereum blockchain for transactions in light mode. I don't have a eth full node running. I tried running the same similar setup for Binance Smart Chain in ...