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

Function exploreCheckpoint

CLI/commands/dividends_manager.js:207–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207async function exploreCheckpoint() {
208 let checkpoint = await selectCheckpoint(false);
209
210 let checkpointData = await currentDividendsModule.methods.getCheckpointData(checkpoint).call();
211 let dataTable = [['Investor', `Balance at checkpoint (${tokenSymbol})`, 'Tax withholding set (%)']];
212 for (let i = 0; i < checkpointData.investors.length; i++) {
213 dataTable.push([
214 checkpointData.investors[i],
215 web3.utils.fromWei(checkpointData.balances[i]),
216 parseFloat(web3.utils.fromWei(checkpointData.withholdings[i])) * 100
217 ]);
218 }
219 console.log();
220 console.log(table(dataTable));
221}
222
223async function setDefaultExclusions() {
224 console.log(chalk.yellow(`Excluded addresses will be loaded from 'exclusions_data.csv'. Please check your data before continue.`));

Callers 1

dividendsManagerFunction · 0.85

Calls 1

selectCheckpointFunction · 0.85

Tested by

no test coverage detected