Skip to content

Commit

Permalink
feat: add etherfivampire
Browse files Browse the repository at this point in the history
  • Loading branch information
datluongductuan committed Dec 2, 2024
1 parent 60071aa commit 44c2f6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace (

require (
github.com/KyberNetwork/kyber-trace-go v0.1.1
github.com/KyberNetwork/kyberswap-dex-lib v0.80.8
github.com/KyberNetwork/kyberswap-dex-lib v0.81.1
github.com/duoxehyon/mev-share-go v0.3.0
github.com/ethereum/go-ethereum v1.13.14
github.com/flashbots/mev-share-node v0.0.0-20230926173018-7862d944990a
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ github.com/KyberNetwork/int256 v0.1.4 h1:SbnhxqcsZXrP+5pSkolpSo2ViEWiq3K/hjfl5OQ
github.com/KyberNetwork/int256 v0.1.4/go.mod h1:qE/Ikpo86fn60sIB7CwcfiqJTjK2p+k+ASvuO79Rq4g=
github.com/KyberNetwork/kyber-trace-go v0.1.1 h1:YgzZb7jSg0Rgj7zFv9zUnSlB13Iksv1eVO5MSWAvjmM=
github.com/KyberNetwork/kyber-trace-go v0.1.1/go.mod h1:X6hVacmKMeOEOlFh4TyfEHaEVRerFQ5YLuQ4keRV3hw=
github.com/KyberNetwork/kyberswap-dex-lib v0.80.8 h1:tH25QLTAHWmsvLGxUXenVUrh8DU32oxVzxWjpWqELC0=
github.com/KyberNetwork/kyberswap-dex-lib v0.80.8/go.mod h1:CGzUYsj6FtsVf9NoyLgKEZTWMPwZy4lWqIXVvgbh/Dc=
github.com/KyberNetwork/kyberswap-dex-lib v0.81.1 h1:8+pncEqqMrDTczc+4phJIQZscWymXrEAlvsrB2+9P3Q=
github.com/KyberNetwork/kyberswap-dex-lib v0.81.1/go.mod h1:CGzUYsj6FtsVf9NoyLgKEZTWMPwZy4lWqIXVvgbh/Dc=
github.com/KyberNetwork/logger v0.2.1 h1:ZkP/I7PN8Dx1lWRiEw8pfuhiG6BXTAfcuQTzU/3Z0DQ=
github.com/KyberNetwork/logger v0.2.1/go.mod h1:zBqHbtJ3nJn6HQnp6UW8pbQkR+U6tSRFd5CzfiKL3Kw=
github.com/KyberNetwork/pancake-v3-sdk v0.2.0 h1:dd5k2Z223kkzSky8SFgRy2/eQGp4bf586SS71XqqBlM=
Expand Down
5 changes: 4 additions & 1 deletion pkg/poolsimulators/poolsimulators.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package poolsimulators
import (
"errors"
"fmt"

Check failure on line 5 in pkg/poolsimulators/poolsimulators.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gofumpt`-ed (gofumpt)
etherfivampire "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/etherfi/vampire"

Check failure on line 6 in pkg/poolsimulators/poolsimulators.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
"math/big"

Check failure on line 7 in pkg/poolsimulators/poolsimulators.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gofumpt`-ed (gofumpt)

Check failure on line 8 in pkg/poolsimulators/poolsimulators.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `goimports`-ed (goimports)
ksent "github.com/KyberNetwork/kyberswap-dex-lib/pkg/entity"
Expand Down Expand Up @@ -305,7 +306,7 @@ func PoolSimulatorFromPool(pool ksent.Pool, chainID uint) (pkgpool.IPoolSimulato
case pooltypes.PoolTypes.SwaapV2:
pSim, err = swaapv2.NewPoolSimulator(pool)
case pooltypes.PoolTypes.EtherVista:
pSim, err = ethervista.NewPoolSimulator(pool)
pSim, err = ethervista.NewPoolSimulator(pool, valueobject.ChainID(chainID))
case pooltypes.PoolTypes.LitePSM:
pSim, err = litepsm.NewPoolSimulator(pool)
case pooltypes.PoolTypes.Integral:
Expand Down Expand Up @@ -372,6 +373,8 @@ func PoolSimulatorFromPool(pool ksent.Pool, chainID uint) (pkgpool.IPoolSimulato
pSim, err = sfrxeth.NewPoolSimulator(pool)
case pooltypes.PoolTypes.SfrxETHConvertor:
pSim, err = sfrxeth_convertor.NewPoolSimulator(pool)
case pooltypes.PoolTypes.EtherfiVampire:
pSim, err = etherfivampire.NewPoolSimulator(pool)
default:
err = fmt.Errorf("%w: %s %s", ErrPoolTypeNotSupported, pool.Type, pool.Address)
}
Expand Down

0 comments on commit 44c2f6e

Please sign in to comment.