ETH Price: $2,290.05 (-3.49%)

Token

PensionDynamics by ICR SHA (PDS)
 

Overview

Max Total Supply

350,000 PDS

Holders

43

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Balance
17,339 PDS

Value
$0.00
0xbf725cb78c78933812e511cebebb57b5710aa00c
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DraggableShares

Compiler Version
v0.8.7+commit.e28d00a7

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"}]

61010060405260006004553480156200001757600080fd5b5060405162002827380380620028278339810160408190526200003a91620001e0565b600380546001600160a81b0319166101006001600160a01b03898116919091029190911790915560a086905260c0859052606083811b6001600160601b0319908116608052600680546001600160a01b0319169385169390931790925584901b1660e0528651620000b39060099060208a01906200011d565b50604051636427ed9760e01b8152600060048201526001600160a01b03841690636427ed9790602401600060405180830381600087803b158015620000f757600080fd5b505af11580156200010c573d6000803e3d6000fd5b50505050505050505050506200036f565b8280546200012b906200031c565b90600052602060002090601f0160209004810192826200014f57600085556200019a565b82601f106200016a57805160ff19168380011785556200019a565b828001600101855582156200019a579182015b828111156200019a5782518255916020019190600101906200017d565b50620001a8929150620001ac565b5090565b5b80821115620001a85760008155600101620001ad565b80516001600160a01b0381168114620001db57600080fd5b919050565b600080600080600080600060e0888a031215620001fc57600080fd5b87516001600160401b03808211156200021457600080fd5b818a0191508a601f8301126200022957600080fd5b8151818111156200023e576200023e62000359565b604051601f8201601f19908116603f0116810190838211818310171562000269576200026962000359565b81604052828152602093508d848487010111156200028657600080fd5b600091505b82821015620002aa57848201840151818301850152908301906200028b565b82821115620002bc5760008484830101525b9a50620002ce9150508a8201620001c3565b975050506040880151945060608801519350620002ee60808901620001c3565b9250620002fe60a08901620001c3565b91506200030e60c08901620001c3565b905092959891949750929550565b600181811c908216806200033157607f821691505b602082108114156200035357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160c05160e05160601c612439620003ee6000396000818161077001528181610b1b01528181610cfc015281816110dc015281816113ad01526118500152600081816105fa015261122d01526000818161033f0152818161120701526115510152600081816106ce015261125601526124396000f3fe60806040526004361061025c5760003560e01c80637adbf97311610144578063c07473f6116100b6578063dd62ed3e1161007a578063dd62ed3e14610718578063ddceafa91461075e578063de0e9a3e14610792578063e5b824ec146107b2578063f5c0b95f146107d2578063fcb79a7e146107f257600080fd5b8063c07473f61461067c578063c18172c41461069c578063c45a0155146106bc578063d5025625146106f0578063dcc7d4ad1461070557600080fd5b80639e4b5745116101085780639e4b5745146105b2578063a4c0ed36146105c8578063a7813587146105e8578063a9059cbb1461061c578063bf376c7a1461063c578063c028df061461065c57600080fd5b80637adbf973146105325780637dc0d1d0146105525780637dc2cd98146105725780638fd3ab801461058857806395d89b411461059d57600080fd5b8063313ce567116101dd57806345c8a62b116101a157806345c8a62b1461047757806350e70d481461049757806360918117146104bc578063648bf774146104d257806370a08231146104f257806377e071ad1461051257600080fd5b8063313ce567146103d657806332a7ae951461040257806332bc320b146104225780634000aea01461043757806342966c681461045757600080fd5b80631703a018116102245780631703a0181461032d57806318160ddd14610361578063198453541461037657806323b872dd146103985780632a0a4ed5146103b857600080fd5b806306fdde03146102615780630832e4701461028c578063095ea7b3146102b05780630a81b2de146102e05780630c6f0e5d146102f5575b600080fd5b34801561026d57600080fd5b50610276610812565b6040516102839190612208565b60405180910390f35b34801561029857600080fd5b506102a260045481565b604051908152602001610283565b3480156102bc57600080fd5b506102d06102cb366004611ed9565b6108e8565b6040519015158152602001610283565b3480156102ec57600080fd5b506102a26108fe565b34801561030157600080fd5b50600754610315906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561033957600080fd5b506102a27f000000000000000000000000000000000000000000000000000000000000000081565b34801561036d57600080fd5b506002546102a2565b34801561038257600080fd5b50610396610391366004611ed9565b61098b565b005b3480156103a457600080fd5b506102d06103b3366004611e98565b610a37565b3480156103c457600080fd5b506006546001600160a01b0316610315565b3480156103e257600080fd5b506003546103f09060ff1681565b60405160ff9091168152602001610283565b34801561040e57600080fd5b5061039661041d366004611e42565b610aae565b34801561042e57600080fd5b50610396610b7b565b34801561044357600080fd5b506102d0610452366004611f05565b610bb7565b34801561046357600080fd5b506103966104723660046120e7565b610c57565b34801561048357600080fd5b50610396610492366004611e42565b610cb8565b3480156104a357600080fd5b506003546103159061010090046001600160a01b031681565b3480156104c857600080fd5b506102a260085481565b3480156104de57600080fd5b506103966104ed366004611e5f565b610cf1565b3480156104fe57600080fd5b506102a261050d366004611e42565b610d4c565b34801561051e57600080fd5b506102a261052d366004611e42565b610d70565b34801561053e57600080fd5b5061039661054d366004611e42565b610e64565b34801561055e57600080fd5b50600654610315906001600160a01b031681565b34801561057e57600080fd5b5062ed4e006102a2565b34801561059457600080fd5b50610396610f00565b3480156105a957600080fd5b50610276610f0d565b3480156105be57600080fd5b50600454156102d0565b3480156105d457600080fd5b506102d06105e3366004611f05565b610fbd565b3480156105f457600080fd5b506102a27f000000000000000000000000000000000000000000000000000000000000000081565b34801561062857600080fd5b506102d0610637366004611ed9565b610ff9565b34801561064857600080fd5b50610396610657366004611ed9565b61100c565b34801561066857600080fd5b50600554610315906001600160a01b031681565b34801561068857600080fd5b506102a2610697366004611e42565b6110c0565b3480156106a857600080fd5b506103966106b7366004611e42565b6110d1565b3480156106c857600080fd5b506103157f000000000000000000000000000000000000000000000000000000000000000081565b3480156106fc57600080fd5b50610276611126565b610396610713366004611fe4565b6111b4565b34801561072457600080fd5b506102a2610733366004611e5f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561076a57600080fd5b506103157f000000000000000000000000000000000000000000000000000000000000000081565b34801561079e57600080fd5b506103966107ad3660046120e7565b611376565b3480156107be57600080fd5b506103966107cd366004611e42565b6113a2565b3480156107de57600080fd5b506102d06107ed366004611f8e565b6113f7565b3480156107fe57600080fd5b5061039661080d366004611e5f565b611403565b60606000600360019054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108a0919081019061203a565b90506108ac6004541590565b156108d757806040516020016108c29190612173565b60405160208183030381529060405291505090565b806040516020016108c29190612145565b60006108f533848461144b565b50600192915050565b6000600360019054906101000a90046001600160a01b03166001600160a01b0316633a98ef396040518163ffffffff1660e01b815260040160206040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109869190612100565b905090565b6006546001600160a01b031633146109d75760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064015b60405180910390fd5b6109df6108fe565b816109e960025490565b6109f391906122c8565b1115610a295760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109ce565b610a3382826114ad565b5050565b6000610a4484848461161a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600160ff1b811015610aa357610a7e8382612346565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b6006546001600160a01b03163314610afc5760405162461bcd60e51b81526020600482015260116024820152703737ba1031b630b4b6903232b632ba32b960791b60448201526064016109ce565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906332a7ae95906024015b600060405180830381600087803b158015610b6057600080fd5b505af1158015610b74573d6000803e3d6000fd5b5050505050565b6005546001600160a01b03163314610ba55760405162461bcd60e51b81526004016109ce90612260565b600580546001600160a01b0319169055565b6000610bc38585610ff9565b8015610c4e5750604051635260769b60e11b81526001600160a01b0386169063a4c0ed3690610bfc9033908890889088906004016121c0565b602060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4e9190611fc2565b95945050505050565b610c61338261167e565b6003546001600160a01b03610100909104166342966c68610c826004541590565b610c9857600454610c939084612327565b610c9a565b825b6040518263ffffffff1660e01b8152600401610b4691815260200190565b6005546001600160a01b03163314610ce25760405162461bcd60e51b81526004016109ce90612260565b610cee816001806116f2565b50565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d395760405162461bcd60e51b81526004016109ce906122a2565b610a338282610d4785610d4c565b61161a565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b600080610d7c83611756565b90508015610d8a5792915050565b6000610d966004541590565b610da257600454610da5565b60015b6003549091506001600160a01b03858116610100909204161415610dca579392505050565b6003546040516377e071ad60e01b81526001600160a01b0386811660048301528392610100900416906377e071ad9060240160206040518083038186803b158015610e1457600080fd5b505afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c9190612100565b610e569190612327565b949350505050565b50919050565b6006546001600160a01b03163314610eab5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064016109ce565b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527fc3977c9522c218453912bcab15964a7788968fbf3fe4d4e2965252c9f07055de906020015b60405180910390a150565b610f0b3360006114ad565b565b6060600360019054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610f5d57600080fd5b505afa158015610f71573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f99919081019061203a565b604051602001610fa9919061219b565b604051602081830303815290604052905090565b60035460009061010090046001600160a01b03163314610fef5760405162461bcd60e51b81526004016109ce90612260565b610aa38585611797565b60006110058383611803565b9392505050565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561106257600080fd5b505af1158015611076573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109a9190611fc2565b6110b65760405162461bcd60e51b81526004016109ce90612280565b610a338282611797565b60006110cb82610d4c565b92915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146111195760405162461bcd60e51b81526004016109ce906122a2565b610cee81600a60016116f2565b600980546111339061238d565b80601f016020809104026020016040519081016040528092919081815260200182805461115f9061238d565b80156111ac5780601f10611181576101008083540402835291602001916111ac565b820191906000526020600020905b81548152906001019060200180831161118f57829003601f168201915b505050505081565b600454156111d45760405162461bcd60e51b81526004016109ce90612240565b604051634dc5e43160e01b815260048101849052336024820152604481018390526001600160a01b0382811660648301527f000000000000000000000000000000000000000000000000000000000000000060848301527f000000000000000000000000000000000000000000000000000000000000000060a48301526000917f000000000000000000000000000000000000000000000000000000000000000090911690634dc5e43190349060c4016020604051808303818588803b15801561129d57600080fd5b505af11580156112b1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112d6919061201d565b90506112ec6005546001600160a01b0316151590565b1561135157600554604051637b64620f60e11b81526001600160a01b0383811660048301529091169063f6c8c41e90602401600060405180830381600087803b15801561133857600080fd5b505af115801561134c573d6000803e3d6000fd5b505050505b600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b6004546113955760405162461bcd60e51b81526004016109ce90612240565b610cee33826004546118bd565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113ea5760405162461bcd60e51b81526004016109ce906122a2565b610cee81600a60006116f2565b60006110058383611987565b6005546001600160a01b0316331461142d5760405162461bcd60e51b81526004016109ce90612260565b6114418261143a84610d4c565b60016118bd565b610a3381836119c7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006114b883610d4c565b6114c290836122c8565b905060006114ce6108fe565b9050808211156115085760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109ce565b6005546001600160a01b03161561154c5760405162461bcd60e51b815260206004820152600860248201526737379037b33332b960c11b60448201526064016109ce565b6115767f000000000000000000000000000000000000000000000000000000000000000082612327565b61158261271084612327565b10156115b95760405162461bcd60e51b815260206004820152600660248201526571756f72756d60d01b60448201526064016109ce565b6115c384856119c7565b604080516001600160a01b038616815260208101849052908101849052606081018290527f85e5711a70a7d2bae18e1232af474d82c98600b0e62fe079a28208520b58568e9060800160405180910390a150505050565b611625838383611bb7565b61162f8382611bc2565b6116398282611c58565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114a091815260200190565b61168a82600083611bb7565b806002600082825461169c9190612346565b909155506116ac90508282611bc2565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60006116ff8360e06122e0565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610b74576001600160a01b0394909416600090815260208190526040902093189092555050565b60006001600160a01b03821630141561177157506001919050565b6007546001600160a01b038381169116141561178f57505060085490565b506000919050565b6117a360008383611bb7565b80600260008282546117b591906122c8565b909155506117c590508282611c58565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016116e6565b600061180f8383611d08565b61182b5760405162461bcd60e51b81526004016109ce90612280565b61183633600a611987565b156108f5576040516304d301a360e41b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634d301a3090602401600060405180830381600087803b15801561189c57600080fd5b505af11580156118b0573d6000803e3d6000fd5b5050505050600192915050565b6118c7838361167e565b60035461010090046001600160a01b031663a9059cbb846118e88486612327565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561192e57600080fd5b505af1158015611942573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119669190611fc2565b6119825760405162461bcd60e51b81526004016109ce90612280565b505050565b6000806119958360e06122e0565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b600454156119e75760405162461bcd60e51b81526004016109ce90612240565b6003546040516370a0823160e01b81523060048201526101009091046001600160a01b03169063a9059cbb90839083906370a082319060240160206040518083038186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190612100565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611ab657600080fd5b505af1158015611aca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aee9190611fc2565b611b0a5760405162461bcd60e51b81526004016109ce90612280565b60038054610100600160a81b0319166101006001600160a01b03851602179055600254610a33906040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015611b7057600080fd5b505afa158015611b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba89190612100565b611bb29190612305565b611d15565b611982838383611d7a565b6001600160a01b03821660009081526020819052604081205490611be68383612346565b90506001600160e01b031981166001600160e01b0319831614611c375760405162461bcd60e51b8152602060048201526009602482015268756e646572666c6f7760b81b60448201526064016109ce565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b038216611c945760405162461bcd60e51b815260206004820152600360248201526203078360ec1b60448201526064016109ce565b6001600160a01b03821660009081526020819052604081205490611cb883836122c8565b90506001600160e01b031981166001600160e01b0319831614611c375760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b60448201526064016109ce565b60006108f533848461161a565b6001811015611d365760405162461bcd60e51b81526004016109ce90612240565b60048190557f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a611d64610812565b611d6c610f0d565b604051610ef592919061221b565b611d8383611e35565b80611d925750611d9282611e35565b15611982576005546001600160a01b031615611e1b5760055460405163e1a1810f60e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063e1a1810f90606401600060405180830381600087803b158015611dfe57600080fd5b505af1158015611e12573d6000803e3d6000fd5b50505050505050565b611e2883600160006116f2565b61198282600160006116f2565b60006110cb826001611987565b600060208284031215611e5457600080fd5b8135611005816123ee565b60008060408385031215611e7257600080fd5b8235611e7d816123ee565b91506020830135611e8d816123ee565b809150509250929050565b600080600060608486031215611ead57600080fd5b8335611eb8816123ee565b92506020840135611ec8816123ee565b929592945050506040919091013590565b60008060408385031215611eec57600080fd5b8235611ef7816123ee565b946020939093013593505050565b60008060008060608587031215611f1b57600080fd5b8435611f26816123ee565b935060208501359250604085013567ffffffffffffffff80821115611f4a57600080fd5b818701915087601f830112611f5e57600080fd5b813581811115611f6d57600080fd5b886020828501011115611f7f57600080fd5b95989497505060200194505050565b60008060408385031215611fa157600080fd5b8235611fac816123ee565b9150602083013560ff81168114611e8d57600080fd5b600060208284031215611fd457600080fd5b8151801515811461100557600080fd5b600080600060608486031215611ff957600080fd5b83359250602084013591506040840135612012816123ee565b809150509250925092565b60006020828403121561202f57600080fd5b8151611005816123ee565b60006020828403121561204c57600080fd5b815167ffffffffffffffff8082111561206457600080fd5b818401915084601f83011261207857600080fd5b81518181111561208a5761208a6123d8565b604051601f8201601f19908116603f011681019083821181831017156120b2576120b26123d8565b816040528281528760208487010111156120cb57600080fd5b6120dc83602083016020880161235d565b979650505050505050565b6000602082840312156120f957600080fd5b5035919050565b60006020828403121561211257600080fd5b5051919050565b6000815180845261213181602086016020860161235d565b601f01601f19169290920160200192915050565b6000825161215781846020870161235d565b692028577261707065642960b01b920191825250600a01919050565b6000825161218581846020870161235d565b632053484160e01b920191825250600401919050565b600082516121ad81846020870161235d565b605360f81b920191825250600101919050565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b6020815260006110056020830184612119565b60408152600061222e6040830185612119565b8281036020840152610c4e8185612119565b6020808252600690820152653330b1ba37b960d11b604082015260600190565b60208082526006908201526539b2b73232b960d11b604082015260600190565b6020808252600890820152673a3930b739b332b960c11b604082015260600190565b6020808252600c908201526b6e6f74207265636f7665727960a01b604082015260600190565b600082198211156122db576122db6123c2565b500190565b600060ff821660ff84168060ff038211156122fd576122fd6123c2565b019392505050565b60008261232257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612341576123416123c2565b500290565b600082821015612358576123586123c2565b500390565b60005b83811015612378578181015183820152602001612360565b83811115612387576000848401525b50505050565b600181811c908216806123a157607f821691505b60208210811415610e5e57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cee57600080fdfea2646970667358221220f16d5ff0c82da4eab2c5d8b652260edf57cae2c4003a563a1d61bc57ae27179964736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000919cbb80c920d2d60fa0709bca327d3726474a8e0000000000000000000000000000000000000000000000000000000000001a0b00000000000000000000000000000000000000000000000000000000004f1a000000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb0000000000000000000000009c5796d752d333ddb9787012a817c6d46f43b668000000000000000000000000ceaf1e934ef1277f0e921f06252e730c2d285dd8000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f6963722e63682f616b74696f6e6172696174000000000000

Deployed Bytecode

0x60806040526004361061025c5760003560e01c80637adbf97311610144578063c07473f6116100b6578063dd62ed3e1161007a578063dd62ed3e14610718578063ddceafa91461075e578063de0e9a3e14610792578063e5b824ec146107b2578063f5c0b95f146107d2578063fcb79a7e146107f257600080fd5b8063c07473f61461067c578063c18172c41461069c578063c45a0155146106bc578063d5025625146106f0578063dcc7d4ad1461070557600080fd5b80639e4b5745116101085780639e4b5745146105b2578063a4c0ed36146105c8578063a7813587146105e8578063a9059cbb1461061c578063bf376c7a1461063c578063c028df061461065c57600080fd5b80637adbf973146105325780637dc0d1d0146105525780637dc2cd98146105725780638fd3ab801461058857806395d89b411461059d57600080fd5b8063313ce567116101dd57806345c8a62b116101a157806345c8a62b1461047757806350e70d481461049757806360918117146104bc578063648bf774146104d257806370a08231146104f257806377e071ad1461051257600080fd5b8063313ce567146103d657806332a7ae951461040257806332bc320b146104225780634000aea01461043757806342966c681461045757600080fd5b80631703a018116102245780631703a0181461032d57806318160ddd14610361578063198453541461037657806323b872dd146103985780632a0a4ed5146103b857600080fd5b806306fdde03146102615780630832e4701461028c578063095ea7b3146102b05780630a81b2de146102e05780630c6f0e5d146102f5575b600080fd5b34801561026d57600080fd5b50610276610812565b6040516102839190612208565b60405180910390f35b34801561029857600080fd5b506102a260045481565b604051908152602001610283565b3480156102bc57600080fd5b506102d06102cb366004611ed9565b6108e8565b6040519015158152602001610283565b3480156102ec57600080fd5b506102a26108fe565b34801561030157600080fd5b50600754610315906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561033957600080fd5b506102a27f0000000000000000000000000000000000000000000000000000000000001a0b81565b34801561036d57600080fd5b506002546102a2565b34801561038257600080fd5b50610396610391366004611ed9565b61098b565b005b3480156103a457600080fd5b506102d06103b3366004611e98565b610a37565b3480156103c457600080fd5b506006546001600160a01b0316610315565b3480156103e257600080fd5b506003546103f09060ff1681565b60405160ff9091168152602001610283565b34801561040e57600080fd5b5061039661041d366004611e42565b610aae565b34801561042e57600080fd5b50610396610b7b565b34801561044357600080fd5b506102d0610452366004611f05565b610bb7565b34801561046357600080fd5b506103966104723660046120e7565b610c57565b34801561048357600080fd5b50610396610492366004611e42565b610cb8565b3480156104a357600080fd5b506003546103159061010090046001600160a01b031681565b3480156104c857600080fd5b506102a260085481565b3480156104de57600080fd5b506103966104ed366004611e5f565b610cf1565b3480156104fe57600080fd5b506102a261050d366004611e42565b610d4c565b34801561051e57600080fd5b506102a261052d366004611e42565b610d70565b34801561053e57600080fd5b5061039661054d366004611e42565b610e64565b34801561055e57600080fd5b50600654610315906001600160a01b031681565b34801561057e57600080fd5b5062ed4e006102a2565b34801561059457600080fd5b50610396610f00565b3480156105a957600080fd5b50610276610f0d565b3480156105be57600080fd5b50600454156102d0565b3480156105d457600080fd5b506102d06105e3366004611f05565b610fbd565b3480156105f457600080fd5b506102a27f00000000000000000000000000000000000000000000000000000000004f1a0081565b34801561062857600080fd5b506102d0610637366004611ed9565b610ff9565b34801561064857600080fd5b50610396610657366004611ed9565b61100c565b34801561066857600080fd5b50600554610315906001600160a01b031681565b34801561068857600080fd5b506102a2610697366004611e42565b6110c0565b3480156106a857600080fd5b506103966106b7366004611e42565b6110d1565b3480156106c857600080fd5b506103157f0000000000000000000000009c5796d752d333ddb9787012a817c6d46f43b66881565b3480156106fc57600080fd5b50610276611126565b610396610713366004611fe4565b6111b4565b34801561072457600080fd5b506102a2610733366004611e5f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561076a57600080fd5b506103157f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb81565b34801561079e57600080fd5b506103966107ad3660046120e7565b611376565b3480156107be57600080fd5b506103966107cd366004611e42565b6113a2565b3480156107de57600080fd5b506102d06107ed366004611f8e565b6113f7565b3480156107fe57600080fd5b5061039661080d366004611e5f565b611403565b60606000600360019054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108a0919081019061203a565b90506108ac6004541590565b156108d757806040516020016108c29190612173565b60405160208183030381529060405291505090565b806040516020016108c29190612145565b60006108f533848461144b565b50600192915050565b6000600360019054906101000a90046001600160a01b03166001600160a01b0316633a98ef396040518163ffffffff1660e01b815260040160206040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109869190612100565b905090565b6006546001600160a01b031633146109d75760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064015b60405180910390fd5b6109df6108fe565b816109e960025490565b6109f391906122c8565b1115610a295760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109ce565b610a3382826114ad565b5050565b6000610a4484848461161a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600160ff1b811015610aa357610a7e8382612346565b6001600160a01b03861660009081526001602090815260408083203384529091529020555b506001949350505050565b6006546001600160a01b03163314610afc5760405162461bcd60e51b81526020600482015260116024820152703737ba1031b630b4b6903232b632ba32b960791b60448201526064016109ce565b6040516332a7ae9560e01b81526001600160a01b0382811660048301527f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb16906332a7ae95906024015b600060405180830381600087803b158015610b6057600080fd5b505af1158015610b74573d6000803e3d6000fd5b5050505050565b6005546001600160a01b03163314610ba55760405162461bcd60e51b81526004016109ce90612260565b600580546001600160a01b0319169055565b6000610bc38585610ff9565b8015610c4e5750604051635260769b60e11b81526001600160a01b0386169063a4c0ed3690610bfc9033908890889088906004016121c0565b602060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4e9190611fc2565b95945050505050565b610c61338261167e565b6003546001600160a01b03610100909104166342966c68610c826004541590565b610c9857600454610c939084612327565b610c9a565b825b6040518263ffffffff1660e01b8152600401610b4691815260200190565b6005546001600160a01b03163314610ce25760405162461bcd60e51b81526004016109ce90612260565b610cee816001806116f2565b50565b336001600160a01b037f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb1614610d395760405162461bcd60e51b81526004016109ce906122a2565b610a338282610d4785610d4c565b61161a565b6001600160a01b03166000908152602081905260409020546001600160e01b031690565b600080610d7c83611756565b90508015610d8a5792915050565b6000610d966004541590565b610da257600454610da5565b60015b6003549091506001600160a01b03858116610100909204161415610dca579392505050565b6003546040516377e071ad60e01b81526001600160a01b0386811660048301528392610100900416906377e071ad9060240160206040518083038186803b158015610e1457600080fd5b505afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c9190612100565b610e569190612327565b949350505050565b50919050565b6006546001600160a01b03163314610eab5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206f7261636c6560b01b60448201526064016109ce565b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527fc3977c9522c218453912bcab15964a7788968fbf3fe4d4e2965252c9f07055de906020015b60405180910390a150565b610f0b3360006114ad565b565b6060600360019054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610f5d57600080fd5b505afa158015610f71573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f99919081019061203a565b604051602001610fa9919061219b565b604051602081830303815290604052905090565b60035460009061010090046001600160a01b03163314610fef5760405162461bcd60e51b81526004016109ce90612260565b610aa38585611797565b60006110058383611803565b9392505050565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561106257600080fd5b505af1158015611076573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109a9190611fc2565b6110b65760405162461bcd60e51b81526004016109ce90612280565b610a338282611797565b60006110cb82610d4c565b92915050565b336001600160a01b037f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb16146111195760405162461bcd60e51b81526004016109ce906122a2565b610cee81600a60016116f2565b600980546111339061238d565b80601f016020809104026020016040519081016040528092919081815260200182805461115f9061238d565b80156111ac5780601f10611181576101008083540402835291602001916111ac565b820191906000526020600020905b81548152906001019060200180831161118f57829003601f168201915b505050505081565b600454156111d45760405162461bcd60e51b81526004016109ce90612240565b604051634dc5e43160e01b815260048101849052336024820152604481018390526001600160a01b0382811660648301527f0000000000000000000000000000000000000000000000000000000000001a0b60848301527f00000000000000000000000000000000000000000000000000000000004f1a0060a48301526000917f0000000000000000000000009c5796d752d333ddb9787012a817c6d46f43b66890911690634dc5e43190349060c4016020604051808303818588803b15801561129d57600080fd5b505af11580156112b1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112d6919061201d565b90506112ec6005546001600160a01b0316151590565b1561135157600554604051637b64620f60e11b81526001600160a01b0383811660048301529091169063f6c8c41e90602401600060405180830381600087803b15801561133857600080fd5b505af115801561134c573d6000803e3d6000fd5b505050505b600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b6004546113955760405162461bcd60e51b81526004016109ce90612240565b610cee33826004546118bd565b336001600160a01b037f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb16146113ea5760405162461bcd60e51b81526004016109ce906122a2565b610cee81600a60006116f2565b60006110058383611987565b6005546001600160a01b0316331461142d5760405162461bcd60e51b81526004016109ce90612260565b6114418261143a84610d4c565b60016118bd565b610a3381836119c7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006114b883610d4c565b6114c290836122c8565b905060006114ce6108fe565b9050808211156115085760405162461bcd60e51b8152602060048201526005602482015264766f74657360d81b60448201526064016109ce565b6005546001600160a01b03161561154c5760405162461bcd60e51b815260206004820152600860248201526737379037b33332b960c11b60448201526064016109ce565b6115767f0000000000000000000000000000000000000000000000000000000000001a0b82612327565b61158261271084612327565b10156115b95760405162461bcd60e51b815260206004820152600660248201526571756f72756d60d01b60448201526064016109ce565b6115c384856119c7565b604080516001600160a01b038616815260208101849052908101849052606081018290527f85e5711a70a7d2bae18e1232af474d82c98600b0e62fe079a28208520b58568e9060800160405180910390a150505050565b611625838383611bb7565b61162f8382611bc2565b6116398282611c58565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114a091815260200190565b61168a82600083611bb7565b806002600082825461169c9190612346565b909155506116ac90508282611bc2565b6040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b60006116ff8360e06122e0565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9150808216821483151514610b74576001600160a01b0394909416600090815260208190526040902093189092555050565b60006001600160a01b03821630141561177157506001919050565b6007546001600160a01b038381169116141561178f57505060085490565b506000919050565b6117a360008383611bb7565b80600260008282546117b591906122c8565b909155506117c590508282611c58565b6040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016116e6565b600061180f8383611d08565b61182b5760405162461bcd60e51b81526004016109ce90612280565b61183633600a611987565b156108f5576040516304d301a360e41b81523360048201527f0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb6001600160a01b031690634d301a3090602401600060405180830381600087803b15801561189c57600080fd5b505af11580156118b0573d6000803e3d6000fd5b5050505050600192915050565b6118c7838361167e565b60035461010090046001600160a01b031663a9059cbb846118e88486612327565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561192e57600080fd5b505af1158015611942573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119669190611fc2565b6119825760405162461bcd60e51b81526004016109ce90612280565b505050565b6000806119958360e06122e0565b6001600160a01b038516600090815260208190526040902054600160ff929092169190911b9081161491505092915050565b600454156119e75760405162461bcd60e51b81526004016109ce90612240565b6003546040516370a0823160e01b81523060048201526101009091046001600160a01b03169063a9059cbb90839083906370a082319060240160206040518083038186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190612100565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611ab657600080fd5b505af1158015611aca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aee9190611fc2565b611b0a5760405162461bcd60e51b81526004016109ce90612280565b60038054610100600160a81b0319166101006001600160a01b03851602179055600254610a33906040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015611b7057600080fd5b505afa158015611b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba89190612100565b611bb29190612305565b611d15565b611982838383611d7a565b6001600160a01b03821660009081526020819052604081205490611be68383612346565b90506001600160e01b031981166001600160e01b0319831614611c375760405162461bcd60e51b8152602060048201526009602482015268756e646572666c6f7760b81b60448201526064016109ce565b6001600160a01b039093166000908152602081905260409020929092555050565b6001600160a01b038216611c945760405162461bcd60e51b815260206004820152600360248201526203078360ec1b60448201526064016109ce565b6001600160a01b03821660009081526020819052604081205490611cb883836122c8565b90506001600160e01b031981166001600160e01b0319831614611c375760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b60448201526064016109ce565b60006108f533848461161a565b6001811015611d365760405162461bcd60e51b81526004016109ce90612240565b60048190557f6c20b91d1723b78732eba64ff11ebd7966a6e4af568a00fa4f6b72c20f58b02a611d64610812565b611d6c610f0d565b604051610ef592919061221b565b611d8383611e35565b80611d925750611d9282611e35565b15611982576005546001600160a01b031615611e1b5760055460405163e1a1810f60e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063e1a1810f90606401600060405180830381600087803b158015611dfe57600080fd5b505af1158015611e12573d6000803e3d6000fd5b50505050505050565b611e2883600160006116f2565b61198282600160006116f2565b60006110cb826001611987565b600060208284031215611e5457600080fd5b8135611005816123ee565b60008060408385031215611e7257600080fd5b8235611e7d816123ee565b91506020830135611e8d816123ee565b809150509250929050565b600080600060608486031215611ead57600080fd5b8335611eb8816123ee565b92506020840135611ec8816123ee565b929592945050506040919091013590565b60008060408385031215611eec57600080fd5b8235611ef7816123ee565b946020939093013593505050565b60008060008060608587031215611f1b57600080fd5b8435611f26816123ee565b935060208501359250604085013567ffffffffffffffff80821115611f4a57600080fd5b818701915087601f830112611f5e57600080fd5b813581811115611f6d57600080fd5b886020828501011115611f7f57600080fd5b95989497505060200194505050565b60008060408385031215611fa157600080fd5b8235611fac816123ee565b9150602083013560ff81168114611e8d57600080fd5b600060208284031215611fd457600080fd5b8151801515811461100557600080fd5b600080600060608486031215611ff957600080fd5b83359250602084013591506040840135612012816123ee565b809150509250925092565b60006020828403121561202f57600080fd5b8151611005816123ee565b60006020828403121561204c57600080fd5b815167ffffffffffffffff8082111561206457600080fd5b818401915084601f83011261207857600080fd5b81518181111561208a5761208a6123d8565b604051601f8201601f19908116603f011681019083821181831017156120b2576120b26123d8565b816040528281528760208487010111156120cb57600080fd5b6120dc83602083016020880161235d565b979650505050505050565b6000602082840312156120f957600080fd5b5035919050565b60006020828403121561211257600080fd5b5051919050565b6000815180845261213181602086016020860161235d565b601f01601f19169290920160200192915050565b6000825161215781846020870161235d565b692028577261707065642960b01b920191825250600a01919050565b6000825161218581846020870161235d565b632053484160e01b920191825250600401919050565b600082516121ad81846020870161235d565b605360f81b920191825250600101919050565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b6020815260006110056020830184612119565b60408152600061222e6040830185612119565b8281036020840152610c4e8185612119565b6020808252600690820152653330b1ba37b960d11b604082015260600190565b60208082526006908201526539b2b73232b960d11b604082015260600190565b6020808252600890820152673a3930b739b332b960c11b604082015260600190565b6020808252600c908201526b6e6f74207265636f7665727960a01b604082015260600190565b600082198211156122db576122db6123c2565b500190565b600060ff821660ff84168060ff038211156122fd576122fd6123c2565b019392505050565b60008261232257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612341576123416123c2565b500290565b600082821015612358576123586123c2565b500390565b60005b83811015612378578181015183820152602001612360565b83811115612387576000848401525b50505050565b600181811c908216806123a157607f821691505b60208210811415610e5e57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cee57600080fdfea2646970667358221220f16d5ff0c82da4eab2c5d8b652260edf57cae2c4003a563a1d61bc57ae27179964736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000919cbb80c920d2d60fa0709bca327d3726474a8e0000000000000000000000000000000000000000000000000000000000001a0b00000000000000000000000000000000000000000000000000000000004f1a000000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb0000000000000000000000009c5796d752d333ddb9787012a817c6d46f43b668000000000000000000000000ceaf1e934ef1277f0e921f06252e730c2d285dd8000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f6963722e63682f616b74696f6e6172696174000000000000

-----Decoded View---------------
Arg [0] : _terms (string): https://icr.ch/aktionariat
Arg [1] : _wrappedToken (address): 0x919cbB80C920d2d60FA0709BCa327D3726474a8e
Arg [2] : _quorumBps (uint256): 6667
Arg [3] : _votePeriodSeconds (uint256): 5184000
Arg [4] : _recoveryHub (address): 0x9b886c04CE3CFB74E644DE92d65CfB873636e1fb
Arg [5] : _offerFactory (address): 0x9c5796d752D333dDb9787012a817C6D46F43b668
Arg [6] : _oracle (address): 0xceaF1e934Ef1277F0e921F06252E730C2d285dD8

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 000000000000000000000000919cbb80c920d2d60fa0709bca327d3726474a8e
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001a0b
Arg [3] : 00000000000000000000000000000000000000000000000000000000004f1a00
Arg [4] : 0000000000000000000000009b886c04ce3cfb74e644de92d65cfb873636e1fb
Arg [5] : 0000000000000000000000009c5796d752d333ddb9787012a817c6d46f43b668
Arg [6] : 000000000000000000000000ceaf1e934ef1277f0e921f06252e730c2d285dd8
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [8] : 68747470733a2f2f6963722e63682f616b74696f6e6172696174000000000000


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