does uniswap allow to set up fees by program if I override _transfer function of my token and try to get fees there? I've done smth like that but in uniswap.org it goes wrong. So my question is it possible to get own fees from swaps?

Aug 25, 2023, 11:54 PM
You mean token taxes or liquidity provider fees ?
Aug 25, 2023, 11:57 PM
token taxes
it goes like usual swap, but when user receives tokens for eth, he receives for example 90% of the amount, but 10% goes to another admin address
Aug 25, 2023, 11:59 PM
Yeah almost every shitcoin has taxes
You can look at current contracts and look at the internal transfer function
Are you taking about swap fees then?
Aug 26, 2023, 12:00 AM
yes ig, i changed internal transfer functions and added some fees there
smth like that
and now uniswap blocks swaps
:D
Aug 26, 2023, 12:02 AM
There could be something wrong with the code or calculation of taxes
Did you use v2?
You might wanna deploy on testnet and push the transaction through then debug on tenderly
Aug 26, 2023, 12:06 AM
i just wanted to know if uniswap allows to do that or it will block any transaction where is no enough transfer amount for user?
yes it's V2
Aug 26, 2023, 12:06 AM
Taxes are quiet common
Aug 26, 2023, 12:07 AM
I'll try tenderly, thanks bro!
Aug 26, 2023, 12:07 AM

© 2024 Draquery.com All rights reserved.