I am creating a dApp that is a game where players compete for the prize pool and that pool is built from the sum of all the entry fees payed by the player at the start of the game. The player that creates the game is responsible for choosing the entry fee.
I want to revert attempts to create a game where the entry fee is just too low reasonably to facilitate the game. For example, an entry fee so low that just the transaction costs of creating the game contract and then making the payouts to the players will end up with little to no funds left being available after those operations to actually give any amount of any reasonable value to the players.
I know there's no exact answer here, but if someone could give me a way to use the estimate gas functions or some other function, or even just a good "rule-of-thumb" heuristic, then I would at least have a base value I can use to reject entry fees that are just too low to be usable. As you can see, a straight greater-than-zero check doesn't help me here.