From c058454a361ec3027cd9bd6f110ead02d0d3dca1 Mon Sep 17 00:00:00 2001 From: clemlak Date: Thu, 14 Dec 2023 18:46:45 +0400 Subject: [PATCH] feat: deploy LiquidityToken in constructor --- contracts/Portfolio.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contracts/Portfolio.sol b/contracts/Portfolio.sol index 850bf0a7..02cb5590 100644 --- a/contracts/Portfolio.sol +++ b/contracts/Portfolio.sol @@ -9,6 +9,8 @@ import "./interfaces/IPortfolioRegistry.sol"; import "./interfaces/IStrategy.sol"; import "./PositionRenderer.sol"; +import "./LiquidityToken.sol"; + /** * @title * Portfolio @@ -82,6 +84,8 @@ contract Portfolio is ERC1155, IPortfolio { /// @inheritdoc IPortfolioState uint256 public protocolFee; + address public immutable ERC20_PROXY_IMPLEMENTATION; + /** * @notice * Credit and debits that are cleared during settlement. @@ -204,6 +208,8 @@ contract Portfolio is ERC1155, IPortfolio { REGISTRY = registry; POSITION_RENDERER = positionRenderer; __account__.settled = true; + ERC20_PROXY_IMPLEMENTATION = + address(new LiquidityToken("PROXY_IMPLEMENTATION", "PROXY")); } receive() external payable {