initialize_accounting() bugfix

This commit is contained in:
tim
2025-02-24 10:23:57 -04:00
parent 58b17f21a6
commit f2eb4ea96b

View File

@@ -110,7 +110,8 @@ async def _initialize_mark_to_market():
config.nativecoin = weth if weth is not None else meh if meh is not None else None config.nativecoin = weth if weth is not None else meh if meh is not None else None
elif not config.nativecoin: elif not config.nativecoin:
factory = get_factory_contract() factory = get_factory_contract()
wrapper = await factory.wrapper() impl = await factory.implementation()
wrapper = await impl.wrapper()
if wrapper != ADDRESS_0: if wrapper != ADDRESS_0:
config.nativecoin = wrapper config.nativecoin = wrapper
quotes.clear() quotes.clear()