@@ -51,7 +51,11 @@ bitcoin.initEccLib(ecc);
5151/**
5252 * L0 recipient that forwards messages to create offramp orders on-chain.
5353 */
54- export const OFFRAMP_COMPOSER = '0xaffBF9ECC4a23adfFe887FB859654B8B780CCed0' ;
54+ export const OFFRAMP_COMPOSER = '0x7E6E65FaeB4ef08557928F78d71fa089a409299F' ;
55+
56+ /**
57+ * Strategy contract that handles layerzero cross chain swaps after the onramp is completed
58+ */
5559export const LAYERZERO_STRATEGY = '0x4572ce66cB33255B60a15e3c6cb2ef9c65A30ebC' ;
5660
5761export class LayerZeroClient {
@@ -610,12 +614,14 @@ export class LayerZeroGatewayClient extends GatewayApiClient {
610614 extraOptions : extraOptions ,
611615 composeMsg : encodeAbiParameters (
612616 parseAbiParameters ( [
613- '(uint256 satAmountToLock, uint256 satFeesMax , uint256 creationDeadline, bytes outputScript, address token, address owner)' ,
617+ '(uint256 satAmountToLock, uint256 satSolverFeeMax, uint256 satAffiliateFee, address affiliateFeeRecipient , uint256 creationDeadline, bytes outputScript, address token, address owner)' ,
614618 ] ) ,
615619 [
616620 {
617621 satAmountToLock : BigInt ( data . amountLockInSat ) ,
618- satFeesMax : BigInt ( data . feeBreakdown . overallFeeSats ) ,
622+ satSolverFeeMax : BigInt ( data . feeBreakdown . overallFeeSats ) ,
623+ satAffiliateFee : BigInt ( data . feeBreakdown . affiliateFeeSats ) ,
624+ affiliateFeeRecipient : data . affiliateFeeRecipient as Address ,
619625 creationDeadline : BigInt ( data . deadline ) ,
620626 outputScript : receiverAddress as Hex ,
621627 token : data . token ,
0 commit comments