Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
solverConfig "github.com/sprintertech/solver-config/go/config"
sdkConfig "github.com/sprintertech/solver-sdk/pkg/config"
"github.com/sprintertech/solver-sdk/pkg/pricing"
"github.com/sprintertech/solver-sdk/pkg/protocols"
"github.com/sprintertech/solver-sdk/pkg/protocols/erc4626"
Expand All @@ -44,7 +45,6 @@ import (
"github.com/sprintertech/sprinter-signing/metrics"
"github.com/sprintertech/sprinter-signing/price"

lifiConfig "github.com/sprintertech/solver-sdk/pkg/config"
"github.com/sprintertech/sprinter-signing/chains/lighter"
lighterMessage "github.com/sprintertech/sprinter-signing/chains/lighter/message"
"github.com/sprintertech/sprinter-signing/comm"
Expand Down Expand Up @@ -175,7 +175,8 @@ func Run() error {
}

usdPricer := pyth.NewClient(ctx)
err = usdPricer.Start(ctx)
err = usdPricer.Start(ctx, sdkConfig.SupportedTokens(solverConfig))
panicOnError(err)
multiPricer := aggregator.New(usdPricer)
resolver := token.NewTokenResolver(solverConfig, multiPricer)
priceAPI := price.NewPricerProxy(multiPricer)
Expand Down Expand Up @@ -304,7 +305,7 @@ func Run() error {
}
resolver = token.NewTokenResolver(solverConfig, multiPricer)

lifiConfig, err := lifiConfig.GetSolverConfig(solverConfig, protocols.LifiEscrow, lifiConfig.PulsarSolver)
lifiConfig, err := sdkConfig.GetSolverConfig(solverConfig, protocols.LifiEscrow, sdkConfig.PulsarSolver)
panicOnError(err)

orderPricer := pricing.NewStandardPricer(resolver)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ require (
github.com/rs/zerolog v1.25.0
github.com/spf13/cobra v1.10.2
github.com/spf13/viper v1.9.0
github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6
github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958
github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4
github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6
github.com/stretchr/testify v1.11.1
github.com/sygmaprotocol/sygma-core v0.0.0-20250304150334-bd39ac4f7b82
go.opentelemetry.io/otel v1.39.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1715,8 +1715,12 @@ github.com/spf13/viper v1.9.0 h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk=
github.com/spf13/viper v1.9.0/go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4=
github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6 h1:SiLvJC8vyMNWbQgqGdd7Z5WP2Jg7XFShXN130ryqCgM=
github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ=
github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4 h1:ouDxcEePolYizXXKjeB61jawFmDJrBeJg7l4MSnQeck=
github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ=
github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958 h1:++m9ZfqDmqx2ieyP76h/snKFRVhl2TUPJ7qavLz1JiU=
github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958/go.mod h1:6euNIW0DgGI/RfIvpZJgnvoVcd1PmzE1T20C0dXnyrc=
github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6 h1:0bfmInjG3+ak7E65LVBVOQxArztBSZw49iNY9dpfS8I=
github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6/go.mod h1:A9fQAvneC86+z0ib2cb+yTOV84olOqcBZxomj1pe3bc=
github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
Loading