Skip to content

Commit

Permalink
fix: remove eth from tokenlist balances
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 17, 2023
1 parent 4d456ac commit 8173980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions external/tokensList/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ func GetYearnTokenList(c *gin.Context) {
**********************************************************************************************/
response := multicalls.Perform(chainID, calls, nil)
for _, token := range existingTokenLists[`yearn`] {
if addresses.Equals(token.Address, env.DEFAULT_COIN_ADDRESS) {
continue
}
rawBalance := response[token.Address+`balanceOf`]
if len(rawBalance) == 0 {
continue
Expand Down

0 comments on commit 8173980

Please sign in to comment.