Modules

dToken's core modules of smart contracts.

dToken

The dToken core contract facilitates Mint/Redeem function, standard ERC20 interface, and governance interface, and adjusts the proportion of tokens allocated to each lending market for optimum yield and liquidity.

Dispatcher

Attends to manage the Handler, Mint/Redeem strategy interfaces. In principle, dTokens with the same strategies can use the same Dispatcher. In practice, however, each dToken has an independent Dispatcher.

dToken Controller

Provide mappings of dToken and underlying token, all dTokens and Handlers share the same dToken Controller contract.

Handler

Provide a unified interface to facilitate the wrapping of lending markets, i.e. deposit/withdraw, and query interfaces, etc. Internal Handler is the default Handler of dToken and cannot be removed. The Handler of Lending Market can support multiple dTokens simultaneously.

Last updated