diff --git a/op-dispute-mon/mon/withdrawals.go b/op-dispute-mon/mon/withdrawals.go index a16dabd7b8944..923bd10adbeaa 100644 --- a/op-dispute-mon/mon/withdrawals.go +++ b/op-dispute-mon/mon/withdrawals.go @@ -41,6 +41,6 @@ func (w *WithdrawalMonitor) validateGameWithdrawals(game *types.EnrichedGameData w.logger.Error("Withdrawal request amount does not match credit", "game", game.Proxy, "recipient", recipient, "credit", game.Credits[recipient], "withdrawal", game.WithdrawalRequests[recipient].Amount) } } - w.metrics.RecordWithdrawalRequests(game.Proxy, true, matching) - w.metrics.RecordWithdrawalRequests(game.Proxy, false, divergent) + w.metrics.RecordWithdrawalRequests(game.WETHContract, true, matching) + w.metrics.RecordWithdrawalRequests(game.WETHContract, false, divergent) } diff --git a/op-dispute-mon/mon/withdrawals_test.go b/op-dispute-mon/mon/withdrawals_test.go index 4f3b864191dfd..d7c0f5e8083e4 100644 --- a/op-dispute-mon/mon/withdrawals_test.go +++ b/op-dispute-mon/mon/withdrawals_test.go @@ -5,7 +5,6 @@ import ( "testing" "github.com/ethereum-optimism/optimism/op-challenger/game/fault/contracts" - "github.com/ethereum-optimism/optimism/op-challenger/game/types" monTypes "github.com/ethereum-optimism/optimism/op-dispute-mon/mon/types" "github.com/ethereum-optimism/optimism/op-service/testlog" "github.com/ethereum/go-ethereum/common" @@ -29,9 +28,6 @@ func makeGames() []*monTypes.EnrichedGameData { Amount: big.NewInt(1), } game1 := &monTypes.EnrichedGameData{ - GameMetadata: types.GameMetadata{ - Proxy: weth1, - }, Credits: map[common.Address]*big.Int{ common.Address{0x01}: big.NewInt(3), common.Address{0x02}: big.NewInt(1), @@ -41,9 +37,6 @@ func makeGames() []*monTypes.EnrichedGameData { ETHCollateral: weth1Balance, } game2 := &monTypes.EnrichedGameData{ - GameMetadata: types.GameMetadata{ - Proxy: weth2, - }, Credits: map[common.Address]*big.Int{ common.Address{0x01}: big.NewInt(46), common.Address{0x02}: big.NewInt(1),