Something similar already happens with natural gas in manufacturing. You can either sign a contract to lock in a rate, or pay as the price changes. If you are a factory that makes a good that you can stockpile (like sand), it makes sense to run more in cheaper parts of the year.
(Same thing also happens with iron / steel. I would assume electricity is the same, but I don’t have much knowledge. )