arb1 accounting config

This commit is contained in:
tim
2025-02-26 13:39:08 -04:00
parent 31a2edd0c6
commit aed6c36746
2 changed files with 15 additions and 0 deletions

View File

@@ -4,3 +4,17 @@ archive_url = 'arbitrum_alchemy'
concurrent_rpc_connections=8
metrics_port=9090
metadata = '' # this setting approves no tokens
stablecoins = [
# in order of preference
'0xaf88d065e77c8cC2239327C5EDb3A432268e5831', # USDC
'0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', # USDT
'0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', # USDC.e
]
quotecoins = [
# in order of preference
'0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', # WBTC
'0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', # WETH
]
nativecoin = ['0x82aF49447D8a07e3bd95BD0d56f35241523fBab1'] # WETH

View File

@@ -114,6 +114,7 @@ async def _initialize_mark_to_market():
impl_addr = await factory.implementation()
wrapper = await ContractProxy(impl_addr, 'Vault').wrapper()
if wrapper != ADDRESS_0:
log.info(f'Detected native coin wrapper {wrapper}')
config.nativecoin = wrapper
quotes.clear()
quotes.extend(config.stablecoins)