Much of Deposit state can be immutable
Currently a lot of state is written via SSTORE. It would be much cheaper to use PUSH. If you updated to the latest solidity you would be able to use immutable variables, which are written into code instead of in storage. This would substantially reduce the gas used to create a deposit or to read its state.
We'd have to upgrade Solidity 6 days before launch. Too risky for my tastes, but flagging this for v2.
Keep these coming! 😍
With the shutdown, will this make it into the next version?
With the shutdown, will this make it into the next version?
Highly unlikely. If it didn't require a Solidity upgrade, touching the whole codebase, it would still be a stretch. I'll keep it in mind if there's an opportunity though.