Skip to main content

All Questions

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

How to Ensure Custom Tax is Applied on Token Swaps in Solidity Smart Contract?

I'm developing a smart contract for a token (FMYNT) using Solidity on the Binance Smart Chain testnet, integrated with PancakeSwap testnet. I've implemented a custom 5% tax feature for buy and sell ...
Awais Ahmad's user avatar
0 votes
1 answer
75 views

How does the contract handle tax deductions for simple buy and sell transactions when the token is listed on any decentralized exchange (DEX)?

Could anyone provide an example solidity smart contract code for how to implement tax deduction using a router in a smart contract when list on DEX ? I've noticed that when adding custom tax deduction ...
Awais Ahmad's user avatar
0 votes
0 answers
124 views

How to get the token prices from the uniswap v3 pools?

I have to write the solidity code to fetch the prices of token pairs from the uniswap v3 pools but I have no idea how to get the prices of the token pairs from the uniswap v3 pools to my smart ...
kumar's user avatar
  • 71
0 votes
1 answer
101 views

What are some good strategies to launch a token in a DEX?

I have a project that has a token and I want to launch it in a DEX. How can I incentivise users to provide liquidity to the pool so the pool is backed by a fair amount of WETH? Do you know of some ...
Falcon Stakepool's user avatar
0 votes
2 answers
92 views

How can I secure my custom transferFrom function?

My transferFrom function is implemented like this. myAddress = 0x0; // my address function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { uint256 ...
Bebs V's user avatar
  • 161
0 votes
2 answers
216 views

soldity : Create Dex for already generated ERC-20 token

I want to create dex (buy - sell) function and deploy it on another generated ERC-20 I have code like this pragma solidity ^0.8.0; interface IERC20 { function totalSupply() external view ...
Danial Qsk's user avatar
1 vote
0 answers
20 views

Loosing 1 Token when supplying for UniSwap v3 Liquidity

I am trying to add liquidity pool with my Custom erc.20 token, and ETH If I add 10,000 Tokens - for some reason the UniSwap UI shows 9,999 tokens Wondering if anyone here has noticed this in their LPs ...
fvlkrum's user avatar
  • 11
2 votes
0 answers
661 views

How to reserve a ticker symbol for an ERC-20 token?

Cryptocurrencies and tokens are identified by a ticker symbol like MATIC (Polygon), AVAX (Avalanche), and KSM (Kusama). How do developers reserve these ticker symbols before or during their ICO so ...
user610620's user avatar
  • 1,568
0 votes
0 answers
35 views

Why does DEX like Uniswap requires 'approve' when 'transfer' emits the 'transfer' event?

Can't the DEX watch the 'transfer' events on the blockchain and do swaps etc accordingly? Why do they require 'approve'?
user84743's user avatar
0 votes
1 answer
29 views

Doubt regarding ERC20 Token exchange restriction

I just have one question. I'm creating an ERC20 token but I want to restrict the exchange of these tokens to only my platform. At the same time, I also want to support all the wallets out there for ...
neel229's user avatar
0 votes
0 answers
235 views

Best practice for using interface functions in the contract

I'm developing a DEX contract and trying to figure out what is the best way to use Solidity Interfaces. I did some research and found out there's multiple ways of using interfaces in smart contracts ...
M M's user avatar
  • 57
5 votes
2 answers
2k views

Is burning tokens effective without buy-back?

What's the deal with this "burn on deployment"? almost every deflationary token is bragging about the number of tokens they've burned before providing liquidity and isn't this useless? For ...
Kaneda's user avatar
  • 365
1 vote
1 answer
8k views

Why is it so expensive to trade with Uniswap?

Please please please, I really would like to know by someone knowledgeable. I looked at the other responses but I still do not truly understand. It just doesn't make sense why anyone would want ETH to ...
Mr. Libertad's user avatar
4 votes
1 answer
6k 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 ...
Eat-Tirion's user avatar
0 votes
1 answer
73 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 ...
GreyShadow94's user avatar
0 votes
0 answers
102 views

Uniswap Fee or how 180 AMPL tokens suddenly "disappeared" from blockchain

If you look at https://etherscan.io/token/0xd46ba6d942050d489dbd938a2c909a5d5039a161?a=0xfe6c9c5a0d36eba3a767aaf6df2f335e666a74e7, you can notice that there were 3 transactions associated with the ...
alexqrid's user avatar
1 vote
1 answer
58 views

How are decentralised leverage platforms like dydx able to provide leverage to the traders? [closed]

I just started getting along the fundamentals of DeFi and was planning to make a basic decentralised leverage trading platform. I have the confusion as to how the existing platforms(like dydx, DDEX ...
Anshu Jalan's user avatar
1 vote
1 answer
354 views

Can an Erc-20 token that I create on my Quorum be integrated with any cryptocurrency exchange (for example Coinbase)?

I have setup my own quorum blockchain network. If I deploy an ERC20 token contract with a coin name (say ABC), will I be able to list the coin in exchanges ?
Noushad Mohamed's user avatar
3 votes
4 answers
6k views

Is there any decentralized exchange with zero trading fees for ERC-20 tokens at the moment?

Is there any decentralized exchange with zero trading fees for ERC-20 tokens at the moment? All fees except gas fees should be zero. I already tried Bancor and Kyber but, as far as I can tell, they ...
Vesa's user avatar
  • 1,322
4 votes
1 answer
107 views

Why do we have to "deposit" into a decentralized exchange?

On a centralized exchange (like coinbase), I understand why we have to deposit money into it in order to trade. But about decentralized exchange, as I've read about, it has some kinds of "atomic swap"...
0xh8h's user avatar
  • 165