File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,6 @@ func Run() error {
119119 }
120120 blockstore := store .NewBlockStore (db )
121121 keyshareStore := keyshare .NewECDSAKeyshareStore (configuration .RelayerConfig .MpcConfig .KeysharePath )
122- keyshare , err := keyshareStore .GetKeyshare ()
123- panicOnError (err )
124122
125123 mp , err := observability .InitMetricProvider (context .Background (), configuration .RelayerConfig .OpenTelemetryCollectorURL )
126124 panicOnError (err )
@@ -163,6 +161,14 @@ func Run() error {
163161 solverConfig , err := solverConfig .FetchSolverConfig (ctx , solverConfigOpts ... )
164162 panicOnError (err )
165163
164+ keyshare , err := keyshareStore .GetKeyshare ()
165+ var mpcAddress common.Address
166+ if err != nil {
167+ mpcAddress = ethereumCrypto .PubkeyToAddress (* keyshare .Key .ECDSAPub .ToBtcecPubKey ().ToECDSA ())
168+ } else {
169+ mpcAddress = common .HexToAddress (solverConfig .ProtocolsMetadata .Sprinter .MpcAddress )
170+ }
171+
166172 var hubPoolContract across.TokenMatcher
167173 acrossPools := make (map [uint64 ]common.Address )
168174 mayanPools := make (map [uint64 ]common.Address )
@@ -303,7 +309,7 @@ func Run() error {
303309
304310 lifiMh := evmMessage .NewLifiEscrowMessageHandler (
305311 * c .GeneralChainConfig .Id ,
306- ethereumCrypto . PubkeyToAddress ( * keyshare . Key . ECDSAPub . ToBtcecPubKey (). ToECDSA ()) ,
312+ mpcAddress ,
307313 lifiOutputSettlers ,
308314 coordinator ,
309315 host ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ require (
2121 github.com/spf13/cobra v1.8.1
2222 github.com/spf13/viper v1.9.0
2323 github.com/sprintertech/lifi-solver v1.0.5
24- github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9
24+ github.com/sprintertech/solver-config/go v0.0.0-20251113121131-2347b1712859
2525 github.com/stretchr/testify v1.10.0
2626 github.com/sygmaprotocol/sygma-core v0.0.0-20250304150334-bd39ac4f7b82
2727 go.opentelemetry.io/otel v1.16.0
Original file line number Diff line number Diff line change @@ -950,14 +950,10 @@ github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
950950github.com/spf13/pflag v1.0.6 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
951951github.com/spf13/viper v1.9.0 h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk =
952952github.com/spf13/viper v1.9.0 /go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4 =
953- github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82 h1:Nq9wH4wU4W+3UXfeTqGwMBxr+yKDkz0wO6XzpSRkamg =
954- github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82 /go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng =
955- github.com/sprintertech/lifi-solver v0.0.0-20251111111837-7cc93b43397c h1:MGoXgZ0yNYSWanDSZAGiluR9OOZxrLb/FyPlkT3EvNM =
956- github.com/sprintertech/lifi-solver v0.0.0-20251111111837-7cc93b43397c /go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng =
957953github.com/sprintertech/lifi-solver v1.0.5 h1:Qc4E/q8/xfXV8MZPcHIv48tEJBGt23P9pqRy4a2KGMg =
958954github.com/sprintertech/lifi-solver v1.0.5 /go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng =
959- github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9 h1:oo4/4LvkYMVVl/u9+iqEY91iCDFJ05pGwUJNX+6APnA =
960- github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9 /go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ =
955+ github.com/sprintertech/solver-config/go v0.0.0-20251113121131-2347b1712859 h1:PKQlVVUTPih7WqorHHYzJHON3LlaqAQ4S7fLuioxTgc =
956+ github.com/sprintertech/solver-config/go v0.0.0-20251113121131-2347b1712859 /go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ =
961957github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4 /go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q =
962958github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
963959github.com/stretchr/objx v0.1.1 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
You can’t perform that action at this time.
0 commit comments