Skip to content

Commit 387ded4

Browse files
authored
fix: switch borrowMany to borrow (#84)
* fix: switch borrowMany to borrow * Comment out unused borrowMany unlock
1 parent e1cf98f commit 387ded4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

chains/evm/message/lifiEscrow.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ func (h *LifiEscrowMessageHandler) HandleMessage(m *message.Message) (*proposal.
132132
return nil, err
133133
}
134134

135-
unlockHash, err := borrowManyUnlockHash(
135+
unlockHash, err := borrowUnlockHash(
136136
calldata,
137-
[]*big.Int{data.BorrowAmount},
138-
[]common.Address{borrowToken},
137+
data.BorrowAmount,
138+
borrowToken,
139139
new(big.Int).SetUint64(destChainID),
140140
h.lifiAddresses[destChainID],
141141
big.NewInt(order.Order.FillDeadline.Unix()).Uint64(),

chains/evm/message/message.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func borrowUnlockHash(
208208
return crypto.Keccak256(rawData), nil
209209
}
210210

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

0 commit comments

Comments
 (0)