curvecp endowment transaction mostly coded