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
2 changes: 1 addition & 1 deletion chains/evm/calls/consts/lifi.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var LifiABI, _ = abi.JSON(strings.NewReader(`[{
{"name": "token", "type": "bytes32"},
{"name": "amount", "type": "uint256"},
{"name": "recipient", "type": "bytes32"},
{"name": "call", "type": "bytes"},
{"name": "callbackData", "type": "bytes"},
{"name": "context", "type": "bytes"}
]
},
Expand Down
34 changes: 17 additions & 17 deletions chains/evm/message/lifiEscrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,19 @@ func (h *LifiEscrowMessageHandler) borrowToken(order *lifi.LifiOrder) (common.Ad

func (h *LifiEscrowMessageHandler) calldata(order *lifi.LifiOrder) ([]byte, error) {
type output struct {
Oracle common.Hash
Settler common.Hash
Recipient common.Hash
ChainId *big.Int
Token common.Hash
Amount *big.Int
Call []byte
Context []byte
Oracle common.Hash
Settler common.Hash
Recipient common.Hash
ChainId *big.Int
Token common.Hash
Amount *big.Int
CallbackData []byte
Context []byte
}
outputs := make([]output, len(order.Order.Outputs))
for i, o := range order.Order.Outputs {
chainID := new(big.Int).SetUint64(o.ChainID)
call, err := hexutil.Decode(o.Call)
callbackData, err := hexutil.Decode(o.CallbackData)
if err != nil {
return nil, err
}
Expand All @@ -228,14 +228,14 @@ func (h *LifiEscrowMessageHandler) calldata(order *lifi.LifiOrder) ([]byte, erro
return nil, err
}
outputs[i] = output{
Oracle: *o.Oracle,
Settler: *o.Settler,
ChainId: chainID,
Amount: o.Amount.Int,
Recipient: *o.Recipient,
Call: call,
Context: context,
Token: *o.Token,
Oracle: *o.Oracle,
Settler: *o.Settler,
ChainId: chainID,
Amount: o.Amount.Int,
Recipient: *o.Recipient,
CallbackData: callbackData,
Context: context,
Token: *o.Token,
}
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/rs/zerolog v1.25.0
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.9.0
github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc
github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82
github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9
github.com/stretchr/testify v1.10.0
github.com/sygmaprotocol/sygma-core v0.0.0-20250304150334-bd39ac4f7b82
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ github.com/sprintertech/lifi-solver v0.0.0-20251106144931-4586926e1a4c h1:gt7WBO
github.com/sprintertech/lifi-solver v0.0.0-20251106144931-4586926e1a4c/go.mod h1:3yuTgBKvA5WLCFsXXuBnOzk5nNS58phc881uXLGfD0o=
github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc h1:h/DY03o7cOez2Ilrwt9TO9BKWIYrAo3o/KvhvEwkziQ=
github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc/go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng=
github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82 h1:Nq9wH4wU4W+3UXfeTqGwMBxr+yKDkz0wO6XzpSRkamg=
github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82/go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng=
github.com/sprintertech/solver-config/go v0.0.0-20251027142430-7f32bdd5da1e h1:5sSP6GbqCT/ApxxZmUtav6GHy5Ke98zh5oqQxewhJd4=
github.com/sprintertech/solver-config/go v0.0.0-20251027142430-7f32bdd5da1e/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ=
github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9 h1:oo4/4LvkYMVVl/u9+iqEY91iCDFJ05pGwUJNX+6APnA=
Expand Down
Loading