The optimal outcome is to be just below (upward exercise) or above (downward exercise) the Strike Price, so that the product is not exercised, and you get your deposit + yield in the Deposit Currency. Note that in the case of execution, you still get yield.