Description
Develop the PoolFactory smart contract that will be responsible for creating and managing lending pool deployments using upgradeable proxy patterns.
Acceptance Criteria
Technical Requirements
- Use OpenZeppelin upgradeable contracts
- Implement proper initialization patterns
- Include comprehensive error handling with custom errors
- Follow security best practices (reentrancy guards, etc.)
- Support for ERC20 token pools and native POL pools
Smart Contract Functions
- createPool(poolParams) - Creates new lending pool
- getPoolAddress(poolId) - Returns deployed pool address
- getPoolCount() - Returns total number of pools
- transferOwnership() - For multi-sig transfer
Definition of Done
- PoolFactory contract is fully implemented and tested
- Unit test coverage > 90%
- Gas usage optimized
- Security audit checklist completed
- Contract compiles without warnings
Description
Develop the PoolFactory smart contract that will be responsible for creating and managing lending pool deployments using upgradeable proxy patterns.
Acceptance Criteria
Technical Requirements
Smart Contract Functions
Definition of Done