diff --git a/centrifuge-js/src/modules/liquidityPools.ts b/centrifuge-js/src/modules/liquidityPools.ts index 13b16d022d..f001c39059 100644 --- a/centrifuge-js/src/modules/liquidityPools.ts +++ b/centrifuge-js/src/modules/liquidityPools.ts @@ -140,7 +140,10 @@ export function getLiquidityPoolsModule(inst: Centrifuge) { const [lpAddress, order] = args const user = inst.getSignerAddress('evm') return pending( - contract(lpAddress, ABI.LiquidityPool).requestDeposit(order.toString(), user, { ...options, gasLimit: 300000 }) + contract(lpAddress, ABI.LiquidityPool).requestDeposit(order.toString(), user, user, '', { + ...options, + gasLimit: 300000, + }) ) } @@ -148,7 +151,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) { const [lpAddress, order] = args const user = inst.getSignerAddress('evm') return pending( - contract(lpAddress, ABI.LiquidityPool).requestRedeem(order.toString(), user, user, { + contract(lpAddress, ABI.LiquidityPool).requestRedeem(order.toString(), user, user, '', { ...options, gasLimit: 300000, }) @@ -162,7 +165,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) { const [lpAddress, order, { deadline, r, s, v }] = args const user = inst.getSignerAddress('evm') return pending( - contract(lpAddress, ABI.LiquidityPool).requestDepositWithPermit(order.toString(), user, deadline, v, r, s, { + contract(lpAddress, ABI.LiquidityPool).requestDepositWithPermit(order.toString(), user, '', deadline, v, r, s, { ...options, gasLimit: 300000, }) diff --git a/centrifuge-js/src/modules/liquidityPools/abi/LiquidityPool.abi.json b/centrifuge-js/src/modules/liquidityPools/abi/LiquidityPool.abi.json index a3e5f375f5..9c23cdd755 100644 --- a/centrifuge-js/src/modules/liquidityPools/abi/LiquidityPool.abi.json +++ b/centrifuge-js/src/modules/liquidityPools/abi/LiquidityPool.abi.json @@ -1,13 +1,13 @@ [ - "event DepositRequest(address indexed, address, uint256)", - "event RedeemRequest(address indexed, address, address, uint256)", + "event DepositRequest(address indexed, address indexed, uint256 indexed, address, uint256)", + "event RedeemRequest(address indexed, address indexed, uint256 indexed, address, uint256)", "event CancelDepositRequest(address indexed)", "event CancelRedeemRequest(address indexed)", "function mint(uint256, address) public returns (uint256)", "function withdraw(uint256, address, address) public returns (uint256)", - "function requestDeposit(uint256, address) public", - "function requestRedeem(uint256, address, address) public", - "function requestDepositWithPermit(uint256, address, uint256, uint8, bytes32, bytes32) public", + "function requestDeposit(uint256, address, address, bytes) public", + "function requestRedeem(uint256, address, address, bytes) public", + "function requestDepositWithPermit(uint256, address, bytes, uint256, uint8, bytes32, bytes32) public", "function cancelDepositRequest() public", "function cancelRedeemRequest() public" ]