This article examines the optimality problem in existing "planted-shared" agricultural contracts. We define the optimality properties of a long-term contract when there is no agricultural credit market. We use a dynamic principal-agent model with bilateral engagement. This optimal long-term contract highlights two characteristics: first, the agent's remuneration depends on his productive performance; second, the martingale property of the production sharing index highlights his intertemporal smoothing.