WildcatArchController.sol
The WildcatArchcontroller
is the contract that determines which addresses are capable of deploying controllers (and thereafter markets through these controllers).
Controllers must be deployed through a controller factory, which must be registered with the archcontroller.
The addresses of all deployed controllers, factories and markets are logged by the archcontroller in its capacity as a registry: these are used for access control.
registerBorrower
Permits a borrower address
to deploy controllers and markets.
Reverts if:
Not called by the owner of the archcontroller.
Events:
BorrowerAdded
removeBorrower
Prevents a borrower address
from deploying any further controllers or markets.
Reverts if:
Not called by the owner of the archcontroller.
Events:
BorrowerRemoved
isRegisteredBorrower
Boolean lookup for whether an address is currently a registered borrower.
getRegisteredBorrowers
Returns either the entire array of currently registered borrower addresses, or a slice of the array given start and end indices.
registerControllerFactory
Registers a new market controller factory smart contract, allowing borrowers to deploy new controllers and markets through it.
Reverts if:
The controller factory has already been registered.
Events:
ControllerFactoryAdded
removeControllerFactory
Removes a market controller factory, preventing borrowers from deploying any further controllers and markets through it.
Reverts if:
The controller factory address does not exist or has been removed.
Events:
ControllerFactoryRemoved
isRegisteredControllerFactory
getRegisteredControllerFactories
getRegisteredControllerFactoriesCount
registerController
removeController
isRegisteredController
getRegisteredControllers
getRegisteredControllersCount
registerMarket
removeMarket
isRegisteredMarket
getRegisteredMarkets
getRegisteredMarketsCount
Last updated