Skip to content

Commit 279b982

Browse files
authored
feat: update abi and contract address in sdk (#881)
1 parent ab33ad7 commit 279b982

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sdk/src/gateway/layerzero.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
*/
5559
export const LAYERZERO_STRATEGY = '0x4572ce66cB33255B60a15e3c6cb2ef9c65A30ebC';
5660

5761
export 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

Comments
 (0)