Skip to content

Commit

Permalink
Merge pull request #1386 from consolelabs/fix/fix-util-sumarize-walle…
Browse files Browse the repository at this point in the history
…t-bals-of-wallets

fix: fix summarize wallets bals of wallets
  • Loading branch information
NguyenHuy1812 authored Apr 24, 2024
2 parents 0b5c68b + 5ca756a commit fec00af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/entities/wallet_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (e *Entity) FormatAsset(assets []response.BinanceUserAssetResponse) ([]resp

func containsWalletAsset(wallet []response.WalletAssetData, userAssetSymbol, userAssetName string, userAssetChainId int) bool {
for _, w := range wallet {
if w.ContractSymbol == userAssetSymbol && w.ContractName == userAssetName && w.ChainID == userAssetChainId {
if w.ContractSymbol == userAssetSymbol && w.ContractName == userAssetName && w.ChainID == userAssetChainId && w.ContractSymbol != "" && w.ContractName != "" && w.ChainID != 0 {
return true
}
}
Expand Down

0 comments on commit fec00af

Please sign in to comment.