From 22beef27b293cda0b22e27b505de0130649dbc81 Mon Sep 17 00:00:00 2001 From: jppade Date: Mon, 30 Oct 2023 17:30:58 +0100 Subject: [PATCH] amend fantom bridge. --- cmd/services/tradesBlockService/go.mod | 2 +- internal/pkg/tradesBlockService/tradesBlockService.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/services/tradesBlockService/go.mod b/cmd/services/tradesBlockService/go.mod index 07df8eca7..e7b1e699f 100644 --- a/cmd/services/tradesBlockService/go.mod +++ b/cmd/services/tradesBlockService/go.mod @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/services/tradesBlockService go 1.17 require ( - github.com/diadata-org/diadata v1.4.360 + github.com/diadata-org/diadata v1.4.408 github.com/segmentio/kafka-go v0.4.35 github.com/sirupsen/logrus v1.8.1 ) diff --git a/internal/pkg/tradesBlockService/tradesBlockService.go b/internal/pkg/tradesBlockService/tradesBlockService.go index 89df0bd63..aefc55c47 100644 --- a/internal/pkg/tradesBlockService/tradesBlockService.go +++ b/internal/pkg/tradesBlockService/tradesBlockService.go @@ -489,11 +489,11 @@ func buildBridge(t dia.Trade) dia.Asset { } } if basetoken.Blockchain == dia.FANTOM && (t.Source == dia.SpookyswapExchange || t.Source == dia.SpiritswapExchange || t.Source == dia.BeetsExchange || t.Source == dia.SushiSwapExchangeFantom) { - if basetoken.Address == "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75" { + if basetoken.Address == "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83" { basetoken = dia.Asset{ - Symbol: "USDC", - Address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - Blockchain: dia.ETHEREUM, + Symbol: "FTM", + Address: "0x0000000000000000000000000000000000000000", + Blockchain: dia.FANTOM, } } }