//buy
} else if(to == router) {
//sell
}
will this work?
then why other tokens are using pairaddress to determine buy and sell?
like this
if (to == swapPair) {
//sell
} else if (from == swapPair) {
//buy
}
The router doesn’t hold any tokens so that won’t work
the last one would?
can i also burn 4% tokens on same buy/sell tx, or it'll fail the whole tx?
ok so is there a better way to detect buy sell since there could be many pairs, manually adding all is cumborsome
Обсуждают сегодня