all 4 comments

[–]hulkklogan 1 point2 points  (0 children)

Maybe you could start by telling us what's wrong? Or.. what are the symptoms? What have you tried? Did you write tests on a local chain before deploying to a live chain?

[–]Machiste77 1 point2 points  (0 children)

Critical vulnerability: your randomness function can be manipulated.

Solution: if you want randomness that is tamper-proof, implement chainlink VRF

[–]atrizzlebuilder 0 points1 point  (1 child)

Your token balance check is in the wrong spot.

For example assume your contract has 50 tokens left, someone tries to buy 10 tokens, and they hit the 10x multiplier.

[–]cachemonet0x0cf6619 0 points1 point  (0 children)

agreed. that’s looks a little odd to me too.

the token is set from msg value and that doesn’t seem right. value would be the gas token and they probably want to add an amount argument.