Skip to content

Commit

Permalink
Edit MEV doc blurb
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jul 22, 2023
1 parent d50468f commit 4fe6139
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ API documentation
:maxdepth: 1

core/index
provier/index
provider/index
usdc/index
uniswap_v2/index
uniswap_v3/index
Expand Down
8 changes: 5 additions & 3 deletions docs/source/api/provider/index.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
JSON-RPC API provider integrations
----------------------------------
JSON-RPC provider API
---------------------

This submodule offers functionality to connect and enhance robustness of various EVM JSON-RPC APIs.
This submodule offers functionality to connect and enhance robustness of various EVM JSON-RPC API providers..

- Support for test and mainnet fork backends like :py:mod:`eth_defi.provider.anvil` and :py:mod:`eth_defi.provider.ganache`

- `Malicious Extractable Value (MEV) <https://tradingstrategy.ai/glossary/mev>__` mitigations

- Using multiple JSON-APRC providers and fallback providers

- For the list of available Ethereum, Binance Smart Chain and such API providers please see `ethereumnodes.com <https://ethereumnodes.com>`__

.. autosummary::
:toctree: _autosummary_provider
:recursive:
Expand Down
15 changes: 10 additions & 5 deletions eth_defi/provider/mev_blocker.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
"""MEV blocking RPC provider functionality.
Malicious Extractable Value (MEV) is a nuisance on all
EVM-based blockchains. It can be mitigated by using a special
`Malicious Extractable Value (MEV) <https://tradingstrategy.ai/glossary/mev>`__
is a problem for all trading activity on EVM-based blockchains.
It can be mitigated by using a special
JSON-RPC node that provides a private mempool.
This module provides methods to create special
:py:class:`web3.Web3` instances that use MEV blocking
JSON-RPC endpoint for all transactions, but a normal JSON-RPC
node for reading data from the blockchain.
:py:class:`web3.Web3` instances that
- Use MEV blocking JSON-RPC endpoint for all transactions
- Normal JSON-RPC node for reading data from the blockchain
"""
from collections import Counter
Expand Down

0 comments on commit 4fe6139

Please sign in to comment.