Skip to content

Commit

Permalink
Merge branch 'master' of github.com:diadata-org/diadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn-gif committed Oct 31, 2023
2 parents da8d2cc + 22beef2 commit 6031621
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 12 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
2 changes: 1 addition & 1 deletion config/Binance.json
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@
},
{
"Exchange": "Binance",
"ForeignName": "STORJETH",
"ForeignName": "STORJUSDT",
"Ignore": false,
"Symbol": "STORJ"
},
Expand Down
6 changes: 6 additions & 0 deletions config/BitMart.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"Coins": [
{
"Exchange": "BitMart",
"ForeignName": "STORJ_USDT",
"Ignore": false,
"Symbol": "STORJ"
},
{
"Exchange": "BitMart",
"ForeignName": "KAVA_USDT",
Expand Down
6 changes: 6 additions & 0 deletions config/CoinBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
"Ignore": false,
"Symbol": "DAI"
},
{
"Exchange": "CoinBase",
"ForeignName": "STORJ-USD",
"Ignore": false,
"Symbol": "STORJ"
},
{
"Exchange": "CoinBase",
"ForeignName": "UST-USD",
Expand Down
6 changes: 6 additions & 0 deletions config/Kraken.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@
"Ignore": false,
"Symbol": "SDN"
},
{
"Exchange": "Kraken",
"ForeignName": "STORJUSD",
"Ignore": false,
"Symbol": "STORJ"
},
{
"Exchange": "Kraken",
"ForeignName": "SYNUSD",
Expand Down
6 changes: 0 additions & 6 deletions config/KuCoin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"Exchange": "KuCoin",
"Ignore": false
},
{
"Symbol": "ACA",
"ForeignName": "ACA-USDT",
"Exchange": "KuCoin",
"Ignore": false
},
{
"Symbol": "ADA",
"ForeignName": "ADA-BTC",
Expand Down
6 changes: 6 additions & 0 deletions config/MEXC.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@
"Exchange": "MEXC",
"Ignore": false
},
{
"Symbol": "STORJ",
"ForeignName": "STORJUSDT",
"Exchange": "MEXC",
"Ignore": false
},
{
"Symbol": "SYN",
"ForeignName": "SYNUSDT",
Expand Down
6 changes: 6 additions & 0 deletions config/gitcoinverified/BitMart.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@
"Blockchain": "Ethereum",
"Address": "0x090185f2135308BaD17527004364eBcC2D37e5F6"
},
{
"Symbol": "STORJ",
"Exchange": "BitMart",
"Blockchain": "Ethereum",
"Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC"
},
{
"Symbol": "SYN",
"Exchange": "BitMart",
Expand Down
6 changes: 6 additions & 0 deletions config/gitcoinverified/CoinBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
"Blockchain": "Ethereum",
"Address": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"
},
{
"Symbol": "STORJ",
"Exchange": "CoinBase",
"Blockchain": "Ethereum",
"Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC"
},
{
"Symbol": "QUICK",
"Exchange": "CoinBase",
Expand Down
6 changes: 6 additions & 0 deletions config/gitcoinverified/Kraken.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
"Blockchain": "Shiden",
"Address": "0x0000000000000000000000000000000000000000"
},
{
"Symbol": "STORJ",
"Exchange": "Kraken",
"Blockchain": "Ethereum",
"Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC"
},
{
"Symbol": "SYN",
"Exchange": "Kraken",
Expand Down
6 changes: 6 additions & 0 deletions config/gitcoinverified/MEXC.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,12 @@
"Blockchain": "Ethereum",
"Address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84"
},
{
"Symbol": "STORJ",
"Exchange": "MEXC",
"Blockchain": "Ethereum",
"Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC"
},
{
"Symbol": "TKB",
"Exchange": "MEXC",
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 6031621

Please sign in to comment.