defi-state-querier 0.4.24__tar.gz → 0.4.26__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/PKG-INFO +1 -1
  2. defi-state-querier-0.4.26/src/defi_services/__init__.py +1 -0
  3. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/multi_state_processor.py +2 -2
  4. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/state_processor.py +2 -2
  5. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/queriers/state_querier.py +4 -4
  6. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/pancakeswap_info.py +10 -1
  7. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/pancakeswap_service.py +1 -1
  8. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/pancakeswap_v2_service.py +1 -1
  9. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/pancakeswap_v3_service.py +25 -7
  10. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/quickswap_v3_service.py +14 -4
  11. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/uniswap_v2_service.py +1 -1
  12. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/uniswap_v3_service.py +16 -7
  13. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/aave_v2_services.py +2 -2
  14. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/aave_v3_services.py +4 -4
  15. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/apeswap_services.py +3 -3
  16. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/compound_service.py +3 -3
  17. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/compound_v3_services.py +1 -1
  18. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/flux_services.py +3 -3
  19. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/granary_services.py +1 -1
  20. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/iron_bank_service.py +4 -4
  21. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/justlend_service.py +3 -3
  22. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/liqee_service.py +3 -3
  23. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/morpho_aave_v2_services.py +2 -2
  24. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/morpho_aave_v3_services.py +2 -2
  25. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/morpho_compound_services.py +5 -5
  26. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/onyx_service.py +4 -4
  27. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/silo_services.py +3 -3
  28. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/strike_service.py +3 -3
  29. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/trava_services.py +2 -2
  30. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/uwu_services.py +2 -2
  31. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/valas_services.py +1 -1
  32. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/venus_services.py +7 -7
  33. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/wepiggy_services.py +4 -4
  34. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/convert_address.py +2 -2
  35. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_state_querier.egg-info/PKG-INFO +1 -1
  36. defi-state-querier-0.4.24/src/defi_services/__init__.py +0 -1
  37. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/LICENSE +0 -0
  38. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/README.md +0 -0
  39. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/pyproject.toml +0 -0
  40. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/setup.cfg +0 -0
  41. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/setup.py +0 -0
  42. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/__init__.py +0 -0
  43. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/__init__.py +0 -0
  44. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/biswap/__init__.py +0 -0
  45. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/biswap/biswap_masterchef_abi.py +0 -0
  46. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/__init__.py +0 -0
  47. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/factory_v3_abi.py +0 -0
  48. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/masterchef_v0_abi.py +0 -0
  49. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/masterchef_v3_abi.py +0 -0
  50. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/nft_token_abi.py +0 -0
  51. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/pancakeswap_lp_token_abi.py +0 -0
  52. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/pancakeswap_masterchef_v2_abi.py +0 -0
  53. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/pancakeswap_router_v2_abi.py +0 -0
  54. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/pancakeswap_v2_factory_abi.py +0 -0
  55. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/pancakeswap/v3_pool_abi.py +0 -0
  56. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/quickswap/__init__.py +0 -0
  57. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/quickswap/factory_v3_abi.py +0 -0
  58. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/quickswap/nft_token_manager.py +0 -0
  59. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/quickswap/pool_v3_abi.py +0 -0
  60. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/spookyswap/__init__.py +0 -0
  61. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/spookyswap/masterchef_v2_abi.py +0 -0
  62. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/spookyswap/masterchef_v3_abi.py +0 -0
  63. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/sushiswap/__init__.py +0 -0
  64. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/sushiswap/factory_v3_abi.py +0 -0
  65. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/sushiswap/masterchef_abi.py +0 -0
  66. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/sushiswap/masterchef_v2_abi.py +0 -0
  67. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/sushiswap/minichef_abi.py +0 -0
  68. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/uniswap/__init__.py +0 -0
  69. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/uniswap/factory_v2_abi.py +0 -0
  70. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/uniswap/factory_v3_abi.py +0 -0
  71. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/uniswap/nft_token_manager_abi.py +0 -0
  72. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/dex/uniswap/pool_v3_abi.py +0 -0
  73. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/__init__.py +0 -0
  74. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/__init__.py +0 -0
  75. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/__init__.py +0 -0
  76. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/aave_incentives_controller.py +0 -0
  77. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/aave_oracle.py +0 -0
  78. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/atoken.py +0 -0
  79. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/avalanche_atoken.py +0 -0
  80. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/default_reserve_interest_rate_strategy.py +0 -0
  81. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/lending_pool.py +0 -0
  82. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider.py +0 -0
  83. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider_registry.py +0 -0
  84. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_configurator.py +0 -0
  85. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/oracle_anchor.py +0 -0
  86. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/stable_debt_token.py +0 -0
  87. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/uniswap_liquidity_swap_adapter.py +0 -0
  88. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/uniswap_repay_adapter.py +0 -0
  89. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2/variable_debt_token.py +0 -0
  90. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2_permissioned/__init__.py +0 -0
  91. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2_permissioned/aave_oracle.py +0 -0
  92. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v2_permissioned/permission_manager.py +0 -0
  93. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/__init__.py +0 -0
  94. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/aave_oracle.py +0 -0
  95. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_incentives_abi.py +0 -0
  96. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_lending_pool_abi.py +0 -0
  97. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_oracle_abi.py +0 -0
  98. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/atoken.py +0 -0
  99. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/default_reserve_interest_rate_strategy.py +0 -0
  100. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/pool.py +0 -0
  101. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider.py +0 -0
  102. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider_registry.py +0 -0
  103. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/pool_configurator.py +0 -0
  104. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/price_oracle.py +0 -0
  105. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/rewards_controller.py +0 -0
  106. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/stable_debt_token.py +0 -0
  107. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/aave_v3/variable_debt_token.py +0 -0
  108. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/all_aave_abi.py +0 -0
  109. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/__init__.py +0 -0
  110. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/gho_a_token.py +0 -0
  111. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/gho_discount_rate_strategy.py +0 -0
  112. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/gho_flash_minter.py +0 -0
  113. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/gho_token.py +0 -0
  114. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave/gho/gho_variable_debt_token.py +0 -0
  115. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/__init__.py +0 -0
  116. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_event_abi.py +0 -0
  117. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_incentives_abi.py +0 -0
  118. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/lending_pool_abi.py +0 -0
  119. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/oracle_abi.py +0 -0
  120. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/staked_incentives_abi.py +0 -0
  121. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v2_and_forlks/uwu_incentives_abi.py +0 -0
  122. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v3_forks/__init__.py +0 -0
  123. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_incentives_abi.py +0 -0
  124. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_lending_pool_abi.py +0 -0
  125. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_oracle_abi.py +0 -0
  126. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/alpaca/__init__.py +0 -0
  127. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/alpaca/alpaca_fair_launch_abi.py +0 -0
  128. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/alpaca/alpaca_vault_abi.py +0 -0
  129. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/alpaca/alpaca_vault_config_abi.py +0 -0
  130. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/apeswape/__init__.py +0 -0
  131. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/apeswape/apeswap_comptroller_abi.py +0 -0
  132. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/apeswape/apeswap_event_abi.py +0 -0
  133. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/apeswape/apeswap_lens_abi.py +0 -0
  134. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/apeswape/apswap_ctoken_abi.py +0 -0
  135. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/__init__.py +0 -0
  136. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/all_compound_abis.py +0 -0
  137. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/comet/__init__.py +0 -0
  138. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/compound_v3/__init__.py +0 -0
  139. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/compound_v3/comet_abi.py +0 -0
  140. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/compound_v3/comet_ext_abi.py +0 -0
  141. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/compound_v3/reward_abi.py +0 -0
  142. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/governance/__init__.py +0 -0
  143. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/governance/comp.py +0 -0
  144. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegate.py +0 -0
  145. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegator.py +0 -0
  146. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/governance/timelock.py +0 -0
  147. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/__init__.py +0 -0
  148. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/bravodelegate2.py +0 -0
  149. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/bravodelegator2.py +0 -0
  150. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/comp.py +0 -0
  151. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/compoundlens.py +0 -0
  152. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/comptroller.py +0 -0
  153. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/ctoken.py +0 -0
  154. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/dsr_updateable.py +0 -0
  155. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/governoralpha.py +0 -0
  156. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/governorbravo.py +0 -0
  157. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/governorbravodelegator.py +0 -0
  158. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/irm_comp_updateable.py +0 -0
  159. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/jumpratemodelv2.py +0 -0
  160. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/legacyjumpratemodelv2.py +0 -0
  161. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/moneymarket.py +0 -0
  162. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/newbravodelegate.py +0 -0
  163. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/newbravodelegator.py +0 -0
  164. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/pricedata.py +0 -0
  165. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/pricefeed.py +0 -0
  166. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/priceoracle.py +0 -0
  167. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/rep.py +0 -0
  168. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/reservoir.py +0 -0
  169. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/stablecoininterestratemodel.py +0 -0
  170. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/standardinterestratemodel.py +0 -0
  171. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/stdcomptroller.py +0 -0
  172. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/timelock.py +0 -0
  173. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/uni.py +0 -0
  174. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/compound/protocol/unitroller.py +0 -0
  175. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/cream/__init__.py +0 -0
  176. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/cream/cream_comptroller_abi.py +0 -0
  177. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/cream/cream_lens_abi.py +0 -0
  178. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/granary/__init__.py +0 -0
  179. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/granary/granary_rewarder_abi.py +0 -0
  180. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/iron_bank/__init__.py +0 -0
  181. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/iron_bank/ctoken_abi.py +0 -0
  182. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/iron_bank/iron_comptroller_abi.py +0 -0
  183. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/iron_bank/iron_lens_abi.py +0 -0
  184. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/justlend/__init__.py +0 -0
  185. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/justlend/just_token_abi.py +0 -0
  186. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/justlend/justlend_comptroller_abi.py +0 -0
  187. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/liqee/__init__.py +0 -0
  188. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/liqee/liqee_comptroller_abi.py +0 -0
  189. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/liqee/liqee_event_abi.py +0 -0
  190. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/liqee/liqee_lending_data_abi.py +0 -0
  191. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/liqee/liqee_token_abi.py +0 -0
  192. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/__init__.py +0 -0
  193. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +0 -0
  194. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +0 -0
  195. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +0 -0
  196. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +0 -0
  197. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +0 -0
  198. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +0 -0
  199. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/onyx/__init__.py +0 -0
  200. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/onyx/onyx_comptroller_abi.py +0 -0
  201. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/onyx/onyx_event_abi.py +0 -0
  202. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/onyx/onyx_lens_abi.py +0 -0
  203. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/onyx/onyx_token_abi.py +0 -0
  204. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/other/__init__.py +0 -0
  205. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/other/chain_link_abi.py +0 -0
  206. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/radiant_v2/__init__.py +0 -0
  207. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +0 -0
  208. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/silo/__init__.py +0 -0
  209. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/silo/silo_abi.py +0 -0
  210. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/silo/silo_lens_abi.py +0 -0
  211. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/silo/silo_repository_abi.py +0 -0
  212. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/silo/silo_reward_abi.py +0 -0
  213. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/strike/__init__.py +0 -0
  214. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/strike/strike_comptroller_abi.py +0 -0
  215. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/strike/strike_lens_abi.py +0 -0
  216. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/strike/strike_token_abi.py +0 -0
  217. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/trava/__init__.py +0 -0
  218. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/trava/trava_lending_pool_abi.py +0 -0
  219. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/trava/trava_oracle_abi.py +0 -0
  220. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/valas/__init__.py +0 -0
  221. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/valas/chef_incentives_controller.py +0 -0
  222. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/valas/valas_multi_fee_distribution.py +0 -0
  223. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/__init__.py +0 -0
  224. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/__init__.py +0 -0
  225. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/comptroller_defi.py +0 -0
  226. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/comptrollerbeacon.py +0 -0
  227. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/comptrollerimpl.py +0 -0
  228. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/defaultproxyadmin.py +0 -0
  229. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/jumpratemodelv2.py +0 -0
  230. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/poollens.py +0 -0
  231. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/poolregistry.py +0 -0
  232. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/poolregistry_implementation.py +0 -0
  233. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/poolregistry_proxy.py +0 -0
  234. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/protocolsharereserve.py +0 -0
  235. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_implementation.py +0 -0
  236. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_proxy.py +0 -0
  237. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/rewardsdistributor_defi.py +0 -0
  238. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/rewardsdistributorimpl.py +0 -0
  239. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/riskfund.py +0 -0
  240. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/riskfund_implementation.py +0 -0
  241. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/riskfund_proxy.py +0 -0
  242. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/shortfall.py +0 -0
  243. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/shortfall_implementation.py +0 -0
  244. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/shortfall_proxy.py +0 -0
  245. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/swaprouter_defi.py +0 -0
  246. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/vtokenbeacon.py +0 -0
  247. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/abi/vtokenimpl.py +0 -0
  248. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/all_venus_abi.py +0 -0
  249. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/__init__.py +0 -0
  250. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/access_control_manager.py +0 -0
  251. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/access_controlled_v5.py +0 -0
  252. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/access_controlled_v8.py +0 -0
  253. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegate.py +0 -0
  254. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegator.py +0 -0
  255. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/governor_bravo_events.py +0 -0
  256. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/governance/timelock.py +0 -0
  257. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/venus/__init__.py +0 -0
  258. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/venus_comptroller_abi.py +0 -0
  259. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/venus_lens_abi.py +0 -0
  260. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/venus_lens_abi_v1.py +0 -0
  261. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/venus/vtoken_abi.py +0 -0
  262. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/wepiggy/__init__.py +0 -0
  263. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/wepiggy/wepiggy_comptroller_abi.py +0 -0
  264. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +0 -0
  265. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi.py +0 -0
  266. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi_v2.py +0 -0
  267. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/token/__init__.py +0 -0
  268. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/token/ctoken_abi.py +0 -0
  269. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/token/erc20_abi.py +0 -0
  270. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/token/erc721_abi.py +0 -0
  271. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/vault/__init__.py +0 -0
  272. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/vault/incentive_abi.py +0 -0
  273. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/vault/trava_vault_abi.py +0 -0
  274. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/vault/valuator_abi.py +0 -0
  275. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/abis/vault/ve_abi.py +0 -0
  276. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/__init__.py +0 -0
  277. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/chain_constant.py +0 -0
  278. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/cosmos_decimals_constant.py +0 -0
  279. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/db_constant.py +0 -0
  280. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/__init__.py +0 -0
  281. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/dex_constant.py +0 -0
  282. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/dex_info_constant.py +0 -0
  283. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/dex_services.py +0 -0
  284. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/lending_constant.py +0 -0
  285. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/lending_services.py +0 -0
  286. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/vault_constant.py +0 -0
  287. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/entities/vault_services.py +0 -0
  288. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/mongo_constant.py +0 -0
  289. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/query_constant.py +0 -0
  290. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/time_constant.py +0 -0
  291. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/constants/token_constant.py +0 -0
  292. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/__init__.py +0 -0
  293. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/__init__.py +0 -0
  294. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/cosmos_state_processor.py +0 -0
  295. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/solana_state_processor.py +0 -0
  296. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/processors/substrate_state_processor.py +0 -0
  297. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/queriers/__init__.py +0 -0
  298. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/queriers/solana_state_querier.py +0 -0
  299. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/jobs/queriers/substrate_state_querier.py +0 -0
  300. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/__init__.py +0 -0
  301. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/cosmos_token_services.py +0 -0
  302. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/__init__.py +0 -0
  303. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/__init__.py +0 -0
  304. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/quickswap_info.py +0 -0
  305. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/spookyswap_info.py +0 -0
  306. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/sushiswap_info.py +0 -0
  307. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/dex_info/uniswap_info.py +0 -0
  308. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/quickswap_v2_service.py +0 -0
  309. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/spookyswap_v2_service.py +0 -0
  310. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/sushiswap_service.py +0 -0
  311. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/sushiswap_v2_service.py +0 -0
  312. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex/sushiswap_v3_service.py +0 -0
  313. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/dex_protocol_services.py +0 -0
  314. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/__init__.py +0 -0
  315. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/cream_services.py +0 -0
  316. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/geist_services.py +0 -0
  317. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/__init__.py +0 -0
  318. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/__init__.py +0 -0
  319. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py +0 -0
  320. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +0 -0
  321. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/granary_arbitrum.py +0 -0
  322. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/radiant_arbitrum.py +0 -0
  323. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/silo_arbitrum.py +0 -0
  324. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/arbitrum/wepiggy_arbitrum.py +0 -0
  325. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/avalanche/__init__.py +0 -0
  326. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/avalanche/aave_v2_avalanche.py +0 -0
  327. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/avalanche/aave_v3_avalanche.py +0 -0
  328. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/avalanche/granary_avalanche.py +0 -0
  329. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/avalanche/iron_bank_avalanche.py +0 -0
  330. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/__init__.py +0 -0
  331. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/apeswap_bsc.py +0 -0
  332. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/cream_bsc.py +0 -0
  333. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/granary_bsc.py +0 -0
  334. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/liqee_bsc.py +0 -0
  335. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/radiant_bsc.py +0 -0
  336. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/trava_bsc.py +0 -0
  337. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/valas_bsc.py +0 -0
  338. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/venus_bsc.py +0 -0
  339. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py +0 -0
  340. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/__init__.py +0 -0
  341. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/aave_v2_eth.py +0 -0
  342. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py +0 -0
  343. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/compound_eth.py +0 -0
  344. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +0 -0
  345. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/flux_eth.py +0 -0
  346. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/granary_eth.py +0 -0
  347. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/iron_bank_eth.py +0 -0
  348. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/liqee_eth.py +0 -0
  349. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +0 -0
  350. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +0 -0
  351. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +0 -0
  352. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/onyx_eth.py +0 -0
  353. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/silo_eth.py +0 -0
  354. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py +0 -0
  355. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/spark_eth.py +0 -0
  356. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/strike_eth.py +0 -0
  357. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/trava_eth.py +0 -0
  358. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/uwu_eth.py +0 -0
  359. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +0 -0
  360. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/fantom/__init__.py +0 -0
  361. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/fantom/aave_v3_ftm.py +0 -0
  362. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/fantom/geist_ftm.py +0 -0
  363. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/fantom/granary_ftm.py +0 -0
  364. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/fantom/trava_ftm.py +0 -0
  365. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/optimism/__init__.py +0 -0
  366. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/optimism/aave_v3_optimism.py +0 -0
  367. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/optimism/granary_optimism.py +0 -0
  368. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/optimism/iron_bank_optimism.py +0 -0
  369. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/optimism/wepiggy_optimism.py +0 -0
  370. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/polygon/__init__.py +0 -0
  371. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/polygon/aave_v2_polygon.py +0 -0
  372. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/polygon/aave_v3_polygon.py +0 -0
  373. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +0 -0
  374. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/polygon/wepiggy_polygon.py +0 -0
  375. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/tron/__init__.py +0 -0
  376. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/lending_info/tron/justlend_tron.py +0 -0
  377. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/radiant_v2_services.py +0 -0
  378. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/lending/spark_services.py +0 -0
  379. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/nft_services.py +0 -0
  380. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/protocol_services.py +0 -0
  381. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/solana_token_services.py +0 -0
  382. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/substrate_token_services.py +0 -0
  383. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/token_services.py +0 -0
  384. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/__init__.py +0 -0
  385. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/trava_vault_services.py +0 -0
  386. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/__init__.py +0 -0
  387. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/bsc/__init__.py +0 -0
  388. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/bsc/trava_bsc.py +0 -0
  389. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/ethereum/__init__.py +0 -0
  390. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/ethereum/trava_eth.py +0 -0
  391. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/fantom/__init__.py +0 -0
  392. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/services/vault/vault_info/fantom/trava_ftm.py +0 -0
  393. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/__init__.py +0 -0
  394. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/apy.py +0 -0
  395. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/get_fees.py +0 -0
  396. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/graph_operations.py +0 -0
  397. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/init_dex_services.py +0 -0
  398. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/init_services.py +0 -0
  399. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/logger_utils.py +0 -0
  400. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/market_service.py +0 -0
  401. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/memory_storage.py +0 -0
  402. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/sqrt_price_math.py +0 -0
  403. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_services/utils/thread_proxy.py +0 -0
  404. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_state_querier.egg-info/SOURCES.txt +0 -0
  405. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_state_querier.egg-info/dependency_links.txt +0 -0
  406. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_state_querier.egg-info/requires.txt +0 -0
  407. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/src/defi_state_querier.egg-info/top_level.txt +0 -0
  408. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_dex_information.py +0 -0
  409. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_dex_v2_processor_job.py +0 -0
  410. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_dex_v3_processor_job.py +0 -0
  411. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_processor_job.py +0 -0
  412. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_staking_reward_job.py +0 -0
  413. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_uniswap_v2.py +0 -0
  414. {defi-state-querier-0.4.24 → defi-state-querier-0.4.26}/tests/test_uniswap_v3.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.4.24
3
+ Version: 0.4.26
4
4
  Summary: Calculate apy, apr, and wallet information,... in decentralized applications.
5
5
  Home-page: https://github.com/Centic-io/defi-state-querier
6
6
  Author: Viet-Bang Pham
@@ -0,0 +1 @@
1
+ __version__ = "0.4.26"
@@ -31,11 +31,11 @@ class MultiStateProcessor:
31
31
 
32
32
  @staticmethod
33
33
  def check_address(address):
34
- return Web3.isAddress(address)
34
+ return Web3.is_address(address)
35
35
 
36
36
  @staticmethod
37
37
  def checksum_address(address):
38
- return Web3.toChecksumAddress(address)
38
+ return Web3.to_checksum_address(address)
39
39
 
40
40
  def init_rpc_call_information(
41
41
  self, wallet: str, query_id: str, entity_id: str, query_type: str, block_number: int = 'latest', **kwargs):
@@ -39,11 +39,11 @@ class StateProcessor:
39
39
 
40
40
  @staticmethod
41
41
  def check_address(address):
42
- return Web3.isAddress(address)
42
+ return Web3.is_address(address)
43
43
 
44
44
  @staticmethod
45
45
  def checksum_address(address):
46
- return Web3.toChecksumAddress(address)
46
+ return Web3.to_checksum_address(address)
47
47
 
48
48
  def init_rpc_call_information(
49
49
  self, wallet: str, query_id: str, entity_id: str, query_type: str, block_number: int = 'latest', **kwargs):
@@ -112,7 +112,7 @@ class StateQuerier:
112
112
  @staticmethod
113
113
  def add_native_token_balance_rpc_call(
114
114
  fn_paras: str = None, call_id: str = None, block_number: int = "latest"):
115
- eth_call = GetBalance(Web3.toChecksumAddress(fn_paras), block_number, call_id)
115
+ eth_call = GetBalance(Web3.to_checksum_address(fn_paras), block_number, call_id)
116
116
  return eth_call
117
117
 
118
118
  def add_rpc_call(self, abi: dict, fn_name: str, contract_address: str,
@@ -120,12 +120,12 @@ class StateQuerier:
120
120
  args = []
121
121
  if fn_paras:
122
122
  for item in fn_paras:
123
- if self._w3.isAddress(item):
124
- item = self._w3.toChecksumAddress(item)
123
+ if self._w3.is_address(item):
124
+ item = self._w3.to_checksum_address(item)
125
125
  args.append(item)
126
126
 
127
127
  data_call = encode_eth_call_data(abi=abi, fn_name=fn_name, args=args)
128
- eth_call = EthCall(to=self._w3.toChecksumAddress(contract_address), block_number=block_number,
128
+ eth_call = EthCall(to=self._w3.to_checksum_address(contract_address), block_number=block_number,
129
129
  data=data_call, abi=abi, fn_name=fn_name, id=call_id)
130
130
  return eth_call
131
131
 
@@ -6,6 +6,9 @@ from defi_services.abis.dex.pancakeswap.pancakeswap_v2_factory_abi import PANCAK
6
6
  from defi_services.abis.dex.pancakeswap.v3_pool_abi import PANCAKESWAP_V3_POOL_ABI
7
7
 
8
8
  PANCAKESWAP_V0_BSC_INFO = {
9
+ "project_id": "pancakeswap",
10
+ "chain_id": "0x1",
11
+ "router_address": "0xeff92a263d31888d860bd50809a8d171709b7b1c",
9
12
  'master_chef_address': '0x73feaa1ee314f8c655e354234017be2193c9e24e',
10
13
  "reward_token": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
11
14
  'forked': 'uniswap-v2'
@@ -13,15 +16,20 @@ PANCAKESWAP_V0_BSC_INFO = {
13
16
  }
14
17
 
15
18
  PANCAKESWAP_V2_BSC_INFO = {
19
+ "project_id": "pancakeswap-amm",
20
+ "chain_id": "0x38",
16
21
  'factory_address': '0xca143ce32fe78f1f7019d7d551a6402fc5350c73',
17
22
  'master_chef_address': '0xa5f8c5dbd5f286960b9d90548680ae5ebff07652',
18
23
  "reward_token": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
19
24
  'factory_abi': PANCAKESWAP_V2_FACTORY_ABI,
20
25
  'master_chef_abi': PANCAKESWAP_MASTERCHEF_V2_ABI,
21
- 'forked': 'uniswap-v2'
26
+ 'forked': 'uniswap-v2',
27
+ "router_address": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
22
28
  }
23
29
 
24
30
  PANCAKESWAP_V3_BSC_INFO = {
31
+ "project_id": "pancakeswap-v3",
32
+ "chain_id": "0x38",
25
33
  'factory_address': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865',
26
34
  'factory_abi': PANCAKESWAP_V3_FACTORY_ABI,
27
35
  'master_chef_address': '0x556b9306565093c855aea9ae92a594704c2cd59e',
@@ -31,5 +39,6 @@ PANCAKESWAP_V3_BSC_INFO = {
31
39
  'pool_abi': PANCAKESWAP_V3_POOL_ABI,
32
40
  'forked': 'uniswap-v3',
33
41
  "reward_token": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
42
+ 'router_address': "0x13f4ea83d0bd40e75c8222255bc855a974568dd4"
34
43
 
35
44
  }
@@ -38,7 +38,7 @@ class PancakeSwapServices(PancakeSwapV2Services):
38
38
  masterchef_addr = self.pool_info.get('master_chef_address')
39
39
 
40
40
  master_chef_contract = web3.eth.contract(abi=self.masterchef_abi,
41
- address=web3.toChecksumAddress(masterchef_addr))
41
+ address=web3.to_checksum_address(masterchef_addr))
42
42
  pool_length = master_chef_contract.functions.poolLength().call()
43
43
 
44
44
  rpc_calls = {}
@@ -42,7 +42,7 @@ class PancakeSwapV2Services(UniswapV2Services):
42
42
  masterchef_addr = self.pool_info.get('master_chef_address')
43
43
 
44
44
  master_chef_contract = web3.eth.contract(abi=self.masterchef_abi,
45
- address=web3.toChecksumAddress(masterchef_addr))
45
+ address=web3.to_checksum_address(masterchef_addr))
46
46
  pool_length = master_chef_contract.functions.poolLength().call()
47
47
 
48
48
  rpc_calls = {}
@@ -126,6 +126,10 @@ class PancakeSwapV3Service(UniswapV3Services):
126
126
  query_id = f'decimals_{token_address}_{block_number}'.lower()
127
127
  rpc_calls[query_id] = self.state_service.get_function_info(
128
128
  address=token_address, abi=ERC20_ABI, fn_name="decimals", block_number=block_number)
129
+ query_id = f'{token_key}_{lp_token}_{block_number}'.lower()
130
+ rpc_calls[query_id] = self.state_service.get_function_info(
131
+ address=lp_token, abi=self.pool_info['pool_abi'], fn_name=token_key, fn_paras=None,
132
+ block_number=block_number)
129
133
 
130
134
  return rpc_calls
131
135
 
@@ -133,15 +137,21 @@ class PancakeSwapV3Service(UniswapV3Services):
133
137
  lp_token_info = supplied_data['lp_token_info']
134
138
  for lp_token, value in lp_token_info.items():
135
139
  slot0 = response_data.get(f"slot0_{lp_token}_{block_number}".lower())
136
- price = (slot0[0] / 2 ** 96) ** 2
137
140
  token0_address = value.get('token0')
138
141
  token1_address = value.get('token1')
139
- token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
140
- token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
142
+ if token0_address == response_data.get(f'token0_{lp_token}_{block_number}'.lower()):
143
+ token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
144
+ token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
145
+ else:
146
+ token1_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
147
+ token0_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
148
+ price = (slot0[0] / 2 ** 96) ** 2 * 10 ** (token0_decimals - token1_decimals)
141
149
  unstake_liquidity = response_data.get(f"liquidity_{lp_token}_{block_number}".lower())
142
150
  tick_spacing = response_data.get(f'tickSpacing_{lp_token}_{block_number}'.lower())
143
151
 
144
152
  lp_token_info[lp_token].update({
153
+ "token0": token0_address,
154
+ "token1": token1_address,
145
155
  'liquidity_in_range': unstake_liquidity,
146
156
  "price": price,
147
157
  'tick': slot0[1],
@@ -174,9 +184,12 @@ class PancakeSwapV3Service(UniswapV3Services):
174
184
  tick_upper = (tick // tick_spacing + 1) * tick_spacing
175
185
  amount0, amount1 = get_token_amount_of_pool(liquidity=liquidity_in_range,
176
186
  tick_lower=tick_lower, tick_upper=tick_upper)
187
+ # stake_amount0, stake_amount1 = get_token_amount_of_pool(liquidity=value.get("stake_liquidity"), tick_lower= tick_lower, tick_upper=tick_upper)
177
188
  lp_token_info[lp_token].update({
178
189
  'token0_amount_in_range': amount0 / 10 ** value.get('token0_decimals'),
179
- 'token1_amount_in_range': amount1 / 10 ** value.get('token1_decimals')
190
+ 'token1_amount_in_range': amount1 / 10 ** value.get('token1_decimals'),
191
+ # 'token0_amount_stake': stake_amount0 / 10 ** value.get('token0_decimals'),
192
+ # 'token1_amount_stake': stake_amount1 / 10 ** value.get('token1_decimals')
180
193
  })
181
194
 
182
195
  return lp_token_info
@@ -253,6 +266,7 @@ class PancakeSwapV3Service(UniswapV3Services):
253
266
  'tick_upper': master_chef_position[3],
254
267
  'reward': master_chef_position[5] / 10 ** 18,
255
268
  'farming_pid': master_chef_position[7],
269
+ 'reward_token': self.pool_info['reward_token'],
256
270
  'pending_cake': decoded_data.get(
257
271
  f'pendingCake_{self.masterchef_addr}_{token_id}_{block_number}'.lower()) / 10 ** 18,
258
272
  'fee_growth_inside0_x128': nft_position[8],
@@ -284,9 +298,13 @@ class PancakeSwapV3Service(UniswapV3Services):
284
298
  block_number)
285
299
  for token_id, value in user_data['stake_token'].items():
286
300
  pid = value.get('farming_pid')
287
- lp_token_address = decoded_data.get(f'poolInfo_{self.masterchef_addr}_{pid}_{block_number}'.lower())[1]
301
+ pool_info = decoded_data.get(f'poolInfo_{self.masterchef_addr}_{pid}_{block_number}'.lower())
302
+ lp_token_address = pool_info[1]
288
303
  user_data['stake_token'][token_id].update({
289
- 'pool_address': lp_token_address
304
+ 'pool_address': lp_token_address,
305
+ 'token0': pool_info[2],
306
+ 'token1': pool_info[3],
307
+ 'fee': pool_info[4]
290
308
  })
291
309
  liquidity = value.get('liquidity')
292
310
  token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
@@ -296,7 +314,7 @@ class PancakeSwapV3Service(UniswapV3Services):
296
314
  tick_lower = value.get('tick_lower')
297
315
  tick_upper = value.get('tick_upper')
298
316
  if price and tick:
299
- sqrt_price_x96 = math.sqrt(price) * 2 ** 96
317
+ sqrt_price_x96 = (math.sqrt(price / 10 ** (token0_decimals - token1_decimals))) * 2 ** 96
300
318
  token0_amount, token1_amount = get_token_amount_of_user(liquidity=liquidity,
301
319
  sqrt_price_x96=sqrt_price_x96,
302
320
  tick=tick, tick_upper=tick_upper,
@@ -86,6 +86,10 @@ class QuickSwapV3Services(UniswapV3Services):
86
86
  query_id = f'decimals_{token_address}_{block_number}'.lower()
87
87
  rpc_calls[query_id] = self.state_service.get_function_info(
88
88
  address=token_address, abi=ERC20_ABI, fn_name="decimals", block_number=block_number)
89
+ query_id = f'{token_key}_{lp_token}_{block_number}'.lower()
90
+ rpc_calls[query_id] = self.state_service.get_function_info(
91
+ address=lp_token, abi=self.pool_info['pool_abi'], fn_name=token_key, fn_paras=None,
92
+ block_number=block_number)
89
93
 
90
94
  return rpc_calls
91
95
 
@@ -94,14 +98,20 @@ class QuickSwapV3Services(UniswapV3Services):
94
98
  for lp_token, value in lp_token_info.items():
95
99
  liquidity_in_range = response_data.get(f'liquidity_{lp_token}_{block_number}'.lower(), 0)
96
100
  slot0 = response_data.get(f"globalState_{lp_token}_{block_number}".lower())
97
- price = (slot0[0] / 2 ** 96) ** 2
98
101
  token0_address = value.get('token0')
99
102
  token1_address = value.get('token1')
100
- token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
101
- token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
103
+ if token0_address == response_data.get(f'token0_{lp_token}_{block_number}'.lower()):
104
+ token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
105
+ token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
106
+ else:
107
+ token1_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
108
+ token0_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
109
+ price = (slot0[0] / 2 ** 96) ** 2 * 10 ** (token0_decimals - token1_decimals)
102
110
  tick_spacing = response_data.get(f'tickSpacing_{lp_token}_{block_number}'.lower())
103
111
 
104
112
  lp_token_info[lp_token].update({
113
+ "token0": token0_address,
114
+ "token1": token1_address,
105
115
  "liquidity_in_range": liquidity_in_range,
106
116
  "price": price,
107
117
  'tick': slot0[1],
@@ -213,4 +223,4 @@ class QuickSwapV3Services(UniswapV3Services):
213
223
  'token1_reward': token1_reward
214
224
  })
215
225
 
216
- return user_data
226
+ return user_data
@@ -41,7 +41,7 @@ class UniswapV2Services(DexProtocolServices):
41
41
  factory_addr = self.pool_info.get('factory_address')
42
42
 
43
43
  factory_contract = web3.eth.contract(
44
- address=web3.toChecksumAddress(factory_addr), abi=self.factory_abi)
44
+ address=web3.to_checksum_address(factory_addr), abi=self.factory_abi)
45
45
  pool_length = factory_contract.functions.allPairsLength().call()
46
46
 
47
47
  rpc_calls = {}
@@ -98,6 +98,10 @@ class UniswapV3Services(DexProtocolServices):
98
98
  query_id = f'decimals_{token_address}_{block_number}'.lower()
99
99
  rpc_calls[query_id] = self.state_service.get_function_info(
100
100
  address=token_address, abi=ERC20_ABI, fn_name="decimals", block_number=block_number)
101
+ query_id = f'{token_key}_{lp_token}_{block_number}'.lower()
102
+ rpc_calls[query_id] = self.state_service.get_function_info(
103
+ address=lp_token, abi=self.pool_info['pool_abi'], fn_name=token_key, fn_paras=None,
104
+ block_number=block_number)
101
105
 
102
106
  return rpc_calls
103
107
 
@@ -106,14 +110,19 @@ class UniswapV3Services(DexProtocolServices):
106
110
  for lp_token, value in lp_token_info.items():
107
111
  liquidity_in_range = response_data.get(f'liquidity_{lp_token}_{block_number}'.lower(), 0)
108
112
  slot0 = response_data.get(f"slot0_{lp_token}_{block_number}".lower())
109
- price = (slot0[0] / 2 ** 96) ** 2
110
113
  token0_address = value.get('token0')
111
114
  token1_address = value.get('token1')
112
- token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
113
- token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
115
+ if token0_address == response_data.get(f'token0_{lp_token}_{block_number}'.lower()):
116
+ token0_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
117
+ token1_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
118
+ else:
119
+ token1_decimals = response_data.get(f'decimals_{token0_address}_{block_number}'.lower())
120
+ token0_decimals = response_data.get(f'decimals_{token1_address}_{block_number}'.lower())
121
+ price = (slot0[0] / 2 ** 96) ** 2 * 10 ** (token0_decimals - token1_decimals)
114
122
  tick_spacing = response_data.get(f'tickSpacing_{lp_token}_{block_number}'.lower())
115
-
116
123
  lp_token_info[lp_token].update({
124
+ "token0": token0_address,
125
+ "token1": token1_address,
117
126
  "liquidity_in_range": liquidity_in_range,
118
127
  "price": price,
119
128
  'tick': slot0[1],
@@ -272,7 +281,7 @@ class UniswapV3Services(DexProtocolServices):
272
281
  tick_upper = value.get('tick_upper')
273
282
  tick_lower = value.get('tick_lower')
274
283
  if price and tick:
275
- sqrt_price_x96 = (math.sqrt(price)) * 2 ** 96
284
+ sqrt_price_x96 = (math.sqrt(price / 10 ** (token0_decimals - token1_decimals))) * 2 ** 96
276
285
 
277
286
  token0_amount, token1_amount = get_token_amount_of_user(
278
287
  liquidity=liquidity,
@@ -352,6 +361,6 @@ class UniswapV3Services(DexProtocolServices):
352
361
  return user_data
353
362
 
354
363
  def checksum_address(self, address):
355
- if self.web3.isAddress(address):
356
- address = self.web3.toChecksumAddress(address)
364
+ if self.Web3.is_address(address):
365
+ address = self.web3.to_checksum_address(address)
357
366
  return address
@@ -54,7 +54,7 @@ class AaveV2StateService(ProtocolServices):
54
54
  def get_dapp_asset_info(self, block_number: int = 'latest'):
55
55
  begin = time.time()
56
56
  _w3 = self.state_service.get_w3()
57
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
57
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
58
58
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
59
59
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
60
60
  reserves_info = {}
@@ -430,7 +430,7 @@ class AaveV2StateService(ProtocolServices):
430
430
  rpc_calls = {}
431
431
  tokens = []
432
432
  for token, value in reserves_info.items():
433
- atoken, debt_token = Web3.toChecksumAddress(value['tToken']), Web3.toChecksumAddress(value['dToken'])
433
+ atoken, debt_token = Web3.to_checksum_address(value['tToken']), Web3.to_checksum_address(value['dToken'])
434
434
  tokens += [atoken, debt_token]
435
435
  key = f"getRewardsBalance_{self.name}_{wallet}_{block_number}".lower()
436
436
  rpc_calls[key] = self.get_function_incentive_info(
@@ -59,13 +59,13 @@ class AaveV3StateService(AaveV2StateService):
59
59
  def get_dapp_asset_info(self, block_number: int = 'latest'):
60
60
  _w3 = self.state_service.get_w3()
61
61
  pool_address = self.pool_info.get("address")
62
- pool_contract = _w3.eth.contract(address=_w3.toChecksumAddress(pool_address), abi=self.lending_abi)
62
+ pool_contract = _w3.eth.contract(address=_w3.to_checksum_address(pool_address), abi=self.lending_abi)
63
63
  reserve_list = pool_contract.functions.getReservesList().call(block_identifier=block_number)
64
64
  reserves_info = {}
65
65
  for token in reserve_list:
66
66
  token = token.lower()
67
67
  reserve_data = pool_contract.functions.getReserveData(
68
- _w3.toChecksumAddress(token)).call(block_identifier=block_number)
68
+ _w3.to_checksum_address(token)).call(block_identifier=block_number)
69
69
  reserves_info[token] = {}
70
70
  reserves_info[token]["tToken"] = reserve_data[8].lower()
71
71
  reserves_info[token]["sdToken"] = reserve_data[9].lower()
@@ -293,9 +293,9 @@ class AaveV3StateService(AaveV2StateService):
293
293
  reward_token, ERC20_ABI, "decimals", block_number=block_number)
294
294
  tokens = []
295
295
  for key, value in reserves_info.items():
296
- tokens += [Web3.toChecksumAddress(value["tToken"]), Web3.toChecksumAddress(value["dToken"])]
296
+ tokens += [Web3.to_checksum_address(value["tToken"]), Web3.to_checksum_address(value["dToken"])]
297
297
  key = f"getAllUserRewards_{self.name}_{wallet}_{block_number}".lower()
298
- rpc_calls[key] = self.get_function_incentive_info("getAllUserRewards", [tokens, Web3.toChecksumAddress(wallet)], block_number)
298
+ rpc_calls[key] = self.get_function_incentive_info("getAllUserRewards", [tokens, Web3.to_checksum_address(wallet)], block_number)
299
299
  return rpc_calls
300
300
 
301
301
  def calculate_rewards_balance(
@@ -43,7 +43,7 @@ class ApeSwapStateService(CompoundStateService):
43
43
  block_number: int = "latest"):
44
44
  _w3 = self.state_service.get_w3()
45
45
  comptroller_contract = _w3.eth.contract(
46
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
46
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
47
47
  ctokens = []
48
48
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
49
49
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -52,9 +52,9 @@ class ApeSwapStateService(CompoundStateService):
52
52
  ctokens.append(token)
53
53
 
54
54
  lens_contract = _w3.eth.contract(
55
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
55
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
56
56
  )
57
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
57
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
58
58
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
59
59
  reserves_info = {}
60
60
  for data in metadata:
@@ -50,7 +50,7 @@ class CompoundStateService(ProtocolServices):
50
50
  block_number: int = "latest"):
51
51
  _w3 = self.state_service.get_w3()
52
52
  comptroller_contract = _w3.eth.contract(
53
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
53
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
54
54
  ctokens = []
55
55
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
56
56
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -59,9 +59,9 @@ class CompoundStateService(ProtocolServices):
59
59
  ctokens.append(token)
60
60
 
61
61
  lens_contract = _w3.eth.contract(
62
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
62
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
63
63
  )
64
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
64
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
65
65
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
66
66
  reserves_info = {}
67
67
  for data in metadata:
@@ -51,7 +51,7 @@ class CompoundV3StateService(CompoundStateService):
51
51
  if comets:
52
52
  pools += comets
53
53
  for pool in pools:
54
- contract = w3.eth.contract(address=w3.toChecksumAddress(pool), abi=self.comet_abi)
54
+ contract = w3.eth.contract(address=w3.to_checksum_address(pool), abi=self.comet_abi)
55
55
  base_token = contract.functions.baseToken().call().lower()
56
56
  number_assets = contract.functions.numAssets().call()
57
57
  asset_data = {}
@@ -47,7 +47,7 @@ class FluxStateService(CompoundStateService):
47
47
  block_number: int = "latest"):
48
48
  _w3 = self.state_service.get_w3()
49
49
  comptroller_contract = _w3.eth.contract(
50
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
50
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
51
51
  ctokens = []
52
52
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
53
53
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -56,9 +56,9 @@ class FluxStateService(CompoundStateService):
56
56
  ctokens.append(token)
57
57
 
58
58
  lens_contract = _w3.eth.contract(
59
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
59
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
60
60
  )
61
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
61
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
62
62
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
63
63
  reserves_info = {}
64
64
  for data in metadata:
@@ -61,7 +61,7 @@ class GranaryStateService(ProtocolServices):
61
61
  def get_dapp_asset_info(self, block_number: int = 'latest'):
62
62
  begin = time.time()
63
63
  _w3 = self.state_service.get_w3()
64
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
64
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
65
65
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
66
66
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
67
67
  reserves_info = {}
@@ -53,7 +53,7 @@ class IronBankStateService(CompoundStateService):
53
53
  block_number: int = "latest"):
54
54
  _w3 = self.state_service.get_w3()
55
55
  comptroller_contract = _w3.eth.contract(
56
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
56
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
57
57
  ctokens = []
58
58
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
59
59
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -62,9 +62,9 @@ class IronBankStateService(CompoundStateService):
62
62
  ctokens.append(token)
63
63
 
64
64
  lens_contract = _w3.eth.contract(
65
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
65
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
66
66
  )
67
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
67
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
68
68
  reserves_info = {}
69
69
  queries = {}
70
70
  for token in tokens:
@@ -91,7 +91,7 @@ class IronBankStateService(CompoundStateService):
91
91
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
92
92
 
93
93
  if underlying != Token.native_token:
94
- underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
94
+ underlying_contract = _w3.eth.contract(address=Web3.to_checksum_address(underlying), abi=ERC20_ABI)
95
95
  underlying_decimal = underlying_contract.functions.decimals().call()
96
96
  else:
97
97
  underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
@@ -42,12 +42,12 @@ class JustLendStateService(CompoundStateService):
42
42
  block_number: int = "latest"):
43
43
  _w3 = self.state_service.get_w3()
44
44
  comptroller_contract = _w3.eth.contract(
45
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
45
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
46
46
  ctokens = []
47
47
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
48
48
  ctokens.append(token)
49
49
 
50
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
50
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
51
51
  reserves_info = {}
52
52
  queries = {}
53
53
  for token in tokens:
@@ -74,7 +74,7 @@ class JustLendStateService(CompoundStateService):
74
74
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
75
75
 
76
76
  if underlying != Token.native_token:
77
- underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
77
+ underlying_contract = _w3.eth.contract(address=Web3.to_checksum_address(underlying), abi=ERC20_ABI)
78
78
  underlying_decimal = underlying_contract.functions.decimals().call()
79
79
  else:
80
80
  underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
@@ -53,13 +53,13 @@ class LiqeeStateService(CompoundStateService):
53
53
  block_number: int = "latest"):
54
54
  _w3 = self.state_service.get_w3()
55
55
  comptroller_contract = _w3.eth.contract(
56
- address=_w3.toChecksumAddress(self.pool_info.get("controllerAddress")), abi=self.controller_abi)
56
+ address=_w3.to_checksum_address(self.pool_info.get("controllerAddress")), abi=self.controller_abi)
57
57
  ctokens = []
58
58
  for token in comptroller_contract.functions.getAlliTokens().call(block_identifier=block_number):
59
59
  ctokens.append(token)
60
60
  reserves_info = {}
61
61
  for token in ctokens:
62
- address = _w3.toChecksumAddress(token)
62
+ address = _w3.to_checksum_address(token)
63
63
  contract = _w3.eth.contract(address=address, abi=self.lquee_token_abi)
64
64
  underlying = contract.functions.underlying().call(block_identifier=block_number)
65
65
  liquidation_threshold = comptroller_contract.functions.markets(address).call(block_identifier=block_number)
@@ -182,7 +182,7 @@ class LiqeeStateService(CompoundStateService):
182
182
  reserves_info: dict = None,
183
183
  block_number: int = "latest",
184
184
  ):
185
- fn_paras = [Web3.toChecksumAddress(wallet)]
185
+ fn_paras = [Web3.to_checksum_address(wallet)]
186
186
  rpc_call = self.get_lending_function_info("getAccountRewardAmount", fn_paras, block_number)
187
187
  get_reward_id = f"getAccountRewardAmount_{self.name}_{wallet}_{block_number}".lower()
188
188
  return {get_reward_id: rpc_call}
@@ -57,10 +57,10 @@ class MorphoAaveV2StateService(MorphoCompoundStateService):
57
57
  block_number: int = "latest"):
58
58
  begin = time.time()
59
59
  _w3 = self.state_service.get_w3()
60
- pool_address = Web3.toChecksumAddress(self.aave_info['address'])
60
+ pool_address = Web3.to_checksum_address(self.aave_info['address'])
61
61
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
62
62
  comptroller_contract = _w3.eth.contract(
63
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
63
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
64
64
  markets = comptroller_contract.functions.getMarketsCreated().call(block_identifier=block_number)
65
65
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
66
66
  reserves_info = {}
@@ -55,10 +55,10 @@ class MorphoAaveV3StateService(MorphoCompoundStateService):
55
55
  block_number: int = "latest"):
56
56
  begin = time.time()
57
57
  _w3 = self.state_service.get_w3()
58
- pool_address = Web3.toChecksumAddress(self.aave_info['address'])
58
+ pool_address = Web3.to_checksum_address(self.aave_info['address'])
59
59
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
60
60
  comptroller_contract = _w3.eth.contract(
61
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
61
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
62
62
  markets = comptroller_contract.functions.marketsCreated().call(block_identifier=block_number)
63
63
  markets = [i.lower() for i in markets]
64
64
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
@@ -56,7 +56,7 @@ class MorphoCompoundStateService(ProtocolServices):
56
56
  block_number: int = "latest"):
57
57
  _w3 = self.state_service.get_w3()
58
58
  comptroller_contract = _w3.eth.contract(
59
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
59
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
60
60
  ctokens = []
61
61
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
62
62
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -65,9 +65,9 @@ class MorphoCompoundStateService(ProtocolServices):
65
65
  ctokens.append(token)
66
66
 
67
67
  compound_lens_contract = _w3.eth.contract(
68
- address=Web3.toChecksumAddress(self.compound_info.get("lensAddress")), abi=self.compound_lens_abi
68
+ address=Web3.to_checksum_address(self.compound_info.get("lensAddress")), abi=self.compound_lens_abi
69
69
  )
70
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
70
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
71
71
  metadata = compound_lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
72
72
  reserves_info = {}
73
73
  for data in metadata:
@@ -196,8 +196,8 @@ class MorphoCompoundStateService(ProtocolServices):
196
196
  if not reserves_info:
197
197
  reserves_info = self.pool_info.get("reservesList")
198
198
  params = [
199
- [Web3.toChecksumAddress(value.get(self.market_key)) for key, value in reserves_info.items()],
200
- Web3.toChecksumAddress(wallet)
199
+ [Web3.to_checksum_address(value.get(self.market_key)) for key, value in reserves_info.items()],
200
+ Web3.to_checksum_address(wallet)
201
201
  ]
202
202
  rpc_call = self.get_lens_function_info("getUserUnclaimedRewards", params, block_number)
203
203
  get_reward_id = f"getUserUnclaimedRewards_{self.name}_{wallet}_{block_number}".lower()
@@ -49,7 +49,7 @@ class OnyxStateService(CompoundStateService):
49
49
  block_number: int = "latest"):
50
50
  _w3 = self.state_service.get_w3()
51
51
  comptroller_contract = _w3.eth.contract(
52
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
52
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
53
53
  ctokens = []
54
54
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
55
55
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -58,9 +58,9 @@ class OnyxStateService(CompoundStateService):
58
58
  ctokens.append(token)
59
59
 
60
60
  lens_contract = _w3.eth.contract(
61
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
61
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
62
62
  )
63
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
63
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
64
64
  metadata = lens_contract.functions.oTokenMetadataAll(tokens).call(block_identifier=block_number)
65
65
  reserves_info = {}
66
66
  for data in metadata:
@@ -199,7 +199,7 @@ class OnyxStateService(CompoundStateService):
199
199
  )
200
200
  key = f"oTokenBalances_{self.name}_{wallet}_{token}_{block_number}".lower()
201
201
  rpc_calls[key] = self.get_lens_function_info(
202
- "oTokenBalances", [value.get("cToken"), Web3.toChecksumAddress(wallet)])
202
+ "oTokenBalances", [value.get("cToken"), Web3.to_checksum_address(wallet)])
203
203
  return rpc_calls
204
204
 
205
205
  def calculate_wallet_deposit_borrow_balance(