diff --git a/core.py b/core.py index fa1377d..a9d348b 100755 --- a/core.py +++ b/core.py @@ -516,7 +516,8 @@ def mint_tokens(account, token_address, amount, attempts=18): call_function = random.choice(list(rng_functions[token_address]['functions'])) token_contract = load_contract(token_address, load_contract_abi(token_address)) token_info = get_token_info(token_address) - for i in list(range(0, int(amount))): + loops = math.ceil(amount / rng_functions[token_address]['mints']) + for i in list(range(0, loops)): tx = getattr(token_contract.functions, call_function)().build_transaction({ "from": account.address, "nonce": get_nonce(account.address) diff --git a/data/rng.json b/data/rng.json index c3c8386..98a3f51 100755 --- a/data/rng.json +++ b/data/rng.json @@ -3,30 +3,35 @@ "functions": { "Generate": null }, + "mints": 1, "label": "RNG 1" }, "0x2b943Bf3cFc3B7A42DC7d13898171802BCD3Aea9": { "functions": { "Generate": null }, + "mints": 1, "label": "RNG 2" }, "0x17E136fD4c821ae25A611fAF187753B6e84736a4": { "functions": { "Generate": null }, + "mints": 1, "label": "RNG 3" }, "0x5EF3011243B03f817223A19f277638397048A0DC": { "functions": { "Random": null }, + "mints": 1, "label": "MATH v1.0" }, "0xB680F0cc810317933F234f67EB6A9E923407f05D": { "functions": { "Random": null }, + "mints": 1, "label": "MATH v1.1" }, "0x24F0154C1dCe548AdF15da2098Fdd8B8A3B8151D": { @@ -35,6 +40,7 @@ "Pi": null, "Rho": null }, + "mints": 3, "label": "AFFECTION™" } -} \ No newline at end of file +}