From d7a56c6469a249b5ad4122a0eba71378fd8aea00 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Tue, 17 Sep 2024 12:19:21 -0700 Subject: [PATCH] evaluated at --- packages/relayer/processor/is_profitable.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/relayer/processor/is_profitable.go b/packages/relayer/processor/is_profitable.go index 2df6b39379b..8ce2436b39f 100644 --- a/packages/relayer/processor/is_profitable.go +++ b/packages/relayer/processor/is_profitable.go @@ -3,6 +3,7 @@ package processor import ( "context" "log/slog" + "time" "github.com/pkg/errors" "github.com/taikoxyz/taiko-mono/packages/relayer" @@ -51,12 +52,13 @@ func (p *Processor) isProfitable( ) opts := relayer.UpdateFeesAndProfitabilityOpts{ - Fee: fee, - DestChainBaseFee: destChainBaseFee, - GasTipCap: gasTipCap, - GasLimit: gasLimit, - IsProfitable: shouldProcess, - EstimatedOnchainFee: estimatedOnchainFee, + Fee: fee, + DestChainBaseFee: destChainBaseFee, + GasTipCap: gasTipCap, + GasLimit: gasLimit, + IsProfitable: shouldProcess, + EstimatedOnchainFee: estimatedOnchainFee, + IsProfitableEvaluatedAt: time.Now().UTC(), } if err := p.eventRepo.UpdateFeesAndProfitability(ctx, id, &opts); err != nil {