A WildcatMarketController
contract deploys markets and manages their configurable parameters (APR, reserve ratio) and maintains set of approved lenders.
archController
Copy IWildcatArchController public immutable archController;
controllerFactory
Copy IWildcatMarketControllerFactory public immutable controllerFactory;
borrower
Copy address public immutable borrower;
sentinel
Copy address public immutable sentinel;
marketInitCodeStorage
Copy address public immutable marketInitCodeStorage;
marketInitCodeHash
Copy uint256 public immutable marketInitCodeHash;
temporaryExcessReserveRatio
Copy mapping ( address => TemporaryReserveRatio) public temporaryExcessReserveRatio;
getAuthorizedLenders
Copy function getAuthorizedLenders ()
external view returns ( address [] memory );
function getAuthorizedLenders (
uint256 start ,
uint256 end
) external view returns ( address [] memory arr);
getAuthorizedLendersCount
Copy function getAuthorizedLendersCount ()
external view returns ( uint256 );
isAuthorizedLender
Copy function isAuthorizedLender ( address lender)
external view virtual returns ( bool );
authorizeLenders
Copy function authorizeLenders ( address [] memory lenders)
external onlyBorrower ;
deauthorizeLenders
Copy function deauthorizeLenders ( address [] memory lenders)
external onlyBorrower ;
updateLenderAuthorization
Copy function updateLenderAuthorization ( address lender , address [] memory markets)
external ;
isControlledMarket
Copy function isControlledMarket ( address market)
external view returns ( bool );
getControlledMarkets
Copy function getControlledMarkets ()
external view returns ( address [] memory );
function getControlledMarkets (
uint256 start ,
uint256 end
) external view returns ( address [] memory arr);
getControlledMarketsCount
Copy function getControlledMarketsCount ()
external view returns ( uint256 );
computeMarketAddress
Copy function computeMarketAddress (
address asset ,
string memory namePrefix ,
string memory symbolPrefix
) external view returns ( address );
getMarketParameters
Copy function getMarketParameters ()
external view returns ( MarketParameters memory parameters);
deployMarket
Copy function deployMarket (
address asset ,
string memory namePrefix ,
string memory symbolPrefix ,
uint128 maxTotalSupply ,
uint16 annualInterestBips ,
uint16 delinquencyFeeBips ,
uint32 withdrawalBatchDuration ,
uint16 reserveRatioBips ,
uint32 delinquencyGracePeriod
) external returns ( address market);
getParameterConstraints
Copy function getParameterConstraints ()
external view returns ( MarketParameterConstraints memory constraints);
setAnnualInterestBips
Copy function setAnnualInterestBips (
address market ,
uint16 annualInterestBips
) external virtual onlyBorrower onlyControlledMarket ( market );
resetReserveRatio
Copy function resetReserveRatio ( address market)
external virtual ;