I have recently been approached by one of my clients who wants to use smart contract to calculate revenue share with their vendors. There are legal contracts between the client and the vendor (basically client rents out spaces in their malls). Now, the revenue share model might differ from one vendor to another. So the condition will be different.
I need to write one modular smart contract which will serve all the purposes. Kindly suggest.