Skip to content

Commit

Permalink
Liquidity Pools: Fix allowance (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Dec 13, 2023
1 parent e32e7ef commit 4cc73e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ export function InvestRedeemLiquidityPoolsProvider({ poolId, trancheId, children
collect: doAction('collect', () =>
collectType === 'invest' ? [lpInvest?.lpAddress, lpInvest?.maxMint] : [lpInvest?.lpAddress, lpInvest?.maxWithdraw]
),
approvePoolCurrency: doAction('approvePoolCurrency', () => [lpInvest?.managerAddress, lpInvest?.currencyAddress]),
approveTrancheToken: doAction('approveTrancheToken', () => [lpInvest?.managerAddress, lpInvest?.lpAddress]),
approvePoolCurrency: doAction('approvePoolCurrency', () => [lpInvest?.lpAddress, lpInvest?.currencyAddress]),
approveTrancheToken: () => {},
cancelInvest: doAction('cancelInvest', () => [lpInvest?.lpAddress]),
cancelRedeem: doAction('cancelRedeem', () => [lpInvest?.lpAddress]),
}
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-js/src/modules/liquidityPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
},
{
target: currencyAddress,
call: ['function allowance(address, address) view returns (uint)', user, manager],
call: ['function allowance(address, address) view returns (uint)', user, lp],
returns: [['lpCurrencyAllowance', toCurrencyBalance(currency.currencyDecimals)]],
},
{
Expand Down

0 comments on commit 4cc73e1

Please sign in to comment.