There’s a problem question and a drafting question, the problem refers to the extract attached. For the drafting part, I think it is best to use the ISDA master agreement (derivative guide line) : https://www.isda.org/a/23iME/Legal-Guidelines-for-Smart-Derivatives-Contracts-ISDA-Master-Agreement.pdf