/** * @file COMP * @desc These methods facilitate interactions with the COMP token smart * contract. */ export {}; /** * Get the balance of COMP tokens held by an address. * * @param {string} _address The address in which to find the COMP balance. * @param {Provider | string} [_provider] An Ethers.js provider or valid network * name string. * * @returns {string} Returns a string of the numeric balance of COMP. The value * is scaled up by 18 decimal places. * * @example * * ``` * (async function () { * const bal = await Sumer.comp.getCompBalance('0x2775b1c75658Be0F640272CCb8c72ac986009e38'); * console.log('Balance', bal); * })().catch(console.error); * ``` */