defi-state-querier 0.4.1__tar.gz → 0.4.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) hide show
  1. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/PKG-INFO +1 -1
  2. defi-state-querier-0.4.3/src/defi_services/__init__.py +1 -0
  3. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/chain_constant.py +4 -1
  4. defi-state-querier-0.4.3/src/defi_services/constants/entities/vault_constant.py +5 -0
  5. defi-state-querier-0.4.3/src/defi_services/constants/entities/vault_services.py +24 -0
  6. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/query_constant.py +1 -0
  7. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/processors/state_processor.py +4 -2
  8. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/aave_v2_services.py +1 -1
  9. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/aave_v3_services.py +1 -1
  10. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/apeswap_services.py +5 -2
  11. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/compound_service.py +7 -2
  12. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/compound_v3_services.py +1 -4
  13. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/flux_services.py +6 -5
  14. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/granary_services.py +1 -4
  15. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/iron_bank_service.py +17 -6
  16. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/justlend_service.py +21 -6
  17. defi-state-querier-0.4.3/src/defi_services/services/lending/lending_info/bsc/liqee_bsc.py +157 -0
  18. defi-state-querier-0.4.3/src/defi_services/services/lending/lending_info/ethereum/liqee_eth.py +163 -0
  19. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/liqee_service.py +7 -4
  20. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/morpho_aave_v2_services.py +1 -1
  21. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/morpho_aave_v3_services.py +1 -4
  22. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/morpho_compound_services.py +1 -5
  23. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/onyx_service.py +7 -5
  24. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/radiant_v2_services.py +1 -4
  25. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/silo_services.py +1 -1
  26. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/strike_service.py +7 -2
  27. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/trava_services.py +5 -5
  28. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/uwu_services.py +1 -1
  29. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/valas_services.py +1 -1
  30. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/venus_services.py +28 -16
  31. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/wepiggy_services.py +7 -2
  32. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/protocol_services.py +34 -2
  33. defi-state-querier-0.4.3/src/defi_services/services/vault/trava_vault_services.py +196 -0
  34. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/__init__.py +0 -0
  35. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/bsc/__init__.py +0 -0
  36. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/bsc/trava_bsc.py +41 -0
  37. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/ethereum/__init__.py +0 -0
  38. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/ethereum/trava_eth.py +22 -0
  39. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/fantom/__init__.py +0 -0
  40. defi-state-querier-0.4.3/src/defi_services/services/vault/vault_info/fantom/trava_ftm.py +31 -0
  41. defi-state-querier-0.4.3/src/defi_services/utils/__init__.py +0 -0
  42. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/init_services.py +5 -0
  43. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_state_querier.egg-info/PKG-INFO +1 -1
  44. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_state_querier.egg-info/SOURCES.txt +13 -3
  45. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/tests/test_processor_job.py +1 -1
  46. defi-state-querier-0.4.3/tests/test_staking_reward_job.py +54 -0
  47. defi-state-querier-0.4.1/src/defi_services/__init__.py +0 -1
  48. defi-state-querier-0.4.1/src/defi_services/jobs/queriers/cosmos_state_querier.py +0 -83
  49. defi-state-querier-0.4.1/src/defi_services/services/cosmos_token_services.py +0 -46
  50. defi-state-querier-0.4.1/src/defi_services/services/lending/lending_info/bsc/liqee_bsc.py +0 -109
  51. defi-state-querier-0.4.1/src/defi_services/services/lending/lending_info/ethereum/liqee_eth.py +0 -113
  52. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/LICENSE +0 -0
  53. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/README.md +0 -0
  54. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/pyproject.toml +0 -0
  55. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/setup.cfg +0 -0
  56. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/setup.py +0 -0
  57. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/__init__.py +0 -0
  58. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/dex/__init__.py +0 -0
  59. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/dex/biswap/__init__.py +0 -0
  60. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/dex/biswap/biswap_masterchef_abi.py +0 -0
  61. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/dex/pancakeswap/__init__.py +0 -0
  62. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/dex/pancakeswap/pancakeswap_masterchef_abi.py +0 -0
  63. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/__init__.py +0 -0
  64. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/__init__.py +0 -0
  65. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/__init__.py +0 -0
  66. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/aave_incentives_controller.py +0 -0
  67. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/aave_oracle.py +0 -0
  68. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/atoken.py +0 -0
  69. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/avalanche_atoken.py +0 -0
  70. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/default_reserve_interest_rate_strategy.py +0 -0
  71. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/lending_pool.py +0 -0
  72. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider.py +0 -0
  73. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_addresses_provider_registry.py +0 -0
  74. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/lending_pool_configurator.py +0 -0
  75. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/oracle_anchor.py +0 -0
  76. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/stable_debt_token.py +0 -0
  77. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/uniswap_liquidity_swap_adapter.py +0 -0
  78. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/uniswap_repay_adapter.py +0 -0
  79. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2/variable_debt_token.py +0 -0
  80. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2_permissioned/__init__.py +0 -0
  81. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2_permissioned/aave_oracle.py +0 -0
  82. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v2_permissioned/permission_manager.py +0 -0
  83. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/__init__.py +0 -0
  84. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/aave_oracle.py +0 -0
  85. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_incentives_abi.py +0 -0
  86. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_lending_pool_abi.py +0 -0
  87. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/aave_v3_oracle_abi.py +0 -0
  88. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/atoken.py +0 -0
  89. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/default_reserve_interest_rate_strategy.py +0 -0
  90. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/pool.py +0 -0
  91. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider.py +0 -0
  92. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/pool_addresses_provider_registry.py +0 -0
  93. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/pool_configurator.py +0 -0
  94. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/price_oracle.py +0 -0
  95. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/rewards_controller.py +0 -0
  96. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/stable_debt_token.py +0 -0
  97. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/aave_v3/variable_debt_token.py +0 -0
  98. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/all_aave_abi.py +0 -0
  99. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/__init__.py +0 -0
  100. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/gho_a_token.py +0 -0
  101. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/gho_discount_rate_strategy.py +0 -0
  102. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/gho_flash_minter.py +0 -0
  103. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/gho_token.py +0 -0
  104. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave/gho/gho_variable_debt_token.py +0 -0
  105. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/__init__.py +0 -0
  106. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_event_abi.py +0 -0
  107. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/aave_v2_incentives_abi.py +0 -0
  108. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/lending_pool_abi.py +0 -0
  109. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/oracle_abi.py +0 -0
  110. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/staked_incentives_abi.py +0 -0
  111. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v2_and_forlks/uwu_incentives_abi.py +0 -0
  112. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v3_forks/__init__.py +0 -0
  113. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_incentives_abi.py +0 -0
  114. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_lending_pool_abi.py +0 -0
  115. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/aave_v3_forks/aave_v3_oracle_abi.py +0 -0
  116. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/alpaca/__init__.py +0 -0
  117. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/alpaca/alpaca_fair_launch_abi.py +0 -0
  118. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/alpaca/alpaca_vault_abi.py +0 -0
  119. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/alpaca/alpaca_vault_config_abi.py +0 -0
  120. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/apeswape/__init__.py +0 -0
  121. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/apeswape/apeswap_comptroller_abi.py +0 -0
  122. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/apeswape/apeswap_event_abi.py +0 -0
  123. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/apeswape/apeswap_lens_abi.py +0 -0
  124. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/apeswape/apswap_ctoken_abi.py +0 -0
  125. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/__init__.py +0 -0
  126. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/all_compound_abis.py +0 -0
  127. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/comet/__init__.py +0 -0
  128. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/compound_v3/__init__.py +0 -0
  129. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/compound_v3/comet_abi.py +0 -0
  130. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/compound_v3/comet_ext_abi.py +0 -0
  131. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/compound_v3/reward_abi.py +0 -0
  132. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/governance/__init__.py +0 -0
  133. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/governance/comp.py +0 -0
  134. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegate.py +0 -0
  135. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/governance/governor_bravo_delegator.py +0 -0
  136. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/governance/timelock.py +0 -0
  137. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/__init__.py +0 -0
  138. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/bravodelegate2.py +0 -0
  139. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/bravodelegator2.py +0 -0
  140. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/comp.py +0 -0
  141. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/compoundlens.py +0 -0
  142. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/comptroller.py +0 -0
  143. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/ctoken.py +0 -0
  144. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/dsr_updateable.py +0 -0
  145. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/governoralpha.py +0 -0
  146. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/governorbravo.py +0 -0
  147. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/governorbravodelegator.py +0 -0
  148. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/irm_comp_updateable.py +0 -0
  149. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/jumpratemodelv2.py +0 -0
  150. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/legacyjumpratemodelv2.py +0 -0
  151. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/moneymarket.py +0 -0
  152. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/newbravodelegate.py +0 -0
  153. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/newbravodelegator.py +0 -0
  154. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/pricedata.py +0 -0
  155. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/pricefeed.py +0 -0
  156. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/priceoracle.py +0 -0
  157. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/rep.py +0 -0
  158. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/reservoir.py +0 -0
  159. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/stablecoininterestratemodel.py +0 -0
  160. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/standardinterestratemodel.py +0 -0
  161. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/stdcomptroller.py +0 -0
  162. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/timelock.py +0 -0
  163. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/uni.py +0 -0
  164. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/compound/protocol/unitroller.py +0 -0
  165. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/cream/__init__.py +0 -0
  166. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/cream/cream_comptroller_abi.py +0 -0
  167. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/cream/cream_lens_abi.py +0 -0
  168. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/granary/__init__.py +0 -0
  169. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/granary/granary_rewarder_abi.py +0 -0
  170. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/iron_bank/__init__.py +0 -0
  171. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/iron_bank/ctoken_abi.py +0 -0
  172. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/iron_bank/iron_comptroller_abi.py +0 -0
  173. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/iron_bank/iron_lens_abi.py +0 -0
  174. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/justlend/__init__.py +0 -0
  175. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/justlend/just_token_abi.py +0 -0
  176. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/justlend/justlend_comptroller_abi.py +0 -0
  177. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/liqee/__init__.py +0 -0
  178. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/liqee/liqee_comptroller_abi.py +0 -0
  179. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/liqee/liqee_event_abi.py +0 -0
  180. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/liqee/liqee_lending_data_abi.py +0 -0
  181. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/liqee/liqee_token_abi.py +0 -0
  182. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/__init__.py +0 -0
  183. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +0 -0
  184. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +0 -0
  185. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +0 -0
  186. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +0 -0
  187. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +0 -0
  188. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +0 -0
  189. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/onyx/__init__.py +0 -0
  190. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/onyx/onyx_comptroller_abi.py +0 -0
  191. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/onyx/onyx_event_abi.py +0 -0
  192. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/onyx/onyx_lens_abi.py +0 -0
  193. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/onyx/onyx_token_abi.py +0 -0
  194. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/other/__init__.py +0 -0
  195. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/other/chain_link_abi.py +0 -0
  196. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/radiant_v2/__init__.py +0 -0
  197. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +0 -0
  198. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/silo/__init__.py +0 -0
  199. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/silo/silo_abi.py +0 -0
  200. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/silo/silo_lens_abi.py +0 -0
  201. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/silo/silo_repository_abi.py +0 -0
  202. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/silo/silo_reward_abi.py +0 -0
  203. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/strike/__init__.py +0 -0
  204. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/strike/strike_comptroller_abi.py +0 -0
  205. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/strike/strike_lens_abi.py +0 -0
  206. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/strike/strike_token_abi.py +0 -0
  207. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/trava/__init__.py +0 -0
  208. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/trava/trava_lending_pool_abi.py +0 -0
  209. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/trava/trava_oracle_abi.py +0 -0
  210. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/valas/__init__.py +0 -0
  211. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/valas/chef_incentives_controller.py +0 -0
  212. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/valas/valas_multi_fee_distribution.py +0 -0
  213. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/__init__.py +0 -0
  214. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/__init__.py +0 -0
  215. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/comptroller_defi.py +0 -0
  216. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/comptrollerbeacon.py +0 -0
  217. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/comptrollerimpl.py +0 -0
  218. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/defaultproxyadmin.py +0 -0
  219. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/jumpratemodelv2.py +0 -0
  220. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/poollens.py +0 -0
  221. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/poolregistry.py +0 -0
  222. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/poolregistry_implementation.py +0 -0
  223. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/poolregistry_proxy.py +0 -0
  224. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/protocolsharereserve.py +0 -0
  225. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_implementation.py +0 -0
  226. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/protocolsharereserve_proxy.py +0 -0
  227. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/rewardsdistributor_defi.py +0 -0
  228. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/rewardsdistributorimpl.py +0 -0
  229. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/riskfund.py +0 -0
  230. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/riskfund_implementation.py +0 -0
  231. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/riskfund_proxy.py +0 -0
  232. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/shortfall.py +0 -0
  233. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/shortfall_implementation.py +0 -0
  234. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/shortfall_proxy.py +0 -0
  235. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/swaprouter_defi.py +0 -0
  236. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/vtokenbeacon.py +0 -0
  237. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/abi/vtokenimpl.py +0 -0
  238. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/all_venus_abi.py +0 -0
  239. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/__init__.py +0 -0
  240. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/access_control_manager.py +0 -0
  241. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/access_controlled_v5.py +0 -0
  242. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/access_controlled_v8.py +0 -0
  243. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegate.py +0 -0
  244. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/governor_bravo_delegator.py +0 -0
  245. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/governor_bravo_events.py +0 -0
  246. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/governance/timelock.py +0 -0
  247. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/venus/__init__.py +0 -0
  248. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/venus_comptroller_abi.py +0 -0
  249. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/venus_lens_abi.py +0 -0
  250. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/venus_lens_abi_v1.py +0 -0
  251. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/venus/vtoken_abi.py +0 -0
  252. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/wepiggy/__init__.py +0 -0
  253. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/wepiggy/wepiggy_comptroller_abi.py +0 -0
  254. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +0 -0
  255. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/lending/wepiggy/wepiggy_lens_abi.py +0 -0
  256. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/token/__init__.py +0 -0
  257. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/token/ctoken_abi.py +0 -0
  258. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/token/erc20_abi.py +0 -0
  259. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/token/erc721_abi.py +0 -0
  260. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/vault/__init__.py +0 -0
  261. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/vault/incentive_abi.py +0 -0
  262. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/vault/trava_vault_abi.py +0 -0
  263. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/vault/valuator_abi.py +0 -0
  264. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/abis/vault/ve_abi.py +0 -0
  265. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/__init__.py +0 -0
  266. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/db_constant.py +0 -0
  267. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/entities/__init__.py +0 -0
  268. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/entities/lending_constant.py +0 -0
  269. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/entities/lending_services.py +0 -0
  270. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/mongo_constant.py +0 -0
  271. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/time_constant.py +0 -0
  272. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/constants/token_constant.py +0 -0
  273. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/__init__.py +0 -0
  274. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/processors/__init__.py +0 -0
  275. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/processors/multi_state_processor.py +0 -0
  276. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/processors/solana_state_processor.py +0 -0
  277. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/processors/substrate_state_processor.py +0 -0
  278. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/queriers/__init__.py +0 -0
  279. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/queriers/solana_state_querier.py +0 -0
  280. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/queriers/state_querier.py +0 -0
  281. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/jobs/queriers/substrate_state_querier.py +0 -0
  282. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/__init__.py +0 -0
  283. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/__init__.py +0 -0
  284. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/cream_services.py +0 -0
  285. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/geist_services.py +0 -0
  286. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/__init__.py +0 -0
  287. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/__init__.py +0 -0
  288. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py +0 -0
  289. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +0 -0
  290. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/granary_arbitrum.py +0 -0
  291. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/radiant_arbitrum.py +0 -0
  292. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/silo_arbitrum.py +0 -0
  293. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/arbitrum/wepiggy_arbitrum.py +0 -0
  294. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/avalanche/__init__.py +0 -0
  295. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/avalanche/aave_v2_avalanche.py +0 -0
  296. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/avalanche/aave_v3_avalanche.py +0 -0
  297. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/avalanche/granary_avalanche.py +0 -0
  298. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/avalanche/iron_bank_avalanche.py +0 -0
  299. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/__init__.py +0 -0
  300. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/apeswap_bsc.py +0 -0
  301. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/cream_bsc.py +0 -0
  302. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/granary_bsc.py +0 -0
  303. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/radiant_bsc.py +0 -0
  304. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/trava_bsc.py +0 -0
  305. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/valas_bsc.py +0 -0
  306. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/venus_bsc.py +0 -0
  307. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py +0 -0
  308. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/__init__.py +0 -0
  309. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/aave_v2_eth.py +0 -0
  310. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py +0 -0
  311. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/compound_eth.py +0 -0
  312. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +0 -0
  313. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/flux_eth.py +0 -0
  314. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/granary_eth.py +0 -0
  315. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/iron_bank_eth.py +0 -0
  316. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +0 -0
  317. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +0 -0
  318. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +0 -0
  319. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/onyx_eth.py +0 -0
  320. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/silo_eth.py +0 -0
  321. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py +0 -0
  322. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/spark_eth.py +0 -0
  323. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/strike_eth.py +0 -0
  324. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/trava_eth.py +0 -0
  325. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/uwu_eth.py +0 -0
  326. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +0 -0
  327. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/fantom/__init__.py +0 -0
  328. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/fantom/aave_v3_ftm.py +0 -0
  329. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/fantom/geist_ftm.py +0 -0
  330. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/fantom/granary_ftm.py +0 -0
  331. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/fantom/trava_ftm.py +0 -0
  332. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/optimism/__init__.py +0 -0
  333. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/optimism/aave_v3_optimism.py +0 -0
  334. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/optimism/granary_optimism.py +0 -0
  335. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/optimism/iron_bank_optimism.py +0 -0
  336. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/optimism/wepiggy_optimism.py +0 -0
  337. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/polygon/__init__.py +0 -0
  338. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/polygon/aave_v2_polygon.py +0 -0
  339. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/polygon/aave_v3_polygon.py +0 -0
  340. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +0 -0
  341. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/polygon/wepiggy_polygon.py +0 -0
  342. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/tron/__init__.py +0 -0
  343. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/lending_info/tron/justlend_tron.py +0 -0
  344. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/lending/spark_services.py +0 -0
  345. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/nft_services.py +0 -0
  346. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/solana_token_services.py +0 -0
  347. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/substrate_token_services.py +0 -0
  348. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/services/token_services.py +0 -0
  349. {defi-state-querier-0.4.1/src/defi_services/utils → defi-state-querier-0.4.3/src/defi_services/services/vault}/__init__.py +0 -0
  350. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/apy.py +0 -0
  351. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/convert_address.py +0 -0
  352. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/graph_operations.py +0 -0
  353. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/logger_utils.py +0 -0
  354. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/market_service.py +0 -0
  355. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/memory_storage.py +0 -0
  356. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_services/utils/thread_proxy.py +0 -0
  357. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_state_querier.egg-info/dependency_links.txt +0 -0
  358. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_state_querier.egg-info/requires.txt +0 -0
  359. {defi-state-querier-0.4.1 → defi-state-querier-0.4.3}/src/defi_state_querier.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.4.1
3
+ Version: 0.4.3
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.3"
@@ -9,9 +9,12 @@ class Chain:
9
9
  avalanche = "0xa86a"
10
10
  tron = "0x2b6653dc"
11
11
  cronos = "0x19"
12
+ polkadot = "polkadot"
12
13
 
13
14
  native_decimals = {
14
- tron: 6
15
+ tron: 6,
16
+ solana: 9,
17
+ polkadot: 10
15
18
  }
16
19
 
17
20
 
@@ -0,0 +1,5 @@
1
+ class Vault:
2
+ # service
3
+ trava_vault = "trava-vault"
4
+
5
+ all = [trava_vault]
@@ -0,0 +1,24 @@
1
+ from defi_services.constants.chain_constant import Chain
2
+ from defi_services.constants.entities.vault_constant import Vault
3
+ from defi_services.services.vault.trava_vault_services import TravaVaultStateService
4
+
5
+
6
+ class VaultServices:
7
+ # chain
8
+ bsc = {
9
+ Vault.trava_vault: TravaVaultStateService
10
+ }
11
+
12
+ ethereum = {
13
+ Vault.trava_vault: TravaVaultStateService
14
+ }
15
+
16
+ fantom = {
17
+ Vault.trava_vault: TravaVaultStateService
18
+ }
19
+
20
+ mapping = {
21
+ Chain.bsc: bsc,
22
+ Chain.ethereum: ethereum,
23
+ Chain.fantom: fantom
24
+ }
@@ -10,6 +10,7 @@ class Query:
10
10
  token_balance = 'token_balance'
11
11
  nft_balance = 'nft_balance'
12
12
  deposit_borrow = 'deposit_borrow'
13
+ staking_reward = 'staking_reward'
13
14
  protocol_reward = 'protocol_reward'
14
15
  protocol_apy = 'protocol_apy'
15
16
  health_factor = 'health_factor'
@@ -4,12 +4,13 @@ from web3 import Web3
4
4
 
5
5
  from defi_services.constants.chain_constant import Chain
6
6
  from defi_services.constants.entities.lending_services import LendingServices
7
+ from defi_services.constants.entities.vault_services import VaultServices
7
8
  from defi_services.constants.query_constant import Query
8
9
  from defi_services.jobs.queriers.state_querier import StateQuerier
9
10
  from defi_services.services.nft_services import NFTServices
10
11
  from defi_services.services.protocol_services import ProtocolServices
11
12
  from defi_services.services.token_services import TokenServices
12
- from defi_services.utils.convert_address import base58_to_hex, convert_address_dict
13
+ from defi_services.utils.convert_address import base58_to_hex
13
14
  from defi_services.utils.init_services import init_services
14
15
 
15
16
  logger = logging.getLogger("StateProcessor")
@@ -23,6 +24,7 @@ class StateProcessor:
23
24
  self.token_service = TokenServices(self.state_querier, chain_id)
24
25
  self.nft_service = NFTServices(self.state_querier, chain_id)
25
26
  self.lending_services = LendingServices.mapping.get(chain_id)
27
+ self.vault_services = VaultServices.mapping.get(chain_id, {})
26
28
 
27
29
  def get_service_info(self):
28
30
  info = self.nft_service.get_service_info()
@@ -104,7 +106,7 @@ class StateProcessor:
104
106
  if Query.nft_balance == query_type:
105
107
  data = self.nft_service.get_data(wallet, entity, entity_value, block_number)
106
108
 
107
- elif entity in self.lending_services:
109
+ elif (entity in self.lending_services) or (entity in self.vault_services):
108
110
  entity_service: ProtocolServices = self.services.get(entity)
109
111
  data = entity_service.get_data(
110
112
  [query_type], wallet, entity_value, block_number, **kwargs)
@@ -438,7 +438,7 @@ class AaveV2StateService(ProtocolServices):
438
438
  return rpc_calls
439
439
 
440
440
  def calculate_rewards_balance(
441
- self, decoded_data: dict, wallet: str, block_number: int = "latest"):
441
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
442
442
  reward_token = self.pool_info['rewardToken']
443
443
  key = f"getRewardsBalance_{self.name}_{wallet}_{block_number}".lower()
444
444
  rewards = decoded_data.get(key) / 10 ** 18
@@ -299,7 +299,7 @@ class AaveV3StateService(AaveV2StateService):
299
299
  return rpc_calls
300
300
 
301
301
  def calculate_rewards_balance(
302
- self, decoded_data: dict, wallet: str, block_number: int = "latest"):
302
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
303
303
  key = f"getAllUserRewards_{self.name}_{wallet}_{block_number}".lower()
304
304
  rewards = decoded_data.get(key)
305
305
  result = dict(zip(*rewards))
@@ -7,7 +7,6 @@ from defi_services.abis.lending.apeswape.apeswap_lens_abi import APESWAP_LENS_AB
7
7
  from defi_services.abis.lending.apeswape.apswap_ctoken_abi import APESWAP_CTOKEN_ABI
8
8
  from defi_services.constants.chain_constant import Chain, BlockTime
9
9
  from defi_services.constants.entities.lending_constant import Lending
10
- from defi_services.constants.token_constant import ContractAddresses
11
10
  from defi_services.jobs.queriers.state_querier import StateQuerier
12
11
  from defi_services.services.lending.compound_service import CompoundStateService
13
12
  from defi_services.services.lending.lending_info.bsc.apeswap_bsc import APESWAP_BSC
@@ -63,8 +62,12 @@ class ApeSwapStateService(CompoundStateService):
63
62
  ctoken = data[0].lower()
64
63
  lt = data[10] / 10 ** 18
65
64
  ltv = data[10] / 10 ** 18
65
+
66
+ underlying_decimal = int(data[15])
67
+ exchange_rate = data[1] / 10 ** (18 - 8 + underlying_decimal)
66
68
  reserves_info[underlying] = {
67
69
  "cToken": ctoken,
70
+ "exchangeRate": exchange_rate,
68
71
  "liquidationThreshold": lt,
69
72
  "loanToValue": ltv
70
73
  }
@@ -113,7 +116,7 @@ class ApeSwapStateService(CompoundStateService):
113
116
  return {}
114
117
 
115
118
  def calculate_rewards_balance(
116
- self, decoded_data: dict, wallet: str, block_number: int = "latest"):
119
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
117
120
  return {}
118
121
 
119
122
  def get_ctoken_function_info(self, ctoken: str, fn_name: str, fn_paras: list = None, block_number: int = "latest"):
@@ -10,7 +10,7 @@ from defi_services.constants.chain_constant import Chain, BlockTime
10
10
  from defi_services.constants.db_constant import DBConst
11
11
  from defi_services.constants.entities.lending_constant import Lending
12
12
  from defi_services.constants.time_constant import TimeConstants
13
- from defi_services.constants.token_constant import ContractAddresses, Token
13
+ from defi_services.constants.token_constant import Token
14
14
  from defi_services.jobs.queriers.state_querier import StateQuerier
15
15
  from defi_services.services.lending.lending_info.ethereum.compound_eth import COMPOUND_ETH
16
16
  from defi_services.services.protocol_services import ProtocolServices
@@ -67,10 +67,15 @@ class CompoundStateService(ProtocolServices):
67
67
  for data in metadata:
68
68
  underlying = data[11].lower()
69
69
  ctoken = data[0].lower()
70
+
70
71
  lt = data[10] / 10 ** 18
71
72
  ltv = data[10] / 10 ** 18
73
+
74
+ underlying_decimal = int(data[13])
75
+ exchange_rate = data[1] / 10 ** (18 - 8 + underlying_decimal)
72
76
  reserves_info[underlying] = {
73
77
  "cToken": ctoken,
78
+ "exchangeRate": exchange_rate,
74
79
  "liquidationThreshold": lt,
75
80
  "loanToValue": ltv
76
81
  }
@@ -277,7 +282,7 @@ class CompoundStateService(ProtocolServices):
277
282
  get_reward_id = f"getCompBalanceMetadataExt_{self.name}_{wallet}_{block_number}".lower()
278
283
  return {get_reward_id: rpc_call}
279
284
 
280
- def calculate_rewards_balance(self, decoded_data: dict, wallet: str, block_number: int = "latest"):
285
+ def calculate_rewards_balance(self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
281
286
  get_reward_id = f"getCompBalanceMetadataExt_{self.name}_{wallet}_{block_number}".lower()
282
287
  rewards = decoded_data.get(get_reward_id)[-1] / 10 ** 18
283
288
  reward_token = self.pool_info.get("rewardToken")
@@ -258,10 +258,7 @@ class CompoundV3StateService(CompoundStateService):
258
258
  return result
259
259
 
260
260
  def calculate_rewards_balance(
261
- self,
262
- decoded_data: dict,
263
- wallet: str,
264
- block_number: int = "latest"):
261
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
265
262
  reward_amount = 0
266
263
  reward_address = self.pool_info.get("rewardAddress")
267
264
  for token, value in self.pool_info.get("reservesList").items():
@@ -7,7 +7,7 @@ from defi_services.abis.lending.cream.cream_lens_abi import CREAM_LENS_ABI
7
7
  from defi_services.abis.token.erc20_abi import ERC20_ABI
8
8
  from defi_services.constants.chain_constant import Chain
9
9
  from defi_services.constants.entities.lending_constant import Lending
10
- from defi_services.constants.token_constant import ContractAddresses, Token
10
+ from defi_services.constants.token_constant import Token
11
11
  from defi_services.jobs.queriers.state_querier import StateQuerier
12
12
  from defi_services.services.lending.compound_service import CompoundStateService
13
13
  from defi_services.services.lending.lending_info.ethereum.flux_eth import FLUX_ETH
@@ -66,8 +66,12 @@ class FluxStateService(CompoundStateService):
66
66
  ctoken = data[0].lower()
67
67
  lt = data[10] / 10 ** 18
68
68
  ltv = data[10] / 10 ** 18
69
+
70
+ underlying_decimal = int(data[13])
71
+ exchange_rate = data[1] / 10 ** (18 - 8 + underlying_decimal)
69
72
  reserves_info[underlying] = {
70
73
  "cToken": ctoken,
74
+ "exchangeRate": exchange_rate,
71
75
  "liquidationThreshold": lt,
72
76
  "loanToValue": ltv
73
77
  }
@@ -85,10 +89,7 @@ class FluxStateService(CompoundStateService):
85
89
  return {get_reward_id: rpc_call}
86
90
 
87
91
  def calculate_rewards_balance(
88
- self,
89
- decoded_data: dict,
90
- wallet: str,
91
- block_number: int = "latest"):
92
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
92
93
  get_reward_id = f"compAccrued_{self.name}_{wallet}_{block_number}".lower()
93
94
  rewards = decoded_data.get(get_reward_id) / 10 ** 18
94
95
  reward_token = self.pool_info.get("rewardToken")
@@ -331,10 +331,7 @@ class GranaryStateService(ProtocolServices):
331
331
  return rpc_calls
332
332
 
333
333
  def calculate_rewards_balance(
334
- self,
335
- decoded_data: dict,
336
- wallet: str,
337
- block_number: int = "latest"):
334
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
338
335
  reward_tokens = self.pool_info.get("rewardToken")
339
336
  if not reward_tokens:
340
337
  return {}
@@ -2,14 +2,13 @@ import logging
2
2
 
3
3
  from web3 import Web3
4
4
 
5
- from defi_services.abis.lending.cream.cream_comptroller_abi import CREAM_COMPTROLLER_ABI
6
5
  from defi_services.abis.lending.iron_bank.iron_comptroller_abi import IRON_COMPTROLLER_ABI
7
6
  from defi_services.abis.lending.iron_bank.iron_lens_abi import IRON_LENS_ABI
8
7
  from defi_services.abis.lending.iron_bank.ctoken_abi import CTOKEN_ABI
9
8
  from defi_services.abis.token.erc20_abi import ERC20_ABI
10
9
  from defi_services.constants.chain_constant import Chain, BlockTime
11
10
  from defi_services.constants.entities.lending_constant import Lending
12
- from defi_services.constants.token_constant import ContractAddresses, Token
11
+ from defi_services.constants.token_constant import Token
13
12
  from defi_services.jobs.queriers.state_querier import StateQuerier
14
13
  from defi_services.services.lending.compound_service import CompoundStateService
15
14
  from defi_services.services.lending.lending_info.avalanche.iron_bank_avalanche import IRON_BANK_AVALANCHE
@@ -77,6 +76,11 @@ class IronBankStateService(CompoundStateService):
77
76
  "function": "underlying",
78
77
  "block_number": "latest"
79
78
  }
79
+
80
+ exchange_rate_query_id = f'exchangeRateStored_{token}_{block_number}'
81
+ queries[exchange_rate_query_id] = self.get_ctoken_function_info(
82
+ ctoken=token, fn_name='exchangeRateStored', block_number=block_number)
83
+
80
84
  markets = f"markets_{token}_latest".lower()
81
85
  queries[markets] = self.get_comptroller_function_info("markets", [token])
82
86
  decoded_data = self.state_service.query_state_data(queries)
@@ -85,8 +89,18 @@ class IronBankStateService(CompoundStateService):
85
89
  underlying = decoded_data.get(key).lower()
86
90
  markets = f"markets_{token}_latest".lower()
87
91
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
92
+
93
+ if underlying != Token.native_token:
94
+ underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
95
+ underlying_decimal = underlying_contract.functions.decimals().call()
96
+ else:
97
+ underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
98
+ exchange_rate_query_id = f'exchangeRateStored_{token}_{block_number}'
99
+ exchange_rate = decoded_data.get(exchange_rate_query_id) / 10 ** (18 - 8 + underlying_decimal)
100
+
88
101
  reserves_info[underlying] = {
89
102
  'cToken': token.lower(),
103
+ "exchangeRate": exchange_rate,
90
104
  "liquidationThreshold": liquidation_threshold,
91
105
  "loanToValue": liquidation_threshold
92
106
  }
@@ -139,10 +153,7 @@ class IronBankStateService(CompoundStateService):
139
153
  return {get_reward_id: rpc_call}
140
154
 
141
155
  def calculate_rewards_balance(
142
- self,
143
- decoded_data: dict,
144
- wallet: str,
145
- block_number: int = "latest"):
156
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
146
157
  if self.chain_id in [Chain.optimism, Chain.avalanche]:
147
158
  return {}
148
159
  get_reward_id = f"compAccrued_{self.name}_{wallet}_{block_number}".lower()
@@ -59,6 +59,11 @@ class JustLendStateService(CompoundStateService):
59
59
  "function": "underlying",
60
60
  "block_number": "latest"
61
61
  }
62
+
63
+ exchange_rate_query_id = f'exchangeRateStored_{token}_{block_number}'
64
+ queries[exchange_rate_query_id] = self.get_ctoken_function_info(
65
+ ctoken=token, fn_name='exchangeRateStored', block_number=block_number)
66
+
62
67
  markets = f"markets_{token}_latest".lower()
63
68
  queries[markets] = self.get_comptroller_function_info("markets", [token])
64
69
  decoded_data = self.state_service.query_state_data(queries)
@@ -67,8 +72,18 @@ class JustLendStateService(CompoundStateService):
67
72
  markets = f"markets_{token}_latest".lower()
68
73
  underlying = decoded_data.get(key).lower()
69
74
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
75
+
76
+ if underlying != Token.native_token:
77
+ underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
78
+ underlying_decimal = underlying_contract.functions.decimals().call()
79
+ else:
80
+ underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
81
+ exchange_rate_query_id = f'exchangeRateStored_{token}_{block_number}'
82
+ exchange_rate = decoded_data.get(exchange_rate_query_id) / 10 ** (18 - 8 + underlying_decimal)
83
+
70
84
  reserves_info[underlying] = {
71
85
  'cToken': token.lower(),
86
+ "exchangeRate": exchange_rate,
72
87
  "liquidationThreshold": liquidation_threshold,
73
88
  "loanToValue": liquidation_threshold
74
89
  }
@@ -77,17 +92,17 @@ class JustLendStateService(CompoundStateService):
77
92
  # REWARDS BALANCE
78
93
  def get_rewards_balance_function_info(
79
94
  self,
80
- wallets: str,
95
+ wallet: str,
81
96
  reserves_info: dict = None,
82
97
  block_number: int = "latest",
83
98
  ):
84
- rpc_call = self.get_comptroller_function_info("compAccrued", [wallets])
85
- get_reward_id = f"compAccrued_{self.name}_{wallets}_{block_number}".lower()
99
+ rpc_call = self.get_comptroller_function_info("compAccrued", [wallet])
100
+ get_reward_id = f"compAccrued_{self.name}_{wallet}_{block_number}".lower()
86
101
  return {get_reward_id: rpc_call}
87
102
 
88
- def calculate_rewards_balance(self, decoded_data: dict, wallets: str,
89
- block_number: int = "latest"):
90
- get_reward_id = f"compAccrued_{self.name}_{wallets}_{block_number}".lower()
103
+ def calculate_rewards_balance(
104
+ self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
105
+ get_reward_id = f"compAccrued_{self.name}_{wallet}_{block_number}".lower()
91
106
  rewards = decoded_data.get(get_reward_id) / 10 ** 18
92
107
  reward_token = self.pool_info.get("rewardToken")
93
108
  result = {
@@ -0,0 +1,157 @@
1
+ LIQEE_BSC = {
2
+ "comptrollerAddress": "",
3
+ "controllerAddress": "0x0b53e608bd058bb54748c35148484fd627e6dc0a",
4
+ "forked": "compound",
5
+ "lendingDataAddress": "0xeb92b72272e66be56b74392519cf81e150bfae0e",
6
+ "lensAddress": "",
7
+ "name": "Liqee Lending Pool",
8
+ "poolToken": "0x4a9a2b2b04549c3927dd2c9668a5ef3fca473623",
9
+ "reservesList": {
10
+ "0xe9e7cea3dedca5984780bafc599bd69add087d56": {
11
+ "cToken": "0x5511b64ae77452c7130670c79298dec978204a47",
12
+ "exchangeRate": 1.0727907490506678,
13
+ "liquidationThreshold": 0.75,
14
+ "loanToValue": 0.75
15
+ },
16
+ "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d": {
17
+ "cToken": "0xaf9c10b341f55465e8785f0f81dbb52a9bfe005d",
18
+ "exchangeRate": 1.0915276103263118,
19
+ "liquidationThreshold": 0.85,
20
+ "loanToValue": 0.85
21
+ },
22
+ "0x55d398326f99059ff775485246999027b3197955": {
23
+ "cToken": "0x0bf8c72d618b5d46b055165e21d661400008fa0f",
24
+ "exchangeRate": 1.107541263208309,
25
+ "liquidationThreshold": 0.85,
26
+ "loanToValue": 0.85
27
+ },
28
+ "0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3": {
29
+ "cToken": "0xad5ec11426970c32da48f58c92b1039bc50e5492",
30
+ "exchangeRate": 1.090369296984632,
31
+ "liquidationThreshold": 0.85,
32
+ "loanToValue": 0.85
33
+ },
34
+ "0x4a9a2b2b04549c3927dd2c9668a5ef3fca473623": {
35
+ "cToken": "0xec3fd540a2dee6f479be539d64da593a59e12d08",
36
+ "exchangeRate": 1.023706366745555,
37
+ "liquidationThreshold": 0.6,
38
+ "loanToValue": 0.6
39
+ },
40
+ "0xa05478b34fad86cc86f07eb6698c69ea60b266e3": {
41
+ "cToken": "0xc35acaeedb814f42b2214378d8950f8555b2d670",
42
+ "exchangeRate": 1,
43
+ "liquidationThreshold": 0.8,
44
+ "loanToValue": 0.8
45
+ },
46
+ "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c": {
47
+ "cToken": "0x0b66a250dadf3237ddb38d485082a7bfe400356e",
48
+ "exchangeRate": 1.0008955018668733,
49
+ "liquidationThreshold": 0.8,
50
+ "loanToValue": 0.8
51
+ },
52
+ "0x2170ed0880ac9a755fd29b2688956bd959f933f8": {
53
+ "cToken": "0x390bf37355e9df6ea2e16eed5686886da6f47669",
54
+ "exchangeRate": 1.0180063558704127,
55
+ "liquidationThreshold": 0.8,
56
+ "loanToValue": 0.8
57
+ },
58
+ "0xbf5140a22578168fd562dccf235e5d43a02ce9b1": {
59
+ "cToken": "0xee9099c1318cf960651b3196747640eb84b8806b",
60
+ "exchangeRate": 1.0014743731623101,
61
+ "liquidationThreshold": 0.7,
62
+ "loanToValue": 0.7
63
+ },
64
+ "0x0eb3a705fc54725037cc9e008bdede697f62f335": {
65
+ "cToken": "0x55012ad2f0a50195aef44f403536df2465009ef7",
66
+ "exchangeRate": 1.0253052659477702,
67
+ "liquidationThreshold": 0.7,
68
+ "loanToValue": 0.7
69
+ },
70
+ "0x7083609fce4d1d8dc0c979aab8c869ea2c873402": {
71
+ "cToken": "0x9ab060ba568b86848bf19577226184db6192725b",
72
+ "exchangeRate": 1.0615419244367703,
73
+ "liquidationThreshold": 0.7,
74
+ "loanToValue": 0.7
75
+ },
76
+ "0x0d8ce2a99bb6e3b7db580ed848240e4a0f9ae153": {
77
+ "cToken": "0xd739a569ec254d6a20ecf029f024816be58fb810",
78
+ "exchangeRate": 1.0066415558494175,
79
+ "liquidationThreshold": 0.7,
80
+ "loanToValue": 0.7
81
+ },
82
+ "0x3ee2200efb3400fabb9aacf31297cbdd1d435d47": {
83
+ "cToken": "0xfc5bb1e8c29b100ef8f12773f972477bcab68862",
84
+ "exchangeRate": 1.0138756837775817,
85
+ "liquidationThreshold": 0.7,
86
+ "loanToValue": 0.7
87
+ },
88
+ "0x0000000000000000000000000000000000000000": {
89
+ "cToken": "0xd57e1425837567f74a35d07669b23bfb67aa4a93",
90
+ "exchangeRate": 1.1026774278138651,
91
+ "liquidationThreshold": 0.8,
92
+ "loanToValue": 0.8
93
+ },
94
+ "0xb5102cee1528ce2c760893034a4603663495fd72": {
95
+ "cToken": "0x36f4c36d1f6e8418ecb2402f896b2a8fedde0991",
96
+ "exchangeRate": 1,
97
+ "liquidationThreshold": 0.7,
98
+ "loanToValue": 0.7
99
+ },
100
+ "0x367c17d19fcd0f7746764455497d63c8e8b2bba3": {
101
+ "cToken": "0xb22ef996c0a2d262a19db2a66a256067f51511eb",
102
+ "exchangeRate": 1,
103
+ "liquidationThreshold": 0.7,
104
+ "loanToValue": 0.7
105
+ },
106
+ "0x20ecc92f0a33e16e8cf0417dfc3f586cf597f3a9": {
107
+ "cToken": "0x6e42423e1bcb6a093a58e203b5eb6e8a8023b4e5",
108
+ "exchangeRate": 1,
109
+ "liquidationThreshold": 0.7,
110
+ "loanToValue": 0.7
111
+ },
112
+ "0x463e3d1e01d048fdf872710f7f3745b5cdf50d0e": {
113
+ "cToken": "0x6ac0a0b3959c1e5fcbd09b59b09abf7c53c72346",
114
+ "exchangeRate": 1,
115
+ "liquidationThreshold": 0.7,
116
+ "loanToValue": 0.7
117
+ },
118
+ "0x1d2f0da169ceb9fc7b3144628db156f3f6c60dbe": {
119
+ "cToken": "0x6d64effe3af8697336fc57efd5a7517ad526dd6d",
120
+ "exchangeRate": 1.0095313806387172,
121
+ "liquidationThreshold": 0.7,
122
+ "loanToValue": 0.7
123
+ },
124
+ "0x4338665cbb7b2485a8855a139b75d5e34ab0db94": {
125
+ "cToken": "0xd957bea67aadb8a72061ce94d033c631d1c1e6ac",
126
+ "exchangeRate": 1.009766921268889,
127
+ "liquidationThreshold": 0.7,
128
+ "loanToValue": 0.7
129
+ },
130
+ "0xf8a0bf9cf54bb92f17374d9e9a321e6a111a51bd": {
131
+ "cToken": "0x50e894894809f642de1e11b4076451734c963087",
132
+ "exchangeRate": 1.0113349577900335,
133
+ "liquidationThreshold": 0.7,
134
+ "loanToValue": 0.7
135
+ },
136
+ "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82": {
137
+ "cToken": "0xefae8f7af4bada590d4e707d900258fc72194d73",
138
+ "exchangeRate": 1.3218997732331732,
139
+ "liquidationThreshold": 0.7,
140
+ "loanToValue": 0.7
141
+ },
142
+ "0x8ff795a6f4d97e7887c79bea79aba5cc76444adf": {
143
+ "cToken": "0x9747e26c5ad01d3594ea49ccf00790f564193c15",
144
+ "exchangeRate": 1.086362444236688,
145
+ "liquidationThreshold": 0.7,
146
+ "loanToValue": 0.7
147
+ },
148
+ "0x16939ef78684453bfdfb47825f8a5f714f12623a": {
149
+ "cToken": "0x8be8cd81737b282c909f1911f3f0ade630c335aa",
150
+ "exchangeRate": 1.0046816669180731,
151
+ "liquidationThreshold": 0.7,
152
+ "loanToValue": 0.7
153
+ }
154
+ },
155
+ "rewardToken": "0x4a9a2b2b04549c3927dd2c9668a5ef3fca473623",
156
+ "type": "LENDING_POOL"
157
+ }