Skip to content

add gas (tip) costs to give users the ability to front-run trades #38

@dpaiton

Description

@dpaiton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA feature or refactor request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions