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
6 changes: 3 additions & 3 deletions chains/evm/message/lifiEscrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ func (h *LifiEscrowMessageHandler) HandleMessage(m *message.Message) (*proposal.
return nil, err
}

unlockHash, err := borrowManyUnlockHash(
unlockHash, err := borrowUnlockHash(
calldata,
[]*big.Int{data.BorrowAmount},
[]common.Address{borrowToken},
data.BorrowAmount,
borrowToken,
new(big.Int).SetUint64(destChainID),
h.lifiAddresses[destChainID],
big.NewInt(order.Order.FillDeadline.Unix()).Uint64(),
Expand Down
2 changes: 2 additions & 0 deletions chains/evm/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func borrowUnlockHash(
return crypto.Keccak256(rawData), nil
}

/*
// borrowManyUnlockHash calculates the hash that has to be signed and submitted on-chain to the liquidity
// pool contract.
func borrowManyUnlockHash(
Expand Down Expand Up @@ -278,3 +279,4 @@ func borrowManyUnlockHash(
rawData := []byte(fmt.Sprintf("\x19\x01%s%s", string(domainSeparator), string(messageHash)))
return crypto.Keccak256(rawData), nil
}
*/
Loading