The concept of risk sharing is central to Islamic banking and finance. At the same time, Islamic finance demands the avoidance of riba and gharar.