Hello, does anyone have any info on charging a different tax fee on buys and sells

Aug 31, 2021, 10:30 PM
For example i want to charge a 2% fee on every buy
And a 3% fee whenever there is a sale
I have been looking everywhere and have not found a lot of useful information
Aug 31, 2021, 10:32 PM
We have different tax fee on buy and sell
Aug 31, 2021, 10:42 PM
Do you mind sending any info
Aug 31, 2021, 10:42 PM
What kind of information do you need
Aug 31, 2021, 10:43 PM
How to declare the fees so the contract can tell when there is a buy or a sell, without having the lp adress already
Aug 31, 2021, 10:44 PM
Its quite simple. You can create a pair in constructor and use if sender pair addresses or if receiver is pair address
Buy = sender == pair address
Sell =receiver == pair address
Aug 31, 2021, 10:46 PM
Thanks, i will try it thay way
Aug 31, 2021, 10:47 PM
If (sender == pairadress) transferFromPool()
Else if (reciver == pairadress) transferToPool()
Something like that
You can check my project and see the real code
Aug 31, 2021, 10:50 PM
What's your project?
Aug 31, 2021, 11:01 PM

© 2024 Draquery.com All rights reserved.