The Comptroller is the risk management layer of the DANK protocol; it determines how much collateral a user is required to maintain, and whether (and by how much) a user can be liquidated. Each time a user interacts with a dToken, the Comptroller is asked to approve or deny the transaction.