nspcc-dev / neofs-contract

NeoFS smart-contract
GNU General Public License v3.0
11 stars 17 forks source link

Balance contract gets things from storage too often than it should #407

Open roman-khimov opened 5 months ago

roman-khimov commented 5 months ago

Is your feature request related to a problem? Please describe.

I'm always frustrated when we have suboptimal code. Balance contract already has account data in lock and can also have it during iterations in new epoch callback, but it goes for it again and again.

Describe the solution you'd like

Have some way to reuse this data, save on opcodes and GAS.