MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / showRestrictionTable

Function showRestrictionTable

CLI/commands/transfer_manager.js:1616–1629  ·  view source on GitHub ↗
(investorArray, amountArray, typeArray, rollingPeriodArray, startTimeArray, endTimeTimeArray)

Source from the content-addressed store, hash-verified

1614}
1615
1616function showRestrictionTable(investorArray, amountArray, typeArray, rollingPeriodArray, startTimeArray, endTimeTimeArray) {
1617 let dataTable = [['Investor', 'Maximum transfer (# or %)', 'Rolling period (days)', 'Start date', 'End date']];
1618 for (let i = 0; i < investorArray.length; i++) {
1619 dataTable.push([
1620 investorArray[i],
1621 typeArray[i] === "0" ? `${web3.utils.fromWei(amountArray[i])} ${tokenSymbol}` : `${fromWeiPercentage(amountArray[i])}%`,
1622 rollingPeriodArray[i],
1623 moment.unix(startTimeArray[i]).format('MM/DD/YYYY HH:mm'),
1624 moment.unix(endTimeTimeArray[i]).format('MM/DD/YYYY HH:mm')
1625 ]);
1626 }
1627 console.log();
1628 console.log(table(dataTable));
1629}
1630
1631function showExemptedAddresses(addresses) {
1632 console.log("*********** Exepmpted addresses ***********");

Callers 1

volumeRestrictionTMFunction · 0.85

Calls 1

fromWeiPercentageFunction · 0.85

Tested by

no test coverage detected