Struggling with an extremely basic token contract that has a 2% fee on buy/sell, but the fee has to be in ETH.

I basically have the full contract working. It even sends the 2% of each transaction to the contract wallet as it’s supposed to.
I JUST need the last part where it converts the 2% into ETH using the uniswap router.

Anyone down to help? Should be rather simple for an experienced dev I think.

Feb 28, 2023, 10:35 PM
Got everything down, even a regular fee.

Just can’t figure out the swap part.
Saviour!

Can I send my code in DM and you can look at it?

Or do you want me to just send the transfer function here that I got?
Whatever you want
Gotcha
Still looking ^^
Feb 28, 2023, 10:49 PM
https://docs.uniswap.org/contracts/v2/reference/smart-contracts/router-02
Feb 28, 2023, 10:56 PM

© 2024 Draquery.com All rights reserved.