Skip to content

Commit

Permalink
fix(op-dispute-mon): use the weth contract instead of the game proxy …
Browse files Browse the repository at this point in the history
…address
  • Loading branch information
refcell committed Mar 21, 2024
1 parent c1efbc7 commit ad6c1b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions op-dispute-mon/mon/withdrawals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
7 changes: 0 additions & 7 deletions op-dispute-mon/mon/withdrawals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit ad6c1b9

Please sign in to comment.