Make sure that the function that calculates costs 0 gas. In principle, it does not alter the state of the contract so it should be 0 cost.
My concern is that a struct(mapping) with a storage keyword is used. I am not sure if Solidity compilers /EVM are smart enough to understand that this is not altering the state.
Make sure that the function that calculates costs 0 gas. In principle, it does not alter the state of the contract so it should be 0 cost.
My concern is that a struct(mapping) with a storage keyword is used. I am not sure if Solidity compilers /EVM are smart enough to understand that this is not altering the state.