File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 10
10
from web3 .exceptions import ContractLogicError
11
11
from web3 .types import StateOverride
12
12
13
+ from IceCreamSwapWeb3 .EthAdvanced import exponential_retry
13
14
from .AddressCalculator import calculate_create_address
14
15
from .FastChecksumAddress import to_checksum_address
15
16
@@ -175,10 +176,11 @@ def _inner_call(
175
176
except Exception as e :
176
177
if len (calls_with_calldata ) == 1 :
177
178
try :
178
- raw_returns , gas_usages = self ._call_multicall (
179
+ exponential_retry ( func_name = "multicall" )( func = self ._call_multicall ) (
179
180
multicall_call = multicall_call ,
180
181
use_revert = use_revert ,
181
- retry = True ,
182
+ retry = self .w3 .should_retry ,
183
+ no_retry = not self .w3 .should_retry ,
182
184
state_override = state_override ,
183
185
block_identifier = block_identifier
184
186
)
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.1.58 '
3
+ VERSION = '0.1.59 '
4
4
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
5
5
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
6
6
You can’t perform that action at this time.
0 commit comments