volume metric bugfix
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user