ETH Price: $3,981.57 (+2.96%)

Token

ERC-20: Clever Forever Education AG Shares SHA (CFES)

Overview

Max Total Supply

1,527,780 CFES

Holders

4

Total Transfers

-

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
DraggableShares

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 12 : DraggableShares.sol
/**
* SPDX-License-Identifier: LicenseRef-Aktionariat
*
* MIT License with Automated License Fee Payments
*
* Copyright (c) 2020 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 "../recovery/ERC20Recoverable.sol";
import "../draggable/ERC20Draggable.sol";

/**
 * @title CompanyName AG Shares SHA
 * @author Luzius Meisser, [email protected]
 *
 * This is an ERC-20 token representing share tokens of CompanyName AG that are bound to
 * a shareholder agreement that can be found at the URL defined in the constant 'terms'.
 */
contract DraggableShares is ERC20Draggable, ERC20Recoverable {

    string public terms;

    constructor(
        string memory _terms,
        IERC20 _wrappedToken,
        uint256 _quorumBps,
        uint256 _votePeriodSeconds,
        IRecoveryHub _recoveryHub,
        IOfferFactory _offerFactory,
        address _oracle
    )
        ERC20Draggable(_wrappedToken, _quorumBps, _votePeriodSeconds, _offerFactory, _oracle)
        ERC20Recoverable(_recoveryHub) 
    {
        terms = _terms; // to update the terms, migrate to a new contract. That way it is ensured that the terms can only be updated when the quorom agrees.
        _recoveryHub.setRecoverable(false);
    }

    function transfer(address to, uint256 value) virtual override(ERC20Flaggable, ERC20Recoverable) public returns (bool) {
        return super.transfer(to, value);
    }

    /**
     * Let the oracle act as deleter of invalid claims. In earlier versions, this was referring to the claim deleter
     * of the wrapped token. But that stops working after a successful acquisition as the acquisition currency most
     * likely does not have a claim deleter.
     */
    function getClaimDeleter() public view override returns (address) {
        return oracle;
    }

    function getCollateralRate(IERC20 collateralType) public view override returns (uint256) {
        uint256 rate = super.getCollateralRate(collateralType);
        if (rate > 0) {
            return rate;
        } else {
            // as long as it is binding, the conversion rate is 1:1
            uint256 factor = isBinding() ? 1 : unwrapConversionFactor;
            if (address(collateralType) == address(wrapped)) {
                // allow wrapped token as collateral
                return factor;
            } else {
                // If the wrapped contract allows for a specific collateral, we should too.
                // If the wrapped contract is not IRecoverable, we will fail here, but would fail anyway.
                return IRecoverable(address(wrapped)).getCollateralRate(collateralType) * factor;
            }
        }
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) virtual override(ERC20Flaggable, ERC20Draggable) internal {
        super._beforeTokenTransfer(from, to, amount);
    }

}

File 2 of 12 : ERC20Flaggable.sol
// 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 "./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 {

    // 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);

    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) external view 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 = _allowances[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 {
        require(recipient != address(0x0), "0x0"); // use burn instead
        uint256 oldBalance = _balances[recipient];
        uint256 newBalance = oldBalance + amount;
        require(oldBalance & FLAGGING_MASK == newBalance & FLAGGING_MASK, "overflow");
        _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;
        require(oldBalance & FLAGGING_MASK == newBalance & FLAGGING_MASK, "underflow");
        _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
    }

}

File 3 of 12 : IERC20.sol
/**
* 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);

}

File 4 of 12 : IERC677Receiver.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC677Receiver {
    
    function onTokenTransfer(address from, uint256 amount, bytes calldata data) external returns (bool);

}

File 5 of 12 : ERC20Draggable.sol
/**
 * SPDX-License-Identifier: LicenseRef-Aktionariat
 *
 * MIT License with Automated License Fee Payments
 *
 * Copyright (c) 2020 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;

/**
 * @title ERC-20 tokens subject to a drag-along agreement
 * @author Luzius Meisser, [email protected]
 *
 * This is an ERC-20 token that is bound to a shareholder or other agreement that contains
 * a drag-along clause. The smart contract can help enforce this drag-along clause in case
 * an acquirer makes an offer using the provided functionality. If a large enough quorum of
 * token holders agree, the remaining token holders can be automatically "dragged along" or
 * squeezed out. For shares non-tokenized shares, the contract relies on an external Oracle
 * to provide the votes of those.
 *
 * Subclasses should provide a link to a human-readable form of the agreement.
 */

import "./IDraggable.sol";
import "../ERC20/ERC20Flaggable.sol";
import "../ERC20/IERC20.sol";
import "../ERC20/IERC677Receiver.sol";
import "./IOffer.sol";
import "./IOfferFactory.sol";
import "../shares/IShares.sol";

abstract contract ERC20Draggable is IERC677Receiver, IDraggable, ERC20Flaggable {
    
	// If flag is not present, one can be sure that the address did not vote. If the 
	// flag is present, the address might have voted and one needs to check with the
	// current offer (if any) when transferring tokens.
	uint8 private constant FLAG_VOTE_HINT = 1;

	IERC20 public wrapped; // The wrapped contract
	IOfferFactory public immutable factory;

	// If the wrapped tokens got replaced in an acquisition, unwrapping might yield many currency tokens
	uint256 public unwrapConversionFactor = 0;

	// The current acquisition attempt, if any. See initiateAcquisition to see the requirements to make a public offer.
	IOffer public offer;

	uint256 private constant QUORUM_MULTIPLIER = 10000;

	uint256 public immutable quorum; // BPS (out of 10'000)
	uint256 public immutable votePeriod; // In seconds

	address public override oracle;

	event MigrationSucceeded(address newContractAddress, uint256 yesVotes, uint256 oracleVotes, uint256 totalVotingPower);
	event ChangeOracle(address oracle);

    /**
	 * Note that the Brokerbot only supports tokens that revert on failure and where transfer never returns false.
     */
	constructor(
		IERC20 _wrappedToken,
		uint256 _quorum,
		uint256 _votePeriod,
		IOfferFactory _offerFactory,
		address _oracle
	) 
		ERC20Flaggable(0)
	{
		wrapped = _wrappedToken;
		quorum = _quorum;
		votePeriod = _votePeriod;
		factory = _offerFactory;
		oracle = _oracle;
	}

	function onTokenTransfer(
		address from, 
		uint256 amount, 
		bytes calldata
	) external override returns (bool) {
		require(msg.sender == address(wrapped), "sender");
		_mint(from, amount);
		return true;
	}

	/** Wraps additional tokens, thereby creating more ERC20Draggable tokens. */
	function wrap(address shareholder, uint256 amount) external {
		require(wrapped.transferFrom(msg.sender, address(this), amount), "transfer");
		_mint(shareholder, amount);
	}

	/**
	 * Indicates that the token holders are bound to the token terms and that:
	 * - Conversion back to the wrapped token (unwrap) is not allowed
	 * - A drag-along can be performed by making an according offer
	 * - They can be migrated to a new version of this contract in accordance with the terms
	 */
	function isBinding() public view returns (bool) {
		return unwrapConversionFactor == 0;
	}

    /**
	 * Current recommended naming convention is to add the postfix "SHA" to the plain shares
	 * in order to indicate that this token represents shares bound to a shareholder agreement.
	 */
	function name() public view override returns (string memory) {
		string memory wrappedName = wrapped.name();
		if (isBinding()) {
			return string(abi.encodePacked(wrappedName, " SHA"));
		} else {
			return string(abi.encodePacked(wrappedName, " (Wrapped)"));
		}
	}

	function symbol() public view override returns (string memory) {
		// ticker should be less dynamic than name
		return string(abi.encodePacked(wrapped.symbol(), "S"));
	}

	/**
	 * Deactivates the drag-along mechanism and enables the unwrap function.
	 */
	function deactivate(uint256 factor) internal {
		require(factor >= 1, "factor");
		unwrapConversionFactor = factor;
		emit NameChanged(name(), symbol());
	}

	/** Decrease the number of drag-along tokens. The user gets back their shares in return */
	function unwrap(uint256 amount) external {
		require(!isBinding(), "factor");
		unwrap(msg.sender, amount, unwrapConversionFactor);
	}

	function unwrap(address owner, uint256 amount, uint256 factor) internal {
		_burn(owner, amount);
		require(wrapped.transfer(owner, amount * factor), "transfer");
	}

	/**
	 * Burns both the token itself as well as the wrapped token!
	 * If you want to get out of the shareholder agreement, use unwrap after it has been
	 * deactivated by a majority vote or acquisition.
	 *
	 * Burning only works if wrapped token supports burning. Also, the exact meaning of this
	 * operation might depend on the circumstances. Burning and reussing the wrapped token
	 * does not free the sender from the legal obligations of the shareholder agreement.
	 */
	function burn(uint256 amount) external {
		_burn(msg.sender, amount);
		IShares(address(wrapped)).burn (isBinding() ? amount : amount * unwrapConversionFactor);
	}

	function makeAcquisitionOffer(
		bytes32 salt, 
		uint256 pricePerShare, 
		IERC20 currency
	) external payable {
		require(isBinding(), "factor");
		IOffer newOffer = factory.create{value: msg.value}(
			salt, msg.sender, pricePerShare, currency, quorum, votePeriod);

		if (offerExists()) {
			offer.makeCompetingOffer(newOffer);
		}
		offer = newOffer;
	}

	function drag(address buyer, IERC20 currency) external override offerOnly {
		unwrap(buyer, balanceOf(buyer), 1);
		replaceWrapped(currency, buyer);
	}

	function notifyOfferEnded() external override offerOnly {
		offer = IOffer(address(0));
	}

	function replaceWrapped(IERC20 newWrapped, address oldWrappedDestination) internal {
		require(isBinding(), "factor");
		// Free all old wrapped tokens we have
		require(wrapped.transfer(oldWrappedDestination, wrapped.balanceOf(address(this))), "transfer");
		// Count the new wrapped tokens
		wrapped = newWrapped;
		deactivate(newWrapped.balanceOf(address(this)) / totalSupply());
	}

	function setOracle(address newOracle) external {
		require(msg.sender == oracle, "not oracle");
		oracle = newOracle;
		emit ChangeOracle(oracle);
	}

	function migrateWithExternalApproval(address successor, uint256 additionalVotes) external {
		require(msg.sender == oracle, "not oracle");
		// Additional votes cannot be higher than the votes not represented by these tokens.
		// The assumption here is that more shareholders are bound to the shareholder agreement
		// that this contract helps enforce and a vote among all parties is necessary to change
		// it, with an oracle counting and reporting the votes of the others.
		require(totalSupply() + additionalVotes <= totalVotingTokens(), "votes");
		migrate(successor, additionalVotes);
	}

	function migrate() external {
		migrate(msg.sender, 0);
	}

	function migrate(address successor, uint256 additionalVotes) internal {
		uint256 yesVotes = additionalVotes + balanceOf(successor);
		uint256 totalVotes = totalVotingTokens();
		require(yesVotes <= totalVotes, "votes");
		require(!offerExists(), "no offer"); // if you have the quorum, you can cancel the offer first if necessary
		require(yesVotes * QUORUM_MULTIPLIER >= totalVotes * quorum, "quorum");
		replaceWrapped(IERC20(successor), successor);
		emit MigrationSucceeded(successor, yesVotes, additionalVotes, totalVotes);
	}

	function votingPower(address voter) external view override returns (uint256) {
		return balanceOf(voter);
	}

	function totalVotingTokens() public view override returns (uint256) {
		return IShares(address(wrapped)).totalShares();
	}

	function hasVoted(address voter) internal view returns (bool) {
		return hasFlagInternal(voter, FLAG_VOTE_HINT);
	}

	function notifyVoted(address voter) external override offerOnly {
		setFlag(voter, FLAG_VOTE_HINT, true);
	}

	modifier offerOnly(){
		require(msg.sender == address(offer), "sender");
		_;
	}

	function _beforeTokenTransfer(address from, address to,	uint256 amount) internal virtual override {
		if (hasVoted(from) || hasVoted(to)) {
			if (offerExists()) {
				offer.notifyMoved(from, to, amount);
			} else {
				setFlag(from, FLAG_VOTE_HINT, false);
				setFlag(to, FLAG_VOTE_HINT, false);
			}
		}
		super._beforeTokenTransfer(from, to, amount);
	}

	function offerExists() internal view returns (bool) {
		return address(offer) != address(0);
	}
}

File 6 of 12 : IDraggable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../ERC20/IERC20.sol";
interface IDraggable {
    
    function oracle() external view returns (address);
    function drag(address buyer, IERC20 currency) external;
    function notifyOfferEnded() external;
    function votingPower(address voter) external returns (uint256);
    function totalVotingTokens() external view returns (uint256);
    function notifyVoted(address voter) external;

}

File 7 of 12 : IOffer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../ERC20/IERC20.sol";

interface IOffer {
	function makeCompetingOffer(IOffer newOffer) external;

	// if there is a token transfer while an offer is open, the votes get transfered too
	function notifyMoved(address from, address to, uint256 value) external;

	function currency() external view returns (IERC20);

	function price() external view returns (uint256);

	function isWellFunded() external view returns (bool);
}

File 8 of 12 : IOfferFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../ERC20/IERC20.sol";
import "./IOffer.sol";

interface IOfferFactory {

	function create(
		bytes32 salt, address buyer, uint256 pricePerShare,	IERC20 currency,	uint256 quorum,	uint256 votePeriod
	) external payable returns (IOffer);
}

File 9 of 12 : ERC20Recoverable.sol
/**
* SPDX-License-Identifier: LicenseRef-Aktionariat
*
* MIT License with Automated License Fee Payments
*
* Copyright (c) 2020 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 immutable recovery;

    constructor(IRecoveryHub recoveryHub){
        recovery = recoveryHub;
    }

    /**
     * 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 {
            require(rate > 0, "zero");
            customCollateralRate = rate;
        }
    }

    function getClaimDeleter() virtual public view returns (address);

    function transfer(address recipient, uint256 amount) override(ERC20Flaggable, IERC20) virtual public returns (bool) {
        require(super.transfer(recipient, amount), "transfer");
        if (hasFlagInternal(msg.sender, FLAG_CLAIM_PRESENT)){
            recovery.clearClaimFromToken(msg.sender);
        }
        return true;
    }

    function notifyClaimMade(address target) external override {
        require(msg.sender == address(recovery), "not recovery");
        setFlag(target, FLAG_CLAIM_PRESENT, true);
    }

    function notifyClaimDeleted(address target) external override {
        require(msg.sender == address(recovery), "not recovery");
        setFlag(target, FLAG_CLAIM_PRESENT, false);
    }

    function deleteClaim(address lostAddress) external {
        require(msg.sender == getClaimDeleter(), "not claim deleter");
        recovery.deleteClaim(lostAddress);
    }

    function recover(address oldAddress, address newAddress) external override {
        require(msg.sender == address(recovery), "not recovery");
        _transfer(oldAddress, newAddress, balanceOf(oldAddress));
    }

}

File 10 of 12 : IRecoverable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../ERC20/IERC20.sol";

interface IRecoverable is IERC20{

    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;

}

File 11 of 12 : IRecoveryHub.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRecoveryHub {

    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;

}

File 12 of 12 : IShares.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IShares {
	function burn(uint256) external;

	function totalShares() external view returns (uint256);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_terms","type":"string"},{"internalType":"contract IERC20","name":"_wrappedToken","type":"address"},{"internalType":"uint256","name":"_quorumBps","type":"uint256"},{"internalType":"uint256","name":"_votePeriodSeconds","type":"uint256"},{"internalType":"contract IRecoveryHub","name":"_recoveryHub","type":"address"},{"internalType":"contract IOfferFactory","name":"_offerFactory","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"oracle","type":"address"}],"name":"ChangeOracle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newContractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"yesVotes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oracleVotes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalVotingPower","type":"uint256"}],"name":"MigrationSucceeded","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"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":"lostAddress","type":"address"}],"name":"deleteClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"contract IERC20","name":"currency","type":"address"}],"name":"drag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IOfferFactory","name":"","type":"address"}],"stateMutability":"view","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":"isBinding","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"pricePerShare","type":"uint256"},{"internalType":"contract IERC20","name":"currency","type":"address"}],"name":"makeAcquisitionOffer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"successor","type":"address"},{"internalType":"uint256","name":"additionalVotes","type":"uint256"}],"name":"migrateWithExternalApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"notifyOfferEnded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"voter","type":"address"}],"name":"notifyVoted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"offer","outputs":[{"internalType":"contract IOffer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quorum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"newOracle","type":"address"}],"name":"setOracle","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVotingTokens","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":"uint256","name":"amount","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unwrapConversionFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"voter","type":"address"}],"name":"votingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapped","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

61010060405260006004553480156200001757600080fd5b5060405162002768380380620027688339810160408190526200003a91620001e2565b600380546001600160a81b0319166101006001600160a01b03898116919091029190911790915560a086905260c0859052828116608052600680546001600160a01b031916838316179055831660e05286516200009f9060099060208a019062000109565b50604051636427ed9760e01b8152600060048201526001600160a01b03841690636427ed9790602401600060405180830381600087803b158015620000e357600080fd5b505af1158015620000f8573d6000803e3d6000fd5b50505050505050505050506200035b565b82805462000117906200031e565b90600052602060002090601f0160209004810192826200013b576000855562000186565b82601f106200015657805160ff191683800117855562000186565b8280016001018555821562000186579182015b828111156200018657825182559160200191906001019062000169565b506200019492915062000198565b5090565b5b8082111562000194576000815560010162000199565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001dd57600080fd5b919050565b600080600080600080600060e0888a031215620001fe57600080fd5b87516001600160401b03808211156200021657600080fd5b818a0191508a601f8301126200022b57600080fd5b815181811115620002405762000240620001af565b604051601f8201601f19908116603f011681019083821181831017156200026b576200026b620001af565b81604052828152602093508d848487010111156200028857600080fd5b600091505b82821015620002ac57848201840151818301850152908301906200028d565b82821115620002be5760008484830101525b9a50620002d09150508a8201620001c5565b975050506040880151945060608801519350620002f060808901620001c5565b92506200030060a08901620001c5565b91506200031060c08901620001c5565b905092959891949750929550565b600181811c908216806200033357607f821691505b602082108114156200035557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051612394620003d46000396000818161077001528181610afd01528181610ccf015281816110820152818161134401526117e70152600081816105fa01526111d301526000818161033f015281816111ad01526114e80152600081816106ce01526111fc01526123946000f3fe60806040526004361061025c5760003560e01c80637adbf97311610144578063c07473f6116100b6578063dd62ed3e1161007a578063dd62ed3e14610718578063ddceafa91461075e578063de0e9a3e14610792578063e5b824ec146107b2578063f5c0b95f146107d2578063fcb79a7e146107f257600080fd5b8063c07473f61461067c578063c18172c41461069c578063c45a0155146106bc578063d5025625146106f0578063dcc7d4ad1461070557600080fd5b80639e4b5745116101085780639e4b5745146105b2578063a4c0ed36146105c8578063a7813587146105e8578063a9059cbb1461061c578063bf376c7a1461063c578063c028df061461065c57600080fd5b80637adbf973146105325780637dc0d1d0146105525780637dc2cd98146105725780638fd3ab801461058857806395d89b411461059d57600080fd5b8063313ce567116101dd57806345c8a62b116101a157806345c8a62b1461047757806350e70d481461049757806360918117146104bc578063648bf774146104d257806370a08231146104f257806377e071ad1461051257600080fd5b8063313ce567146103d657806332a7ae951461040257806332bc320b146104225780634000aea01461043757806342966c681461045757600080fd5b80631703a018116102245780631703a0181461032d57806318160ddd14610361578063198453541461037657806323b872dd146103985780632a0a4ed5146103b857600080fd5b806306fdde03146102615780630832e4701461028c578063095ea7b3146102b05780630a81b2de146102e05780630c6f0e5d146102f5575b600080fd5b34801561026d57600080fd5b50610276610812565b6040516102839190611df9565b60405180910390f35b34801561029857600080fd5b506102a260045481565b604051908152602001610283565b3480156102bc57600080fd5b506102d06102cb366004611e21565b6108d9565b6040519015158152602001610283565b3480156102ec57600080fd5b506102a26108ef565b34801561030157600080fd5b50600754610315906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561033957600080fd5b506102a27f000000000000000000000000000000000000000000000000000000000000000081565b34801561036d57600080fd5b506002546102a2565b34801561038257600080fd5b50610396610391366004611e21565b61096d565b005b3480156103a457600080fd5b506102d06103b3366004611e4d565b610a19565b3480156103c457600080fd5b506006546001600160a01b0316610315565b3480156103e257600080fd5b506003546103f09060ff1681565b60405160ff9091168152602001610283565b34801561040e57600080fd5b5061039661041d366004611e8e565b610a90565b34801561042e57600080fd5b50610396610b5d565b34801561044357600080fd5b506102d0610452366004611eab565b610b99565b34801561046357600080fd5b50610396610472366004611f34565b610c2a565b34801561048357600080fd5b50610396610492366004611e8e565b610c8b565b3480156104a357600080fd5b506003546103159061010090046001600160a01b031681565b3480156104c857600080fd5b506102a260085481565b3480156104de57600080fd5b506103966104ed366004611f4d565b610cc4565b3480156104fe57600080fd5b506102a261050d366004611e8e565b610d1f565b34801561051e57600080fd5b506102a261052d366004611e8e565b610d43565b34801561053e57600080fd5b5061039661054d366004611e8e565b610e28565b34801561055e57600080fd5b50600654610315906001600160a01b031681565b34801561057e57600080fd5b5062ed4e006102a2565b34801561059457600080fd5b50610396610ec4565b3480156105a957600080fd5b50610276610ed1565b3480156105be57600080fd5b50600454156102d0565b3480156105d457600080fd5b506102d06105e3366004611eab565b610f72565b3480156105f457600080fd5b506102a27f000000000000000000000000000000000000000000000000000000000000000081565b34801561062857600080fd5b506102d0610637366004611e21565b610fae565b34801561064857600080fd5b50610396610657366004611e21565b610fc1565b34801561066857600080fd5b50600554610315906001600160a01b031681565b34801561068857600080fd5b506102a2610697366004611e8e565b611066565b3480156106a857600080fd5b506103966106b7366004611e8e565b611077565b3480156106c857600080fd5b506103157f000000000000000000000000000000000000000000000000000000000000000081565b3480156106fc57600080fd5b506102766110cc565b610396610713366004611f86565b61115a565b34801561072457600080fd5b506102a2610733366004611f4d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561076a57600080fd5b506103157f000000000000000000000000000000000000000000000000000000000000000081565b34801561079e57600080fd5b506103966107ad366004611f34565b61130d565b3480156107be57600080fd5b506103966107cd366004611e8e565b611339565b3480156107de57600080fd5b506102d06107ed366004611fbf565b61138e565b3480156107fe57600080fd5b5061039661080d366004611f4d565b61139a565b60606000600360019054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610869573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108919190810190612009565b905061089d6004541590565b156108c857806040516020016108b391906120b6565b60405160208183030381529060405291505090565b806040516020016108b391906120de565b60006108e63384846113e2565b50600192915050565b6000600360019054906101000a90046001600160a01b03166001600160a01b0316633a98ef396040518163ffffffff1660e01b8152600401602060405180830381865afa158015610944573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610968919061210c565b905090565b6006546001600160a01b031633146109b95760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064015b60405180910390fd5b6109c16108ef565b816109cb60025490565b6109d5919061213b565b1115610a0b5760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109b0565b610a158282611444565b5050565b6000610a268484846115b1565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600160ff1b811015610a8557610a608382612153565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b6006546001600160a01b03163314610ade5760405162461bcd60e51b81526020600482015260116024820152703737ba1031b630b4b6903232b632ba32b960791b60448201526064016109b0565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906332a7ae95906024015b600060405180830381600087803b158015610b4257600080fd5b505af1158015610b56573d6000803e3d6000fd5b5050505050565b6005546001600160a01b03163314610b875760405162461bcd60e51b81526004016109b09061216a565b600580546001600160a01b0319169055565b6000610ba58585610fae565b8015610c215750604051635260769b60e11b81526001600160a01b0386169063a4c0ed3690610bde90339088908890889060040161218a565b6020604051808303816000875af1158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2191906121d2565b95945050505050565b610c343382611615565b6003546001600160a01b03610100909104166342966c68610c556004541590565b610c6b57600454610c6690846121f4565b610c6d565b825b6040518263ffffffff1660e01b8152600401610b2891815260200190565b6005546001600160a01b03163314610cb55760405162461bcd60e51b81526004016109b09061216a565b610cc181600180611689565b50565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d0c5760405162461bcd60e51b81526004016109b090612213565b610a158282610d1a85610d1f565b6115b1565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b600080610d4f836116ed565b90508015610d5d5792915050565b6000610d696004541590565b610d7557600454610d78565b60015b6003549091506001600160a01b03858116610100909204161415610d9d579392505050565b6003546040516377e071ad60e01b81526001600160a01b0386811660048301528392610100900416906377e071ad90602401602060405180830381865afa158015610dec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e10919061210c565b610e1a91906121f4565b949350505050565b50919050565b6006546001600160a01b03163314610e6f5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064016109b0565b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527fc3977c9522c218453912bcab15964a7788968fbf3fe4d4e2965252c9f07055de906020015b60405180910390a150565b610ecf336000611444565b565b6060600360019054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f26573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f4e9190810190612009565b604051602001610f5e9190612239565b604051602081830303815290604052905090565b60035460009061010090046001600160a01b03163314610fa45760405162461bcd60e51b81526004016109b09061216a565b610a85858561172e565b6000610fba838361179a565b9392505050565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd906064016020604051808303816000875af115801561101c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104091906121d2565b61105c5760405162461bcd60e51b81526004016109b09061225e565b610a15828261172e565b600061107182610d1f565b92915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110bf5760405162461bcd60e51b81526004016109b090612213565b610cc181600a6001611689565b600980546110d990612280565b80601f016020809104026020016040519081016040528092919081815260200182805461110590612280565b80156111525780601f1061112757610100808354040283529160200191611152565b820191906000526020600020905b81548152906001019060200180831161113557829003601f168201915b505050505081565b6004541561117a5760405162461bcd60e51b81526004016109b0906122b5565b604051634dc5e43160e01b815260048101849052336024820152604481018390526001600160a01b0382811660648301527f000000000000000000000000000000000000000000000000000000000000000060848301527f000000000000000000000000000000000000000000000000000000000000000060a48301526000917f000000000000000000000000000000000000000000000000000000000000000090911690634dc5e43190349060c40160206040518083038185885af1158015611248573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061126d91906122d5565b90506112836005546001600160a01b0316151590565b156112e857600554604051637b64620f60e11b81526001600160a01b0383811660048301529091169063f6c8c41e90602401600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b505050505b600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b60045461132c5760405162461bcd60e51b81526004016109b0906122b5565b610cc13382600454611854565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113815760405162461bcd60e51b81526004016109b090612213565b610cc181600a6000611689565b6000610fba838361190f565b6005546001600160a01b031633146113c45760405162461bcd60e51b81526004016109b09061216a565b6113d8826113d184610d1f565b6001611854565b610a15818361194f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061144f83610d1f565b611459908361213b565b905060006114656108ef565b90508082111561149f5760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109b0565b6005546001600160a01b0316156114e35760405162461bcd60e51b815260206004820152600860248201526737379037b33332b960c11b60448201526064016109b0565b61150d7f0000000000000000000000000000000000000000000000000000000000000000826121f4565b611519612710846121f4565b10156115505760405162461bcd60e51b815260206004820152600660248201526571756f72756d60d01b60448201526064016109b0565b61155a848561194f565b604080516001600160a01b038616815260208101849052908101849052606081018290527f85e5711a70a7d2bae18e1232af474d82c98600b0e62fe079a28208520b58568e9060800160405180910390a150505050565b6115bc838383611b12565b6115c68382611b1d565b6115d08282611bb3565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161143791815260200190565b61162182600083611b12565b80600260008282546116339190612153565b9091555061164390508282611b1d565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60006116968360e06122f2565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610b56576001600160a01b0394909416600090815260208190526040902093189092555050565b60006001600160a01b03821630141561170857506001919050565b6007546001600160a01b038381169116141561172657505060085490565b506000919050565b61173a60008383611b12565b806002600082825461174c919061213b565b9091555061175c90508282611bb3565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161167d565b60006117a68383611c63565b6117c25760405162461bcd60e51b81526004016109b09061225e565b6117cd33600a61190f565b156108e6576040516304d301a360e41b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634d301a3090602401600060405180830381600087803b15801561183357600080fd5b505af1158015611847573d6000803e3d6000fd5b5050505050600192915050565b61185e8383611615565b60035461010090046001600160a01b031663a9059cbb8461187f84866121f4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156118ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ee91906121d2565b61190a5760405162461bcd60e51b81526004016109b09061225e565b505050565b60008061191d8360e06122f2565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b6004541561196f5760405162461bcd60e51b81526004016109b0906122b5565b6003546040516370a0823160e01b81523060048201526101009091046001600160a01b03169063a9059cbb90839083906370a0823190602401602060405180830381865afa1580156119c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e9919061210c565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5891906121d2565b611a745760405162461bcd60e51b81526004016109b09061225e565b60038054610100600160a81b0319166101006001600160a01b03851602179055600254610a15906040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b03919061210c565b611b0d9190612317565b611c70565b61190a838383611cd5565b6001600160a01b03821660009081526020819052604081205490611b418383612153565b90506001600160e01b031981166001600160e01b0319831614611b925760405162461bcd60e51b8152602060048201526009602482015268756e646572666c6f7760b81b60448201526064016109b0565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b038216611bef5760405162461bcd60e51b815260206004820152600360248201526203078360ec1b60448201526064016109b0565b6001600160a01b03821660009081526020819052604081205490611c13838361213b565b90506001600160e01b031981166001600160e01b0319831614611b925760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b60448201526064016109b0565b60006108e63384846115b1565b6001811015611c915760405162461bcd60e51b81526004016109b0906122b5565b60048190557f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a611cbf610812565b611cc7610ed1565b604051610eb9929190612339565b611cde83611d90565b80611ced5750611ced82611d90565b1561190a576005546001600160a01b031615611d765760055460405163e1a1810f60e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063e1a1810f90606401600060405180830381600087803b158015611d5957600080fd5b505af1158015611d6d573d6000803e3d6000fd5b50505050505050565b611d838360016000611689565b61190a8260016000611689565b600061107182600161190f565b60005b83811015611db8578181015183820152602001611da0565b83811115611dc7576000848401525b50505050565b60008151808452611de5816020860160208601611d9d565b601f01601f19169290920160200192915050565b602081526000610fba6020830184611dcd565b6001600160a01b0381168114610cc157600080fd5b60008060408385031215611e3457600080fd5b8235611e3f81611e0c565b946020939093013593505050565b600080600060608486031215611e6257600080fd5b8335611e6d81611e0c565b92506020840135611e7d81611e0c565b929592945050506040919091013590565b600060208284031215611ea057600080fd5b8135610fba81611e0c565b60008060008060608587031215611ec157600080fd5b8435611ecc81611e0c565b935060208501359250604085013567ffffffffffffffff80821115611ef057600080fd5b818701915087601f830112611f0457600080fd5b813581811115611f1357600080fd5b886020828501011115611f2557600080fd5b95989497505060200194505050565b600060208284031215611f4657600080fd5b5035919050565b60008060408385031215611f6057600080fd5b8235611f6b81611e0c565b91506020830135611f7b81611e0c565b809150509250929050565b600080600060608486031215611f9b57600080fd5b83359250602084013591506040840135611fb481611e0c565b809150509250925092565b60008060408385031215611fd257600080fd5b8235611fdd81611e0c565b9150602083013560ff81168114611f7b57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561201b57600080fd5b815167ffffffffffffffff8082111561203357600080fd5b818401915084601f83011261204757600080fd5b81518181111561205957612059611ff3565b604051601f8201601f19908116603f0116810190838211818310171561208157612081611ff3565b8160405282815287602084870101111561209a57600080fd5b6120ab836020830160208801611d9d565b979650505050505050565b600082516120c8818460208701611d9d565b632053484160e01b920191825250600401919050565b600082516120f0818460208701611d9d565b692028577261707065642960b01b920191825250600a01919050565b60006020828403121561211e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561214e5761214e612125565b500190565b60008282101561216557612165612125565b500390565b60208082526006908201526539b2b73232b960d11b604082015260600190565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b6000602082840312156121e457600080fd5b81518015158114610fba57600080fd5b600081600019048311821515161561220e5761220e612125565b500290565b6020808252600c908201526b6e6f74207265636f7665727960a01b604082015260600190565b6000825161224b818460208701611d9d565b605360f81b920191825250600101919050565b6020808252600890820152673a3930b739b332b960c11b604082015260600190565b600181811c9082168061229457607f821691505b60208210811415610e2257634e487b7160e01b600052602260045260246000fd5b6020808252600690820152653330b1ba37b960d11b604082015260600190565b6000602082840312156122e757600080fd5b8151610fba81611e0c565b600060ff821660ff84168060ff0382111561230f5761230f612125565b019392505050565b60008261233457634e487b7160e01b600052601260045260246000fd5b500490565b60408152600061234c6040830185611dcd565b8281036020840152610c218185611dcd56fea2646970667358221220ed9a80bb235c5f12d8329aa64be7e05b8aa8360dcfe87ed9a01884ff2ef3436164736f6c634300080c003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000016679cd8965c248e02a3459b9d12eda160d4c3400000000000000000000000000000000000000000000000000000000000001a0b00000000000000000000000000000000000000000000000000000000004f1a00000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a000000000000000000000000724a27146a6139ff59b5c4b3283fa14e33bbe442000000000000000000000000b30b136da98e7910b13e89d79d60eea33bb38a91000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6361746e636c657665722e636f6d2f696e766573746f7273

Deployed Bytecode

0x60806040526004361061025c5760003560e01c80637adbf97311610144578063c07473f6116100b6578063dd62ed3e1161007a578063dd62ed3e14610718578063ddceafa91461075e578063de0e9a3e14610792578063e5b824ec146107b2578063f5c0b95f146107d2578063fcb79a7e146107f257600080fd5b8063c07473f61461067c578063c18172c41461069c578063c45a0155146106bc578063d5025625146106f0578063dcc7d4ad1461070557600080fd5b80639e4b5745116101085780639e4b5745146105b2578063a4c0ed36146105c8578063a7813587146105e8578063a9059cbb1461061c578063bf376c7a1461063c578063c028df061461065c57600080fd5b80637adbf973146105325780637dc0d1d0146105525780637dc2cd98146105725780638fd3ab801461058857806395d89b411461059d57600080fd5b8063313ce567116101dd57806345c8a62b116101a157806345c8a62b1461047757806350e70d481461049757806360918117146104bc578063648bf774146104d257806370a08231146104f257806377e071ad1461051257600080fd5b8063313ce567146103d657806332a7ae951461040257806332bc320b146104225780634000aea01461043757806342966c681461045757600080fd5b80631703a018116102245780631703a0181461032d57806318160ddd14610361578063198453541461037657806323b872dd146103985780632a0a4ed5146103b857600080fd5b806306fdde03146102615780630832e4701461028c578063095ea7b3146102b05780630a81b2de146102e05780630c6f0e5d146102f5575b600080fd5b34801561026d57600080fd5b50610276610812565b6040516102839190611df9565b60405180910390f35b34801561029857600080fd5b506102a260045481565b604051908152602001610283565b3480156102bc57600080fd5b506102d06102cb366004611e21565b6108d9565b6040519015158152602001610283565b3480156102ec57600080fd5b506102a26108ef565b34801561030157600080fd5b50600754610315906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561033957600080fd5b506102a27f0000000000000000000000000000000000000000000000000000000000001a0b81565b34801561036d57600080fd5b506002546102a2565b34801561038257600080fd5b50610396610391366004611e21565b61096d565b005b3480156103a457600080fd5b506102d06103b3366004611e4d565b610a19565b3480156103c457600080fd5b506006546001600160a01b0316610315565b3480156103e257600080fd5b506003546103f09060ff1681565b60405160ff9091168152602001610283565b34801561040e57600080fd5b5061039661041d366004611e8e565b610a90565b34801561042e57600080fd5b50610396610b5d565b34801561044357600080fd5b506102d0610452366004611eab565b610b99565b34801561046357600080fd5b50610396610472366004611f34565b610c2a565b34801561048357600080fd5b50610396610492366004611e8e565b610c8b565b3480156104a357600080fd5b506003546103159061010090046001600160a01b031681565b3480156104c857600080fd5b506102a260085481565b3480156104de57600080fd5b506103966104ed366004611f4d565b610cc4565b3480156104fe57600080fd5b506102a261050d366004611e8e565b610d1f565b34801561051e57600080fd5b506102a261052d366004611e8e565b610d43565b34801561053e57600080fd5b5061039661054d366004611e8e565b610e28565b34801561055e57600080fd5b50600654610315906001600160a01b031681565b34801561057e57600080fd5b5062ed4e006102a2565b34801561059457600080fd5b50610396610ec4565b3480156105a957600080fd5b50610276610ed1565b3480156105be57600080fd5b50600454156102d0565b3480156105d457600080fd5b506102d06105e3366004611eab565b610f72565b3480156105f457600080fd5b506102a27f00000000000000000000000000000000000000000000000000000000004f1a0081565b34801561062857600080fd5b506102d0610637366004611e21565b610fae565b34801561064857600080fd5b50610396610657366004611e21565b610fc1565b34801561066857600080fd5b50600554610315906001600160a01b031681565b34801561068857600080fd5b506102a2610697366004611e8e565b611066565b3480156106a857600080fd5b506103966106b7366004611e8e565b611077565b3480156106c857600080fd5b506103157f000000000000000000000000724a27146a6139ff59b5c4b3283fa14e33bbe44281565b3480156106fc57600080fd5b506102766110cc565b610396610713366004611f86565b61115a565b34801561072457600080fd5b506102a2610733366004611f4d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561076a57600080fd5b506103157f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a81565b34801561079e57600080fd5b506103966107ad366004611f34565b61130d565b3480156107be57600080fd5b506103966107cd366004611e8e565b611339565b3480156107de57600080fd5b506102d06107ed366004611fbf565b61138e565b3480156107fe57600080fd5b5061039661080d366004611f4d565b61139a565b60606000600360019054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610869573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108919190810190612009565b905061089d6004541590565b156108c857806040516020016108b391906120b6565b60405160208183030381529060405291505090565b806040516020016108b391906120de565b60006108e63384846113e2565b50600192915050565b6000600360019054906101000a90046001600160a01b03166001600160a01b0316633a98ef396040518163ffffffff1660e01b8152600401602060405180830381865afa158015610944573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610968919061210c565b905090565b6006546001600160a01b031633146109b95760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064015b60405180910390fd5b6109c16108ef565b816109cb60025490565b6109d5919061213b565b1115610a0b5760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109b0565b610a158282611444565b5050565b6000610a268484846115b1565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600160ff1b811015610a8557610a608382612153565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b6006546001600160a01b03163314610ade5760405162461bcd60e51b81526020600482015260116024820152703737ba1031b630b4b6903232b632ba32b960791b60448201526064016109b0565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a16906332a7ae95906024015b600060405180830381600087803b158015610b4257600080fd5b505af1158015610b56573d6000803e3d6000fd5b5050505050565b6005546001600160a01b03163314610b875760405162461bcd60e51b81526004016109b09061216a565b600580546001600160a01b0319169055565b6000610ba58585610fae565b8015610c215750604051635260769b60e11b81526001600160a01b0386169063a4c0ed3690610bde90339088908890889060040161218a565b6020604051808303816000875af1158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2191906121d2565b95945050505050565b610c343382611615565b6003546001600160a01b03610100909104166342966c68610c556004541590565b610c6b57600454610c6690846121f4565b610c6d565b825b6040518263ffffffff1660e01b8152600401610b2891815260200190565b6005546001600160a01b03163314610cb55760405162461bcd60e51b81526004016109b09061216a565b610cc181600180611689565b50565b336001600160a01b037f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a1614610d0c5760405162461bcd60e51b81526004016109b090612213565b610a158282610d1a85610d1f565b6115b1565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b600080610d4f836116ed565b90508015610d5d5792915050565b6000610d696004541590565b610d7557600454610d78565b60015b6003549091506001600160a01b03858116610100909204161415610d9d579392505050565b6003546040516377e071ad60e01b81526001600160a01b0386811660048301528392610100900416906377e071ad90602401602060405180830381865afa158015610dec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e10919061210c565b610e1a91906121f4565b949350505050565b50919050565b6006546001600160a01b03163314610e6f5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064016109b0565b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527fc3977c9522c218453912bcab15964a7788968fbf3fe4d4e2965252c9f07055de906020015b60405180910390a150565b610ecf336000611444565b565b6060600360019054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f26573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f4e9190810190612009565b604051602001610f5e9190612239565b604051602081830303815290604052905090565b60035460009061010090046001600160a01b03163314610fa45760405162461bcd60e51b81526004016109b09061216a565b610a85858561172e565b6000610fba838361179a565b9392505050565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd906064016020604051808303816000875af115801561101c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104091906121d2565b61105c5760405162461bcd60e51b81526004016109b09061225e565b610a15828261172e565b600061107182610d1f565b92915050565b336001600160a01b037f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a16146110bf5760405162461bcd60e51b81526004016109b090612213565b610cc181600a6001611689565b600980546110d990612280565b80601f016020809104026020016040519081016040528092919081815260200182805461110590612280565b80156111525780601f1061112757610100808354040283529160200191611152565b820191906000526020600020905b81548152906001019060200180831161113557829003601f168201915b505050505081565b6004541561117a5760405162461bcd60e51b81526004016109b0906122b5565b604051634dc5e43160e01b815260048101849052336024820152604481018390526001600160a01b0382811660648301527f0000000000000000000000000000000000000000000000000000000000001a0b60848301527f00000000000000000000000000000000000000000000000000000000004f1a0060a48301526000917f000000000000000000000000724a27146a6139ff59b5c4b3283fa14e33bbe44290911690634dc5e43190349060c40160206040518083038185885af1158015611248573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061126d91906122d5565b90506112836005546001600160a01b0316151590565b156112e857600554604051637b64620f60e11b81526001600160a01b0383811660048301529091169063f6c8c41e90602401600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b505050505b600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b60045461132c5760405162461bcd60e51b81526004016109b0906122b5565b610cc13382600454611854565b336001600160a01b037f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a16146113815760405162461bcd60e51b81526004016109b090612213565b610cc181600a6000611689565b6000610fba838361190f565b6005546001600160a01b031633146113c45760405162461bcd60e51b81526004016109b09061216a565b6113d8826113d184610d1f565b6001611854565b610a15818361194f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061144f83610d1f565b611459908361213b565b905060006114656108ef565b90508082111561149f5760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109b0565b6005546001600160a01b0316156114e35760405162461bcd60e51b815260206004820152600860248201526737379037b33332b960c11b60448201526064016109b0565b61150d7f0000000000000000000000000000000000000000000000000000000000001a0b826121f4565b611519612710846121f4565b10156115505760405162461bcd60e51b815260206004820152600660248201526571756f72756d60d01b60448201526064016109b0565b61155a848561194f565b604080516001600160a01b038616815260208101849052908101849052606081018290527f85e5711a70a7d2bae18e1232af474d82c98600b0e62fe079a28208520b58568e9060800160405180910390a150505050565b6115bc838383611b12565b6115c68382611b1d565b6115d08282611bb3565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161143791815260200190565b61162182600083611b12565b80600260008282546116339190612153565b9091555061164390508282611b1d565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60006116968360e06122f2565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610b56576001600160a01b0394909416600090815260208190526040902093189092555050565b60006001600160a01b03821630141561170857506001919050565b6007546001600160a01b038381169116141561172657505060085490565b506000919050565b61173a60008383611b12565b806002600082825461174c919061213b565b9091555061175c90508282611bb3565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161167d565b60006117a68383611c63565b6117c25760405162461bcd60e51b81526004016109b09061225e565b6117cd33600a61190f565b156108e6576040516304d301a360e41b81523360048201527f000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a6001600160a01b031690634d301a3090602401600060405180830381600087803b15801561183357600080fd5b505af1158015611847573d6000803e3d6000fd5b5050505050600192915050565b61185e8383611615565b60035461010090046001600160a01b031663a9059cbb8461187f84866121f4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156118ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ee91906121d2565b61190a5760405162461bcd60e51b81526004016109b09061225e565b505050565b60008061191d8360e06122f2565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b6004541561196f5760405162461bcd60e51b81526004016109b0906122b5565b6003546040516370a0823160e01b81523060048201526101009091046001600160a01b03169063a9059cbb90839083906370a0823190602401602060405180830381865afa1580156119c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e9919061210c565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5891906121d2565b611a745760405162461bcd60e51b81526004016109b09061225e565b60038054610100600160a81b0319166101006001600160a01b03851602179055600254610a15906040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b03919061210c565b611b0d9190612317565b611c70565b61190a838383611cd5565b6001600160a01b03821660009081526020819052604081205490611b418383612153565b90506001600160e01b031981166001600160e01b0319831614611b925760405162461bcd60e51b8152602060048201526009602482015268756e646572666c6f7760b81b60448201526064016109b0565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b038216611bef5760405162461bcd60e51b815260206004820152600360248201526203078360ec1b60448201526064016109b0565b6001600160a01b03821660009081526020819052604081205490611c13838361213b565b90506001600160e01b031981166001600160e01b0319831614611b925760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b60448201526064016109b0565b60006108e63384846115b1565b6001811015611c915760405162461bcd60e51b81526004016109b0906122b5565b60048190557f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a611cbf610812565b611cc7610ed1565b604051610eb9929190612339565b611cde83611d90565b80611ced5750611ced82611d90565b1561190a576005546001600160a01b031615611d765760055460405163e1a1810f60e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063e1a1810f90606401600060405180830381600087803b158015611d5957600080fd5b505af1158015611d6d573d6000803e3d6000fd5b50505050505050565b611d838360016000611689565b61190a8260016000611689565b600061107182600161190f565b60005b83811015611db8578181015183820152602001611da0565b83811115611dc7576000848401525b50505050565b60008151808452611de5816020860160208601611d9d565b601f01601f19169290920160200192915050565b602081526000610fba6020830184611dcd565b6001600160a01b0381168114610cc157600080fd5b60008060408385031215611e3457600080fd5b8235611e3f81611e0c565b946020939093013593505050565b600080600060608486031215611e6257600080fd5b8335611e6d81611e0c565b92506020840135611e7d81611e0c565b929592945050506040919091013590565b600060208284031215611ea057600080fd5b8135610fba81611e0c565b60008060008060608587031215611ec157600080fd5b8435611ecc81611e0c565b935060208501359250604085013567ffffffffffffffff80821115611ef057600080fd5b818701915087601f830112611f0457600080fd5b813581811115611f1357600080fd5b886020828501011115611f2557600080fd5b95989497505060200194505050565b600060208284031215611f4657600080fd5b5035919050565b60008060408385031215611f6057600080fd5b8235611f6b81611e0c565b91506020830135611f7b81611e0c565b809150509250929050565b600080600060608486031215611f9b57600080fd5b83359250602084013591506040840135611fb481611e0c565b809150509250925092565b60008060408385031215611fd257600080fd5b8235611fdd81611e0c565b9150602083013560ff81168114611f7b57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561201b57600080fd5b815167ffffffffffffffff8082111561203357600080fd5b818401915084601f83011261204757600080fd5b81518181111561205957612059611ff3565b604051601f8201601f19908116603f0116810190838211818310171561208157612081611ff3565b8160405282815287602084870101111561209a57600080fd5b6120ab836020830160208801611d9d565b979650505050505050565b600082516120c8818460208701611d9d565b632053484160e01b920191825250600401919050565b600082516120f0818460208701611d9d565b692028577261707065642960b01b920191825250600a01919050565b60006020828403121561211e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561214e5761214e612125565b500190565b60008282101561216557612165612125565b500390565b60208082526006908201526539b2b73232b960d11b604082015260600190565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b6000602082840312156121e457600080fd5b81518015158114610fba57600080fd5b600081600019048311821515161561220e5761220e612125565b500290565b6020808252600c908201526b6e6f74207265636f7665727960a01b604082015260600190565b6000825161224b818460208701611d9d565b605360f81b920191825250600101919050565b6020808252600890820152673a3930b739b332b960c11b604082015260600190565b600181811c9082168061229457607f821691505b60208210811415610e2257634e487b7160e01b600052602260045260246000fd5b6020808252600690820152653330b1ba37b960d11b604082015260600190565b6000602082840312156122e757600080fd5b8151610fba81611e0c565b600060ff821660ff84168060ff0382111561230f5761230f612125565b019392505050565b60008261233457634e487b7160e01b600052601260045260246000fd5b500490565b60408152600061234c6040830185611dcd565b8281036020840152610c218185611dcd56fea2646970667358221220ed9a80bb235c5f12d8329aa64be7e05b8aa8360dcfe87ed9a01884ff2ef3436164736f6c634300080c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000016679cd8965c248e02a3459b9d12eda160d4c3400000000000000000000000000000000000000000000000000000000000001a0b00000000000000000000000000000000000000000000000000000000004f1a00000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a000000000000000000000000724a27146a6139ff59b5c4b3283fa14e33bbe442000000000000000000000000b30b136da98e7910b13e89d79d60eea33bb38a91000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6361746e636c657665722e636f6d2f696e766573746f7273

-----Decoded View---------------
Arg [0] : _terms (string): https://catnclever.com/investors
Arg [1] : _wrappedToken (address): 0x16679cd8965C248E02A3459B9d12EDA160D4C340
Arg [2] : _quorumBps (uint256): 6667
Arg [3] : _votePeriodSeconds (uint256): 5184000
Arg [4] : _recoveryHub (address): 0xE869319d5154fBB8e4F858F471179487e6Cf184a
Arg [5] : _offerFactory (address): 0x724a27146a6139ff59b5C4B3283Fa14E33BbE442
Arg [6] : _oracle (address): 0xB30B136dA98e7910B13E89D79D60eEa33bB38A91

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 00000000000000000000000016679cd8965c248e02a3459b9d12eda160d4c340
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001a0b
Arg [3] : 00000000000000000000000000000000000000000000000000000000004f1a00
Arg [4] : 000000000000000000000000e869319d5154fbb8e4f858f471179487e6cf184a
Arg [5] : 000000000000000000000000724a27146a6139ff59b5c4b3283fa14e33bbe442
Arg [6] : 000000000000000000000000b30b136da98e7910b13e89d79d60eea33bb38a91
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [8] : 68747470733a2f2f6361746e636c657665722e636f6d2f696e766573746f7273


[ 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.