Skip to content

Commit

Permalink
More doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Aug 4, 2023
1 parent b804b0d commit 04d4b89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions eth_defi/enzyme/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@


def convert_rate_to_scaled_per_second_rate(rate: Decimal, adjust_inflation: bool) -> int:
"""Internal helper to deal with Enzyme per second rates."""
rate_d = rate * 10**18
effective_rate = rate_d / (1 - rate_d) if adjust_inflation else rate_d
factor = (1 + effective_rate) ** (1 / ONE_YEAR_IN_SECONDS)
Expand Down
9 changes: 5 additions & 4 deletions eth_defi/provider/multi_provider.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Configuring and managing multiple JSON-RPC provider connections.
See :ref:`multi rpc` for details.
See :ref:`multi rpc` tutorial for details.
"""

import logging
Expand All @@ -26,10 +26,11 @@ class MultiProviderConfigurationError(Exception):
class MultiProviderWeb3(Web3):
"""A web3 instance that knows about multiple RPC endpoints it is using.
- This is either using or not using :py:class:`eth_defi.provider.mev_blocker.MEVBlockerProvider`
- Can use :py:class:`eth_defi.provider.mev_blocker.MEVBlockerProvider`
for making transactions to prevent frontrunning
- There might be several providers for reading on-chain data
- There might be several call (read) providers for reading on-chain data
with fallbacks using :py:class:`eth_defi.provider.fallback.FallbackProvider`
See
Expand Down Expand Up @@ -121,7 +122,7 @@ def create_multi_provider_web3(
See
- - :ref:`multi rpc` for details
- :ref:`multi rpc` for details
:param configuration_line:
Configuration line from an environment variable, config file or similar.
Expand Down
2 changes: 1 addition & 1 deletion eth_defi/usdc/eip_3009.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def make_eip_3009_transfer(
This currently supports only `LocalAccount` because of
`missing features in web3.py <https://github.com/ethereum/web3.py/issues/2180#issuecomment-943590192>`__.
Example::
Example:
.. code-block:: python
Expand Down

0 comments on commit 04d4b89

Please sign in to comment.