IAPP and type 2 diabetes mellitus: However, in conditions like T2D, amylin can misfold and aggregate, leading to the formation of amyloid deposits (islet amyloid peptide—IAPP) within the pancreas.