Skip to content

Commit

Permalink
fix: s3 mainnet after asynced load_streams
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Sep 5, 2023
1 parent 11d835e commit db35476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ async def wrap_vault(
"name": await vault.strategy.getName.coroutine() if hasattr(vault.strategy, "getName") else vault.strategy._name,
}
]
else:
elif isinstance(vault, VaultV2):
strategies = [{"address": str(strategy.strategy), "name": strategy.name} for strategy in await vault.strategies]
else:
strategies = [{"address": str(strategy.strategy), "name": strategy.name} for strategy in vault.strategies]

inception = await inception_fut
token_alias = aliases[str(vault.token)]["symbol"] if str(vault.token) in aliases else await ERC20(vault.token, asynchronous=True).symbol
Expand Down

0 comments on commit db35476

Please sign in to comment.