From f2eb4ea96b23f1cbc1514cfe3cf87688eea01cf1 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 24 Feb 2025 10:23:57 -0400 Subject: [PATCH] initialize_accounting() bugfix --- src/dexorder/accounting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dexorder/accounting.py b/src/dexorder/accounting.py index b4e2ea0..1b6a851 100644 --- a/src/dexorder/accounting.py +++ b/src/dexorder/accounting.py @@ -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()