SMCATCompliance

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "contracts/SMCATCompliance.sol": {
      "content": "/**\r
 *Submitted for verification at Etherscan.io on 2025-11-05\r
*/\r
\r
// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.22;\r
\r
/**\r
 * @title SMCATCompliance – Compliance Contract for MayaCat Regulated Security Token\r
 * @dev Mirrors DefaultCompliance from SMPRA setup.\r
 * Used by the main SMCAT ERC-3643 token to control transfer permissions\r
 * under regulatory compliance and whitelisting logic.\r
 */\r
\r
contract SMCATCompliance {\r
    mapping(address => bool) private whitelisted;\r
    address public owner;\r
\r
    constructor() {\r
        owner = msg.sender;\r
    }\r
\r
    modifier onlyOwner() {\r
        require(msg.sender == owner, "Not authorized");\r
        _;\r
    }\r
\r
    function isWhitelisted(address user) public view returns (bool) {\r
        return whitelisted[user];\r
    }\r
\r
    function addToWhitelist(address user) external onlyOwner {\r
        whitelisted[user] = true;\r
    }\r
\r
    function removeFromWhitelist(address user) external onlyOwner {\r
        whitelisted[user] = false;\r
    }\r
\r
    function canTransfer(address from, address to, uint256 /* value */) external view returns (bool) {\r
        return whitelisted[from] && whitelisted[to];\r
    }\r
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
Factory|addr:0xdfcee473cedf5f388150c2f53528625f277164fb|verified:true|block:23738550|tx:0x1720d44265ef8291dc29707de8a484ee512721c1798a61fd4a0b9e960c05a412|first_check:1762427214

Submitted on: 2025-11-06 12:06:54

Comments

Log in to comment.

No comments yet.