fix api endpoint for lending