Skip to content

Commit

Permalink
Revert "feat: add synapse package (#38)"
Browse files Browse the repository at this point in the history
This reverts commit 4b9c661.
  • Loading branch information
piavgh committed Jun 21, 2023
1 parent 4b9c661 commit f79497d
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 853 deletions.
15 changes: 0 additions & 15 deletions pkg/source/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package source

import (
"fmt"

"github.com/KyberNetwork/ethrpc"

"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/balancer"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/biswap"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/camelot"
Expand All @@ -29,7 +27,6 @@ import (
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/pool"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/ramses"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/saddle"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/synapse"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/syncswap"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/synthetix"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/uniswap"
Expand Down Expand Up @@ -168,16 +165,6 @@ func NewPoolsListUpdaterHandler(
cfg.DexID = scanDexCfg.Id

return saddle.NewPoolsListUpdater(&cfg, ethrpcClient), nil

case synapse.DexTypeSynapse:
var cfg synapse.Config
err := PropertiesToStruct(scanDexCfg.Properties, &cfg)
if err != nil {
return nil, err
}
cfg.DexID = scanDexCfg.Id

return synapse.NewPoolsListUpdater(&cfg, ethrpcClient), nil
case dodo.DexTypeDodo:
var cfg dodo.Config
err := PropertiesToStruct(scanDexCfg.Properties, &cfg)
Expand Down Expand Up @@ -400,8 +387,6 @@ func NewPoolTrackerHandler(
return oneswap.NewPoolTracker(ethrpcClient), nil
case saddle.DexTypeSaddle:
return saddle.NewPoolTracker(ethrpcClient), nil
case synapse.DexTypeSynapse:
return synapse.NewPoolTracker(ethrpcClient), nil
case nerve.DexTypeNerve:
var cfg nerve.Config
err := PropertiesToStruct(scanDexCfg.Properties, &cfg)
Expand Down
222 changes: 0 additions & 222 deletions pkg/source/synapse/abi/ERC20.json

This file was deleted.

1 change: 0 additions & 1 deletion pkg/source/synapse/abi/SwapFlashLoan.json

This file was deleted.

30 changes: 0 additions & 30 deletions pkg/source/synapse/abis.go

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/source/synapse/config.go

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/source/synapse/constant.go

This file was deleted.

40 changes: 0 additions & 40 deletions pkg/source/synapse/embed.go

This file was deleted.

Loading

0 comments on commit f79497d

Please sign in to comment.