```\\nfunction distributeDividends() public payable override {\\n    require(totalSupply() > 0);\\n\\n    if (msg.value > 0) {\\n        magnifiedDividendPerShare = magnifiedDividendPerShare.add(\\n            (msg.value).mul(magnitude) / totalSupply()\\n        );\\n        emit DividendsDistributed(msg.sender, msg.value);\\n\\n        totalDividendsDistributed = totalDividendsDistributed.add(\\n            msg.value\\n        );\\n    }\\n}\\n```\\n