So maybe the thing to invent is banking?
Likewise an interest free loan would be permissible, though there wouldn't be great incentives to offer them except to family members, for example.
(It works up to a point, but it's hard to scale. You can emulate a loan contract between two parties, but you can't have a bond market because the "loans" aren't tradeable)