Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion harnesses/bridge-monitor/cmd/monitor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,11 @@ func (e *Executor) recordExecutionMetrics(result *ExecutionResult) {
// it would inject spurious 0 / negative samples into the realized-cost bench.
// Slippage is only meaningful against a quoted fee; Near Intents used to
// publish its whole realized fee here (QuoteFeeUSD was never set).
if result.Success && result.RealizedOnChain && result.QuoteFeeUSD > 0 {
// Gate on "a quote existed", not on "the quoted fee is positive": a
// quote that promises the full ticket back (Mobula Sol to Base quoted
// $3.0000 out of $3) has a quoted fee of exactly zero, and its slippage
// (+$0.003 realized) is the most honest row on the page.
if result.Success && result.RealizedOnChain && result.QuotedOutputUSD > 0 {
pulse(bridgeQuoteSlippageUSD, labels, result.ActualFeeUSD-result.QuoteFeeUSD)
}
if result.ExecGasUSD > 0 {
Expand Down
Loading