The International Swaps and Derivatives Association (ISDA) discusses its efforts to turn ISDA agreements into smart contracts.  The key issue in implementing smart contracts revolves around operational clauses that are contextual and not easy to automate.