I put more thought into a very similar solidity smart contract I wrote for an internship in 2017 when I was literally a dumbass.