Skip to content

Commit

Permalink
add ethereum mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Sep 22, 2023
1 parent f21bac9 commit 8fae180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/asset/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4170,7 +4170,7 @@ func (w *assetWallet) getConfirmedBalance() (*big.Int, error) {
if w.balances.m == nil {
w.balances.m = make(map[uint32]*cachedBalance)
}
// Check to see if wa already have one up-to-date
// Check to see if we already have one up-to-date
cached := w.balances.m[w.assetID]
if cached != nil && cached.height == tipHeight && time.Since(cached.stamp) < time.Minute {
return cached.bal, nil
Expand All @@ -4180,7 +4180,6 @@ func (w *assetWallet) getConfirmedBalance() (*big.Int, error) {
var bal *big.Int
var err error
if w.assetID == w.baseChainID {

bal, err = w.node.addressBalance(w.ctx, w.addr)
} else {
bal, err = w.tokenBalance()
Expand Down
2 changes: 1 addition & 1 deletion dex/networks/eth/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var (
}

MultiBalanceAddresses = map[dex.Network]common.Address{
// DRAFT TODO: Deploy to Ethereum mainnet.
dex.Mainnet: common.HexToAddress("0x73bc803A2604b2c58B8680c3CE1b14489842EF16"), // tx 0xaf6cb861578c0ded0750397d7e044a7dd86c94aa47211d02188e146a2424dda4
dex.Testnet: common.HexToAddress("0x0F7F7C2979554B89F4Ca974fe0d382008888f699"), // tx 0x540d3e82888b18f89566a988712a7c2ecd45bd2df472f8dd689e319ae9fa4445
}
)
Expand Down

0 comments on commit 8fae180

Please sign in to comment.