()
| 205 | } |
| 206 | |
| 207 | async 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 | |
| 223 | async function setDefaultExclusions() { |
| 224 | console.log(chalk.yellow(`Excluded addresses will be loaded from 'exclusions_data.csv'. Please check your data before continue.`)); |
no test coverage detected