Skip to content

Commit

Permalink
Update LP calls (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx authored Dec 20, 2023
1 parent a0e462f commit f86f164
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions centrifuge-js/src/modules/liquidityPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,18 @@ 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,
})
)
}

function increaseRedeemOrder(args: [lpAddress: string, order: BN], options: TransactionRequest = {}) {
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,
})
Expand All @@ -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,
})
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
]

0 comments on commit f86f164

Please sign in to comment.