I propose a theoretical model of a debt contract between a sovereign and its international lenders that determines the optimal debt maturity structure and related costs. It is shaped by two financial frictions: limited liability (the country cannot guarantee that it will not dilute its...