Pay as a % of a CommitCash Amount
Since @adatainment was so helpful in my last thread about Meadow. I thought I would continue with more of my noobish inquiries in this thread in case it’s helpful to others beginners beside just myself.
#1 I get the impression that more tiles will likely be added to the graphical side of Meadow in the future as more features are added to Marlowe and Meadow. I also notice how Meadow is tricking me into being exposed to tiny bits and pieces of Haskell that I otherwise wouldn’t encounter (I see what you’re doing there IOHK). A good example of this is the discussion on Haskell style comments in the Fay Editor (and use of the Fay Editor, generally) in my other thread. But, in the meantime, and short of a point in time in the future when I become more familiar with coding in Fay [here’s where I actually ask my question after much rambling]:
what would be the best way to create a payout in Meadow that is a fixed percentage of a cash commit (e.g. I want to pay 90% of a certain cash commit to one party and 10% of that cash commit to another)?
I see that there is a “greater than” tile and an addition tile. I also understand that I could possibly concoct a way to laboriously code my way through every reasonably possible integer with the “greater than” and addition tile to get to a certain %. But, I’m thinking there’s got to be an easier way to do simple math in Marlowe? Is there a math category of tiles that just hasn’t been added yet that I can access on the code editor side?
Again, thanks in advance for any help and apologies for these ultra noobish questions. I’m just eager to learn.