initialize_accounting() bugfix
This commit is contained in:
@@ -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
|
||||
elif not config.nativecoin:
|
||||
factory = get_factory_contract()
|
||||
wrapper = await factory.wrapper()
|
||||
impl = await factory.implementation()
|
||||
wrapper = await impl.wrapper()
|
||||
if wrapper != ADDRESS_0:
|
||||
config.nativecoin = wrapper
|
||||
quotes.clear()
|
||||
|
||||
Reference in New Issue
Block a user