(from, type)
| 973 | // HELPER FUNCTIONS // |
| 974 | ////////////////////// |
| 975 | async function getBalance(from, type) { |
| 976 | switch (type) { |
| 977 | case gbl.constants.FUND_RAISE_TYPES.ETH: |
| 978 | return await web3.eth.getBalance(from); |
| 979 | case gbl.constants.FUND_RAISE_TYPES.POLY: |
| 980 | return await polyToken.methods.balanceOf(from).call(); |
| 981 | case gbl.constants.FUND_RAISE_TYPES.STABLE: |
| 982 | return await usdToken.methods.balanceOf(from).call(); |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | async function getAllModulesByType(type) { |
| 987 | function ModuleInfo(_moduleType, _name, _address, _factoryAddress, _archived, _paused) { |
no outgoing calls
no test coverage detected