2025-12-18 13:07:35 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
|
|
import "@openzeppelin/contracts/access/Ownable.sol";
|
|
|
|
|
import "./Lending.sol";
|
|
|
|
|
import "./LendingConfiguration.sol";
|
|
|
|
|
|
|
|
|
|
contract LendingFactory is LendingConfiguration, Ownable {
|
|
|
|
|
|
|
|
|
|
constructor() Ownable(msg.sender) {}
|
|
|
|
|
|
|
|
|
|
event LendingDeployed(address indexed lending);
|
|
|
|
|
|
|
|
|
|
function deploy() external onlyOwner returns (address) {
|
|
|
|
|
Lending lending = new Lending();
|
|
|
|
|
emit LendingDeployed(address(lending));
|
|
|
|
|
return address(lending);
|
|
|
|
|
}
|
2025-12-26 13:38:10 +08:00
|
|
|
}
|