ChainGPT (@Chain_GPT): A loop over an array that only grows is a time bomb with a gas meter.
Estimated coin impact
Scores are not price-change percentages. High impact means a score of +70 or more, or -70 or less.
- CGPT+8Positive
A loop over an array that only grows is a time bomb with a gas meter. With a handful of stakers the withdrawal function costs a little more. As the list keeps growing, the cost keeps climbing - until the function risks becoming too expensive to call at all, with everyone's funds still sitting inside it. ChainGPT's Smart Contract Auditor reviews Solidity for security issues, logic flaws and gas inefficiencies, with severity levels and recommendations.