ERC-20
Overview
Max Total Supply
13,000 OPR
Holders
1
Market
Price
$0.00 @ 0.000000 POL
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Shares
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity Standard Json-Input format)
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2022 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software * without restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies of the * Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * - The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * - All automated license fee payments integrated into this and related Software * are preserved. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ pragma solidity ^0.8.0; import "../ERC20/ERC20Named.sol"; import "../ERC20/ERC20PermitLight.sol"; import "../ERC20/ERC20Permit2.sol"; import "../ERC20/IERC677Receiver.sol"; import "../recovery/ERC20Recoverable.sol"; import "../shares/IShares.sol"; /** * @title CompanyName AG Shares * @author Luzius Meisser, [email protected] * * These tokens represent ledger-based securities according to article 973d of the Swiss Code of Obligations. * This smart contract serves as an ownership registry, enabling the token holders to register them as * shareholders in the issuer's shareholder registry. This is equivalent to the traditional system * of having physical share certificates kept at home by the shareholders and a shareholder registry run by * the company. Just like with physical certificates, the owners of the tokens are the owners of the shares. * However, in order to exercise their rights (for example receive a dividend), shareholders must register * themselves. For example, in case the company pays out a dividend to a previous shareholder because * the current shareholder did not register, the company cannot be held liable for paying the dividend to * the "wrong" shareholder. In relation to the company, only the registered shareholders count as such. */ contract Shares is ERC20Recoverable, ERC20Named, ERC20PermitLight, ERC20Permit2, IShares{ // Version history: // 1: everything before 2022-07-19 // 2: added mintMany and mintManyAndCall, added VERSION field // 3: added permit // 4: refactor to custom errors, added allowance for permit2 uint8 public constant VERSION = 4; string public terms; uint256 public override totalShares; // total number of shares, maybe not all tokenized uint256 public invalidTokens; event Announcement(string message); event TokensDeclaredInvalid(address indexed holder, uint256 amount, string message); event ChangeTerms(string terms); event ChangeTotalShares(uint256 total); constructor( string memory _symbol, string memory _name, string memory _terms, uint256 _totalShares, address _owner, IRecoveryHub _recoveryHub, Permit2Hub _permit2Hub ) ERC20Named(_symbol, _name, 0, _owner) ERC20Recoverable(_recoveryHub) ERC20PermitLight() ERC20Permit2(_permit2Hub) { totalShares = _totalShares; terms = _terms; invalidTokens = 0; _recoveryHub.setRecoverable(false); } function setTerms(string memory _terms) external onlyOwner { terms = _terms; emit ChangeTerms(_terms); } /** * Declares the number of total shares, including those that have not been tokenized and those * that are held by the company itself. This number can be substiantially higher than totalSupply() * in case not all shares have been tokenized. Also, it can be lower than totalSupply() in case some * tokens have become invalid. */ function setTotalShares(uint256 _newTotalShares) external onlyOwner() { uint256 _totalValidSupply = totalValidSupply(); if (_newTotalShares < _totalValidSupply) { revert Shares_InvalidTotalShares(_totalValidSupply, _newTotalShares); } totalShares = _newTotalShares; emit ChangeTotalShares(_newTotalShares); } /** * Allows the issuer to make public announcements that are visible on the blockchain. */ function announcement(string calldata message) external onlyOwner() { emit Announcement(message); } /** * See parent method for collateral requirements. */ function setCustomClaimCollateral(IERC20 collateral, uint256 rate) external onlyOwner() { super._setCustomClaimCollateral(collateral, rate); } function getClaimDeleter() public override view returns (address) { return owner; } /** * Signals that the indicated tokens have been declared invalid (e.g. by a court ruling in accordance * with article 973g of the Swiss Code of Obligations) and got detached from * the underlying shares. Invalid tokens do not carry any shareholder rights any more. * * This function is purely declarative. It does not technically immobilize the affected tokens as * that would give the issuer too much power. */ function declareInvalid(address holder, uint256 amount, string calldata message) external onlyOwner() { uint256 holderBalance = balanceOf(holder); if (amount > holderBalance) { revert ERC20InsufficientBalance(holder, holderBalance, amount); } invalidTokens += amount; emit TokensDeclaredInvalid(holder, amount, message); } /** * The total number of valid tokens in circulation. In case some tokens have been declared invalid, this * number might be lower than totalSupply(). Also, it will always be lower than or equal to totalShares(). */ function totalValidSupply() public view returns (uint256) { return totalSupply() - invalidTokens; } /** * Allows the company to tokenize shares and transfer them e.g to the draggable contract and wrap them. * If these shares are newly created, setTotalShares must be called first in order to adjust the total number of shares. */ function mintAndCall(address shareholder, address callee, uint256 amount, bytes calldata data) external { mint(callee, amount); if (!IERC677Receiver(callee).onTokenTransfer(shareholder, amount, data)) { revert IERC677Receiver.IERC677_OnTokenTransferFailed(); } } function mintManyAndCall(address[] calldata target, address callee, uint256[] calldata amount, bytes calldata data) external { uint256 len = target.length; if (len != amount.length) { revert Shares_UnequalLength(len, amount.length); } uint256 total = 0; for (uint256 i = 0; i<len; i++){ total += amount[i]; } mint(callee, total); for (uint256 i = 0; i<len; i++){ if(!IERC677Receiver(callee).onTokenTransfer(target[i], amount[i], data)){ revert IERC677Receiver.IERC677_OnTokenTransferFailed(); } } } function mint(address target, uint256 amount) public onlyOwner { _mint(target, amount); } function mintMany(address[] calldata target, uint256[] calldata amount) public onlyOwner { uint256 len = target.length; if (len != amount.length) { revert Shares_UnequalLength(len, amount.length); } for (uint256 i = 0; i<len; i++){ _mint(target[i], amount[i]); } } function _mint(address account, uint256 amount) internal virtual override { uint256 newValidSupply = totalValidSupply() + amount; if (newValidSupply > totalShares) { revert Shares_InsufficientTotalShares(totalShares, newValidSupply); } super._mint(account, amount); } function transfer(address to, uint256 value) virtual override(ERC20Recoverable, ERC20Flaggable, IERC20) public returns (bool) { return super.transfer(to, value); } /** * Transfers _amount tokens to the company and burns them. * The meaning of this operation depends on the circumstances and the fate of the shares does * not necessarily follow the fate of the tokens. For example, the company itself might call * this function to implement a formal decision to destroy some of the outstanding shares. * Also, this function might be called by an owner to return the shares to the company and * get them back in another form under an according agreement (e.g. printed certificates or * tokens on a different blockchain). It is not recommended to call this function without * having agreed with the company on the further fate of the shares in question. */ function burn(uint256 _amount) override external { _transfer(msg.sender, address(this), _amount); _burn(address(this), _amount); } function allowance(address owner, address spender) public view virtual override(ERC20Permit2, ERC20Flaggable, IERC20) returns (uint256) { return super.allowance(owner, spender); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Standard ERC20 Errors /// @dev See https://eips.ethereum.org/EIPS/eip-20 /// https://eips.ethereum.org/EIPS/eip-6093 interface ERC20Errors { error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); error ERC20InvalidSender(address sender); error ERC20InvalidReceiver(address receiver); error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); error ERC20InvalidApprover(address approver); error ERC20InvalidSpender(address spender); }
// SPDX-License-Identifier: MIT // Copied and adjusted from OpenZeppelin // Adjustments: // - modifications to support ERC-677 // - removed unnecessary require statements // - removed GSN Context // - upgraded to 0.8 to drop SafeMath // - let name() and symbol() be implemented by subclass // - infinite allowance support, with 2^255 and above considered infinite // - use upper 32 bits of balance for flags // - add a global settings variable pragma solidity ^0.8.0; import "./IERC20.sol"; import "./ERC20Errors.sol"; import "./IERC677Receiver.sol"; /** * @dev Implementation of the `IERC20` interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using `_mint`. * For a generic mechanism see `ERC20Mintable`. * * *For a detailed writeup see our guide [How to implement supply * mechanisms](https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226).* * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an `Approval` event is emitted on calls to `transferFrom`. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard `decreaseAllowance` and `increaseAllowance` * functions have been added to mitigate the well-known issues around setting * allowances. See `IERC20.approve`. */ abstract contract ERC20Flaggable is IERC20, ERC20Errors { // as Documented in /doc/infiniteallowance.md // 0x8000000000000000000000000000000000000000000000000000000000000000 uint256 constant private INFINITE_ALLOWANCE = 2**255; uint256 private constant FLAGGING_MASK = 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000; // Documentation of flags used by subclasses: // NOTE: flags denote the bit number that is being used and must be smaller than 32 // ERC20Draggable: uint8 private constant FLAG_INDEX_VOTED = 1; // ERC20Recoverable: uint8 private constant FLAG_INDEX_CLAIM_PRESENT = 10; // ERCAllowlistable: uint8 private constant FLAG_INDEX_ALLOWLIST = 20; // ERCAllowlistable: uint8 private constant FLAG_INDEX_FORBIDDEN = 21; // ERCAllowlistable: uint8 private constant FLAG_INDEX_POWERLIST = 22; mapping (address => uint256) private _balances; // upper 32 bits reserved for flags mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public override decimals; event NameChanged(string name, string symbol); /// Overflow on minting, transfer. /// @param receiver The address were the balance overflows. /// @param balance The current balance of the receiver. /// @param amount The amount added, which result in the overflow. error ERC20BalanceOverflow(address receiver, uint256 balance, uint256 amount); constructor(uint8 _decimals) { decimals = _decimals; } /** * @dev See `IERC20.totalSupply`. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See `IERC20.balanceOf`. */ function balanceOf(address account) public view override returns (uint256) { return uint224 (_balances [account]); } function hasFlag(address account, uint8 number) external view returns (bool) { return hasFlagInternal(account, number); } function setFlag(address account, uint8 index, bool value) internal { uint256 flagMask = 1 << (index + 224); uint256 balance = _balances [account]; if ((balance & flagMask == flagMask) != value) { _balances [account] = balance ^ flagMask; } } function hasFlagInternal(address account, uint8 number) internal view returns (bool) { uint256 flag = 0x1 << (number + 224); return _balances[account] & flag == flag; } /** * @dev See `IERC20.transfer`. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See `IERC20.allowance`. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See `IERC20.approve`. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) external override returns (bool) { _approve(msg.sender, spender, value); return true; } /** * @dev See `IERC20.transferFrom`. * * Emits an `Approval` event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of `ERC20`; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `value`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = allowance(sender, msg.sender); if (currentAllowance < INFINITE_ALLOWANCE){ // Only decrease the allowance if it was not set to 'infinite' // Documented in /doc/infiniteallowance.md _allowances[sender][msg.sender] = currentAllowance - amount; } return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to `transfer`, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a `Transfer` event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { _beforeTokenTransfer(sender, recipient, amount); decreaseBalance(sender, amount); increaseBalance(recipient, amount); emit Transfer(sender, recipient, amount); } // ERC-677 functionality, can be useful for swapping and wrapping tokens function transferAndCall(address recipient, uint amount, bytes calldata data) external virtual returns (bool) { return transfer (recipient, amount) && IERC677Receiver (recipient).onTokenTransfer (msg.sender, amount, data); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a `Transfer` event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address recipient, uint256 amount) internal virtual { _beforeTokenTransfer(address(0), recipient, amount); _totalSupply += amount; increaseBalance(recipient, amount); emit Transfer(address(0), recipient, amount); } function increaseBalance(address recipient, uint256 amount) private { if (recipient == address(0x0)) { revert ERC20InvalidReceiver(recipient); //use burn instead } uint256 oldBalance = _balances[recipient]; uint256 newBalance = oldBalance + amount; if (oldBalance & FLAGGING_MASK != newBalance & FLAGGING_MASK) { revert ERC20BalanceOverflow(recipient, oldBalance, amount); } _balances[recipient] = newBalance; } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a `Transfer` event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { _beforeTokenTransfer(account, address(0), amount); _totalSupply -= amount; decreaseBalance(account, amount); emit Transfer(account, address(0), amount); } function decreaseBalance(address sender, uint256 amount) private { uint256 oldBalance = _balances[sender]; uint256 newBalance = oldBalance - amount; if (oldBalance & FLAGGING_MASK != newBalance & FLAGGING_MASK) { revert ERC20InsufficientBalance(sender, balanceOf(sender), amount); } _balances[sender] = newBalance; } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an `Approval` event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 value) internal { _allowances[owner][spender] = value; emit Approval(owner, spender, value); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ // solhint-disable-next-line no-empty-blocks function _beforeTokenTransfer(address from, address to, uint256 amount) virtual internal { // intentionally left blank } /** * Checks if msg.sender is an authorized address. * @param validSender The authorized address. */ function _checkSender(address validSender) internal view { if (msg.sender != validSender) { revert ERC20InvalidSender(msg.sender); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20Flaggable.sol"; import "../utils/Ownable.sol"; contract ERC20Named is ERC20Flaggable, Ownable { string public override name; string public override symbol; constructor(string memory _symbol, string memory _name, uint8 _decimals, address _admin) ERC20Flaggable(_decimals) Ownable(_admin) { setNameInternal(_symbol, _name); } function setName(string memory _symbol, string memory _name) external onlyOwner { setNameInternal(_symbol, _name); } function setNameInternal(string memory _symbol, string memory _name) internal { symbol = _symbol; name = _name; emit NameChanged(_name, _symbol); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import "./ERC20Flaggable.sol"; import "../utils/Permit2Hub.sol"; /// @title ERC20Permit2 /// @dev This abstract contract extends the ERC20Flaggable contract and introduces the Permit2Hub. abstract contract ERC20Permit2 is ERC20Flaggable { /// @dev The Permit2Hub contract instance. Permit2Hub public immutable permit2Hub; /// @dev Initializes the ERC20Permit2 contract. /// @param _permit2Hub The address of the Permit2Hub contract. constructor(Permit2Hub _permit2Hub) { permit2Hub = _permit2Hub; } /// @inheritdoc ERC20Flaggable function allowance(address owner, address spender) public view virtual override(ERC20Flaggable) returns (uint256) { if (permit2Hub.isPermit2Enabled(owner, spender)) return type(uint256).max; // If permit is enabled, return the maximum value of uint256 else return super.allowance(owner, spender); // Otherwise, call the parent(ERC20Flaggable) allowance function } }
// SPDX-License-Identifier: MIT // Copied from https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol // and modified it. pragma solidity ^0.8.0; import "./ERC20Flaggable.sol"; import "./IERC20Permit.sol"; abstract contract ERC20PermitLight is ERC20Flaggable, IERC20Permit { /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ mapping(address => uint256) public override nonces; /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public override { if (deadline < block.timestamp) { revert Permit_DeadlineExpired(deadline, block.timestamp); } unchecked { // unchecked to save a little gas with the nonce increment... address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"), bytes32(0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); if (recoveredAddress == address(0) || recoveredAddress != owner) { revert Permit_InvalidSigner(recoveredAddress); } _approve(recoveredAddress, spender, value); } } function DOMAIN_SEPARATOR() public view override returns (bytes32) { return keccak256( abi.encode( //keccak256("EIP712Domain(uint256 chainId,address verifyingContract)"); bytes32(0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218), block.chainid, address(this) ) ); } }
/** * SPDX-License-Identifier: MIT * * Copyright (c) 2016-2019 zOS Global Limited * */ pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { // Optional functions function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through `transferFrom`. This is * zero by default. * * This value changes when `approve` or `transferFrom` are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * > Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an `Approval` event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to `approve`. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) // Copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/draft-IERC20Permit.sol pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit is IERC20 { /*////////////////////////////////////////////////////////////// Custom errors //////////////////////////////////////////////////////////////*/ /// Block timestamp must to be before deadline. /// @param deadline The deadline of the permit. /// @param blockTimestamp The timestamp of the execution block. error Permit_DeadlineExpired(uint256 deadline, uint256 blockTimestamp); /// Recovered address must be owner and not zero address. /// @param signerAddress The recovered signer address. error Permit_InvalidSigner(address signerAddress); /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // Given that development on ERC 677 has stalled, we should consider supporting EIP 1363: https://eips.ethereum.org/EIPS/eip-1363 interface IERC677Receiver { error IERC677_OnTokenTransferFailed(); function onTokenTransfer(address from, uint256 amount, bytes calldata data) external returns (bool); }
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2022 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software * without restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies of the * Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * - The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * - All automated license fee payments integrated into this and related Software * are preserved. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ pragma solidity ^0.8.0; import "../ERC20/ERC20Flaggable.sol"; import "./IRecoveryHub.sol"; import "./IRecoverable.sol"; /** * @title Recoverable * In case of tokens that represent real-world assets such as shares of a company, one needs a way * to handle lost private keys. With physical certificates, courts can declare share certificates as * invalid so the company can issue replacements. Here, we want a solution that does not depend on * third parties to resolve such cases. Instead, when someone has lost a private key, he can use the * declareLost function on the recovery hub to post a deposit and claim that the shares assigned to a * specific address are lost. * If an attacker trying to claim shares belonging to someone else, they risk losing the deposit * as it can be claimed at anytime by the rightful owner. * Furthermore, if "getClaimDeleter" is defined in the subclass, the returned address is allowed to * delete claims, returning the collateral. This can help to prevent obvious cases of abuse of the claim * function, e.g. cases of front-running. * Most functionality is implemented in a shared RecoveryHub. */ abstract contract ERC20Recoverable is ERC20Flaggable, IRecoverable { uint8 private constant FLAG_CLAIM_PRESENT = 10; // ERC-20 token that can be used as collateral or 0x0 if disabled IERC20 public customCollateralAddress; // Rate the custom collateral currency is multiplied to be valued like one share. uint256 public customCollateralRate; uint256 constant CLAIM_PERIOD = 180 days; IRecoveryHub public override immutable recovery; constructor(IRecoveryHub recoveryHub){ recovery = recoveryHub; } modifier onlyRecovery { _checkSender(address(recovery)); _; } /** * Returns the collateral rate for the given collateral type and 0 if that type * of collateral is not accepted. By default, only the token itself is accepted at * a rate of 1:1. * * Subclasses should override this method if they want to add additional types of * collateral. */ function getCollateralRate(IERC20 collateralType) public override virtual view returns (uint256) { if (address(collateralType) == address(this)) { return 1; } else if (collateralType == customCollateralAddress) { return customCollateralRate; } else { return 0; } } function claimPeriod() external pure override returns (uint256){ return CLAIM_PERIOD; } /** * Allows subclasses to set a custom collateral besides the token itself. * The collateral must be an ERC-20 token that returns true on successful transfers and * throws an exception or returns false on failure. * Also, do not forget to multiply the rate in accordance with the number of decimals of the collateral. * For example, rate should be 7*10**18 for 7 units of a collateral with 18 decimals. */ function _setCustomClaimCollateral(IERC20 collateral, uint256 rate) internal { customCollateralAddress = collateral; if (address(customCollateralAddress) == address(0)) { customCollateralRate = 0; // disabled } else { if (rate == 0) { revert Recoverable_RateZero(); } customCollateralRate = rate; } } function getClaimDeleter() virtual public view returns (address); function transfer(address recipient, uint256 amount) override(ERC20Flaggable, IERC20) virtual public returns (bool) { super.transfer(recipient, amount); // no need for safe transfer, as it's our own token if (hasFlagInternal(msg.sender, FLAG_CLAIM_PRESENT)){ recovery.clearClaimFromToken(msg.sender); } return true; } function notifyClaimMade(address target) external override onlyRecovery { setFlag(target, FLAG_CLAIM_PRESENT, true); } function notifyClaimDeleted(address target) external override onlyRecovery { setFlag(target, FLAG_CLAIM_PRESENT, false); } function deleteClaim(address lostAddress) external { _checkSender(getClaimDeleter()); recovery.deleteClaim(lostAddress); } function recover(address oldAddress, address newAddress) external override onlyRecovery { _transfer(oldAddress, newAddress, balanceOf(oldAddress)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20/IERC20.sol"; import "./IRecoveryHub.sol"; interface IRecoverable is IERC20{ /*////////////////////////////////////////////////////////////// Custom errors //////////////////////////////////////////////////////////////*/ /// The new custom claim collateral rate has to be always > 0. error Recoverable_RateZero(); // returns the recovery hub function recovery() external view returns (IRecoveryHub); function claimPeriod() external view returns (uint256); function notifyClaimMade(address target) external; function notifyClaimDeleted(address target) external; function getCollateralRate(IERC20 collateral) external view returns(uint256); function recover(address oldAddress, address newAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IRecoverable.sol"; import "../ERC20/IERC20.sol"; interface IRecoveryHub { /*////////////////////////////////////////////////////////////// Custom errors //////////////////////////////////////////////////////////////*/ /// Recovery can be disabled per address. /// @param lostAddress The address for which the recovery is disabled. error RecoveryHub_RecoveryDisabled(address lostAddress); /// No valid collateral type /// @param collateralType The address of collateral type token error RecoveryHub_BadCollateral(IERC20 collateralType); /// No token to able to recover on the lost address /// @param token The token address which is checked for recovery. /// @param lostAddress The lost address. error RecoveryHub_NothingToRecover(IERC20 token, address lostAddress); /// The was already a claim for this token and address. /// @param token The token address. /// @param lostAddress The lost address. error RecoveryHub_AlreadyClaimed(IERC20 token, address lostAddress); /// Sender has to be claimant /// @param sender The msg.sender of the call error RecoveryHub_InvalidSender(address sender); /// No claim for this address exists /// @param lostAddress The checked address error RecoveryHub_ClaimNotFound(address lostAddress); /// Recover can only be called after the claim period /// @param claimPeriodEnd The timestamp when the period ends /// @param currentTimestamp The block timestamp of the call error RecoveryHub_InClaimPeriod(uint256 claimPeriodEnd, uint256 currentTimestamp); function setRecoverable(bool flag) external; // deletes claim and transfers collateral back to claimer function deleteClaim(address target) external; // clears claim and transfers collateral to holder function clearClaimFromToken(address holder) external; function clearClaimFromUser(IRecoverable token) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20/IERC20.sol"; interface IShares is IERC20 { /*////////////////////////////////////////////////////////////// Custom errors //////////////////////////////////////////////////////////////*/ /// New total shares can't be below current valid supply /// @param totalSupply The current valid supply. /// @param newTotalShares The new max shares. error Shares_InvalidTotalShares(uint256 totalSupply, uint256 newTotalShares); /// Array lengths have to be equal. /// @param targets Array length of targets. /// @param amount Array length of amounts. error Shares_UnequalLength(uint256 targets, uint256 amount); /// It isn't possible to mint more share token than max shares in existens. /// @param totalShares The max amount of shares. /// @param needed The max amount of shares needed (current valid supply + new mint amount). error Shares_InsufficientTotalShares(uint256 totalShares, uint256 needed); function burn(uint256) external; function totalShares() external view returns (uint256); }
// SPDX-License-Identifier: MIT // // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol // // Modifications: // - Replaced Context._msgSender() with msg.sender // - Made leaner // - Extracted interface pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); error Ownable_NotOwner(address sender); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor (address initialOwner) { owner = initialOwner; emit OwnershipTransferred(address(0), owner); } modifier onlyOwner() { _checkOwner(); _; } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) external onlyOwner { emit OwnershipTransferred(owner, newOwner); owner = newOwner; } function _checkOwner() internal view { if (msg.sender != owner) { revert Ownable_NotOwner(msg.sender); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import "../utils/Ownable.sol"; /// @title Permit2Hub /// @dev This contract manages the Permit2 functionality and access control. contract Permit2Hub is Ownable { /// @dev The address of the Permit2 contract. address public immutable permit2; /// @dev Flag to indicate whether Permit2 is disabled. bool public permit2Disabled = false; /// @dev Mapping to track addresses for which Permit2 is disabled. mapping(address => bool) public permit2DisabledForAddress; /// @dev Emitted when the Permit2 setting is changed. event ChangedPermit2(bool newSetting); /// @dev Initializes the Permit2Hub contract with the provided Permit2 address and owner address. /// @param _permit2 The address of the Permit2 contract. /// @param _owner The address of the owner. constructor(address _permit2, address _owner) Ownable(_owner) { permit2 = _permit2; } /// @dev Checks if Permit2 is enabled for the given owner and spender addresses. /// @param owner The owner address. /// @param spender The spender address, needs to be the permit2 contract. /// @return A boolean indicating whether Permit2 is enabled. function isPermit2Enabled(address owner, address spender) public view returns (bool){ return spender == permit2 && !permit2Disabled && !permit2DisabledForAddress[owner]; } /// @dev Toggles the global Permit2 setting. Can only be called by the owner. function togglePermit2() external onlyOwner { permit2Disabled = !permit2Disabled; emit ChangedPermit2(permit2Disabled); } /// @dev Sets the Permit2 status for a specific address. /// @param enabled The status to set for the address. function setPermit2(bool enabled) external { permit2DisabledForAddress[msg.sender] = !enabled; } }
{ "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_terms","type":"string"},{"internalType":"uint256","name":"_totalShares","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IRecoveryHub","name":"_recoveryHub","type":"address"},{"internalType":"contract Permit2Hub","name":"_permit2Hub","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20BalanceOverflow","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"IERC677_OnTokenTransferFailed","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"Ownable_NotOwner","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"Permit_DeadlineExpired","type":"error"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"Permit_InvalidSigner","type":"error"},{"inputs":[],"name":"Recoverable_RateZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"totalShares","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"Shares_InsufficientTotalShares","type":"error"},{"inputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"newTotalShares","type":"uint256"}],"name":"Shares_InvalidTotalShares","type":"error"},{"inputs":[{"internalType":"uint256","name":"targets","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Shares_UnequalLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"Announcement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"terms","type":"string"}],"name":"ChangeTerms","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"ChangeTotalShares","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"TokensDeclaredInvalid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"message","type":"string"}],"name":"announcement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"customCollateralAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customCollateralRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"name":"declareInvalid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lostAddress","type":"address"}],"name":"deleteClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getClaimDeleter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"collateralType","type":"address"}],"name":"getCollateralRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"number","type":"uint8"}],"name":"hasFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"invalidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"},{"internalType":"address","name":"callee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"target","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"target","type":"address[]"},{"internalType":"address","name":"callee","type":"address"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintManyAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"notifyClaimDeleted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"notifyClaimMade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"permit2Hub","outputs":[{"internalType":"contract Permit2Hub","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldAddress","type":"address"},{"internalType":"address","name":"newAddress","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recovery","outputs":[{"internalType":"contract IRecoveryHub","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"collateral","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setCustomClaimCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_terms","type":"string"}],"name":"setTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTotalShares","type":"uint256"}],"name":"setTotalShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terms","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValidSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b5060405161248338038061248383398101604081905261002f9161026f565b6003805460ff191690556001600160a01b03828116608052600580546001600160a01b03191691851691821790556040518291899189916000918891829184907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061009f848461012f565b505050506001600160a01b031660a052600a84905560096100c086826103c2565b506000600b819055604051636427ed9760e01b815260048101919091526001600160a01b03831690636427ed9790602401600060405180830381600087803b15801561010b57600080fd5b505af115801561011f573d6000803e3d6000fd5b50505050505050505050506104db565b600761013b83826103c2565b50600661014882826103c2565b507f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a818360405161017a9291906104ad565b60405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101b757818101518382015260200161019f565b50506000910152565b600082601f8301126101d157600080fd5b81516001600160401b03808211156101eb576101eb610186565b604051601f8301601f19908116603f0116810190828211818310171561021357610213610186565b8160405283815286602085880101111561022c57600080fd5b61023d84602083016020890161019c565b9695505050505050565b6001600160a01b038116811461025c57600080fd5b50565b805161026a81610247565b919050565b600080600080600080600060e0888a03121561028a57600080fd5b87516001600160401b03808211156102a157600080fd5b6102ad8b838c016101c0565b985060208a01519150808211156102c357600080fd5b6102cf8b838c016101c0565b975060408a01519150808211156102e557600080fd5b506102f28a828b016101c0565b95505060608801519350608088015161030a81610247565b60a089015190935061031b81610247565b915061032960c0890161025f565b905092959891949750929550565b600181811c9082168061034b57607f821691505b60208210810361036b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103bd576000816000526020600020601f850160051c8101602086101561039a5750805b601f850160051c820191505b818110156103b9578281556001016103a6565b5050505b505050565b81516001600160401b038111156103db576103db610186565b6103ef816103e98454610337565b84610371565b602080601f831160018114610424576000841561040c5750858301515b600019600386901b1c1916600185901b1785556103b9565b600085815260208120601f198616915b8281101561045357888601518255948401946001909101908401610434565b50858210156104715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000815180845261049981602086016020860161019c565b601f01601f19169290920160200192915050565b6040815260006104c06040830185610481565b82810360208401526104d28185610481565b95945050505050565b60805160a051611f5961052a600039600081816102f601526114200152600081816105420152818161073c01528181610b8a01528181610d3401528181610f3801526113250152611f596000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636091811711610151578063b0d04c7a116100c3578063ddceafa911610087578063ddceafa91461053d578063e5b824ec14610564578063f2fde38b14610577578063f54fc0601461058a578063f5c0b95f1461059d578063ffa1ad74146105b057600080fd5b8063b0d04c7a146104f4578063c18172c4146104fc578063d50256251461050f578063d505accf14610517578063dd62ed3e1461052a57600080fd5b80637dc2cd98116101155780637dc2cd981461048a5780637ecebe00146104935780638da5cb5b146104b357806395d89b41146104c6578063a77384c1146104ce578063a9059cbb146104e157600080fd5b80636091811714610435578063648bf7741461043e57806370a082311461045157806377e071ad1461046457806378f86afc1461047757600080fd5b80633644e515116101ea5780634029a3ce116101ae5780634029a3ce146103c357806340c10f19146103d657806342966c68146103e9578063487346b2146103fc5780635c707f071461040f5780635d6624b71461042257600080fd5b80633644e5151461038357806337a8129c1461038b5780633a1cdf32146103945780633a98ef39146103a75780634000aea0146103b057600080fd5b80631f0f06aa116102315780631f0f06aa1461031857806323b872dd1461032d5780632a0a4ed514610340578063313ce5671461035157806332a7ae951461037057600080fd5b806306fdde031461026e578063095ea7b31461028c5780630c6f0e5d146102af57806318160ddd146102df57806318efcce5146102f1575b600080fd5b6102766105b8565b60405161028391906116fc565b60405180910390f35b61029f61029a366004611724565b610646565b6040519015158152602001610283565b6003546102c79061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610283565b6002545b604051908152602001610283565b6102c77f000000000000000000000000000000000000000000000000000000000000000081565b61032b610326366004611799565b61065d565b005b61029f61033b3660046117db565b6106a2565b6005546001600160a01b03166102c7565b60035461035e9060ff1681565b60405160ff9091168152602001610283565b61032b61037e36600461181c565b610703565b6102e361079b565b6102e3600b5481565b61032b6103a2366004611724565b6107f4565b6102e3600a5481565b61029f6103be366004611839565b61080a565b61032b6103d13660046118da565b61089b565b61032b6103e4366004611724565b610936565b61032b6103f736600461193a565b610948565b61032b61040a366004611953565b610960565b61032b61041d366004611aa5565b610abf565b61032b610430366004611839565b610ad1565b6102e360045481565b61032b61044c366004611b09565b610b85565b6102e361045f36600461181c565b610bc1565b6102e361047236600461181c565b610be5565b61032b610485366004611b42565b610c2f565b62ed4e006102e3565b6102e36104a136600461181c565b60086020526000908152604090205481565b6005546102c7906001600160a01b031681565b610276610c7e565b61032b6104dc36600461193a565b610c8b565b61029f6104ef366004611724565b610cff565b6102e3610d12565b61032b61050a36600461181c565b610d2f565b610276610d65565b61032b610525366004611b90565b610d72565b6102e3610538366004611b09565b610f27565b6102c77f000000000000000000000000000000000000000000000000000000000000000081565b61032b61057236600461181c565b610f33565b61032b61058536600461181c565b610f69565b61032b610598366004611bfe565b610fcd565b61029f6105ab366004611c71565b611069565b61035e600481565b600680546105c590611ca6565b80601f01602080910402602001604051908101604052809291908181526020018280546105f190611ca6565b801561063e5780601f106106135761010080835404028352916020019161063e565b820191906000526020600020905b81548152906001019060200180831161062157829003601f168201915b505050505081565b6000610653338484611075565b5060015b92915050565b6106656110d7565b7f07ce702fc13ca0620c174dab22996a6d5fd9e7accb663555a4e85323692706ba8282604051610696929190611d09565b60405180910390a15050565b60006106af848484611106565b60006106bb8533610f27565b9050600160ff1b8110156106f8576106d38382611d33565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b61071d6107186005546001600160a01b031690565b61115f565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906332a7ae9590602401600060405180830381600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b5050505050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6107fc6110d7565b610806828261118a565b5050565b60006108168585610cff565b80156108925750604051635260769b60e11b81526001600160a01b0386169063a4c0ed369061084f903390889088908890600401611d46565b6020604051808303816000875af115801561086e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108929190611d78565b95945050505050565b6108a36110d7565b828181146108d357604051634ee401dd60e11b815260048101829052602481018390526044015b60405180910390fd5b60005b8181101561092e576109268686838181106108f3576108f3611d9a565b9050602002016020810190610908919061181c565b85858481811061091a5761091a611d9a565b905060200201356111e9565b6001016108d6565b505050505050565b61093e6110d7565b61080682826111e9565b610953333083611106565b61095d3082611240565b50565b8583811461098b57604051634ee401dd60e11b815260048101829052602481018590526044016108ca565b6000805b828110156109c5578686828181106109a9576109a9611d9a565b90506020020135826109bb9190611db0565b915060010161098f565b506109d08782610936565b60005b82811015610ab357876001600160a01b031663a4c0ed368b8b848181106109fc576109fc611d9a565b9050602002016020810190610a11919061181c565b898985818110610a2357610a23611d9a565b9050602002013588886040518563ffffffff1660e01b8152600401610a4b9493929190611d46565b6020604051808303816000875af1158015610a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e9190611d78565b610aab57604051631956a44d60e31b815260040160405180910390fd5b6001016109d3565b50505050505050505050565b610ac76110d7565b61080682826112a8565b610ad96110d7565b6000610ae485610bc1565b905080841115610b205760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018590526064016108ca565b83600b6000828254610b329190611db0565b92505081905550846001600160a01b03167f0a605cd1294f60fa3b73548ac68428f33300a051f225afcdcc75e56083c96ee7858585604051610b7693929190611dc3565b60405180910390a25050505050565b610bae7f000000000000000000000000000000000000000000000000000000000000000061115f565b6108068282610bbc85610bc1565b611106565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b6000306001600160a01b03831603610bff57506001919050565b6003546001600160a01b03610100909104811690831603610c2257505060045490565b506000919050565b919050565b610c376110d7565b6009610c438282611e25565b507fe9f2468ecc8d3dff15a70a5909151e6297cee4cf05268eff3d7ef0c696ec50f281604051610c7391906116fc565b60405180910390a150565b600780546105c590611ca6565b610c936110d7565b6000610c9d610d12565b905080821015610cca5760405163e9ccb41b60e01b815260048101829052602481018390526044016108ca565b600a8290556040518281527fdcbf73bf1e396dbe03ccbcd29c0aa52eb8028ae24726098296357286de4f5b2690602001610696565b6000610d0b83836112f3565b9392505050565b6000600b54610d2060025490565b610d2a9190611d33565b905090565b610d587f000000000000000000000000000000000000000000000000000000000000000061115f565b61095d81600a6001611392565b600980546105c590611ca6565b42841015610d9c57604051630b99fc4b60e31b8152600481018590524260248201526044016108ca565b60006001610da861079b565b6001600160a01b038a811660008181526008602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610eb4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580610ee95750876001600160a01b0316816001600160a01b031614155b15610f1257604051632f52260d60e11b81526001600160a01b03821660048201526024016108ca565b610f1d818888611075565b5050505050505050565b6000610d0b83836113f6565b610f5c7f000000000000000000000000000000000000000000000000000000000000000061115f565b61095d81600a6000611392565b610f716110d7565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b610fd78484610936565b604051635260769b60e11b81526001600160a01b0385169063a4c0ed3690611009908890879087908790600401611d46565b6020604051808303816000875af1158015611028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104c9190611d78565b61079457604051631956a44d60e31b815260040160405180910390fd5b6000610d0b83836114c7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6005546001600160a01b03163314611104576040516396a19be960e01b81523360048201526024016108ca565b565b6111108382611507565b61111a82826115a4565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110ca91815260200190565b336001600160a01b0382161461095d57604051634b637e8f60e11b81523360048201526024016108ca565b60038054610100600160a81b0319166101006001600160a01b0385811682029290921792839055909104166111c25760006004555050565b806000036111e357604051630ece93db60e41b815260040160405180910390fd5b60045550565b6000816111f4610d12565b6111fe9190611db0565b9050600a5481111561123157600a546040516340a8005d60e11b81526004810191909152602481018290526044016108ca565b61123b8383611649565b505050565b80600260008282546112529190611d33565b9091555061126290508282611507565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60076112b48382611e25565b5060066112c18282611e25565b507f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a8183604051610696929190611ee5565b60006112ff83836116a9565b5061130b33600a6114c7565b15610653576040516304d301a360e41b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634d301a3090602401600060405180830381600087803b15801561137157600080fd5b505af1158015611385573d6000803e3d6000fd5b5050505050600192915050565b600061139f8360e0611f0a565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610794576001600160a01b0394909416600090815260208190526040902093189092555050565b604051632fb6b53160e11b81526001600160a01b03838116600483015282811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690635f6d6a6290604401602060405180830381865afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d9190611d78565b1561149b5750600019610657565b506001600160a01b03828116600090815260016020908152604080832093851683529290522054610657565b6000806114d58360e0611f0a565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b6001600160a01b0382166000908152602081905260408120549061152b8383611d33565b90506001600160e01b031981166001600160e01b0319831614611583578361155285610bc1565b60405163391434e360e21b81526001600160a01b0390921660048301526024820152604481018490526064016108ca565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b0382166115d65760405163ec442f0560e01b81526001600160a01b03831660048201526024016108ca565b6001600160a01b038216600090815260208190526040812054906115fa8383611db0565b90506001600160e01b031981166001600160e01b031983161461158357604051634a2e08e560e01b81526001600160a01b038516600482015260248101839052604481018490526064016108ca565b806002600082825461165b9190611db0565b9091555061166b905082826115a4565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161129c565b6000610653338484611106565b6000815180845260005b818110156116dc576020818501810151868301820152016116c0565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d0b60208301846116b6565b6001600160a01b038116811461095d57600080fd5b6000806040838503121561173757600080fd5b82356117428161170f565b946020939093013593505050565b60008083601f84011261176257600080fd5b50813567ffffffffffffffff81111561177a57600080fd5b60208301915083602082850101111561179257600080fd5b9250929050565b600080602083850312156117ac57600080fd5b823567ffffffffffffffff8111156117c357600080fd5b6117cf85828601611750565b90969095509350505050565b6000806000606084860312156117f057600080fd5b83356117fb8161170f565b9250602084013561180b8161170f565b929592945050506040919091013590565b60006020828403121561182e57600080fd5b8135610d0b8161170f565b6000806000806060858703121561184f57600080fd5b843561185a8161170f565b935060208501359250604085013567ffffffffffffffff81111561187d57600080fd5b61188987828801611750565b95989497509550505050565b60008083601f8401126118a757600080fd5b50813567ffffffffffffffff8111156118bf57600080fd5b6020830191508360208260051b850101111561179257600080fd5b600080600080604085870312156118f057600080fd5b843567ffffffffffffffff8082111561190857600080fd5b61191488838901611895565b9096509450602087013591508082111561192d57600080fd5b5061188987828801611895565b60006020828403121561194c57600080fd5b5035919050565b60008060008060008060006080888a03121561196e57600080fd5b873567ffffffffffffffff8082111561198657600080fd5b6119928b838c01611895565b909950975060208a013591506119a78261170f565b909550604089013590808211156119bd57600080fd5b6119c98b838c01611895565b909650945060608a01359150808211156119e257600080fd5b506119ef8a828b01611750565b989b979a50959850939692959293505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611a2957600080fd5b813567ffffffffffffffff80821115611a4457611a44611a02565b604051601f8301601f19908116603f01168101908282118183101715611a6c57611a6c611a02565b81604052838152866020858801011115611a8557600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215611ab857600080fd5b823567ffffffffffffffff80821115611ad057600080fd5b611adc86838701611a18565b93506020850135915080821115611af257600080fd5b50611aff85828601611a18565b9150509250929050565b60008060408385031215611b1c57600080fd5b8235611b278161170f565b91506020830135611b378161170f565b809150509250929050565b600060208284031215611b5457600080fd5b813567ffffffffffffffff811115611b6b57600080fd5b611b7784828501611a18565b949350505050565b803560ff81168114610c2a57600080fd5b600080600080600080600060e0888a031215611bab57600080fd5b8735611bb68161170f565b96506020880135611bc68161170f565b95506040880135945060608801359350611be260808901611b7f565b925060a0880135915060c0880135905092959891949750929550565b600080600080600060808688031215611c1657600080fd5b8535611c218161170f565b94506020860135611c318161170f565b935060408601359250606086013567ffffffffffffffff811115611c5457600080fd5b611c6088828901611750565b969995985093965092949392505050565b60008060408385031215611c8457600080fd5b8235611c8f8161170f565b9150611c9d60208401611b7f565b90509250929050565b600181811c90821680611cba57607f821691505b602082108103611cda57634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611b77602083018486611ce0565b634e487b7160e01b600052601160045260246000fd5b8181038181111561065757610657611d1d565b60018060a01b0385168152836020820152606060408201526000611d6e606083018486611ce0565b9695505050505050565b600060208284031215611d8a57600080fd5b81518015158114610d0b57600080fd5b634e487b7160e01b600052603260045260246000fd5b8082018082111561065757610657611d1d565b838152604060208201526000610892604083018486611ce0565b601f82111561123b576000816000526020600020601f850160051c81016020861015611e065750805b601f850160051c820191505b8181101561092e57828155600101611e12565b815167ffffffffffffffff811115611e3f57611e3f611a02565b611e5381611e4d8454611ca6565b84611ddd565b602080601f831160018114611e885760008415611e705750858301515b600019600386901b1c1916600185901b17855561092e565b600085815260208120601f198616915b82811015611eb757888601518255948401946001909101908401611e98565b5085821015611ed55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000611ef860408301856116b6565b828103602084015261089281856116b6565b60ff818116838216019081111561065757610657611d1d56fea26469706673582212206a77cfdd58dda7a8fcb5c1c8064fb0d2e24890e31ac83230ce9c6aadf34a689464736f6c6343000819003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000001adb0000000000000000000000000cafdc612c321c8f22bae3922e1f4bff2bfa97d75000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae185000000000000000000000000c5e049019fd4c21de3685f60993fd41d3098dca500000000000000000000000000000000000000000000000000000000000000034f5052000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000104f706572616c20414720536861726573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017696e766573742e6f706572616c2e736f6c7574696f6e73000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c80636091811711610151578063b0d04c7a116100c3578063ddceafa911610087578063ddceafa91461053d578063e5b824ec14610564578063f2fde38b14610577578063f54fc0601461058a578063f5c0b95f1461059d578063ffa1ad74146105b057600080fd5b8063b0d04c7a146104f4578063c18172c4146104fc578063d50256251461050f578063d505accf14610517578063dd62ed3e1461052a57600080fd5b80637dc2cd98116101155780637dc2cd981461048a5780637ecebe00146104935780638da5cb5b146104b357806395d89b41146104c6578063a77384c1146104ce578063a9059cbb146104e157600080fd5b80636091811714610435578063648bf7741461043e57806370a082311461045157806377e071ad1461046457806378f86afc1461047757600080fd5b80633644e515116101ea5780634029a3ce116101ae5780634029a3ce146103c357806340c10f19146103d657806342966c68146103e9578063487346b2146103fc5780635c707f071461040f5780635d6624b71461042257600080fd5b80633644e5151461038357806337a8129c1461038b5780633a1cdf32146103945780633a98ef39146103a75780634000aea0146103b057600080fd5b80631f0f06aa116102315780631f0f06aa1461031857806323b872dd1461032d5780632a0a4ed514610340578063313ce5671461035157806332a7ae951461037057600080fd5b806306fdde031461026e578063095ea7b31461028c5780630c6f0e5d146102af57806318160ddd146102df57806318efcce5146102f1575b600080fd5b6102766105b8565b60405161028391906116fc565b60405180910390f35b61029f61029a366004611724565b610646565b6040519015158152602001610283565b6003546102c79061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610283565b6002545b604051908152602001610283565b6102c77f000000000000000000000000c5e049019fd4c21de3685f60993fd41d3098dca581565b61032b610326366004611799565b61065d565b005b61029f61033b3660046117db565b6106a2565b6005546001600160a01b03166102c7565b60035461035e9060ff1681565b60405160ff9091168152602001610283565b61032b61037e36600461181c565b610703565b6102e361079b565b6102e3600b5481565b61032b6103a2366004611724565b6107f4565b6102e3600a5481565b61029f6103be366004611839565b61080a565b61032b6103d13660046118da565b61089b565b61032b6103e4366004611724565b610936565b61032b6103f736600461193a565b610948565b61032b61040a366004611953565b610960565b61032b61041d366004611aa5565b610abf565b61032b610430366004611839565b610ad1565b6102e360045481565b61032b61044c366004611b09565b610b85565b6102e361045f36600461181c565b610bc1565b6102e361047236600461181c565b610be5565b61032b610485366004611b42565b610c2f565b62ed4e006102e3565b6102e36104a136600461181c565b60086020526000908152604090205481565b6005546102c7906001600160a01b031681565b610276610c7e565b61032b6104dc36600461193a565b610c8b565b61029f6104ef366004611724565b610cff565b6102e3610d12565b61032b61050a36600461181c565b610d2f565b610276610d65565b61032b610525366004611b90565b610d72565b6102e3610538366004611b09565b610f27565b6102c77f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae18581565b61032b61057236600461181c565b610f33565b61032b61058536600461181c565b610f69565b61032b610598366004611bfe565b610fcd565b61029f6105ab366004611c71565b611069565b61035e600481565b600680546105c590611ca6565b80601f01602080910402602001604051908101604052809291908181526020018280546105f190611ca6565b801561063e5780601f106106135761010080835404028352916020019161063e565b820191906000526020600020905b81548152906001019060200180831161062157829003601f168201915b505050505081565b6000610653338484611075565b5060015b92915050565b6106656110d7565b7f07ce702fc13ca0620c174dab22996a6d5fd9e7accb663555a4e85323692706ba8282604051610696929190611d09565b60405180910390a15050565b60006106af848484611106565b60006106bb8533610f27565b9050600160ff1b8110156106f8576106d38382611d33565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b61071d6107186005546001600160a01b031690565b61115f565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae18516906332a7ae9590602401600060405180830381600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b5050505050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6107fc6110d7565b610806828261118a565b5050565b60006108168585610cff565b80156108925750604051635260769b60e11b81526001600160a01b0386169063a4c0ed369061084f903390889088908890600401611d46565b6020604051808303816000875af115801561086e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108929190611d78565b95945050505050565b6108a36110d7565b828181146108d357604051634ee401dd60e11b815260048101829052602481018390526044015b60405180910390fd5b60005b8181101561092e576109268686838181106108f3576108f3611d9a565b9050602002016020810190610908919061181c565b85858481811061091a5761091a611d9a565b905060200201356111e9565b6001016108d6565b505050505050565b61093e6110d7565b61080682826111e9565b610953333083611106565b61095d3082611240565b50565b8583811461098b57604051634ee401dd60e11b815260048101829052602481018590526044016108ca565b6000805b828110156109c5578686828181106109a9576109a9611d9a565b90506020020135826109bb9190611db0565b915060010161098f565b506109d08782610936565b60005b82811015610ab357876001600160a01b031663a4c0ed368b8b848181106109fc576109fc611d9a565b9050602002016020810190610a11919061181c565b898985818110610a2357610a23611d9a565b9050602002013588886040518563ffffffff1660e01b8152600401610a4b9493929190611d46565b6020604051808303816000875af1158015610a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e9190611d78565b610aab57604051631956a44d60e31b815260040160405180910390fd5b6001016109d3565b50505050505050505050565b610ac76110d7565b61080682826112a8565b610ad96110d7565b6000610ae485610bc1565b905080841115610b205760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018590526064016108ca565b83600b6000828254610b329190611db0565b92505081905550846001600160a01b03167f0a605cd1294f60fa3b73548ac68428f33300a051f225afcdcc75e56083c96ee7858585604051610b7693929190611dc3565b60405180910390a25050505050565b610bae7f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae18561115f565b6108068282610bbc85610bc1565b611106565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b6000306001600160a01b03831603610bff57506001919050565b6003546001600160a01b03610100909104811690831603610c2257505060045490565b506000919050565b919050565b610c376110d7565b6009610c438282611e25565b507fe9f2468ecc8d3dff15a70a5909151e6297cee4cf05268eff3d7ef0c696ec50f281604051610c7391906116fc565b60405180910390a150565b600780546105c590611ca6565b610c936110d7565b6000610c9d610d12565b905080821015610cca5760405163e9ccb41b60e01b815260048101829052602481018390526044016108ca565b600a8290556040518281527fdcbf73bf1e396dbe03ccbcd29c0aa52eb8028ae24726098296357286de4f5b2690602001610696565b6000610d0b83836112f3565b9392505050565b6000600b54610d2060025490565b610d2a9190611d33565b905090565b610d587f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae18561115f565b61095d81600a6001611392565b600980546105c590611ca6565b42841015610d9c57604051630b99fc4b60e31b8152600481018590524260248201526044016108ca565b60006001610da861079b565b6001600160a01b038a811660008181526008602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610eb4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580610ee95750876001600160a01b0316816001600160a01b031614155b15610f1257604051632f52260d60e11b81526001600160a01b03821660048201526024016108ca565b610f1d818888611075565b5050505050505050565b6000610d0b83836113f6565b610f5c7f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae18561115f565b61095d81600a6000611392565b610f716110d7565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b610fd78484610936565b604051635260769b60e11b81526001600160a01b0385169063a4c0ed3690611009908890879087908790600401611d46565b6020604051808303816000875af1158015611028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104c9190611d78565b61079457604051631956a44d60e31b815260040160405180910390fd5b6000610d0b83836114c7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6005546001600160a01b03163314611104576040516396a19be960e01b81523360048201526024016108ca565b565b6111108382611507565b61111a82826115a4565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110ca91815260200190565b336001600160a01b0382161461095d57604051634b637e8f60e11b81523360048201526024016108ca565b60038054610100600160a81b0319166101006001600160a01b0385811682029290921792839055909104166111c25760006004555050565b806000036111e357604051630ece93db60e41b815260040160405180910390fd5b60045550565b6000816111f4610d12565b6111fe9190611db0565b9050600a5481111561123157600a546040516340a8005d60e11b81526004810191909152602481018290526044016108ca565b61123b8383611649565b505050565b80600260008282546112529190611d33565b9091555061126290508282611507565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60076112b48382611e25565b5060066112c18282611e25565b507f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a8183604051610696929190611ee5565b60006112ff83836116a9565b5061130b33600a6114c7565b15610653576040516304d301a360e41b81523360048201527f000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae1856001600160a01b031690634d301a3090602401600060405180830381600087803b15801561137157600080fd5b505af1158015611385573d6000803e3d6000fd5b5050505050600192915050565b600061139f8360e0611f0a565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610794576001600160a01b0394909416600090815260208190526040902093189092555050565b604051632fb6b53160e11b81526001600160a01b03838116600483015282811660248301526000917f000000000000000000000000c5e049019fd4c21de3685f60993fd41d3098dca590911690635f6d6a6290604401602060405180830381865afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d9190611d78565b1561149b5750600019610657565b506001600160a01b03828116600090815260016020908152604080832093851683529290522054610657565b6000806114d58360e0611f0a565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b6001600160a01b0382166000908152602081905260408120549061152b8383611d33565b90506001600160e01b031981166001600160e01b0319831614611583578361155285610bc1565b60405163391434e360e21b81526001600160a01b0390921660048301526024820152604481018490526064016108ca565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b0382166115d65760405163ec442f0560e01b81526001600160a01b03831660048201526024016108ca565b6001600160a01b038216600090815260208190526040812054906115fa8383611db0565b90506001600160e01b031981166001600160e01b031983161461158357604051634a2e08e560e01b81526001600160a01b038516600482015260248101839052604481018490526064016108ca565b806002600082825461165b9190611db0565b9091555061166b905082826115a4565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161129c565b6000610653338484611106565b6000815180845260005b818110156116dc576020818501810151868301820152016116c0565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d0b60208301846116b6565b6001600160a01b038116811461095d57600080fd5b6000806040838503121561173757600080fd5b82356117428161170f565b946020939093013593505050565b60008083601f84011261176257600080fd5b50813567ffffffffffffffff81111561177a57600080fd5b60208301915083602082850101111561179257600080fd5b9250929050565b600080602083850312156117ac57600080fd5b823567ffffffffffffffff8111156117c357600080fd5b6117cf85828601611750565b90969095509350505050565b6000806000606084860312156117f057600080fd5b83356117fb8161170f565b9250602084013561180b8161170f565b929592945050506040919091013590565b60006020828403121561182e57600080fd5b8135610d0b8161170f565b6000806000806060858703121561184f57600080fd5b843561185a8161170f565b935060208501359250604085013567ffffffffffffffff81111561187d57600080fd5b61188987828801611750565b95989497509550505050565b60008083601f8401126118a757600080fd5b50813567ffffffffffffffff8111156118bf57600080fd5b6020830191508360208260051b850101111561179257600080fd5b600080600080604085870312156118f057600080fd5b843567ffffffffffffffff8082111561190857600080fd5b61191488838901611895565b9096509450602087013591508082111561192d57600080fd5b5061188987828801611895565b60006020828403121561194c57600080fd5b5035919050565b60008060008060008060006080888a03121561196e57600080fd5b873567ffffffffffffffff8082111561198657600080fd5b6119928b838c01611895565b909950975060208a013591506119a78261170f565b909550604089013590808211156119bd57600080fd5b6119c98b838c01611895565b909650945060608a01359150808211156119e257600080fd5b506119ef8a828b01611750565b989b979a50959850939692959293505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611a2957600080fd5b813567ffffffffffffffff80821115611a4457611a44611a02565b604051601f8301601f19908116603f01168101908282118183101715611a6c57611a6c611a02565b81604052838152866020858801011115611a8557600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215611ab857600080fd5b823567ffffffffffffffff80821115611ad057600080fd5b611adc86838701611a18565b93506020850135915080821115611af257600080fd5b50611aff85828601611a18565b9150509250929050565b60008060408385031215611b1c57600080fd5b8235611b278161170f565b91506020830135611b378161170f565b809150509250929050565b600060208284031215611b5457600080fd5b813567ffffffffffffffff811115611b6b57600080fd5b611b7784828501611a18565b949350505050565b803560ff81168114610c2a57600080fd5b600080600080600080600060e0888a031215611bab57600080fd5b8735611bb68161170f565b96506020880135611bc68161170f565b95506040880135945060608801359350611be260808901611b7f565b925060a0880135915060c0880135905092959891949750929550565b600080600080600060808688031215611c1657600080fd5b8535611c218161170f565b94506020860135611c318161170f565b935060408601359250606086013567ffffffffffffffff811115611c5457600080fd5b611c6088828901611750565b969995985093965092949392505050565b60008060408385031215611c8457600080fd5b8235611c8f8161170f565b9150611c9d60208401611b7f565b90509250929050565b600181811c90821680611cba57607f821691505b602082108103611cda57634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611b77602083018486611ce0565b634e487b7160e01b600052601160045260246000fd5b8181038181111561065757610657611d1d565b60018060a01b0385168152836020820152606060408201526000611d6e606083018486611ce0565b9695505050505050565b600060208284031215611d8a57600080fd5b81518015158114610d0b57600080fd5b634e487b7160e01b600052603260045260246000fd5b8082018082111561065757610657611d1d565b838152604060208201526000610892604083018486611ce0565b601f82111561123b576000816000526020600020601f850160051c81016020861015611e065750805b601f850160051c820191505b8181101561092e57828155600101611e12565b815167ffffffffffffffff811115611e3f57611e3f611a02565b611e5381611e4d8454611ca6565b84611ddd565b602080601f831160018114611e885760008415611e705750858301515b600019600386901b1c1916600185901b17855561092e565b600085815260208120601f198616915b82811015611eb757888601518255948401946001909101908401611e98565b5085821015611ed55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000611ef860408301856116b6565b828103602084015261089281856116b6565b60ff818116838216019081111561065757610657611d1d56fea26469706673582212206a77cfdd58dda7a8fcb5c1c8064fb0d2e24890e31ac83230ce9c6aadf34a689464736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000001adb0000000000000000000000000cafdc612c321c8f22bae3922e1f4bff2bfa97d75000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae185000000000000000000000000c5e049019fd4c21de3685f60993fd41d3098dca500000000000000000000000000000000000000000000000000000000000000034f5052000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000104f706572616c20414720536861726573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017696e766573742e6f706572616c2e736f6c7574696f6e73000000000000000000
-----Decoded View---------------
Arg [0] : _symbol (string): OPR
Arg [1] : _name (string): Operal AG Shares
Arg [2] : _terms (string): invest.operal.solutions
Arg [3] : _totalShares (uint256): 110000
Arg [4] : _owner (address): 0xCaFdC612c321c8F22bAe3922E1f4bFf2BfA97D75
Arg [5] : _recoveryHub (address): 0xAEa2886Cb865BaB01Fc43f3c3F51B27B720aE185
Arg [6] : _permit2Hub (address): 0xc5E049019fD4c21dE3685F60993Fd41d3098DcA5
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 000000000000000000000000000000000000000000000000000000000001adb0
Arg [4] : 000000000000000000000000cafdc612c321c8f22bae3922e1f4bff2bfa97d75
Arg [5] : 000000000000000000000000aea2886cb865bab01fc43f3c3f51b27b720ae185
Arg [6] : 000000000000000000000000c5e049019fd4c21de3685f60993fd41d3098dca5
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4f50520000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [10] : 4f706572616c2041472053686172657300000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [12] : 696e766573742e6f706572616c2e736f6c7574696f6e73000000000000000000
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.