Skip to content

Commit 3fd08f2

Browse files
authored
chore: log lifi unlock hash (#85)
1 parent 387ded4 commit 3fd08f2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

chains/evm/message/lifiEscrow.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package message
22

33
import (
44
"context"
5+
"encoding/hex"
56
"encoding/json"
67
"fmt"
78
"math/big"
@@ -132,6 +133,23 @@ func (h *LifiEscrowMessageHandler) HandleMessage(m *message.Message) (*proposal.
132133
return nil, err
133134
}
134135

136+
log.Debug().Msgf(`
137+
Siging lifi unlock hash.
138+
Calldata: %s
139+
Amount: %s
140+
Borrow token: %s,
141+
Target: %s
142+
Nonce: %s
143+
Filldeadline: %d
144+
`,
145+
hex.EncodeToString(calldata),
146+
data.BorrowAmount,
147+
borrowToken.Hex(),
148+
h.lifiAddresses[destChainID].Hex(),
149+
data.Nonce,
150+
big.NewInt(order.Order.FillDeadline.Unix()).Uint64(),
151+
)
152+
135153
unlockHash, err := borrowUnlockHash(
136154
calldata,
137155
data.BorrowAmount,

0 commit comments

Comments
 (0)