WildcatMarketControllerFactory.sol
A WildcatMarketControllerFactory deploys controllers and manages protocol fee information.
archController
IWildcatArchController public immutable archController;sentinel
address public immutable sentinel;Address with blacklist control, used for blocking sanctioned addresses.
marketInitCodeStorage
address public immutable marketInitCodeStorage;marketInitCodeHash
uint256 public immutable marketInitCodeHash;controllerInitCodeStorage
address public immutable controllerInitCodeStorage;isDeployedController
function isDeployedController(address controller)
external view returns (bool);getDeployedControllersCount
function getDeployedControllersCount()
external view returns (uint256);getDeployedControllers
function getDeployedControllers()
external view returns (address[] memory);
function getDeployedControllers(
uint256 start,
uint256 end
) external view returns (address[] memory arr);getProtocolFeeConfiguration
function getProtocolFeeConfiguration()
external
view
returns (
address feeRecipient,
address originationFeeAsset,
uint80 originationFeeAmount,
uint16 protocolFeeBips
);setProtocolFeeConfiguration
function setProtocolFeeConfiguration(
address feeRecipient,
address originationFeeAsset,
uint80 originationFeeAmount,
uint16 protocolFeeBips
) external onlyArchControllerOwner;getParameterConstraints
function getParameterConstraints()
external view
returns (MarketParameterConstraints memory constraints);getMarketControllerParameters
function getMarketControllerParameters()
external view virtual
returns (MarketControllerParameters memory parameters);deployController
function deployController()
public returns (address controller);deployControllerAndMarket
function deployControllerAndMarket(
string memory namePrefix,
string memory symbolPrefix,
address asset,
uint128 maxTotalSupply,
uint16 annualInterestBips,
uint16 delinquencyFeeBips,
uint32 withdrawalBatchDuration,
uint16 reserveRatioBips,
uint32 delinquencyGracePeriod
) external returns (address controller, address market);computeControllerAddress
function computeControllerAddress(address borrower)
external view returns (address);Last updated