Feature Tip: Add private address tag to any address under My Name Tag !
Contract Overview
More Info
[ Download CSV Export ]
View more zero value Internal Transactions in Advanced View mode
Contract Name:
ChangeNowSimpleStaking
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-08 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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. * * IMPORTANT: 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: @openzeppelin/contracts/GSN/Context.sol /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/math/SafeMath.sol /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _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 _balances[account]; } /** * @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(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); 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 `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); 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 { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @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 account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @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 { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } } // File: contracts/ChangeNowSimpleStaking.sol //import "@openzeppelin/contracts/utils/Pausable.sol"; contract ChangeNowSimpleStaking is ERC20Burnable /*, Pausable*/ { using SafeMath for uint256; uint256 constant MIN_EQUITY = 1000; address payable private _owner; address payable private _successor; address public token; uint256 public minStake; uint256 public maxStake; uint256 public freezeDuration; mapping(address => uint256) private _stakeAt; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event MinMaxStakeChanged(uint256 newMinStake, uint256 newMaxStake); event FreezeDurationChanged(uint256 newFreezeDuration); constructor( address _token, uint256 _minStake, uint256 _maxStake, uint256 _freezeDuration, string memory _name, string memory _symbol ) ERC20(_name, _symbol) { _setupDecimals(ERC20(_token).decimals()); token = _token; _setMinMaxStake(_minStake, _maxStake); _setFreezeDuration(_freezeDuration); _owner = msg.sender; emit OwnershipTransferred(address(0), msg.sender); } /** * @notice Checks that caller is owner. */ modifier onlyOwner() { require(msg.sender == _owner, "Caller is not owner"); _; } /** * @notice Checks that caller is not frozen for the current time */ modifier notFrozen() { uint256 lastStakeAt = _stakeAt[msg.sender]; if (lastStakeAt > 0) { require(block.timestamp - lastStakeAt > freezeDuration, 'frozen'); } _; } /** * @notice Sets new successor (only owner). */ function setSuccessor(address payable newSuccessor) external onlyOwner { _successor = newSuccessor; } /** * @notice Takes ownership (only successor). */ function takeOwnership() external { require(msg.sender == _successor, "Caller is not successor"); address previousOwner = _owner; _owner = msg.sender; _successor = address(0); emit OwnershipTransferred(previousOwner, msg.sender); } /** * @notice Sets new min & max stake amounts (only owner). */ function setMinMaxStake(uint256 _minStake, uint256 _maxStake) external onlyOwner { _setMinMaxStake(_minStake, _maxStake); } /** * @notice Sets new freeze duration */ function setFreezeDuration(uint256 _freezeDuration) external onlyOwner { _setFreezeDuration(_freezeDuration); } /** * @notice Pauses the staking, but not redeeming (only owner). */ /*************************** function pause() external onlyOwner { _pause(); } ***************************/ /** * @notice Unpauses paused staking (only owner). */ /*************************** function unpause() external onlyOwner { _unpause(); } ***************************/ /** * @notice Destroys the contract (when empty). */ function destroy() external onlyOwner { require(totalSupply() == 0, 'has holders'); // is there any token balance (sent after last redeeming)? // send whole balance to the owner uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); if (totalTokenBalance > 0) { IERC20(token).transfer(_owner, totalTokenBalance); } // destroy selfdestruct(_owner); } /** * @notice Shows underlying token balance of an account. */ function balanceOfUnderlying(address account) external view returns (uint256) { return _equityToToken(balanceOf(account)); } function tokenToEquity(uint256 tokenAmount) external view returns (uint256) { return _tokenToEquity(tokenAmount); } function equityToToken(uint256 equity) external view returns (uint256) { return _equityToToken(equity); } function frozenTill(address account) external view returns (uint256) { uint256 lastStakeAt = _stakeAt[account]; return lastStakeAt > 0 ? lastStakeAt + freezeDuration : 0; } /** * @notice Stakes specified token amounts to the staking contract. * The tokens must be approved to transfer from sender by the staking contract. */ function stake(uint256 tokenAmount) external //whenNotPaused returns (uint256 equity) { uint256 allowance = IERC20(token).allowance(msg.sender, address(this)); require(tokenAmount <= allowance, 'Not enough ERC20 allowance'); uint256 accountTokenBalance = IERC20(token).balanceOf(msg.sender); require(tokenAmount <= accountTokenBalance, 'Not enough token balance'); // get total token balance (common token pool) and total supply uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); uint256 totalSupply = totalSupply(); // check min / max stake uint256 accountStakingBalance = _equityToToken0(balanceOf(msg.sender), totalSupply, totalTokenBalance); require(tokenAmount >= minStake, 'Stake too small'); require((tokenAmount.add(accountStakingBalance)) <= maxStake, 'Exceeded max stake'); // calc equity if (totalSupply > 0) { equity = _tokenToEquity0(tokenAmount, totalTokenBalance, totalSupply); require(equity >= MIN_EQUITY, 'MIN_EQUITY: Stake too small'); } else { equity = tokenAmount; } // transfer tokens require( IERC20(token).transferFrom(msg.sender, address(this), tokenAmount), 'ERC20 transferFrom failed' ); _mint(msg.sender, equity); // register last stake timestamp _stakeAt[msg.sender] = block.timestamp; } function redeem(uint256 equity) external notFrozen returns (uint256) { uint256 totalSupply = totalSupply(); uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); return _redeem(equity, totalSupply, totalTokenBalance); } function redeemAll() external notFrozen returns (uint256 equity, uint256 tokenAmount) { uint256 totalSupply = totalSupply(); uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); equity = balanceOf(msg.sender); tokenAmount = _equityToToken0(equity, totalSupply, totalTokenBalance); _redeem0(equity, tokenAmount); } function redeemUnderlying(uint256 tokenAmount) external notFrozen returns (uint256) { uint256 totalSupply = totalSupply(); uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); uint256 equity = _tokenToEquity0(tokenAmount, totalTokenBalance, totalSupply); return _redeem(equity, totalSupply, totalTokenBalance); } // // Internal functions // function _setMinMaxStake(uint256 _minStake, uint256 _maxStake) private { require(_minStake <= _maxStake, 'minStake > maxStake'); require(_minStake >= MIN_EQUITY, 'minStake < MIN_EQUITY'); minStake = _minStake; maxStake = _maxStake; emit MinMaxStakeChanged(_minStake, _maxStake); } function _setFreezeDuration(uint256 _freezeDuration) private { freezeDuration = _freezeDuration; emit FreezeDurationChanged(_freezeDuration); } // // Redeem internal functions // function _redeem0(uint256 equity, uint256 tokenAmount) private { if (equity > 0) { _burn(msg.sender, equity); } if (tokenAmount > 0) { require(IERC20(token).transfer(msg.sender, tokenAmount), 'ERC20 transfer failed'); } } function _redeem(uint256 equity, uint256 totalSupply, uint256 totalTokenBalance) private returns (uint256) { // check MIN_EQUITY require(equity >= MIN_EQUITY, 'MIN_EQUITY: equity too small'); // redeem only when funded require(totalSupply > 0 && totalTokenBalance > 0, 'No funds'); // check account equity uint256 accountEquity = balanceOf(msg.sender); require(equity <= accountEquity, 'Not enough equity'); // ensure that remaining equity is 0 or not less than MIN_EQUITY uint256 remainEquity = accountEquity - equity; require( remainEquity == 0 || remainEquity >= MIN_EQUITY, 'MIN_EQUITY: remaining equity too small (hint: redeem all)' ); // same for remaining underlying tokens uint256 remainTokenBalance = _equityToToken0(remainEquity, totalSupply, totalTokenBalance); require( remainTokenBalance == 0 || remainTokenBalance >= minStake, 'MIN_STAKE: remaining stake balance too small (hint: redeem all)' ); // calc underlying token amount uint256 tokenAmount = _equityToToken0(equity, totalSupply, totalTokenBalance); // redeem _redeem0(equity, tokenAmount); return tokenAmount; } // // Helper internal functions // function _xxxToYyy_floor(uint256 xxxAmount, uint256 totalXxx, uint256 totalYyy) private pure returns (uint256) { if (totalXxx == 0) { return 0; } return xxxAmount.mul(totalYyy).div(totalXxx); } function _xxxToYyy_ceil(uint256 xxxAmount, uint256 totalXxx, uint256 totalYyy) private pure returns (uint256) { if (totalXxx == 0) { return 0; } uint256 nom = xxxAmount.mul(totalYyy).add(totalXxx).sub(1); uint256 quot = nom.div(totalXxx); return quot; } function _equityToToken0(uint256 equityAmount, uint256 totalEquity, uint256 totalTokenBalance) private pure returns (uint256) { return _xxxToYyy_floor(equityAmount, totalEquity, totalTokenBalance); } function _tokenToEquity0(uint256 tokenAmount, uint256 totalTokenBalance, uint256 totalEquity) private pure returns (uint256) { return _xxxToYyy_ceil(tokenAmount, totalTokenBalance, totalEquity); } function _tokenToEquity(uint256 tokenAmount) private view returns (uint256) { uint256 totalSupply = totalSupply(); uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); return _tokenToEquity0(tokenAmount, totalTokenBalance,totalSupply); } function _equityToToken(uint256 equity) private view returns (uint256) { uint256 totalSupply = totalSupply(); uint256 totalTokenBalance = IERC20(token).balanceOf(address(this)); return _equityToToken0(equity, totalSupply, totalTokenBalance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_minStake","type":"uint256"},{"internalType":"uint256","name":"_maxStake","type":"uint256"},{"internalType":"uint256","name":"_freezeDuration","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":"uint256","name":"newFreezeDuration","type":"uint256"}],"name":"FreezeDurationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinStake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxStake","type":"uint256"}],"name":"MinMaxStakeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"amount","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":"address","name":"account","type":"address"}],"name":"balanceOfUnderlying","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"equity","type":"uint256"}],"name":"equityToToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"frozenTill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"equity","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemAll","outputs":[{"internalType":"uint256","name":"equity","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"redeemUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freezeDuration","type":"uint256"}],"name":"setFreezeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minStake","type":"uint256"},{"internalType":"uint256","name":"_maxStake","type":"uint256"}],"name":"setMinMaxStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newSuccessor","type":"address"}],"name":"setSuccessor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"uint256","name":"equity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"takeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"tokenToEquity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200274f3803806200274f833981810160405260c08110156200003757600080fd5b81516020830151604080850151606086015160808701805193519597949692959194919392820192846401000000008211156200007357600080fd5b9083019060208201858111156200008957600080fd5b8251640100000000811182820188101715620000a457600080fd5b82525081516020918201929091019080838360005b83811015620000d3578181015183820152602001620000b9565b50505050905090810190601f168015620001015780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200012557600080fd5b9083019060208201858111156200013b57600080fd5b82516401000000008111828201881017156200015657600080fd5b82525081516020918201929091019080838360005b83811015620001855781810151838201526020016200016b565b50505050905090810190601f168015620001b35780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001d390600390602085019062000441565b508051620001e990600490602084019062000441565b50506005805460ff19166012179055506040805163313ce56760e01b8152905162000274916001600160a01b0389169163313ce56791600480820192602092909190829003018186803b1580156200024057600080fd5b505afa15801562000255573d6000803e3d6000fd5b505050506040513d60208110156200026c57600080fd5b5051620002f9565b600780546001600160a01b0319166001600160a01b0388161790556200029b85856200030f565b620002a68362000406565b60058054610100600160a81b031916336101008102919091179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050505050620004ed565b6005805460ff191660ff92909216919091179055565b8082111562000365576040805162461bcd60e51b815260206004820152601360248201527f6d696e5374616b65203e206d61785374616b6500000000000000000000000000604482015290519081900360640190fd5b6103e8821015620003bd576040805162461bcd60e51b815260206004820152601560248201527f6d696e5374616b65203c204d494e5f4551554954590000000000000000000000604482015290519081900360640190fd5b60088290556009819055604080518381526020810183905281517f381b025919fb0d6e9cec70a68942e48a3160e455c48eda95cffa80d0ae7b05f8929181900390910190a15050565b600a8190556040805182815290517f271302d656a88fd9c11972feb78b103044b6c189103a3159ed1d58508201382f9181900360200190a150565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620004795760008555620004c4565b82601f106200049457805160ff1916838001178555620004c4565b82800160010185558215620004c4579182015b82811115620004c4578251825591602001919060010190620004a7565b50620004d2929150620004d6565b5090565b5b80821115620004d25760008155600101620004d7565b61225280620004fd6000396000f3fe608060405234801561001057600080fd5b506004361061019a5760003560e01c80636ca2aa95116100e4578063a694fc3a11610092578063a694fc3a146104ab578063a9059cbb146104c8578063bf6cc836146104f4578063db006a7514610511578063dd62ed3e1461052e578063e6b02adf1461055c578063ea1b28e014610579578063fc0c546a146105815761019a565b80636ca2aa95146103e357806370a082311461040057806379cc67901461042657806383197ef014610452578063852a12e31461045a57806395d89b4114610477578063a457c2d71461047f5761019a565b8063313ce5671161014c578063313ce5671461031b578063375b3c0a1461033957806339509351146103415780633af9e6691461036d57806342966c6814610393578063440991bd146103b05780634b241491146103b857806360536172146103db5761019a565b806306fdde031461019f578063095ea7b31461021c57806310e5bff81461025c57806318160ddd1461028457806323b872dd1461029e5780632b22bf98146102d45780632f4350c2146102fa575b600080fd5b6101a76105a5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e15781810151838201526020016101c9565b50505050905090810190601f16801561020e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102486004803603604081101561023257600080fd5b506001600160a01b03813516906020013561063b565b604080519115158252519081900360200190f35b6102826004803603602081101561027257600080fd5b50356001600160a01b0316610659565b005b61028c6106d5565b60408051918252519081900360200190f35b610248600480360360608110156102b457600080fd5b506001600160a01b038135811691602081013590911690604001356106db565b61028c600480360360208110156102ea57600080fd5b50356001600160a01b0316610763565b610302610792565b6040805192835260208301919091528051918290030190f35b61032361089d565b6040805160ff9092168252519081900360200190f35b61028c6108a6565b6102486004803603604081101561035757600080fd5b506001600160a01b0381351690602001356108ac565b61028c6004803603602081101561038357600080fd5b50356001600160a01b03166108fa565b610282600480360360208110156103a957600080fd5b503561090d565b61028c610921565b610282600480360360408110156103ce57600080fd5b5080359060200135610927565b61028261098f565b610282600480360360208110156103f957600080fd5b5035610a52565b61028c6004803603602081101561041657600080fd5b50356001600160a01b0316610ab5565b6102826004803603604081101561043c57600080fd5b506001600160a01b038135169060200135610ad0565b610282610b2a565b61028c6004803603602081101561047057600080fd5b5035610ce9565b6101a7610ded565b6102486004803603604081101561049557600080fd5b506001600160a01b038135169060200135610e4e565b61028c600480360360208110156104c157600080fd5b5035610eb6565b610248600480360360408110156104de57600080fd5b506001600160a01b0381351690602001356112ff565b61028c6004803603602081101561050a57600080fd5b5035611313565b61028c6004803603602081101561052757600080fd5b503561131e565b61028c6004803603604081101561054457600080fd5b506001600160a01b0381358116916020013516611412565b61028c6004803603602081101561057257600080fd5b503561143d565b61028c611448565b61058961144e565b604080516001600160a01b039092168252519081900360200190f35b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106315780601f1061060657610100808354040283529160200191610631565b820191906000526020600020905b81548152906001019060200180831161061457829003601f168201915b5050505050905090565b600061064f61064861145d565b8484611461565b5060015b92915050565b60055461010090046001600160a01b031633146106b3576040805162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60025490565b60006106e884848461154d565b610758846106f461145d565b610753856040518060600160405280602881526020016120e9602891396001600160a01b038a1660009081526001602052604081209061073261145d565b6001600160a01b031681526020810191909152604001600020549190611696565b611461565b5060015b9392505050565b6001600160a01b0381166000908152600b60205260408120548061078857600061075c565b600a540192915050565b336000908152600b6020526040812054819080156107eb57600a54814203116107eb576040805162461bcd60e51b8152602060048201526006602482015265333937bd32b760d11b604482015290519081900360640190fd5b60006107f56106d5565b600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561084657600080fd5b505afa15801561085a573d6000803e3d6000fd5b505050506040513d602081101561087057600080fd5b5051905061087d33610ab5565b945061088a85838361172d565b93506108968585611742565b5050509091565b60055460ff1690565b60085481565b600061064f6108b961145d565b8461075385600160006108ca61145d565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611821565b600061065361090883610ab5565b61187b565b61091e61091861145d565b82611910565b50565b600a5481565b60055461010090046001600160a01b03163314610981576040805162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015290519081900360640190fd5b61098b82826119fa565b5050565b6006546001600160a01b031633146109e8576040805162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba1039bab1b1b2b9b9b7b960491b604482015290519081900360640190fd5b60058054610100600160a81b031981166101003381810292909217909355600680546001600160a01b0319169055604051929091046001600160a01b03169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b60055461010090046001600160a01b03163314610aac576040805162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015290519081900360640190fd5b61091e81611add565b6001600160a01b031660009081526020819052604090205490565b6000610b078260405180606001604052806024815260200161214a60249139610b0086610afb61145d565b611412565b9190611696565b9050610b1b83610b1561145d565b83611461565b610b258383611910565b505050565b60055461010090046001600160a01b03163314610b84576040805162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b604482015290519081900360640190fd5b610b8c6106d5565b15610bcc576040805162461bcd60e51b815260206004820152600b60248201526a68617320686f6c6465727360a81b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c1757600080fd5b505afa158015610c2b573d6000803e3d6000fd5b505050506040513d6020811015610c4157600080fd5b505190508015610cd6576007546005546040805163a9059cbb60e01b81526101009092046001600160a01b03908116600484015260248301859052905192169163a9059cbb916044808201926020929091908290030181600087803b158015610ca957600080fd5b505af1158015610cbd573d6000803e3d6000fd5b505050506040513d6020811015610cd357600080fd5b50505b60055461010090046001600160a01b0316ff5b336000908152600b60205260408120548015610d4057600a5481420311610d40576040805162461bcd60e51b8152602060048201526006602482015265333937bd32b760d11b604482015290519081900360640190fd5b6000610d4a6106d5565b600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610d9b57600080fd5b505afa158015610daf573d6000803e3d6000fd5b505050506040513d6020811015610dc557600080fd5b505190506000610dd6868385611b18565b9050610de3818484611b25565b9695505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106315780601f1061060657610100808354040283529160200191610631565b600061064f610e5b61145d565b84610753856040518060600160405280602581526020016121f86025913960016000610e8561145d565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611696565b60075460408051636eb1769f60e11b8152336004820152306024820152905160009283926001600160a01b039091169163dd62ed3e91604480820192602092909190829003018186803b158015610f0c57600080fd5b505afa158015610f20573d6000803e3d6000fd5b505050506040513d6020811015610f3657600080fd5b5051905080831115610f8f576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820455243323020616c6c6f77616e6365000000000000604482015290519081900360640190fd5b600754604080516370a0823160e01b815233600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610fda57600080fd5b505afa158015610fee573d6000803e3d6000fd5b505050506040513d602081101561100457600080fd5b5051905080841115611058576040805162461bcd60e51b81526020600482015260186024820152774e6f7420656e6f75676820746f6b656e2062616c616e636560401b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156110a357600080fd5b505afa1580156110b7573d6000803e3d6000fd5b505050506040513d60208110156110cd57600080fd5b5051905060006110db6106d5565b905060006110f26110eb33610ab5565b838561172d565b905060085487101561113d576040805162461bcd60e51b815260206004820152600f60248201526e14dd185ad9481d1bdbc81cdb585b1b608a1b604482015290519081900360640190fd5b60095461114a8883611821565b1115611192576040805162461bcd60e51b81526020600482015260126024820152714578636565646564206d6178207374616b6560701b604482015290519081900360640190fd5b8115611201576111a3878484611b18565b95506103e88610156111fc576040805162461bcd60e51b815260206004820152601b60248201527f4d494e5f4551554954593a205374616b6520746f6f20736d616c6c0000000000604482015290519081900360640190fd5b611205565b8695505b600754604080516323b872dd60e01b8152336004820152306024820152604481018a905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561125f57600080fd5b505af1158015611273573d6000803e3d6000fd5b505050506040513d602081101561128957600080fd5b50516112d8576040805162461bcd60e51b8152602060048201526019602482015278115490cc8c081d1c985b9cd9995c919c9bdb4819985a5b1959603a1b604482015290519081900360640190fd5b6112e23387611cea565b5050336000908152600b6020526040902042905550919392505050565b600061064f61130c61145d565b848461154d565b600061065382611dc8565b336000908152600b6020526040812054801561137557600a5481420311611375576040805162461bcd60e51b8152602060048201526006602482015265333937bd32b760d11b604482015290519081900360640190fd5b600061137f6106d5565b600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156113d057600080fd5b505afa1580156113e4573d6000803e3d6000fd5b505050506040513d60208110156113fa57600080fd5b50519050611409858383611b25565b95945050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006106538261187b565b60095481565b6007546001600160a01b031681565b3390565b6001600160a01b0383166114a65760405162461bcd60e51b81526004018080602001828103825260248152602001806121d46024913960400191505060405180910390fd5b6001600160a01b0382166114eb5760405162461bcd60e51b81526004018080602001828103825260228152602001806120806022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166115925760405162461bcd60e51b81526004018080602001828103825260258152602001806121af6025913960400191505060405180910390fd5b6001600160a01b0382166115d75760405162461bcd60e51b8152600401808060200182810382526023815260200180611ffc6023913960400191505060405180910390fd5b6115e2838383610b25565b61161f816040518060600160405280602681526020016120a2602691396001600160a01b0386166000908152602081905260409020549190611696565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461164e9082611821565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061216e83398151915292918290030190a3505050565b600081848411156117255760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ea5781810151838201526020016116d2565b50505050905090810190601f1680156117175780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061173a848484611e5d565b949350505050565b8115611752576117523383611910565b801561098b576007546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156117ac57600080fd5b505af11580156117c0573d6000803e3d6000fd5b505050506040513d60208110156117d657600080fd5b505161098b576040805162461bcd60e51b8152602060048201526015602482015274115490cc8c081d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b60008282018381101561075c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000806118866106d5565b600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156118d757600080fd5b505afa1580156118eb573d6000803e3d6000fd5b505050506040513d602081101561190157600080fd5b5051905061173a84838361172d565b6001600160a01b0382166119555760405162461bcd60e51b815260040180806020018281038252602181526020018061218e6021913960400191505060405180910390fd5b61196182600083610b25565b61199e8160405180606001604052806022815260200161205e602291396001600160a01b0385166000908152602081905260409020549190611696565b6001600160a01b0383166000908152602081905260409020556002546119c49082611e80565b6002556040805182815290516000916001600160a01b0385169160008051602061216e8339815191529181900360200190a35050565b80821115611a45576040805162461bcd60e51b81526020600482015260136024820152726d696e5374616b65203e206d61785374616b6560681b604482015290519081900360640190fd5b6103e8821015611a94576040805162461bcd60e51b81526020600482015260156024820152746d696e5374616b65203c204d494e5f45515549545960581b604482015290519081900360640190fd5b60088290556009819055604080518381526020810183905281517f381b025919fb0d6e9cec70a68942e48a3160e455c48eda95cffa80d0ae7b05f8929181900390910190a15050565b600a8190556040805182815290517f271302d656a88fd9c11972feb78b103044b6c189103a3159ed1d58508201382f9181900360200190a150565b600061173a848484611ec2565b60006103e8841015611b7e576040805162461bcd60e51b815260206004820152601c60248201527f4d494e5f4551554954593a2065717569747920746f6f20736d616c6c00000000604482015290519081900360640190fd5b600083118015611b8e5750600082115b611bca576040805162461bcd60e51b81526020600482015260086024820152674e6f2066756e647360c01b604482015290519081900360640190fd5b6000611bd533610ab5565b905080851115611c20576040805162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682065717569747960781b604482015290519081900360640190fd5b848103801580611c3257506103e88110155b611c6d5760405162461bcd60e51b81526004018080602001828103825260398152602001806121116039913960400191505060405180910390fd5b6000611c7a82878761172d565b9050801580611c8b57506008548110155b611cc65760405162461bcd60e51b815260040180806020018281038252603f81526020018061201f603f913960400191505060405180910390fd5b6000611cd388888861172d565b9050611cdf8882611742565b979650505050505050565b6001600160a01b038216611d45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611d5160008383610b25565b600254611d5e9082611821565b6002556001600160a01b038216600090815260208190526040902054611d849082611821565b6001600160a01b03831660008181526020818152604080832094909455835185815293519293919260008051602061216e8339815191529281900390910190a35050565b600080611dd36106d5565b600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611e2457600080fd5b505afa158015611e38573d6000803e3d6000fd5b505050506040513d6020811015611e4e57600080fd5b5051905061173a848284611b18565b600082611e6c5750600061075c565b61173a83611e7a8685611f00565b90611f59565b600061075c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611696565b600082611ed15750600061075c565b6000611ef26001611eec86611ee68988611f00565b90611821565b90611e80565b90506000610de38286611f59565b600082611f0f57506000610653565b82820282848281611f1c57fe5b041461075c5760405162461bcd60e51b81526004018080602001828103825260218152602001806120c86021913960400191505060405180910390fd5b600061075c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183611fe55760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156116ea5781810151838201526020016116d2565b506000838581611ff157fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734d494e5f5354414b453a2072656d61696e696e67207374616b652062616c616e636520746f6f20736d616c6c202868696e743a2072656465656d20616c6c2945524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654d494e5f4551554954593a2072656d61696e696e672065717569747920746f6f20736d616c6c202868696e743a2072656465656d20616c6c2945524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122077dfcb437c363ecc0f23d1860bf780fe9da2615fddd46543c42a20e1e5e3c1be64736f6c63430007060033000000000000000000000000e9a95d175a5f4c9369f3b74222402eb1b837693b000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000104368616e67654e4f575374616b696e670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094e4f572d5354414b450000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e9a95d175a5f4c9369f3b74222402eb1b837693b000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000104368616e67654e4f575374616b696e670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094e4f572d5354414b450000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _token (address): 0xe9a95d175a5f4c9369f3b74222402eb1b837693b
Arg [1] : _minStake (uint256): 1000000000
Arg [2] : _maxStake (uint256): 10000000000000
Arg [3] : _freezeDuration (uint256): 604800
Arg [4] : _name (string): ChangeNOWStaking
Arg [5] : _symbol (string): NOW-STAKE
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000e9a95d175a5f4c9369f3b74222402eb1b837693b
Arg [1] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [2] : 000000000000000000000000000000000000000000000000000009184e72a000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [7] : 4368616e67654e4f575374616b696e6700000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [9] : 4e4f572d5354414b450000000000000000000000000000000000000000000000
Deployed ByteCode Sourcemap
21408:11581:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11274:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13380:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;13380:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23116:138;;;;;;;;;;;;;;;;-1:-1:-1;23116:138:0;-1:-1:-1;;;;;23116:138:0;;:::i;:::-;;12349:100;;;:::i;:::-;;;;;;;;;;;;;;;;14031:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14031:321:0;;;;;;;;;;;;;;;;;:::i;25709:227::-;;;;;;;;;;;;;;;;-1:-1:-1;25709:227:0;-1:-1:-1;;;;;25709:227:0;;:::i;27989:414::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12201:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21666:23;;;:::i;14761:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14761:218:0;;;;;;;;:::i;25197:170::-;;;;;;;;;;;;;;;;-1:-1:-1;25197:170:0;-1:-1:-1;;;;;25197:170:0;;:::i;20583:91::-;;;;;;;;;;;;;;;;-1:-1:-1;20583:91:0;;:::i;21726:29::-;;;:::i;23722:160::-;;;;;;;;;;;;;;;;-1:-1:-1;23722:160:0;;;;;;;:::i;23332:299::-;;;:::i;23951:148::-;;;;;;;;;;;;;;;;-1:-1:-1;23951:148:0;;:::i;12512:119::-;;;;;;;;;;;;;;;;-1:-1:-1;12512:119:0;-1:-1:-1;;;;;12512:119:0;;:::i;20993:295::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20993:295:0;;;;;;;;:::i;24651:456::-;;;:::i;28413:402::-;;;;;;;;;;;;;;;;-1:-1:-1;28413:402:0;;:::i;11476:87::-;;;:::i;15482:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15482:269:0;;;;;;;;:::i;26121:1549::-;;;;;;;;;;;;;;;;-1:-1:-1;26121:1549:0;;:::i;12844:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12844:175:0;;;;;;;;:::i;25377:161::-;;;;;;;;;;;;;;;;-1:-1:-1;25377:161:0;;:::i;27680:299::-;;;;;;;;;;;;;;;;-1:-1:-1;27680:299:0;;:::i;13082:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;13082:151:0;;;;;;;;;;:::i;25548:::-;;;;;;;;;;;;;;;;-1:-1:-1;25548:151:0;;:::i;21696:23::-;;;:::i;21637:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;21637:20:0;;;;;;;;;;;;;;11274:83;11344:5;11337:12;;;;;;;;-1:-1:-1;;11337:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11311:13;;11337:12;;11344:5;;11337:12;;11344:5;11337:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11274:83;:::o;13380:169::-;13463:4;13480:39;13489:12;:10;:12::i;:::-;13503:7;13512:6;13480:8;:39::i;:::-;-1:-1:-1;13537:4:0;13380:169;;;;;:::o;23116:138::-;22674:6;;;;;-1:-1:-1;;;;;22674:6:0;22660:10;:20;22652:52;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;;;;23221:10:::1;:25:::0;;-1:-1:-1;;;;;;23221:25:0::1;-1:-1:-1::0;;;;;23221:25:0;;;::::1;::::0;;;::::1;::::0;;23116:138::o;12349:100::-;12429:12;;12349:100;:::o;14031:321::-;14137:4;14154:36;14164:6;14172:9;14183:6;14154:9;:36::i;:::-;14201:121;14210:6;14218:12;:10;:12::i;:::-;14232:89;14270:6;14232:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14232:19:0;;;;;;:11;:19;;;;;;14252:12;:10;:12::i;:::-;-1:-1:-1;;;;;14232:33:0;;;;;;;;;;;;-1:-1:-1;14232:33:0;;;:89;:37;:89::i;:::-;14201:8;:121::i;:::-;-1:-1:-1;14340:4:0;14031:321;;;;;;:::o;25709:227::-;-1:-1:-1;;;;;25843:17:0;;25796:7;25843:17;;;:8;:17;;;;;;25878:15;:50;;25927:1;25878:50;;;25910:14;;25896:28;;25871:57;-1:-1:-1;;25709:227:0:o;27989:414::-;22885:10;28065:14;22876:20;;;:8;:20;;;;;;28065:14;;22911:15;;22907:113;;22983:14;;22969:11;22951:15;:29;:46;22943:65;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;;;;28118:19:::1;28140:13;:11;:13::i;:::-;28199:5;::::0;28192:38:::1;::::0;;-1:-1:-1;;;28192:38:0;;28224:4:::1;28192:38;::::0;::::1;::::0;;;28118:35;;-1:-1:-1;28164:25:0::1;::::0;-1:-1:-1;;;;;28199:5:0;;::::1;::::0;28192:23:::1;::::0;:38;;;;;::::1;::::0;;;;;;;;;28199:5;28192:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28192:38:0;;-1:-1:-1;28252:21:0::1;28262:10;28252:9;:21::i;:::-;28243:30;;28298:55;28314:6;28322:11;28335:17;28298:15;:55::i;:::-;28284:69;;28366:29;28375:6;28383:11;28366:8;:29::i;:::-;23030:1;;27989:414:::0;;;:::o;12201:83::-;12267:9;;;;12201:83;:::o;21666:23::-;;;;:::o;14761:218::-;14849:4;14866:83;14875:12;:10;:12::i;:::-;14889:7;14898:50;14937:10;14898:11;:25;14910:12;:10;:12::i;:::-;-1:-1:-1;;;;;14898:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;14898:25:0;;;:34;;;;;;;;;;;:38;:50::i;25197:170::-;25293:7;25325:34;25340:18;25350:7;25340:9;:18::i;:::-;25325:14;:34::i;20583:91::-;20639:27;20645:12;:10;:12::i;:::-;20659:6;20639:5;:27::i;:::-;20583:91;:::o;21726:29::-;;;;:::o;23722:160::-;22674:6;;;;;-1:-1:-1;;;;;22674:6:0;22660:10;:20;22652:52;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;;;;23837:37:::1;23853:9;23864;23837:15;:37::i;:::-;23722:160:::0;;:::o;23332:299::-;23413:10;;-1:-1:-1;;;;;23413:10:0;23399;:24;23391:60;;;;;-1:-1:-1;;;23391:60:0;;;;;;;;;;;;-1:-1:-1;;;23391:60:0;;;;;;;;;;;;;;;23488:6;;;-1:-1:-1;;;;;;23505:19:0;;23488:6;23514:10;23505:19;;;;;;;;;;23535:10;:23;;-1:-1:-1;;;;;;23535:23:0;;;23576:47;;23488:6;;;;-1:-1:-1;;;;;23488:6:0;;;;23576:47;;-1:-1:-1;;23576:47:0;23332:299;:::o;23951:148::-;22674:6;;;;;-1:-1:-1;;;;;22674:6:0;22660:10;:20;22652:52;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;;;;24056:35:::1;24075:15;24056:18;:35::i;12512:119::-:0;-1:-1:-1;;;;;12605:18:0;12578:7;12605:18;;;;;;;;;;;;12512:119::o;20993:295::-;21070:26;21099:84;21136:6;21099:84;;;;;;;;;;;;;;;;;:32;21109:7;21118:12;:10;:12::i;:::-;21099:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;21070:113;;21196:51;21205:7;21214:12;:10;:12::i;:::-;21228:18;21196:8;:51::i;:::-;21258:22;21264:7;21273:6;21258:5;:22::i;:::-;20993:295;;;:::o;24651:456::-;22674:6;;;;;-1:-1:-1;;;;;22674:6:0;22660:10;:20;22652:52;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;-1:-1:-1;;;22652:52:0;;;;;;;;;;;;;;;24708:13:::1;:11;:13::i;:::-;:18:::0;24700:42:::1;;;::::0;;-1:-1:-1;;;24700:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24700:42:0;;;;;;;;;;;;;::::1;;24902:5;::::0;24895:38:::1;::::0;;-1:-1:-1;;;24895:38:0;;24927:4:::1;24895:38;::::0;::::1;::::0;;;24867:25:::1;::::0;-1:-1:-1;;;;;24902:5:0::1;::::0;24895:23:::1;::::0;:38;;;;;::::1;::::0;;;;;;;;24902:5;24895:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;24895:38:0;;-1:-1:-1;24948:21:0;;24944:103:::1;;24993:5;::::0;25009:6:::1;::::0;24986:49:::1;::::0;;-1:-1:-1;;;24986:49:0;;24993:5:::1;25009:6:::0;;::::1;-1:-1:-1::0;;;;;25009:6:0;;::::1;24986:49;::::0;::::1;::::0;;;;;;;;;24993:5;::::1;::::0;24986:22:::1;::::0;:49;;;;;::::1;::::0;;;;;;;;;24993:5:::1;::::0;24986:49;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;24944:103:0::1;25092:6;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;25092:6:0::1;25079:20;28413:402:::0;22885:10;28515:7;22876:20;;;:8;:20;;;;;;22911:15;;22907:113;;22983:14;;22969:11;22951:15;:29;:46;22943:65;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;;;;28540:19:::1;28562:13;:11;:13::i;:::-;28621:5;::::0;28614:38:::1;::::0;;-1:-1:-1;;;28614:38:0;;28646:4:::1;28614:38;::::0;::::1;::::0;;;28540:35;;-1:-1:-1;28586:25:0::1;::::0;-1:-1:-1;;;;;28621:5:0;;::::1;::::0;28614:23:::1;::::0;:38;;;;;::::1;::::0;;;;;;;;;28621:5;28614:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28614:38:0;;-1:-1:-1;28663:14:0::1;28680:60;28696:11:::0;28614:38;28728:11;28680:15:::1;:60::i;:::-;28663:77;;28760:47;28768:6;28776:11;28789:17;28760:7;:47::i;:::-;28753:54:::0;28413:402;-1:-1:-1;;;;;;28413:402:0:o;11476:87::-;11548:7;11541:14;;;;;;;;-1:-1:-1;;11541:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11515:13;;11541:14;;11548:7;;11541:14;;11548:7;11541:14;;;;;;;;;;;;;;;;;;;;;;;;15482:269;15575:4;15592:129;15601:12;:10;:12::i;:::-;15615:7;15624:96;15663:15;15624:96;;;;;;;;;;;;;;;;;:11;:25;15636:12;:10;:12::i;:::-;-1:-1:-1;;;;;15624:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;15624:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;26121:1549::-;26277:5;;26270:50;;;-1:-1:-1;;;26270:50:0;;26294:10;26270:50;;;;26314:4;26270:50;;;;;;26218:14;;;;-1:-1:-1;;;;;26277:5:0;;;;26270:23;;:50;;;;;;;;;;;;;;;26277:5;26270:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26270:50:0;;-1:-1:-1;26339:24:0;;;;26331:63;;;;;-1:-1:-1;;;26331:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26444:5;;26437:35;;;-1:-1:-1;;;26437:35:0;;26461:10;26437:35;;;;;;26407:27;;-1:-1:-1;;;;;26444:5:0;;26437:23;;:35;;;;;;;;;;;;;;26444:5;26437:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26437:35:0;;-1:-1:-1;26491:34:0;;;;26483:71;;;;;-1:-1:-1;;;26483:71:0;;;;;;;;;;;;-1:-1:-1;;;26483:71:0;;;;;;;;;;;;;;;26675:5;;26668:38;;;-1:-1:-1;;;26668:38:0;;26700:4;26668:38;;;;;;26640:25;;-1:-1:-1;;;;;26675:5:0;;26668:23;;:38;;;;;;;;;;;;;;26675:5;26668:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26668:38:0;;-1:-1:-1;26717:19:0;26739:13;:11;:13::i;:::-;26717:35;;26799:29;26844:70;26860:21;26870:10;26860:9;:21::i;:::-;26883:11;26896:17;26844:15;:70::i;:::-;26799:115;;26948:8;;26933:11;:23;;26925:51;;;;;-1:-1:-1;;;26925:51:0;;;;;;;;;;;;-1:-1:-1;;;26925:51:0;;;;;;;;;;;;;;;27039:8;;26996:38;:11;27012:21;26996:15;:38::i;:::-;26995:52;;26987:83;;;;;-1:-1:-1;;;26987:83:0;;;;;;;;;;;;-1:-1:-1;;;26987:83:0;;;;;;;;;;;;;;;27111:15;;27107:245;;27152:60;27168:11;27181:17;27200:11;27152:15;:60::i;:::-;27143:69;;21544:4;27235:6;:20;;27227:60;;;;;-1:-1:-1;;;27227:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27107:245;;;27329:11;27320:20;;27107:245;27421:5;;27414:66;;;-1:-1:-1;;;27414:66:0;;27441:10;27414:66;;;;27461:4;27414:66;;;;;;;;;;;;-1:-1:-1;;;;;27421:5:0;;;;27414:26;;:66;;;;;;;;;;;;;;;27421:5;;27414:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27414:66:0;27392:141;;;;;-1:-1:-1;;;27392:141:0;;;;;;;;;;;;-1:-1:-1;;;27392:141:0;;;;;;;;;;;;;;;27544:25;27550:10;27562:6;27544:5;:25::i;:::-;-1:-1:-1;;27633:10:0;27624:20;;;;:8;:20;;;;;27647:15;27624:38;;-1:-1:-1;26121:1549:0;;;-1:-1:-1;;;26121:1549:0:o;12844:175::-;12930:4;12947:42;12957:12;:10;:12::i;:::-;12971:9;12982:6;12947:9;:42::i;25377:161::-;25471:7;25503:27;25518:11;25503:14;:27::i;27680:299::-;22885:10;27767:7;22876:20;;;:8;:20;;;;;;22911:15;;22907:113;;22983:14;;22969:11;22951:15;:29;:46;22943:65;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;-1:-1:-1;;;22943:65:0;;;;;;;;;;;;;;;27792:19:::1;27814:13;:11;:13::i;:::-;27873:5;::::0;27866:38:::1;::::0;;-1:-1:-1;;;27866:38:0;;27898:4:::1;27866:38;::::0;::::1;::::0;;;27792:35;;-1:-1:-1;27838:25:0::1;::::0;-1:-1:-1;;;;;27873:5:0;;::::1;::::0;27866:23:::1;::::0;:38;;;;;::::1;::::0;;;;;;;;;27873:5;27866:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27866:38:0;;-1:-1:-1;27924:47:0::1;27932:6:::0;27940:11;27866:38;27924:7:::1;:47::i;:::-;27917:54:::0;27680:299;-1:-1:-1;;;;;27680:299:0:o;13082:151::-;-1:-1:-1;;;;;13198:18:0;;;13171:7;13198:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;13082:151::o;25548:::-;25637:7;25669:22;25684:6;25669:14;:22::i;21696:23::-;;;;:::o;21637:20::-;;;-1:-1:-1;;;;;21637:20:0;;:::o;3437:106::-;3525:10;3437:106;:::o;18629:346::-;-1:-1:-1;;;;;18731:19:0;;18723:68;;;;-1:-1:-1;;;18723:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18810:21:0;;18802:68;;;;-1:-1:-1;;;18802:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18883:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;18935:32;;;;;;;;;;;;;;;;;18629:346;;;:::o;16241:539::-;-1:-1:-1;;;;;16347:20:0;;16339:70;;;;-1:-1:-1;;;16339:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16428:23:0;;16420:71;;;;-1:-1:-1;;;16420:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16504:47;16525:6;16533:9;16544:6;16504:20;:47::i;:::-;16584:71;16606:6;16584:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16584:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;16564:17:0;;;:9;:17;;;;;;;;;;;:91;;;;16689:20;;;;;;;:32;;16714:6;16689:24;:32::i;:::-;-1:-1:-1;;;;;16666:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;16737:35;;;;;;;16666:20;;16737:35;;;;-1:-1:-1;;;;;;;;;;;16737:35:0;;;;;;;;16241:539;;;:::o;5588:192::-;5674:7;5710:12;5702:6;;;;5694:29;;;;-1:-1:-1;;;5694:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5746:5:0;;;5588:192::o;31848:245::-;31992:7;32024:61;32040:12;32054:11;32067:17;32024:15;:61::i;:::-;32017:68;31848:245;-1:-1:-1;;;;31848:245:0:o;29470:302::-;29562:10;;29558:68;;29589:25;29595:10;29607:6;29589:5;:25::i;:::-;29640:15;;29636:129;;29687:5;;29680:47;;;-1:-1:-1;;;29680:47:0;;29703:10;29680:47;;;;;;;;;;;;-1:-1:-1;;;;;29687:5:0;;;;29680:22;;:47;;;;;;;;;;;;;;;29687:5;;29680:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29680:47:0;29672:81;;;;;-1:-1:-1;;;29672:81:0;;;;;;;;;;;;-1:-1:-1;;;29672:81:0;;;;;;;;;;;;;;4685:181;4743:7;4775:5;;;4799:6;;;;4791:46;;;;;-1:-1:-1;;;4791:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;32677:309;32766:7;32791:19;32813:13;:11;:13::i;:::-;32872:5;;32865:38;;;-1:-1:-1;;;32865:38:0;;32897:4;32865:38;;;;;;32791:35;;-1:-1:-1;32837:25:0;;-1:-1:-1;;;;;32872:5:0;;;;32865:23;;:38;;;;;;;;;;;;;;;32872:5;32865:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32865:38:0;;-1:-1:-1;32923:55:0;32939:6;32947:11;32865:38;32923:15;:55::i;17773:418::-;-1:-1:-1;;;;;17857:21:0;;17849:67;;;;-1:-1:-1;;;17849:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17929:49;17950:7;17967:1;17971:6;17929:20;:49::i;:::-;18012:68;18035:6;18012:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18012:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;17991:18:0;;:9;:18;;;;;;;;;;:89;18106:12;;:24;;18123:6;18106:16;:24::i;:::-;18091:12;:39;18146:37;;;;;;;;18172:1;;-1:-1:-1;;;;;18146:37:0;;;-1:-1:-1;;;;;;;;;;;18146:37:0;;;;;;;;17773:418;;:::o;28871:346::-;28988:9;28975;:22;;28967:54;;;;;-1:-1:-1;;;28967:54:0;;;;;;;;;;;;-1:-1:-1;;;28967:54:0;;;;;;;;;;;;;;;21544:4;29040:9;:23;;29032:57;;;;;-1:-1:-1;;;29032:57:0;;;;;;;;;;;;-1:-1:-1;;;29032:57:0;;;;;;;;;;;;;;;29100:8;:20;;;29131:8;:20;;;29169:40;;;;;;;;;;;;;;;;;;;;;;;;;28871:346;;:::o;29225:182::-;29311:14;:32;;;29361:38;;;;;;;;;;;;;;;;;29225:182;:::o;32101:242::-;32244:7;32276:59;32291:11;32304:17;32323:11;32276:14;:59::i;29780:1383::-;29896:7;21544:4;29958:6;:20;;29950:61;;;;;-1:-1:-1;;;29950:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30082:1;30068:11;:15;:40;;;;;30107:1;30087:17;:21;30068:40;30060:61;;;;;-1:-1:-1;;;30060:61:0;;;;;;;;;;;;-1:-1:-1;;;30060:61:0;;;;;;;;;;;;;;;30167:21;30191;30201:10;30191:9;:21::i;:::-;30167:45;;30241:13;30231:6;:23;;30223:53;;;;;-1:-1:-1;;;30223:53:0;;;;;;;;;;;;-1:-1:-1;;;30223:53:0;;;;;;;;;;;;;;;30386:22;;;30441:17;;;:47;;;21544:4;30462:12;:26;;30441:47;30419:154;;;;-1:-1:-1;;;30419:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30635:26;30677:61;30693:12;30707:11;30720:17;30677:15;:61::i;:::-;30635:103;-1:-1:-1;30771:23:0;;;:57;;;30820:8;;30798:18;:30;;30771:57;30749:170;;;;-1:-1:-1;;;30749:170:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30973:19;31008:55;31024:6;31032:11;31045:17;31008:15;:55::i;:::-;30973:90;;31095:29;31104:6;31112:11;31095:8;:29::i;:::-;31144:11;29780:1383;-1:-1:-1;;;;;;;29780:1383:0:o;17062:378::-;-1:-1:-1;;;;;17146:21:0;;17138:65;;;;;-1:-1:-1;;;17138:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17216:49;17245:1;17249:7;17258:6;17216:20;:49::i;:::-;17293:12;;:24;;17310:6;17293:16;:24::i;:::-;17278:12;:39;-1:-1:-1;;;;;17349:18:0;;:9;:18;;;;;;;;;;;:30;;17372:6;17349:22;:30::i;:::-;-1:-1:-1;;;;;17328:18:0;;:9;:18;;;;;;;;;;;:51;;;;17395:37;;;;;;;17328:18;;:9;;-1:-1:-1;;;;;;;;;;;17395:37:0;;;;;;;;;17062:378;;:::o;32351:318::-;32445:7;32470:19;32492:13;:11;:13::i;:::-;32551:5;;32544:38;;;-1:-1:-1;;;32544:38:0;;32576:4;32544:38;;;;;;32470:35;;-1:-1:-1;32516:25:0;;-1:-1:-1;;;;;32551:5:0;;;;32544:23;;:38;;;;;;;;;;;;;;;32551:5;32544:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32544:38:0;;-1:-1:-1;32602:59:0;32618:11;32544:38;32649:11;32602:15;:59::i;31226:263::-;31346:7;31375:13;31371:54;;-1:-1:-1;31412:1:0;31405:8;;31371:54;31444:37;31472:8;31444:23;:9;31458:8;31444:13;:23::i;:::-;:27;;:37::i;5149:136::-;5207:7;5234:43;5238:1;5241;5234:43;;;;;;;;;;;;;;;;;:3;:43::i;31497:343::-;31616:7;31645:13;31641:54;;-1:-1:-1;31682:1:0;31675:8;;31641:54;31707:11;31721:44;31763:1;31721:37;31749:8;31721:23;:9;31735:8;31721:13;:23::i;:::-;:27;;:37::i;:::-;:41;;:44::i;:::-;31707:58;-1:-1:-1;31776:12:0;31791:17;31707:58;31799:8;31791:7;:17::i;6039:471::-;6097:7;6342:6;6338:47;;-1:-1:-1;6372:1:0;6365:8;;6338:47;6409:5;;;6413:1;6409;:5;:1;6433:5;;;;;:10;6425:56;;;;-1:-1:-1;;;6425:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6986:132;7044:7;7071:39;7075:1;7078;7071:39;;;;;;;;;;;;;;;;;7700:7;7735:12;7728:5;7720:28;;;;-1:-1:-1;;;7720:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7759:9;7775:1;7771;:5;;;;;;;7614:278;-1:-1:-1;;;;;7614:278:0:o
Swarm Source
ipfs://77dfcb437c363ecc0f23d1860bf780fe9da2615fddd46543c42a20e1e5e3c1be
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.