Docs
Search…
WELCOME

Introduction

These docs are a comprehensive guide to the Dank protocol, based on the Dank Whitepaper (JUNE 2021). The protocol codebase is hosted on Github, and maintained by the community.
Please join the #development room in the Dank community Discord or Dank community server in Telegram! The Dank team and members of the community are looking forward to helping you understand and use Dank.

Networks

The DANK Protocol is currently deployed on the following networks: Kovan
Contract
Address
dBUSD
0x9dDD91422D1684A7f99E8B22Ae2bBaEE2127350B
dCOMP
0x842C8058f165ef58DD788aA4352149c9ea0B9fC2
dDAI
0x2Eea7d03d608a01D7B50253ad621e309463f2CB5
dFEI
0x196b30674BCa74666f935Ec1Ba0FfB06A2856F14
dLINK
0x7D2939f3dE577e1eDcb4aA287E91fcba24E326EC
dUSDT
0x63f05EB06aD01851E1B0a7F707804Cf865F75539
dUNI
0xDB305eAB698c6a85FB54bd0D4aA3FaC5b1DEc33D
dUSDC
0xa0d371B598D2b90fB1Ba5060Fa59ce20D2f06501
dWBTC
0x3371CbfB11fE7DfB00599E4907d66db1F0812D0D
dDANK
0x6d520749f7451a467fE7318B9387210d51580620
dETH
0xf83a31d89c02Acc2A331F9f01812Efe451648520

Protocol Math

The DANK protocol contracts use a system of exponential math, Exponential.sol, in order to represent fractional quantities with sufficient precision. Most numbers are represented as a mantissa, an unsigned integer scaled by 1 * 10 ^ 18, in order to perform basic math at a high level of precision.

dToken and Underlying Decimals

Prices and exchange rates are scaled by the decimals unique to each asset; dTokens are ERC-20 tokens with 8 decimals, while their underlying tokens vary, and have a public member named decimals.
dToken
dToken Decimals
Underlying
Underlying Decimals
dETH
8
ETH
18
dDAI
8
DAI
18
dUSDT
8
USDT
18
dUSDC
8
USDC
18
dBUSD
8
BUSD
18
dWBTC
8
WBTC
18
dCOMP
8
COMP
6
dLINK
8
LINK
6
dUNI
8
UNI
8
dFEI
8
FEI
18
Last modified 2mo ago