volume metric bugfix

This commit is contained in:
tim
2025-02-24 09:47:34 -04:00
parent 44d1c4a920
commit d942666e16

View File

@@ -84,6 +84,7 @@ async def handle_swap_filled(event: EventData):
log.warning(f'DexorderSwapFilled IGNORED due to missing order {vault} {order_index}') log.warning(f'DexorderSwapFilled IGNORED due to missing order {vault} {order_index}')
return return
value = await accounting_fill(event, order.order.tokenOut) value = await accounting_fill(event, order.order.tokenOut)
if value is not None:
metric.volume.inc(float(value)) metric.volume.inc(float(value))
order.status.trancheStatus[tranche_index].activationTime = next_execution_time # update rate limit order.status.trancheStatus[tranche_index].activationTime = next_execution_time # update rate limit
try: try: