volume metric bugfix
This commit is contained in:
@@ -84,7 +84,8 @@ async def handle_swap_filled(event: EventData):
|
||||
log.warning(f'DexorderSwapFilled IGNORED due to missing order {vault} {order_index}')
|
||||
return
|
||||
value = await accounting_fill(event, order.order.tokenOut)
|
||||
metric.volume.inc(float(value))
|
||||
if value is not None:
|
||||
metric.volume.inc(float(value))
|
||||
order.status.trancheStatus[tranche_index].activationTime = next_execution_time # update rate limit
|
||||
try:
|
||||
triggers = OrderTriggers.instances[order.key]
|
||||
|
||||
Reference in New Issue
Block a user