This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Collects inputs in percentages, for example: COOP(30, 20, 10, 15, 25) means 30%, 20%, 10%, 15%, and 25% respectively. | |
* | |
*/ | |
function COOP (loan, convertibleNote, grants, equity, sharedProfits, baseAmount = 5000) { | |
const args = [ ...arguments ]; | |
if(args.length < 5) throw new Error("Must provide percentages for all sub-wallets"); | |
if(baseAmount !== 5000) { | |
throw new Error("Invalid Base Amount. Ensure it is 5000."); |