I just got the chance to read about the Dark Forest problem describing an actual front running attack: https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest/
I didn't fully understand the attempted solution. Instead of the attempted solution what would make more sense to me is to check for contract owner address in the
So we could hard code the owner address as a constant:
address payable public constant OWNER = 0xe3F...;
And then in
get() all we have to do is make sure that the sender is always the owner address:
require(msg.sender == OWNER);
Would this work or am I missing something?