Skip to content

Commit

Permalink
feat: deploy LiquidityToken in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Dec 14, 2023
1 parent 54112c8 commit c058454
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/Portfolio.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "./interfaces/IPortfolioRegistry.sol";
import "./interfaces/IStrategy.sol";
import "./PositionRenderer.sol";

import "./LiquidityToken.sol";

/**
* @title
* Portfolio
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c058454

Please sign in to comment.