I'm a bit worried about this loop
for (uint i = 0; i < currentTime; ++i)
This will make gas consumption grow to infinity as time goes by and the loop will throw an out of gas exception.
Maybe using a single variable instead of an array in the contract and storing past values somewhere else could help?
I'm a bit worried about this loop
This will make gas consumption grow to infinity as time goes by and the loop will throw an
out of gasexception.Maybe using a single variable instead of an array in the contract and storing past values somewhere else could help?