More code fixes for CurveCP endow tansactions