defi-state-querier 0.4.22__tar.gz → 0.4.24__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/PKG-INFO +1 -1
- defi-state-querier-0.4.24/src/defi_services/__init__.py +1 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/pancakeswap_info.py +5 -5
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/quickswap_info.py +3 -3
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_v3_service.py +84 -86
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/quickswap_v3_service.py +70 -48
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/uniswap_v3_service.py +84 -82
- defi-state-querier-0.4.24/src/defi_services/utils/get_fees.py +33 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/PKG-INFO +1 -1
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/SOURCES.txt +1 -0
- defi-state-querier-0.4.22/src/defi_services/__init__.py +0 -1
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/LICENSE +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/README.md +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/pyproject.toml +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/setup.cfg +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/setup.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/biswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/biswap/biswap_masterchef_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/factory_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/masterchef_v0_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/masterchef_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/nft_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_lp_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_masterchef_v2_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_router_v2_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_v2_factory_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/v3_pool_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/factory_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/nft_token_manager.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/pool_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/masterchef_v2_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/masterchef_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/factory_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/masterchef_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/masterchef_v2_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/minichef_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/factory_v2_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/factory_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/nft_token_manager_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/pool_v3_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/aave_incentives_controller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/aave_oracle.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/atoken.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/avalanche_atoken.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/default_reserve_interest_rate_strategy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider_registry.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_configurator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/oracle_anchor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/stable_debt_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/uniswap_liquidity_swap_adapter.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/uniswap_repay_adapter.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/variable_debt_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/aave_oracle.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/permission_manager.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_oracle.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_incentives_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_lending_pool_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_oracle_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/atoken.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/default_reserve_interest_rate_strategy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider_registry.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_configurator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/price_oracle.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/rewards_controller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/stable_debt_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/variable_debt_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/all_aave_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_a_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_discount_rate_strategy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_flash_minter.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_variable_debt_token.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_event_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_incentives_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/lending_pool_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/oracle_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/staked_incentives_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/uwu_incentives_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_incentives_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_lending_pool_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_oracle_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_fair_launch_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_vault_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_vault_config_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_event_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apswap_ctoken_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/all_compound_abis.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/comet/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/comet_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/comet_ext_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/reward_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/comp.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegate.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/timelock.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/bravodelegate2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/bravodelegator2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/comp.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/compoundlens.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/comptroller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/ctoken.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/dsr_updateable.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governoralpha.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governorbravo.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governorbravodelegator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/irm_comp_updateable.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/jumpratemodelv2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/legacyjumpratemodelv2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/moneymarket.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/newbravodelegate.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/newbravodelegator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/pricedata.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/pricefeed.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/priceoracle.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/rep.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/reservoir.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/stablecoininterestratemodel.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/standardinterestratemodel.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/stdcomptroller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/timelock.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/uni.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/unitroller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/cream_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/cream_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/granary/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/granary/granary_rewarder_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/ctoken_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/iron_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/iron_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/just_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/justlend_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_event_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_lending_data_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_event_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/other/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/other/chain_link_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/radiant_v2/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_repository_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_reward_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_token_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/trava_lending_pool_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/trava_oracle_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/chef_incentives_controller.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/valas_multi_fee_distribution.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptroller_defi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptrollerbeacon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptrollerimpl.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/defaultproxyadmin.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/jumpratemodelv2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poollens.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry_implementation.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry_proxy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_implementation.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_proxy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/rewardsdistributor_defi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/rewardsdistributorimpl.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund_implementation.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund_proxy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall_implementation.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall_proxy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/swaprouter_defi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/vtokenbeacon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/vtokenimpl.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/all_venus_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_control_manager.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_controlled_v5.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_controlled_v8.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegate.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegator.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_events.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/timelock.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_lens_abi_v1.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/vtoken_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_comptroller_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi_v2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/token/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/token/ctoken_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/token/erc20_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/token/erc721_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/incentive_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/trava_vault_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/valuator_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/ve_abi.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/chain_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/cosmos_decimals_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/db_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_info_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/lending_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/lending_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/vault_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/vault_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/mongo_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/query_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/time_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/constants/token_constant.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/cosmos_state_processor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/multi_state_processor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/solana_state_processor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/state_processor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/substrate_state_processor.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/solana_state_querier.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/state_querier.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/substrate_state_querier.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/cosmos_token_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/spookyswap_info.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/sushiswap_info.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/uniswap_info.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_v2_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/quickswap_v2_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/spookyswap_v2_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_v2_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_v3_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex/uniswap_v2_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/dex_protocol_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/aave_v2_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/aave_v3_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/apeswap_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/compound_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/compound_v3_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/cream_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/flux_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/geist_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/granary_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/iron_bank_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/justlend_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/granary_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/radiant_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/silo_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/wepiggy_arbitrum.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/aave_v2_avalanche.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/aave_v3_avalanche.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/granary_avalanche.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/iron_bank_avalanche.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/apeswap_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/cream_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/granary_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/liqee_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/radiant_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/trava_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/valas_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/venus_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/aave_v2_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/compound_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/flux_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/granary_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/iron_bank_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/liqee_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/onyx_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/silo_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/spark_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/strike_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/trava_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/uwu_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/aave_v3_ftm.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/geist_ftm.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/granary_ftm.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/trava_ftm.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/aave_v3_optimism.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/granary_optimism.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/iron_bank_optimism.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/wepiggy_optimism.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/aave_v2_polygon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/aave_v3_polygon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/wepiggy_polygon.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/tron/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/tron/justlend_tron.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/liqee_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_aave_v2_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_aave_v3_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_compound_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/onyx_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/radiant_v2_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/silo_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/spark_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/strike_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/trava_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/uwu_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/valas_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/venus_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/lending/wepiggy_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/nft_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/protocol_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/solana_token_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/substrate_token_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/token_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/trava_vault_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/bsc/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/bsc/trava_bsc.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/ethereum/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/ethereum/trava_eth.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/fantom/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/fantom/trava_ftm.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/__init__.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/apy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/convert_address.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/graph_operations.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/init_dex_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/init_services.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/logger_utils.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/market_service.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/memory_storage.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/sqrt_price_math.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_services/utils/thread_proxy.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/dependency_links.txt +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/requires.txt +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/top_level.txt +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_dex_information.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_dex_v2_processor_job.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_dex_v3_processor_job.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_processor_job.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_staking_reward_job.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_uniswap_v2.py +0 -0
- {defi-state-querier-0.4.22 → defi-state-querier-0.4.24}/tests/test_uniswap_v3.py +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.4.24"
|
@@ -22,14 +22,14 @@ PANCAKESWAP_V2_BSC_INFO = {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
PANCAKESWAP_V3_BSC_INFO = {
|
25
|
-
'factory_address': '
|
25
|
+
'factory_address': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865',
|
26
26
|
'factory_abi': PANCAKESWAP_V3_FACTORY_ABI,
|
27
|
-
'master_chef_address': '
|
27
|
+
'master_chef_address': '0x556b9306565093c855aea9ae92a594704c2cd59e',
|
28
28
|
'master_chef_abi': PANCAKESWAP_MASTERCHEF_V3_ABI,
|
29
|
-
"
|
30
|
-
"NFT_manager_address": "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364".lower(),
|
29
|
+
"NFT_manager_address": "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364",
|
31
30
|
"NFT_manager_abi": PANCAKE_V3_NON_FUNGIBLE_POSITION_TOKEN_ABI,
|
32
31
|
'pool_abi': PANCAKESWAP_V3_POOL_ABI,
|
33
|
-
'forked': 'uniswap-v3'
|
32
|
+
'forked': 'uniswap-v3',
|
33
|
+
"reward_token": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
34
34
|
|
35
35
|
}
|
@@ -14,9 +14,9 @@ QUICKSWAP_POLYGON_V3_INFO = {
|
|
14
14
|
"NFT_manager_address": "0x8ef88e4c7cfbbac1c163f7eddd4b578792201de6",
|
15
15
|
"NFT_manager_abi": QUICKSWAP_V3_NON_FUNGIBLE_POSITION_TOKEN_ABI,
|
16
16
|
'pool_abi':QUICKSWAP_V3_POOL_ABI,
|
17
|
-
'finite_farming': '
|
18
|
-
'infinite_farming': '
|
19
|
-
'farming_center': '
|
17
|
+
'finite_farming': '0x9923f42a02a82da63ee0dbbc5f8e311e3dd8a1f8',
|
18
|
+
'infinite_farming': '0x8a26436e41d0b5fc4c6ed36c1976fafbe173444e',
|
19
|
+
'farming_center': '0x7f281a8cdf66ef5e9db8434ec6d97acc1bc01e78',
|
20
20
|
'forked': 'uniswap-v3'
|
21
21
|
|
22
22
|
}
|
@@ -8,6 +8,7 @@ from defi_services.constants.entities.dex_constant import Dex
|
|
8
8
|
from defi_services.jobs.queriers.state_querier import StateQuerier
|
9
9
|
from defi_services.services.dex.dex_info.pancakeswap_info import PANCAKESWAP_V3_BSC_INFO
|
10
10
|
from defi_services.services.dex.uniswap_v3_service import UniswapV3Services
|
11
|
+
from defi_services.utils.get_fees import get_fees
|
11
12
|
from defi_services.utils.sqrt_price_math import get_token_amount_of_pool, get_token_amount_of_user
|
12
13
|
|
13
14
|
logger = logging.getLogger("PancakeSwap V3 State Service")
|
@@ -199,8 +200,7 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
199
200
|
|
200
201
|
def decode_all_nft_token_of_user_function(
|
201
202
|
self, decode_data: dict):
|
202
|
-
result = {'all_token':
|
203
|
-
result['all_token'] = super().decode_all_nft_token_of_user_function(decode_data)
|
203
|
+
result = {'all_token': super().decode_all_nft_token_of_user_function(decode_data), 'stake_token': {}}
|
204
204
|
|
205
205
|
for query_id, token_id in decode_data.items():
|
206
206
|
contract_addr = query_id.split("_")[1]
|
@@ -235,33 +235,31 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
235
235
|
def decode_user_info_function(self, user: str, supplied_data: dict, decoded_data: dict = None,
|
236
236
|
stake: bool = True,
|
237
237
|
block_number: int = "latest"):
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
238
|
+
supplied_param = {'user_data': supplied_data['user_data'].get('all_token')}
|
239
|
+
user_data_with_liquidity = {
|
240
|
+
'all_token': super().decode_user_info_function(user, supplied_param, decoded_data, stake,
|
241
|
+
block_number), 'stake_token': {}}
|
242
242
|
|
243
|
-
for token_id, value in
|
243
|
+
for token_id, value in supplied_data['user_data'].get('stake_token').items():
|
244
244
|
master_chef_position = decoded_data.get(
|
245
245
|
f'userPositionInfos_{self.masterchef_addr}_{token_id}_{block_number}'.lower())
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
return user_data
|
246
|
+
liquidity = master_chef_position[0]
|
247
|
+
if liquidity > 0:
|
248
|
+
nft_position = decoded_data.get(
|
249
|
+
f'positions_{self.nft_token_manager_addr}_{token_id}_{block_number}'.lower())
|
250
|
+
user_data_with_liquidity['stake_token'][token_id] = {
|
251
|
+
'liquidity': master_chef_position[0],
|
252
|
+
'tick_lower': master_chef_position[2],
|
253
|
+
'tick_upper': master_chef_position[3],
|
254
|
+
'reward': master_chef_position[5] / 10 ** 18,
|
255
|
+
'farming_pid': master_chef_position[7],
|
256
|
+
'pending_cake': decoded_data.get(
|
257
|
+
f'pendingCake_{self.masterchef_addr}_{token_id}_{block_number}'.lower()) / 10 ** 18,
|
258
|
+
'fee_growth_inside0_x128': nft_position[8],
|
259
|
+
'fee_growth_inside1_x128': nft_position[9],
|
260
|
+
}
|
261
|
+
|
262
|
+
return user_data_with_liquidity
|
265
263
|
|
266
264
|
def get_user_token_amount_function(self, user: str, supplied_data: dict, block_number: int = "latest"):
|
267
265
|
user_data = supplied_data['user_data']
|
@@ -280,7 +278,6 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
280
278
|
block_number: int = "latest"):
|
281
279
|
user_data = supplied_data['user_data']
|
282
280
|
lp_token_info = supplied_data['lp_token_info']
|
283
|
-
|
284
281
|
supplied_param = {'user_data': user_data['all_token'],
|
285
282
|
'lp_token_info': lp_token_info}
|
286
283
|
user_data['all_token'] = super().decode_user_token_amount_function(user, supplied_param, decoded_data,
|
@@ -292,28 +289,24 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
292
289
|
'pool_address': lp_token_address
|
293
290
|
})
|
294
291
|
liquidity = value.get('liquidity')
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
'token0_amount': token0_amount / 10 ** token0_decimals,
|
314
|
-
'token1_amount': token1_amount / 10 ** token1_decimals,
|
315
|
-
}
|
316
|
-
)
|
292
|
+
token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
|
293
|
+
token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
|
294
|
+
price = lp_token_info.get(lp_token_address, {}).get("price")
|
295
|
+
tick = lp_token_info.get(lp_token_address, {}).get('tick')
|
296
|
+
tick_lower = value.get('tick_lower')
|
297
|
+
tick_upper = value.get('tick_upper')
|
298
|
+
if price and tick:
|
299
|
+
sqrt_price_x96 = math.sqrt(price) * 2 ** 96
|
300
|
+
token0_amount, token1_amount = get_token_amount_of_user(liquidity=liquidity,
|
301
|
+
sqrt_price_x96=sqrt_price_x96,
|
302
|
+
tick=tick, tick_upper=tick_upper,
|
303
|
+
tick_lower=tick_lower)
|
304
|
+
user_data['stake_token'][token_id].update(
|
305
|
+
{
|
306
|
+
'token0_amount': token0_amount / 10 ** token0_decimals,
|
307
|
+
'token1_amount': token1_amount / 10 ** token1_decimals,
|
308
|
+
}
|
309
|
+
)
|
317
310
|
return user_data
|
318
311
|
|
319
312
|
def get_rewards_balance_function_info(self, user, supplied_data, block_number: int = "latest"):
|
@@ -324,11 +317,15 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
324
317
|
lp_token_address = value.get('pool_address')
|
325
318
|
tick_lower = value.get('tick_lower')
|
326
319
|
tick_upper = value.get('tick_upper')
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
320
|
+
for fnc in ['feeGrowthGlobal0X128', 'feeGrowthGlobal1X128']:
|
321
|
+
query_id = f'{fnc}_{lp_token_address}_{block_number}'.lower()
|
322
|
+
rpc_calls[query_id] = self.state_service.get_function_info(
|
323
|
+
address=lp_token_address, abi=self.pool_info['pool_abi'], fn_name=fnc)
|
324
|
+
|
325
|
+
for param in [tick_lower, tick_upper]:
|
326
|
+
query_id = f'ticks_{lp_token_address}_{param}_{block_number}'.lower()
|
327
|
+
rpc_calls[query_id] = self.state_service.get_function_info(
|
328
|
+
address=lp_token_address, abi=self.pool_info['pool_abi'], fn_name="ticks", fn_paras=[param])
|
332
329
|
return rpc_calls
|
333
330
|
|
334
331
|
def calculate_rewards_balance(
|
@@ -338,39 +335,40 @@ class PancakeSwapV3Service(UniswapV3Services):
|
|
338
335
|
|
339
336
|
supplied_param = {'user_data': user_data['all_token'],
|
340
337
|
'lp_token_info': lp_token_info}
|
341
|
-
user_data['all_token'] = super().calculate_rewards_balance(user, supplied_param, decoded_data,
|
342
|
-
block_number)
|
338
|
+
user_data['all_token'] = super().calculate_rewards_balance(user, supplied_param, decoded_data, block_number)
|
343
339
|
for token_id, value in user_data['stake_token'].items():
|
340
|
+
lp_token_address = value.get('pool_address')
|
341
|
+
tick_lower = value.get('tick_lower')
|
342
|
+
tick_upper = value.get('tick_upper')
|
343
|
+
fee_growth_inside_0_x128 = value.get('fee_growth_inside0_x128')
|
344
|
+
fee_growth_inside_1_x128 = value.get('fee_growth_inside1_x128')
|
345
|
+
fee_growth_global_0 = decoded_data.get(f'feeGrowthGlobal0X128_{lp_token_address}_{block_number}'.lower())
|
346
|
+
fee_growth_global_1 = decoded_data.get(f'feeGrowthGlobal1X128_{lp_token_address}_{block_number}'.lower())
|
347
|
+
fee_growth_0_low_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_lower}_{block_number}'.lower())[2]
|
348
|
+
fee_growth_1_low_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_lower}_{block_number}'.lower())[3]
|
349
|
+
fee_growth_0_hi_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_upper}_{block_number}'.lower())[2]
|
350
|
+
fee_growth_1_hi_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_upper}_{block_number}'.lower())[3]
|
344
351
|
liquidity = value.get('liquidity')
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
else:
|
368
|
-
token0_reward = 0
|
369
|
-
token1_reward = 0
|
370
|
-
|
371
|
-
user_data['stake_token'][token_id].update({
|
372
|
-
'token0_reward': token0_reward,
|
373
|
-
'token1_reward': token1_reward
|
374
|
-
})
|
352
|
+
token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
|
353
|
+
token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
|
354
|
+
tick = lp_token_info.get(lp_token_address, {}).get('tick')
|
355
|
+
if tick and token0_decimals and token1_decimals:
|
356
|
+
token0_reward, token1_reward = get_fees(
|
357
|
+
fee_growth_global_0=fee_growth_global_0,
|
358
|
+
fee_growth_global_1=fee_growth_global_1,
|
359
|
+
fee_growth_0_low=fee_growth_0_low_x128,
|
360
|
+
fee_growth_1_low=fee_growth_1_low_x128,
|
361
|
+
fee_growth_0_hi=fee_growth_0_hi_x128,
|
362
|
+
fee_growth_1_hi=fee_growth_1_hi_x128,
|
363
|
+
fee_growth_inside_0=fee_growth_inside_0_x128,
|
364
|
+
fee_growth_inside_1=fee_growth_inside_1_x128,
|
365
|
+
liquidity=liquidity, tick_lower=tick_lower,
|
366
|
+
tick_upper=tick_upper, tick_current=tick,
|
367
|
+
decimals0=token0_decimals, decimals1=token1_decimals)
|
368
|
+
|
369
|
+
user_data['stake_token'][token_id].update({
|
370
|
+
'token0_reward': token0_reward,
|
371
|
+
'token1_reward': token1_reward
|
372
|
+
})
|
375
373
|
|
376
374
|
return user_data
|
@@ -5,6 +5,7 @@ from defi_services.constants.entities.dex_constant import Dex
|
|
5
5
|
from defi_services.jobs.queriers.state_querier import StateQuerier
|
6
6
|
from defi_services.services.dex.dex_info.quickswap_info import QUICKSWAP_POLYGON_V3_INFO
|
7
7
|
from defi_services.services.dex.uniswap_v3_service import UniswapV3Services
|
8
|
+
from defi_services.utils.get_fees import get_fees
|
8
9
|
|
9
10
|
logger = logging.getLogger("QuickSwap V3 State Service")
|
10
11
|
|
@@ -116,21 +117,21 @@ class QuickSwapV3Services(UniswapV3Services):
|
|
116
117
|
def decode_user_info_function(self, user: str, supplied_data: dict, decoded_data: dict = None, stake: bool = False,
|
117
118
|
block_number: int = "latest"):
|
118
119
|
user_data = supplied_data['user_data']
|
120
|
+
user_data_with_liquidity = {}
|
119
121
|
for token_id, value in user_data.items():
|
120
122
|
position = decoded_data.get(f'positions_{self.nft_token_manager_addr}_{token_id}_{block_number}'.lower())
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
return user_data
|
123
|
+
liquidity = position[6]
|
124
|
+
if liquidity > 0:
|
125
|
+
user_data_with_liquidity[token_id] = {
|
126
|
+
'token0': position[2],
|
127
|
+
'token1': position[3],
|
128
|
+
'tick_lower': position[4],
|
129
|
+
'tick_upper': position[5],
|
130
|
+
'liquidity': liquidity,
|
131
|
+
'fee_growth_inside0_x128': position[7],
|
132
|
+
'fee_growth_inside1_x128': position[8],
|
133
|
+
}
|
134
|
+
return user_data_with_liquidity
|
134
135
|
|
135
136
|
def get_user_token_amount_function(self, user: str, supplied_data: dict, block_number: int = "latest"):
|
136
137
|
user_data = supplied_data['user_data']
|
@@ -138,7 +139,7 @@ class QuickSwapV3Services(UniswapV3Services):
|
|
138
139
|
for token_id, value in user_data.items():
|
139
140
|
token0 = value.get('token0')
|
140
141
|
token1 = value.get('token1')
|
141
|
-
query_id = f'
|
142
|
+
query_id = f'getPool_{self.factory_addr}_{token_id}_{block_number}'.lower()
|
142
143
|
rpc_calls[query_id] = self.state_service.get_function_info(
|
143
144
|
self.factory_addr, self.factory_abi, fn_name="poolByPair", fn_paras=[token0, token1]
|
144
145
|
)
|
@@ -151,44 +152,65 @@ class QuickSwapV3Services(UniswapV3Services):
|
|
151
152
|
|
152
153
|
return rpc_calls
|
153
154
|
|
155
|
+
def get_rewards_balance_function_info(self, user, supplied_data, block_number: int = "latest"):
|
156
|
+
user_data = supplied_data['user_data']
|
157
|
+
rpc_calls = {}
|
158
|
+
for token_id, value in user_data.items():
|
159
|
+
lp_token_address = value.get('pool_address')
|
160
|
+
tick_lower = value.get('tick_lower')
|
161
|
+
tick_upper = value.get('tick_upper')
|
162
|
+
for fnc in ['totalFeeGrowth0Token', 'totalFeeGrowth1Token']:
|
163
|
+
query_id = f'{fnc}_{lp_token_address}_{block_number}'.lower()
|
164
|
+
rpc_calls[query_id] = self.state_service.get_function_info(
|
165
|
+
address=lp_token_address, abi=self.pool_info['pool_abi'], fn_name=fnc)
|
166
|
+
|
167
|
+
for param in [tick_lower, tick_upper]:
|
168
|
+
query_id = f'ticks_{lp_token_address}_{param}_{block_number}'.lower()
|
169
|
+
rpc_calls[query_id] = self.state_service.get_function_info(
|
170
|
+
address=lp_token_address, abi=self.pool_info['pool_abi'], fn_name="ticks", fn_paras=[param])
|
171
|
+
|
172
|
+
return rpc_calls
|
173
|
+
|
154
174
|
def calculate_rewards_balance(
|
155
175
|
self, user: str, supplied_data: dict, decoded_data: dict, block_number: int = "latest"):
|
156
176
|
lp_token_info = supplied_data['lp_token_info']
|
157
177
|
user_data = supplied_data['user_data']
|
158
178
|
|
159
179
|
for token_id, value in user_data.items():
|
180
|
+
lp_token_address = value.get('pool_address')
|
181
|
+
tick_lower = value.get('tick_lower')
|
182
|
+
tick_upper = value.get('tick_upper')
|
183
|
+
fee_growth_inside_0_x128 = value.get('fee_growth_inside0_x128')
|
184
|
+
fee_growth_inside_1_x128 = value.get('fee_growth_inside1_x128')
|
185
|
+
fee_growth_global_0 = decoded_data.get(
|
186
|
+
f'totalFeeGrowth0Token_{lp_token_address}_{block_number}'.lower())
|
187
|
+
fee_growth_global_1 = decoded_data.get(
|
188
|
+
f'totalFeeGrowth1Token_{lp_token_address}_{block_number}'.lower())
|
189
|
+
fee_growth_0_low_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_lower}_{block_number}'.lower())[2]
|
190
|
+
fee_growth_1_low_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_lower}_{block_number}'.lower())[3]
|
191
|
+
fee_growth_0_hi_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_upper}_{block_number}'.lower())[2]
|
192
|
+
fee_growth_1_hi_x128 = decoded_data.get(f'ticks_{lp_token_address}_{tick_upper}_{block_number}'.lower())[3]
|
160
193
|
liquidity = value.get('liquidity')
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
user_data[token_id].update({
|
185
|
-
'token0_reward': token0_reward,
|
186
|
-
'token1_reward': token1_reward
|
187
|
-
})
|
188
|
-
|
189
|
-
return user_data
|
190
|
-
|
191
|
-
def get_position_key(self, tick_lower, tick_upper):
|
192
|
-
owner = int(self.nft_token_manager_addr, 16)
|
193
|
-
key = (((owner << 24) | (tick_lower & 0xFFFFFF)) << 24) | (tick_upper & 0xFFFFFF)
|
194
|
-
return '0x' + format(key, '064x')
|
194
|
+
tick = lp_token_info.get(lp_token_address, {}).get('tick')
|
195
|
+
token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
|
196
|
+
token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
|
197
|
+
if tick and token0_decimals and token1_decimals:
|
198
|
+
token0_reward, token1_reward = get_fees(
|
199
|
+
fee_growth_global_0=fee_growth_global_0,
|
200
|
+
fee_growth_global_1=fee_growth_global_1,
|
201
|
+
fee_growth_0_low=fee_growth_0_low_x128,
|
202
|
+
fee_growth_1_low=fee_growth_1_low_x128,
|
203
|
+
fee_growth_0_hi=fee_growth_0_hi_x128,
|
204
|
+
fee_growth_1_hi=fee_growth_1_hi_x128,
|
205
|
+
fee_growth_inside_0=fee_growth_inside_0_x128,
|
206
|
+
fee_growth_inside_1=fee_growth_inside_1_x128,
|
207
|
+
liquidity=liquidity, tick_lower=tick_lower,
|
208
|
+
tick_upper=tick_upper, tick_current=tick,
|
209
|
+
decimals0=token0_decimals, decimals1=token1_decimals)
|
210
|
+
|
211
|
+
user_data[token_id].update({
|
212
|
+
'token0_reward': token0_reward,
|
213
|
+
'token1_reward': token1_reward
|
214
|
+
})
|
215
|
+
|
216
|
+
return user_data
|