Web3-ethereum-defi

Latest version: v0.26.1

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 18

0.23.1

- Feature: Add 1delta integration position handlers

0.23

- Various improvements when working with low quality JSON-RPC nodes
- Uniswap v3 price tutorial is now runnable with low quality nodes
- API chance: `fetch_erc20_details(cache)` has now an internal cache, implemented
with Python's cachetools package.
- Add: `static_call_cache_middleware` to reduce the amount of `eth_chainId` API calls
- Add: `TrackedLazyTimestampReader` to help working with slow nodes
- Add: `MultiProviderWeb3.get_api_call_counts` to see JSON-RPC API call stats across all providers
- Fix: `swap_with_slippage_protection(max_slippage)` is BPS
- API change: `swap_with_slippage_protection(max_slippage=15)` - change the default Uniswap v3
trade slippage tolerance from (unrealistic) 0.1 BPS to 15 BPS.
- Fix: The madness of JSON-RPC providers abuse the error code `-32000`.
We check for *error message* now instead of error code.
- Internal change: When reading events, only notify progress bar when we have an event hit,
to avoid unnecessary `eth_getBlockByNumber` calls for timestamps.

0.22.30

- API change: Handle `wait_and_broadcast_multiple_nodes()` so that it will attempt
to retry multiple providers multiple times before raising the last exception

0.22.29

- Add `launch_anvil(fork_block_number)` option to create mainnet works on a specific block number.
Naturally works only with archive nodes.
- API change: If all providers fail in `wait_and_broadcast_multiple_nodes()`,
raise the exception from the last provider.

0.22.28

- More retryable JSON-RPC errors whitelisted. Now `ValueError: {'code': -32701, 'message': 'Please specify address in your request or, to remove restrictions, order a dedicated full node here: https://www.allnodes.com/bnb/host'}`.

0.22.27

- More retryable JSON-RPC errors whitelisted. Now `{'code': -32005, 'message': 'limit exceeded'}`.

Page 4 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.