Skip to content

Commit

Permalink
Check transfer restriction on request redeem
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Oct 24, 2023
1 parent 899a304 commit e25c5c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/InvestmentManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ contract InvestmentManager is Auth {
"InvestmentManager/currency-not-allowed"
);

require(
_checkTransferRestriction(
liquidityPool, address(0), user, convertToAssets(liquidityPool, trancheTokenAmount)
),
"InvestmentManager/transfer-not-allowed"
);

return _processRedeemRequest(liquidityPool, _trancheTokenAmount, user);
}

Expand Down

0 comments on commit e25c5c1

Please sign in to comment.