Cross-posting from here: https://stackoverflow.com/questions/71282483/contract-allows-mass-creation-of-tokens-without-a-mint-function
A few times now I have seen scam tokens created where the contracts seem fine, but then someone is somehow able to sell 1000s of times more tokens than were created, eg. 10^10 tokens were created via this contract:
https://bscscan.com/address/0x8e3a4f3f20907c8b638ccade987e90169ac2d7c8#code
But then somehow someone was able to sell 9.1*10^15 tokens here:
https://bscscan.com/tx/0xc27794c277710e4f1bb2a98ba0590c7e8c3b25f038438335ae8269916e1214c3
And with this one 3X10^9 tokens were created:
https://bscscan.com/address/0xae2c5373330d6c20ea25f2b167a350582ed659fa#code
Yet someone was able to sell 10^17 tokens here:
https://bscscan.com/tx/0xb35c1daf1283b43222ffebebc644254094260e55d158c99d4d1a02f43bca5fb1
Is there any way by looking at the contract code to see how they were able to do this?