Skip to content

Commit

Permalink
amend fantom bridge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Oct 30, 2023
1 parent e5a92fd commit 22beef2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/services/tradesBlockService/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
8 changes: 4 additions & 4 deletions internal/pkg/tradesBlockService/tradesBlockService.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit 22beef2

Please sign in to comment.