Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve backends layout #128

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/defi.py → backends/defillama/tvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
2. Excludes boosted pools, whitelisted in the season config using tonapi (to get pool states) and
pool's get method invocation
"""
class DefillamaDeFiBackend(CalculationBackend):
class DefillamaDeFiTVLBackend(CalculationBackend):
# DEX pool's smc signatures
DEX_METHODS = {
DexPool.DEX_STON: {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from loguru import logger

from backends.contracts_executor import ContractsExecutor
from backends.defi import DefillamaDeFiBackend
from backends.defi_volume import DefillamaDeFiVolumeBackend
from backends.defillama.tvl import DefillamaDeFiTVLBackend
from backends.defillama.volume import DefillamaDeFiVolumeBackend
from backends.sbt_enrollment import SBTEnrollmentSync
from backends.redoubt.apps import RedoubtAppBackend
from backends.redoubt.apps_v2 import RedoubtAppBackendV2
Expand Down Expand Up @@ -43,7 +43,7 @@
backend = ToncenterCppNFTsBackend(conn)
season = S6_nfts
elif sys.argv[1] == 'defi_tvl':
backend = DefillamaDeFiBackend(
backend = DefillamaDeFiTVLBackend(
tonapi=TonapiAdapter(),
executor=ContractsExecutor(os.getenv('CONTRACTS_EXECUTOR_URL'))
)
Expand Down
Loading