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

Function add

CLI/commands/dividends_manager.js:255–259  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

253
254 // function for adding two numbers. Easy!
255 const add = (a, b) => {
256 const bnA = new web3.utils.BN(a);
257 const bnB = new web3.utils.BN(b);
258 return bnA.add(bnB).toString();
259 };
260 // use reduce to sum our array
261 let taxesToWithHeld = withheldArray.reduce(add, 0);
262 let claimedInvestors = claimedArray.filter(c => c).length;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected