defi-state-querier 0.4.23__tar.gz → 0.4.24__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.23 → defi-state-querier-0.4.24}/PKG-INFO +1 -1
  2. defi-state-querier-0.4.24/src/defi_services/__init__.py +1 -0
  3. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/pancakeswap_info.py +5 -5
  4. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/quickswap_info.py +3 -3
  5. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_v3_service.py +84 -86
  6. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/quickswap_v3_service.py +70 -48
  7. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/uniswap_v3_service.py +84 -82
  8. defi-state-querier-0.4.24/src/defi_services/utils/get_fees.py +33 -0
  9. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/PKG-INFO +1 -1
  10. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/SOURCES.txt +1 -0
  11. defi-state-querier-0.4.23/src/defi_services/__init__.py +0 -1
  12. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/LICENSE +0 -0
  13. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/README.md +0 -0
  14. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/pyproject.toml +0 -0
  15. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/setup.cfg +0 -0
  16. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/setup.py +0 -0
  17. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/__init__.py +0 -0
  18. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/__init__.py +0 -0
  19. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/biswap/__init__.py +0 -0
  20. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/biswap/biswap_masterchef_abi.py +0 -0
  21. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/__init__.py +0 -0
  22. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/factory_v3_abi.py +0 -0
  23. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/masterchef_v0_abi.py +0 -0
  24. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/masterchef_v3_abi.py +0 -0
  25. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/nft_token_abi.py +0 -0
  26. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_lp_token_abi.py +0 -0
  27. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_masterchef_v2_abi.py +0 -0
  28. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_router_v2_abi.py +0 -0
  29. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/pancakeswap_v2_factory_abi.py +0 -0
  30. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/pancakeswap/v3_pool_abi.py +0 -0
  31. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/__init__.py +0 -0
  32. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/factory_v3_abi.py +0 -0
  33. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/nft_token_manager.py +0 -0
  34. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/quickswap/pool_v3_abi.py +0 -0
  35. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/__init__.py +0 -0
  36. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/masterchef_v2_abi.py +0 -0
  37. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/spookyswap/masterchef_v3_abi.py +0 -0
  38. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/__init__.py +0 -0
  39. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/factory_v3_abi.py +0 -0
  40. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/masterchef_abi.py +0 -0
  41. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/masterchef_v2_abi.py +0 -0
  42. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/sushiswap/minichef_abi.py +0 -0
  43. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/__init__.py +0 -0
  44. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/factory_v2_abi.py +0 -0
  45. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/factory_v3_abi.py +0 -0
  46. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/nft_token_manager_abi.py +0 -0
  47. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/dex/uniswap/pool_v3_abi.py +0 -0
  48. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/__init__.py +0 -0
  49. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/__init__.py +0 -0
  50. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/__init__.py +0 -0
  51. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/aave_incentives_controller.py +0 -0
  52. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/aave_oracle.py +0 -0
  53. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/atoken.py +0 -0
  54. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/avalanche_atoken.py +0 -0
  55. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/default_reserve_interest_rate_strategy.py +0 -0
  56. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool.py +0 -0
  57. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider.py +0 -0
  58. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider_registry.py +0 -0
  59. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_configurator.py +0 -0
  60. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/oracle_anchor.py +0 -0
  61. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/stable_debt_token.py +0 -0
  62. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/uniswap_liquidity_swap_adapter.py +0 -0
  63. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/uniswap_repay_adapter.py +0 -0
  64. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2/variable_debt_token.py +0 -0
  65. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/__init__.py +0 -0
  66. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/aave_oracle.py +0 -0
  67. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v2_permissioned/permission_manager.py +0 -0
  68. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/__init__.py +0 -0
  69. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_oracle.py +0 -0
  70. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_incentives_abi.py +0 -0
  71. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_lending_pool_abi.py +0 -0
  72. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_oracle_abi.py +0 -0
  73. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/atoken.py +0 -0
  74. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/default_reserve_interest_rate_strategy.py +0 -0
  75. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool.py +0 -0
  76. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider.py +0 -0
  77. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider_registry.py +0 -0
  78. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/pool_configurator.py +0 -0
  79. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/price_oracle.py +0 -0
  80. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/rewards_controller.py +0 -0
  81. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/stable_debt_token.py +0 -0
  82. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/aave_v3/variable_debt_token.py +0 -0
  83. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/all_aave_abi.py +0 -0
  84. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/__init__.py +0 -0
  85. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_a_token.py +0 -0
  86. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_discount_rate_strategy.py +0 -0
  87. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_flash_minter.py +0 -0
  88. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_token.py +0 -0
  89. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave/gho/gho_variable_debt_token.py +0 -0
  90. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/__init__.py +0 -0
  91. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_event_abi.py +0 -0
  92. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_incentives_abi.py +0 -0
  93. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/lending_pool_abi.py +0 -0
  94. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/oracle_abi.py +0 -0
  95. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/staked_incentives_abi.py +0 -0
  96. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v2_and_forlks/uwu_incentives_abi.py +0 -0
  97. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/__init__.py +0 -0
  98. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_incentives_abi.py +0 -0
  99. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_lending_pool_abi.py +0 -0
  100. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_oracle_abi.py +0 -0
  101. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/__init__.py +0 -0
  102. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_fair_launch_abi.py +0 -0
  103. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_vault_abi.py +0 -0
  104. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/alpaca/alpaca_vault_config_abi.py +0 -0
  105. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/__init__.py +0 -0
  106. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_comptroller_abi.py +0 -0
  107. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_event_abi.py +0 -0
  108. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apeswap_lens_abi.py +0 -0
  109. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/apeswape/apswap_ctoken_abi.py +0 -0
  110. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/__init__.py +0 -0
  111. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/all_compound_abis.py +0 -0
  112. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/comet/__init__.py +0 -0
  113. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/__init__.py +0 -0
  114. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/comet_abi.py +0 -0
  115. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/comet_ext_abi.py +0 -0
  116. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/compound_v3/reward_abi.py +0 -0
  117. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/__init__.py +0 -0
  118. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/comp.py +0 -0
  119. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegate.py +0 -0
  120. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegator.py +0 -0
  121. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/governance/timelock.py +0 -0
  122. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/__init__.py +0 -0
  123. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/bravodelegate2.py +0 -0
  124. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/bravodelegator2.py +0 -0
  125. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/comp.py +0 -0
  126. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/compoundlens.py +0 -0
  127. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/comptroller.py +0 -0
  128. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/ctoken.py +0 -0
  129. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/dsr_updateable.py +0 -0
  130. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governoralpha.py +0 -0
  131. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governorbravo.py +0 -0
  132. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/governorbravodelegator.py +0 -0
  133. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/irm_comp_updateable.py +0 -0
  134. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/jumpratemodelv2.py +0 -0
  135. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/legacyjumpratemodelv2.py +0 -0
  136. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/moneymarket.py +0 -0
  137. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/newbravodelegate.py +0 -0
  138. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/newbravodelegator.py +0 -0
  139. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/pricedata.py +0 -0
  140. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/pricefeed.py +0 -0
  141. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/priceoracle.py +0 -0
  142. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/rep.py +0 -0
  143. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/reservoir.py +0 -0
  144. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/stablecoininterestratemodel.py +0 -0
  145. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/standardinterestratemodel.py +0 -0
  146. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/stdcomptroller.py +0 -0
  147. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/timelock.py +0 -0
  148. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/uni.py +0 -0
  149. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/compound/protocol/unitroller.py +0 -0
  150. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/__init__.py +0 -0
  151. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/cream_comptroller_abi.py +0 -0
  152. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/cream/cream_lens_abi.py +0 -0
  153. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/granary/__init__.py +0 -0
  154. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/granary/granary_rewarder_abi.py +0 -0
  155. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/__init__.py +0 -0
  156. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/ctoken_abi.py +0 -0
  157. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/iron_comptroller_abi.py +0 -0
  158. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/iron_bank/iron_lens_abi.py +0 -0
  159. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/__init__.py +0 -0
  160. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/just_token_abi.py +0 -0
  161. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/justlend/justlend_comptroller_abi.py +0 -0
  162. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/__init__.py +0 -0
  163. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_comptroller_abi.py +0 -0
  164. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_event_abi.py +0 -0
  165. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_lending_data_abi.py +0 -0
  166. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/liqee/liqee_token_abi.py +0 -0
  167. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/__init__.py +0 -0
  168. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +0 -0
  169. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +0 -0
  170. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +0 -0
  171. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +0 -0
  172. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +0 -0
  173. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +0 -0
  174. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/__init__.py +0 -0
  175. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_comptroller_abi.py +0 -0
  176. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_event_abi.py +0 -0
  177. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_lens_abi.py +0 -0
  178. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/onyx/onyx_token_abi.py +0 -0
  179. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/other/__init__.py +0 -0
  180. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/other/chain_link_abi.py +0 -0
  181. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/radiant_v2/__init__.py +0 -0
  182. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +0 -0
  183. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/__init__.py +0 -0
  184. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_abi.py +0 -0
  185. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_lens_abi.py +0 -0
  186. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_repository_abi.py +0 -0
  187. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/silo/silo_reward_abi.py +0 -0
  188. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/__init__.py +0 -0
  189. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_comptroller_abi.py +0 -0
  190. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_lens_abi.py +0 -0
  191. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/strike/strike_token_abi.py +0 -0
  192. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/__init__.py +0 -0
  193. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/trava_lending_pool_abi.py +0 -0
  194. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/trava/trava_oracle_abi.py +0 -0
  195. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/__init__.py +0 -0
  196. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/chef_incentives_controller.py +0 -0
  197. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/valas/valas_multi_fee_distribution.py +0 -0
  198. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/__init__.py +0 -0
  199. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/__init__.py +0 -0
  200. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptroller_defi.py +0 -0
  201. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptrollerbeacon.py +0 -0
  202. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/comptrollerimpl.py +0 -0
  203. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/defaultproxyadmin.py +0 -0
  204. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/jumpratemodelv2.py +0 -0
  205. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poollens.py +0 -0
  206. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry.py +0 -0
  207. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry_implementation.py +0 -0
  208. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/poolregistry_proxy.py +0 -0
  209. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve.py +0 -0
  210. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_implementation.py +0 -0
  211. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_proxy.py +0 -0
  212. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/rewardsdistributor_defi.py +0 -0
  213. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/rewardsdistributorimpl.py +0 -0
  214. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund.py +0 -0
  215. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund_implementation.py +0 -0
  216. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/riskfund_proxy.py +0 -0
  217. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall.py +0 -0
  218. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall_implementation.py +0 -0
  219. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/shortfall_proxy.py +0 -0
  220. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/swaprouter_defi.py +0 -0
  221. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/vtokenbeacon.py +0 -0
  222. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/abi/vtokenimpl.py +0 -0
  223. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/all_venus_abi.py +0 -0
  224. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/__init__.py +0 -0
  225. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_control_manager.py +0 -0
  226. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_controlled_v5.py +0 -0
  227. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/access_controlled_v8.py +0 -0
  228. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegate.py +0 -0
  229. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegator.py +0 -0
  230. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/governor_bravo_events.py +0 -0
  231. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/governance/timelock.py +0 -0
  232. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus/__init__.py +0 -0
  233. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_comptroller_abi.py +0 -0
  234. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_lens_abi.py +0 -0
  235. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/venus_lens_abi_v1.py +0 -0
  236. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/venus/vtoken_abi.py +0 -0
  237. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/__init__.py +0 -0
  238. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_comptroller_abi.py +0 -0
  239. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +0 -0
  240. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi.py +0 -0
  241. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi_v2.py +0 -0
  242. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/token/__init__.py +0 -0
  243. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/token/ctoken_abi.py +0 -0
  244. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/token/erc20_abi.py +0 -0
  245. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/token/erc721_abi.py +0 -0
  246. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/__init__.py +0 -0
  247. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/incentive_abi.py +0 -0
  248. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/trava_vault_abi.py +0 -0
  249. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/valuator_abi.py +0 -0
  250. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/abis/vault/ve_abi.py +0 -0
  251. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/__init__.py +0 -0
  252. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/chain_constant.py +0 -0
  253. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/cosmos_decimals_constant.py +0 -0
  254. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/db_constant.py +0 -0
  255. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/__init__.py +0 -0
  256. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_constant.py +0 -0
  257. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_info_constant.py +0 -0
  258. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/dex_services.py +0 -0
  259. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/lending_constant.py +0 -0
  260. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/lending_services.py +0 -0
  261. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/vault_constant.py +0 -0
  262. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/entities/vault_services.py +0 -0
  263. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/mongo_constant.py +0 -0
  264. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/query_constant.py +0 -0
  265. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/time_constant.py +0 -0
  266. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/constants/token_constant.py +0 -0
  267. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/__init__.py +0 -0
  268. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/__init__.py +0 -0
  269. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/cosmos_state_processor.py +0 -0
  270. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/multi_state_processor.py +0 -0
  271. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/solana_state_processor.py +0 -0
  272. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/state_processor.py +0 -0
  273. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/processors/substrate_state_processor.py +0 -0
  274. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/__init__.py +0 -0
  275. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/solana_state_querier.py +0 -0
  276. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/state_querier.py +0 -0
  277. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/jobs/queriers/substrate_state_querier.py +0 -0
  278. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/__init__.py +0 -0
  279. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/cosmos_token_services.py +0 -0
  280. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/__init__.py +0 -0
  281. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/__init__.py +0 -0
  282. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/spookyswap_info.py +0 -0
  283. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/sushiswap_info.py +0 -0
  284. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/dex_info/uniswap_info.py +0 -0
  285. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_service.py +0 -0
  286. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/pancakeswap_v2_service.py +0 -0
  287. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/quickswap_v2_service.py +0 -0
  288. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/spookyswap_v2_service.py +0 -0
  289. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_service.py +0 -0
  290. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_v2_service.py +0 -0
  291. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/sushiswap_v3_service.py +0 -0
  292. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex/uniswap_v2_service.py +0 -0
  293. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/dex_protocol_services.py +0 -0
  294. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/__init__.py +0 -0
  295. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/aave_v2_services.py +0 -0
  296. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/aave_v3_services.py +0 -0
  297. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/apeswap_services.py +0 -0
  298. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/compound_service.py +0 -0
  299. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/compound_v3_services.py +0 -0
  300. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/cream_services.py +0 -0
  301. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/flux_services.py +0 -0
  302. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/geist_services.py +0 -0
  303. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/granary_services.py +0 -0
  304. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/iron_bank_service.py +0 -0
  305. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/justlend_service.py +0 -0
  306. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/__init__.py +0 -0
  307. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/__init__.py +0 -0
  308. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py +0 -0
  309. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +0 -0
  310. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/granary_arbitrum.py +0 -0
  311. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/radiant_arbitrum.py +0 -0
  312. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/silo_arbitrum.py +0 -0
  313. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/arbitrum/wepiggy_arbitrum.py +0 -0
  314. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/__init__.py +0 -0
  315. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/aave_v2_avalanche.py +0 -0
  316. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/aave_v3_avalanche.py +0 -0
  317. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/granary_avalanche.py +0 -0
  318. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/avalanche/iron_bank_avalanche.py +0 -0
  319. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/__init__.py +0 -0
  320. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/apeswap_bsc.py +0 -0
  321. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/cream_bsc.py +0 -0
  322. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/granary_bsc.py +0 -0
  323. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/liqee_bsc.py +0 -0
  324. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/radiant_bsc.py +0 -0
  325. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/trava_bsc.py +0 -0
  326. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/valas_bsc.py +0 -0
  327. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/venus_bsc.py +0 -0
  328. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py +0 -0
  329. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/__init__.py +0 -0
  330. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/aave_v2_eth.py +0 -0
  331. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py +0 -0
  332. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/compound_eth.py +0 -0
  333. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +0 -0
  334. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/flux_eth.py +0 -0
  335. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/granary_eth.py +0 -0
  336. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/iron_bank_eth.py +0 -0
  337. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/liqee_eth.py +0 -0
  338. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +0 -0
  339. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +0 -0
  340. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +0 -0
  341. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/onyx_eth.py +0 -0
  342. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/silo_eth.py +0 -0
  343. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py +0 -0
  344. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/spark_eth.py +0 -0
  345. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/strike_eth.py +0 -0
  346. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/trava_eth.py +0 -0
  347. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/uwu_eth.py +0 -0
  348. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +0 -0
  349. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/__init__.py +0 -0
  350. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/aave_v3_ftm.py +0 -0
  351. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/geist_ftm.py +0 -0
  352. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/granary_ftm.py +0 -0
  353. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/fantom/trava_ftm.py +0 -0
  354. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/__init__.py +0 -0
  355. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/aave_v3_optimism.py +0 -0
  356. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/granary_optimism.py +0 -0
  357. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/iron_bank_optimism.py +0 -0
  358. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/optimism/wepiggy_optimism.py +0 -0
  359. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/__init__.py +0 -0
  360. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/aave_v2_polygon.py +0 -0
  361. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/aave_v3_polygon.py +0 -0
  362. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +0 -0
  363. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/polygon/wepiggy_polygon.py +0 -0
  364. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/tron/__init__.py +0 -0
  365. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/lending_info/tron/justlend_tron.py +0 -0
  366. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/liqee_service.py +0 -0
  367. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_aave_v2_services.py +0 -0
  368. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_aave_v3_services.py +0 -0
  369. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/morpho_compound_services.py +0 -0
  370. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/onyx_service.py +0 -0
  371. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/radiant_v2_services.py +0 -0
  372. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/silo_services.py +0 -0
  373. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/spark_services.py +0 -0
  374. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/strike_service.py +0 -0
  375. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/trava_services.py +0 -0
  376. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/uwu_services.py +0 -0
  377. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/valas_services.py +0 -0
  378. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/venus_services.py +0 -0
  379. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/lending/wepiggy_services.py +0 -0
  380. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/nft_services.py +0 -0
  381. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/protocol_services.py +0 -0
  382. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/solana_token_services.py +0 -0
  383. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/substrate_token_services.py +0 -0
  384. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/token_services.py +0 -0
  385. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/__init__.py +0 -0
  386. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/trava_vault_services.py +0 -0
  387. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/__init__.py +0 -0
  388. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/bsc/__init__.py +0 -0
  389. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/bsc/trava_bsc.py +0 -0
  390. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/ethereum/__init__.py +0 -0
  391. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/ethereum/trava_eth.py +0 -0
  392. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/fantom/__init__.py +0 -0
  393. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/services/vault/vault_info/fantom/trava_ftm.py +0 -0
  394. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/__init__.py +0 -0
  395. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/apy.py +0 -0
  396. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/convert_address.py +0 -0
  397. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/graph_operations.py +0 -0
  398. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/init_dex_services.py +0 -0
  399. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/init_services.py +0 -0
  400. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/logger_utils.py +0 -0
  401. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/market_service.py +0 -0
  402. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/memory_storage.py +0 -0
  403. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/sqrt_price_math.py +0 -0
  404. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_services/utils/thread_proxy.py +0 -0
  405. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/dependency_links.txt +0 -0
  406. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/requires.txt +0 -0
  407. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/src/defi_state_querier.egg-info/top_level.txt +0 -0
  408. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_dex_information.py +0 -0
  409. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_dex_v2_processor_job.py +0 -0
  410. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_dex_v3_processor_job.py +0 -0
  411. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_processor_job.py +0 -0
  412. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_staking_reward_job.py +0 -0
  413. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/tests/test_uniswap_v2.py +0 -0
  414. {defi-state-querier-0.4.23 → defi-state-querier-0.4.24}/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.23
3
+ Version: 0.4.24
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.24"
@@ -22,14 +22,14 @@ PANCAKESWAP_V2_BSC_INFO = {
22
22
  }
23
23
 
24
24
  PANCAKESWAP_V3_BSC_INFO = {
25
- 'factory_address': '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
25
+ 'factory_address': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865',
26
26
  'factory_abi': PANCAKESWAP_V3_FACTORY_ABI,
27
- 'master_chef_address': '0x556B9306565093C855AEA9AE92A594704c2Cd59e',
27
+ 'master_chef_address': '0x556b9306565093c855aea9ae92a594704c2cd59e',
28
28
  'master_chef_abi': PANCAKESWAP_MASTERCHEF_V3_ABI,
29
- "reward_token": "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82".lower(),
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': '0x9923f42a02A82dA63EE0DbbC5f8E311e3DD8A1f8',
18
- 'infinite_farming': '0x8a26436e41d0b5fc4C6Ed36C1976fafBe173444E',
19
- 'farming_center': '0x7F281A8cdF66eF5e9db8434Ec6D97acc1bc01E78',
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': {}, 'stake_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
- user_data = supplied_data['user_data']
239
- supplied_param = {'user_data': user_data['all_token']}
240
- user_data['all_token'] = super().decode_user_info_function(user, supplied_param, decoded_data, stake,
241
- block_number)
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 user_data['stake_token'].items():
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
- pending_cake = decoded_data.get(f'pendingCake_{self.masterchef_addr}_{token_id}_{block_number}'.lower())
247
- nft_position = decoded_data.get(
248
- f'positions_{self.nft_token_manager_addr}_{token_id}_{block_number}'.lower())
249
-
250
- user_data['stake_token'][token_id].update({
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': pending_cake / 10 ** 18,
257
- 'fee_growth_inside0': nft_position[8],
258
- 'fee_growth_inside1': nft_position[9],
259
- 'tokens_owed0': nft_position[10],
260
- 'tokens_owed1': nft_position[11]
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
- if liquidity > 0:
296
- token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
297
- token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
298
- price = lp_token_info.get(lp_token_address, {}).get("price")
299
-
300
- tick = lp_token_info.get(lp_token_address, {}).get('tick')
301
- tick_lower = value.get('tick_lower')
302
- tick_upper = value.get('tick_upper')
303
- if price and tick:
304
- sqrt_price_x96 = math.sqrt(price) * 2 ** 96
305
-
306
- token0_amount, token1_amount = get_token_amount_of_user(liquidity=liquidity,
307
- sqrt_price_x96=sqrt_price_x96,
308
- tick=tick, tick_upper=tick_upper,
309
- tick_lower=tick_lower)
310
-
311
- user_data['stake_token'][token_id].update(
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
- position_key = self.get_position_key(tick_lower, tick_upper)
328
- query_id = f'positions_{lp_token_address}_{[tick_upper, tick_lower]}_{block_number}'.lower()
329
- rpc_calls[query_id] = self.state_service.get_function_info(
330
- address=lp_token_address, abi=self.pool_info['pool_abi'], fn_name="positions", fn_paras=[position_key]
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
- if liquidity > 0:
346
- try:
347
- lp_token_address = value.get('pool_address')
348
- tick_lower = value.get('tick_lower')
349
- tick_upper = value.get('tick_upper')
350
- pool_position = decoded_data.get(
351
- f'positions_{lp_token_address}_{[tick_upper, tick_lower]}_{block_number}'.lower())
352
-
353
- pool_fee_growth_inside0 = pool_position[1]
354
- pool_fee_growth_inside1 = pool_position[2]
355
- fee_growth_inside0 = value.get('fee_growth_inside0')
356
- fee_growth_inside1 = value.get('fee_growth_inside1')
357
- liquidity = value.get('liquidity')
358
- token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
359
- token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
360
- token0_reward = ((pool_fee_growth_inside0 - fee_growth_inside0) / 2 ** 128 * liquidity + value.get(
361
- 'tokens_owed0')) / 10 ** token0_decimals
362
- token1_reward = ((pool_fee_growth_inside1 - fee_growth_inside1) / 2 ** 128 * liquidity + value.get(
363
- 'tokens_owed1')) / 10 ** token1_decimals
364
- except Exception:
365
- continue
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
- user_data[token_id].update({
122
- 'token0': position[2],
123
- 'token1': position[3],
124
- 'tick_lower': position[4],
125
- 'tick_upper': position[5],
126
- 'liquidity': position[6],
127
- 'fee_growth_inside0': position[7],
128
- 'fee_growth_inside1': position[8],
129
- 'tokens_owed0': position[9],
130
- 'tokens_owed1': position[10]
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'allPool_{self.factory_addr}_{token_id}_{block_number}'.lower()
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
- if liquidity > 0:
162
- lp_token_address = value.get('pool_address')
163
- tick_lower = value.get('tick_lower')
164
- tick_upper = value.get('tick_upper')
165
- pool_position = decoded_data.get(
166
- f'positions_{lp_token_address}_{[tick_upper, tick_lower]}_{block_number}'.lower())
167
-
168
- pool_fee_growth_inside0 = pool_position[2]
169
- pool_fee_growth_inside1 = pool_position[3]
170
- fee_growth_inside0 = value.get('fee_growth_inside0')
171
- fee_growth_inside1 = value.get('fee_growth_inside1')
172
- liquidity = value.get('liquidity')
173
- token0_decimals = lp_token_info.get(lp_token_address, {}).get("token0_decimals")
174
- token1_decimals = lp_token_info.get(lp_token_address, {}).get("token1_decimals")
175
- token0_reward = ((pool_fee_growth_inside0 - fee_growth_inside0) / 2 ** 128 * liquidity + value.get(
176
- 'tokens_owed0')) / 10 ** token0_decimals
177
- token1_reward = ((pool_fee_growth_inside1 - fee_growth_inside1) / 2 ** 128 * liquidity + value.get(
178
- 'tokens_owed1')) / 10 ** token1_decimals
179
-
180
- else:
181
- token0_reward = 0
182
- token1_reward = 0
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