Each asset supported by the DANK Protocol is integrated through a dToken contract, which is an EIP-20 compliant representation of balances supplied to the protocol. By minting dTokens, users (1) earn interest through the dToken's exchange rate, which increases in value relative to the underlying asset, and (2) gain the ability to use dTokens as collateral.
dTokens are the primary means of interacting with the DANK Protocol; when a user mints, redeems, borrows, repays a borrow, liquidates a borrow, or transfers dTokens, she will do so using the dToken contract.
There are currently two types of dTokens: DErc20 and DEther. Though both types expose the EIP-20 interface, DErc20 wraps an underlying ERC-20 asset, while DEther simply wraps Ether itself. As such, the core functions which involve transferring an asset into the protocol have slightly different interfaces depending on the type, each of which is shown below.