txfee_filters

package
v0.0.0-...-3786997 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

TXfee filters

See https://github.com/gridiron-zone/merlin/issues/738

Want to move towards that, right now this is a stepping stone for that. We currently define a filter for recognizing if a tx is an arb transaction, and if so raising its gas price accordingly.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArbTxLoose

func IsArbTxLoose(tx sdk.Tx) bool

We check if a tx is an arbitrage for the mempool right now by seeing: 1) does start token of a msg = final token of msg (definitionally correct) 2) does it have multiple swap messages, with different tx ins. If so, we assume its an arb.

  • This has false positives, but is intended to avoid the obvious solution of splitting an arb into multiple messages.

3) We record all denoms seen across all swaps, and see if any duplicates. (TODO) 4) Contains both JoinPool and ExitPool messages in one tx.

  • Has some false positives, but they seem relatively contrived.

TODO: Move the first component to a future router module.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL