Use UML package for TikZ diagrams
Added package pgf-umlsd which is used to create UML diagrams.
\usepackage[colorlinks=true]{hyperref}
\usepackage{varwidth}
\usepackage{rotating}
+\usepackage{pgf-umlsd}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows.meta}
@@ -83,8 +84,6 @@ what is going on within these states or decisions.
\caption{\label{fig:deposit-initiation}Deposit initiation.}
\end{figure}
-
-
\clearpage
\begin{figure}
