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:0xe726efe9b3e9cbbff863183e986ddb9533adc628|verified:true|block:23735465|tx:0x8a153f53cdfcb69bb0459af16ab0efffe0aee6ae0269c9bc97ca519d190c384d|first_check:1762376755

Submitted on: 2025-11-05 22:05:57

Comments

Log in to comment.

No comments yet.