```\nif (amountOwed != 0) {\n return fail(Error.NONZERO\_BORROW\_BALANCE, FailureInfo.EXIT\_MARKET\_BALANCE\_OWED);\n}\n\n/\* Fail if the sender is not permitted to redeem all of their tokens \*/\nuint allowed = redeemAllowedInternal(cTokenAddress, msg.sender, tokensHeld);\nif (allowed != 0) {\n return failOpaque(Error.REJECTION, FailureInfo.EXIT\_MARKET\_REJECTION, allowed);\n}\n```\n