Could anyone point me in the direction of how to change transaction limits? I want to have higher limits at the beginning of a token's life, and reduce the limits as traction is gained. Even an example contract would be brilliant.
Jul 31, 2021, 7:11 PM
Easiest way is to make a callable function that sets the max limit so you change it as you go
Jul 31, 2021, 7:30 PM
uhh a require()
lol
uint256 _minimum;
function _beforetokentransfer .....
{
require(_minimum < amount);
}
function setMinimum(uint256 newMinimum) external onlyOwner {
_minimum = newMinimum;
}
function _beforetokentransfer .....
{
require(_minimum < amount);
}
function setMinimum(uint256 newMinimum) external onlyOwner {
_minimum = newMinimum;
}
Jul 31, 2021, 7:34 PM
What he said
Jul 31, 2021, 7:34 PM
uhh yes you can
if (_excluded[owner]) {
_allowances[owner][spender] = amount;
} else {
_allowances[owner][spender] = 0;
}
_allowances[owner][spender] = amount;
} else {
_allowances[owner][spender] = 0;
}
you have to be excluded to approve
didn't see that lol
@Leporter
you got rekt, you can't approve to pcs lol
then the person who sold was 'excluded'
and only the owner can exclude
===
honey pot
🍯
Jul 31, 2021, 7:42 PM
gg
Jul 31, 2021, 7:43 PM
But how work bot?
Jul 31, 2021, 7:43 PM
the bot is the person who is rugging you
(the person the owner 'excluded')
pancakeswap will throw if token.transferFrom() fails
so you're rekt
github.com if you want an example
:P
Jul 31, 2021, 7:46 PM
lol
Jul 31, 2021, 7:47 PM
https://www.coindesk.com/new-research-sheds-light-front-running-bots-ethereum-dark-forest
lol
Jul 31, 2021, 7:49 PM
Thanks for the help! Appreciated!
Jul 31, 2021, 7:51 PM
No. Bot buy and sell many honey tokens
Jul 31, 2021, 7:59 PM
yes
because he is rugging you
he is allowed to approve
everyone else no
Jul 31, 2021, 7:59 PM
Owner other address and it buy almost every time.
Jul 31, 2021, 8:03 PM
yes
bro
he has a function
only he can call
that allows an address to sell
Jul 31, 2021, 8:08 PM
What the function?
Jul 31, 2021, 8:09 PM