spee.ch/helpers/functions/isFreeClaim.js

12 lines
288 B
JavaScript
Raw Normal View History

const logger = require('winston');
module.exports = ({ value }) => {
if (!value.stream.metadata.fee || value.stream.metadata.fee.amount === 0) {
logger.debug('isFreeClaim?', true);
return true;
} else {
logger.debug('isFreePublicClaim?', false);
return false;
}
};