hi. i am needing some final lines for a token i have. I am trying to require a purchaser to own at least 100 tokens of another coin in order to be able to buy the new token i am creating. can anyone help me out? would you need to see the code i already have for my token? TIA!
Jun 19, 2022, 2:44 AM
Why that design?
Reminds me of squid + marble
Jun 19, 2022, 2:56 AM
i only want certain people to be able to buy it
Jun 19, 2022, 2:57 AM
set the pair in a mapping and check it in the _transfer function, if the "to" is the pair, means it's a sell.
Set a require(token.balanceOf()) if it's a buy
Set a require(token.balanceOf()) if it's a buy
Jun 19, 2022, 2:58 AM
Hi sent a pm
Jun 19, 2022, 7:48 AM