Bug fix: When creating a new deposit the deposit type should be
determined from the deposit duration and not by passed parameter