Skip to content

Commit

Permalink
add unreal bridge in tbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Sep 12, 2024
1 parent 7b27edb commit 97a33d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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.19

require (
github.com/diadata-org/diadata v1.4.509
github.com/diadata-org/diadata v1.4.527
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.8.1
)
Expand Down
7 changes: 7 additions & 0 deletions internal/pkg/tradesBlockService/tradesBlockService.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,13 @@ func buildBridge(t dia.Trade) dia.Asset {
Blockchain: dia.ETHEREUM,
}
}
if basetoken.Address == "0xAEC9e50e3397f9ddC635C6c429C8C7eca418a143" {
basetoken = dia.Asset{
Symbol: "USDC",
Address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
Blockchain: dia.ETHEREUM,
}
}
}
if basetoken.Blockchain == dia.BINANCESMARTCHAIN && t.Source == dia.PanCakeSwapExchangeV3 {
if basetoken.Address == "0x55d398326f99059fF775485246999027B3197955" {
Expand Down

0 comments on commit 97a33d7

Please sign in to comment.