Skip to content

Commit

Permalink
chore add comment
Browse files Browse the repository at this point in the history
lint fix

feat: add etherfivampire
  • Loading branch information
datluongductuan committed Dec 2, 2024
1 parent 60071aa commit 93737cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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
7 changes: 5 additions & 2 deletions pkg/poolsimulators/poolsimulators.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/ethena/susde"
ethervista "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/ether-vista"
etherfieeth "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/etherfi/eeth"
etherfivampire "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/etherfi/vampire"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/etherfi/weeth"
dexT1 "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/fluid/dex-t1"
vaultT1 "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/fluid/vault-t1"
Expand Down Expand Up @@ -130,7 +131,7 @@ import (

var ErrPoolTypeNotSupported = errors.New("pool type is not supported")

// PoolSimulatorFromPool
// PoolSimulatorFromPool init pool sim
// nolint: funlen, gocyclo, cyclop, maintidx
func PoolSimulatorFromPool(pool ksent.Pool, chainID uint) (pkgpool.IPoolSimulator, error) {
var (
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 93737cd

Please sign in to comment.