A collateralized debt position is held by locking collateral in smart contracts to generate stablecoins.