Users should be able to optionally spend extra money to ensure their trades happen earlier in the block. We can implement this using weighting in the user shuffle.
e.g. change
self.rng.shuffle(self.user_list) to use self.rng.choice, with the probabilities set according to a normalized gas price offering specified by the user.
Users should be able to optionally spend extra money to ensure their trades happen earlier in the block. We can implement this using weighting in the user shuffle.
e.g. change
self.rng.shuffle(self.user_list)to use self.rng.choice, with the probabilities set according to a normalized gas price offering specified by the user.