Exceptions#

exception nethermind.entro.exceptions.ArchivalNodeRequired#

Raised when archival features of an RPC connection are inadequate, and simulations need to be reworked, or node infrastructure needs to be upgraded.

exception nethermind.entro.exceptions.BackfillError#

Raised when issues occur with backfilling data

exception nethermind.entro.exceptions.BackfillHostError#

Raised when the remote host returns error, fails to provide correct data, or when timeout occurs

exception nethermind.entro.exceptions.BackfillRateLimitError#

Raised when gateway rate limits are implmented by the remote host

exception nethermind.entro.exceptions.DatabaseError#

Raised when issues occur with database operations

exception nethermind.entro.exceptions.DecodingError#

Raised when issues occur with input decoding during data backfills

exception nethermind.entro.exceptions.FullMathRevert#

Raised when the result of (a * b) / c overflows the maximum value of a uint256.

Will typically trigger a UniswapV3Revert

exception nethermind.entro.exceptions.OracleError#

Raised when PricingOracle fails to return a valid price. Typically caused when the oracle cannot extract the prices for a token. Troubleshooting steps:

  • Verify that all addresses are checksummed with eth_utils.to_checksum_address

  • Check the token address on etherscan to ensure it is a valid ERC20 token

  • Double check that RPC connection is working & node is synced to correct chain

exception nethermind.entro.exceptions.SqrtPriceMathRevert#

Raised when a sqrt_price value is out of bounds, or the inputs to a price calculation are invalid, ie swapping with zero input or swapping with a sqrt_price limit in the opposite direction

exception nethermind.entro.exceptions.TickMathRevert#

Raised when a tick value is out of bounds, or a sqrt_price exceeds the maximum sqrt_price

exception nethermind.entro.exceptions.UniswapV3Revert#

Uniswap V3 Revert Exception is thrown when a pool action causes behavior that would throw a revert on-chain. The following conditions will result in this error being raised:

  • Ticks exceed the maximum tick value of 887272 or the minimum tick value of -887272

  • uint values are set to a negative value

  • operations cause uints and ints to overflow or underflow

  • Minting & Burning positions with zero liquidity

  • Executing Swaps with invalid sqrt_price bounds or zero input