Skip to content

Commit

Permalink
amend fantom bridge in tbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Oct 31, 2023
1 parent 701a78b commit c7b8c7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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.409-rc-1
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.8.1
)
Expand Down
3 changes: 0 additions & 3 deletions internal/pkg/filtersBlockService/FilterVWAPIR.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ func (filter *FilterVWAPIR) processDataPoint(trade dia.Trade) {
}

func (s *FilterVWAPIR) FinalCompute(t time.Time) float64 {
<<<<<<< HEAD
=======
log.Info("final compute of time ", t)
>>>>>>> master
return s.finalCompute(t)
}

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 @@ -520,11 +520,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 c7b8c7e

Please sign in to comment.