ERC-20
AirSwap
Overview
Max Total Supply
962,417.8567 sAST
Holders
109 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 4 Decimals)
Balance
8.1637 sASTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Staking
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/Math.sol"; /** * @title Staking: Stake and Unstake Tokens */ contract Staking is Ownable { using SafeERC20 for ERC20; using SafeMath for uint256; struct Stake { uint256 duration; uint256 cliff; uint256 initial; uint256 balance; uint256 timestamp; } // Token to be staked ERC20 public immutable token; // Vesting duration and cliff uint256 public duration; uint256 public cliff; // Mapping of account to stakes mapping(address => Stake[]) public allStakes; // ERC-20 token properties string public name; string public symbol; // ERC-20 Transfer event event Transfer(address indexed from, address indexed to, uint256 tokens); /** * @notice Constructor * @param _token address * @param _name string * @param _symbol string * @param _duration uint256 * @param _cliff uint256 */ constructor( ERC20 _token, string memory _name, string memory _symbol, uint256 _duration, uint256 _cliff ) { token = _token; name = _name; symbol = _symbol; duration = _duration; cliff = _cliff; } /** * @notice Set vesting config * @param _duration uint256 * @param _cliff uint256 */ function setVesting(uint256 _duration, uint256 _cliff) external onlyOwner { duration = _duration; cliff = _cliff; } /** * @notice Set metadata config * @param _name string * @param _symbol string */ function setMetaData(string memory _name, string memory _symbol) external onlyOwner { name = _name; symbol = _symbol; } /** * @notice Stake tokens * @param amount uint256 */ function stake(uint256 amount) external { stakeFor(msg.sender, amount); } /** * @notice Stake tokens for an account * @param account address * @param amount uint256 */ function stakeFor(address account, uint256 amount) public { require(amount > 0, "AMOUNT_INVALID"); allStakes[account].push( Stake(duration, cliff, amount, amount, block.timestamp) ); token.safeTransferFrom(msg.sender, address(this), amount); emit Transfer(address(0), account, amount); } /** * @notice Extend a stake * @param amount uint256 */ function extend(uint256 index, uint256 amount) external { extendFor(index, msg.sender, amount); } /** * @notice Extend a stake for an account * @param index uint256 * @param account address * @param amount uint256 */ function extendFor( uint256 index, address account, uint256 amount ) public { require(amount > 0, "AMOUNT_INVALID"); Stake storage selected = allStakes[account][index]; // If selected stake is fully vested create a new stake if (vested(account, index) == selected.initial) { stakeFor(account, amount); } else { uint256 newInitial = selected.initial.add(amount); uint256 newBalance = selected.balance.add(amount); // Calculate a new timestamp proportional to the new amount // New timestamp limited to current timestamp (amount / newInitial approaches 1) uint256 newTimestamp = selected.timestamp + amount.mul(block.timestamp.sub(selected.timestamp)).div(newInitial); allStakes[account][index] = Stake( duration, cliff, newInitial, newBalance, newTimestamp ); token.safeTransferFrom(msg.sender, address(this), amount); emit Transfer(address(0), account, amount); } } /** * @notice Unstake multiple * @param amounts uint256[] */ function unstake(uint256[] calldata amounts) external { uint256 totalAmount = 0; uint256 length = amounts.length; while (length-- > 0) { if (amounts[length] > 0) { _unstake(length, amounts[length]); totalAmount += amounts[length]; } } if (totalAmount > 0) { token.transfer(msg.sender, totalAmount); emit Transfer(msg.sender, address(0), totalAmount); } } /** * @notice Vested amount for an account * @param account uint256 * @param index uint256 */ function vested(address account, uint256 index) public view returns (uint256) { Stake storage stakeData = allStakes[account][index]; if (block.timestamp.sub(stakeData.timestamp) > duration) { return stakeData.initial; } return stakeData.initial.mul(block.timestamp.sub(stakeData.timestamp)).div( stakeData.duration ); } /** * @notice Available amount for an account * @param account uint256 * @param index uint256 */ function available(address account, uint256 index) public view returns (uint256) { Stake memory selected = allStakes[account][index]; if (block.timestamp.sub(selected.timestamp) < selected.cliff) { return 0; } return vested(account, index) - (selected.initial - selected.balance); } /** * @notice All stakes for an account * @param account uint256 */ function getStakes(address account) external view returns (Stake[] memory stakes) { uint256 length = allStakes[account].length; stakes = new Stake[](length); while (length-- > 0) { stakes[length] = allStakes[account][length]; } return stakes; } /** * @notice Total balance of all accounts (ERC-20) */ function totalSupply() external view returns (uint256) { return token.balanceOf(address(this)); } /** * @notice Balance of an account (ERC-20) */ function balanceOf(address account) external view returns (uint256 total) { Stake[] memory stakes = allStakes[account]; uint256 length = stakes.length; while (length-- > 0) { total = total.add(stakes[length].balance); } return total; } /** * @notice Decimals of underlying token (ERC-20) */ function decimals() external view returns (uint8) { return token.decimals(); } /** * @notice Unstake tokens * @param index uint256 * @param amount uint256 */ function _unstake(uint256 index, uint256 amount) internal { require(index < allStakes[msg.sender].length, "INDEX_OUT_OF_RANGE"); Stake storage selected = allStakes[msg.sender][index]; require( block.timestamp.sub(selected.timestamp) >= selected.cliff, "CLIFF_NOT_REACHED" ); require(amount <= available(msg.sender, index), "AMOUNT_EXCEEDS_AVAILABLE"); selected.balance = selected.balance.sub(amount); if (selected.balance == 0) { Stake[] memory stakes = allStakes[msg.sender]; allStakes[msg.sender][index] = stakes[stakes.length.sub(1)]; allStakes[msg.sender].pop(); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.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 virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 virtual { _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 { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @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; } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ERC20","name":"_token","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allStakes","outputs":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"initial","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"extend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"extendFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getStakes","outputs":[{"components":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"initial","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Staking.Stake[]","name":"stakes","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setMetaData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"}],"name":"setVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"vested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620025e9380380620025e9833981016040819052620000349162000226565b600062000040620000db565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606086901b166080528351620000b1906004906020870190620000df565b508251620000c7906005906020860190620000df565b5060019190915560025550620002bf915050565b3390565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000117576000855562000162565b82601f106200013257805160ff191683800117855562000162565b8280016001018555821562000162579182015b828111156200016257825182559160200191906001019062000145565b506200017092915062000174565b5090565b5b8082111562000170576000815560010162000175565b600082601f8301126200019c578081fd5b81516001600160401b0380821115620001b157fe5b6040516020601f8401601f1916820181018381118382101715620001d157fe5b6040528382528584018101871015620001e8578485fd5b8492505b838310156200020b5785830181015182840182015291820191620001ec565b838311156200021c57848185840101525b5095945050505050565b600080600080600060a086880312156200023e578081fd5b85516001600160a01b038116811462000255578182fd5b60208701519095506001600160401b038082111562000272578283fd5b6200028089838a016200018b565b9550604088015191508082111562000296578283fd5b50620002a5888289016200018b565b606088015160809098015196999598509695949350505050565b60805160601c6122f3620002f6600039806104c7528061062952806106bf5280610f18528061107452806113a152506122f36000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80638667ab24116100d8578063c89258db1161008c578063f2fde38b11610066578063f2fde38b146102f5578063f8724aba14610308578063fc0c546a1461031b57610182565b8063c89258db146102bc578063d552198d146102cf578063e449f341146102e257610182565b806395d89b41116100bd57806395d89b411461028e578063a694fc3a14610296578063bb2c4100146102a957610182565b80638667ab24146102555780638da5cb5b1461027957610182565b80632ee409081161013a57806370a082311161011457806370a082311461021a578063715018a61461022d5780637ba6f4581461023557610182565b80632ee40908146101dd578063313ce567146101f257806361d2d3631461020757610182565b80630fb5a6b41161016b5780630fb5a6b4146101c557806313d033c0146101cd57806318160ddd146101d557610182565b806306fdde03146101875780630f059913146101a5575b600080fd5b61018f610323565b60405161019c919061209f565b60405180910390f35b6101b86101b3366004611e2b565b6103cf565b60405161019c91906121ec565b6101b861047b565b6101b8610481565b6101b8610487565b6101f06101eb366004611e2b565b610551565b005b6101fa6106bb565b60405161019c9190612218565b6101f0610215366004611fa8565b61075b565b6101b8610228366004611e11565b61080e565b6101f061091e565b610248610243366004611e11565b610a35565b60405161019c9190612031565b610268610263366004611e2b565b610b7a565b60405161019c9594939291906121f5565b610281610bc8565b60405161019c9190611fea565b61018f610be4565b6101f06102a4366004611f44565b610c5d565b6101f06102b7366004611ee3565b610c6a565b6101f06102ca366004611fa8565b610d3e565b6101f06102dd366004611f74565b610d4d565b6101f06102f0366004611e54565b610fb0565b6101f0610303366004611e11565b611141565b6101b8610316366004611e2b565b6112e2565b61028161139f565b6004805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548291908490811061040357fe5b9060005260206000209060050201905060015461042d8260040154426113c390919063ffffffff16565b111561043e57600201549050610475565b610471816000015461046b6104608460040154426113c390919063ffffffff16565b60028501549061143a565b906114b4565b9150505b92915050565b60015481565b60025481565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a08231906104fc903090600401611fea565b60206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611f5c565b905090565b60008111610594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b906121b5565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600360208181526040808420815160a081018352600180548252600280548387019081529483018a8152606084018b8152426080860190815286548086018855968b529790992093516005909502909301938455935190830155519181019190915592519183019190915551600490910155610651907f000000000000000000000000000000000000000000000000000000000000000016333084611535565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106af91906121ec565b60405180910390a35050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561072357600080fd5b505afa158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611fc9565b6107636115ca565b73ffffffffffffffffffffffffffffffffffffffff16610781610bc8565b73ffffffffffffffffffffffffffffffffffffffff161461080357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600191909155600255565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020908152604080832080548251818502810185019093528083528493849084015b828210156108b257838290600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250508152602001906001019061084e565b5050825192935050505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190156109165761090f8282815181106108f457fe5b602002602001015160600151846115ce90919063ffffffff16565b92506108bc565b50505b919050565b6109266115ca565b73ffffffffffffffffffffffffffffffffffffffff16610944610bc8565b73ffffffffffffffffffffffffffffffffffffffff16146109c657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260409020546060908067ffffffffffffffff81118015610a7557600080fd5b50604051908082528060200260200182016040528015610aaf57816020015b610a9c611c8a565b815260200190600190039081610a945790505b5091505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610b745773ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260409020805482908110610b0d57fe5b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050828281518110610b6457fe5b6020026020010181905250610ab3565b50919050565b60036020528160005260406000208181548110610b9657600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b610c673382610551565b50565b610c726115ca565b73ffffffffffffffffffffffffffffffffffffffff16610c90610bc8565b73ffffffffffffffffffffffffffffffffffffffff1614610d1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8151610d25906004906020850190611cb9565b508051610d39906005906020840190611cb9565b505050565b610d49823383610d4d565b5050565b60008111610d87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b906121b5565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805485908110610db857fe5b906000526020600020906005020190508060020154610dd784866103cf565b1415610dec57610de78383610551565b610faa565b6002810154600090610dfe90846115ce565b90506000610e198484600301546115ce90919063ffffffff16565b90506000610e428361046b610e3b8760040154426113c390919063ffffffff16565b889061143a565b84600401540190506040518060a001604052806001548152602001600254815260200184815260200183815260200182815250600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208881548110610ebf57fe5b600091825260209182902083516005909202019081559082015160018201556040820151600282015560608201516003820155608090910151600490910155610f4073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333088611535565b8573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051610f9e91906121ec565b60405180910390a35050505b50505050565b6000815b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015611031576000848483818110610feb57fe5b90506020020135111561102c576110148185858481811061100857fe5b90506020020135611642565b83838281811061102057fe5b90506020020135820191505b610fb4565b8115610faa576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906110ab903390869060040161200b565b602060405180830381600087803b1580156110c557600080fd5b505af11580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190611ec3565b5060405160009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906111339086906121ec565b60405180910390a350505050565b6111496115ca565b73ffffffffffffffffffffffffffffffffffffffff16611167610bc8565b73ffffffffffffffffffffffffffffffffffffffff16146111e957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611255576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806122276026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548291908490811061131657fe5b60009182526020918290206040805160a08101825260059093029091018054835260018101549383018490526002810154918301919091526003810154606083015260040154608082018190529092506113719042906113c3565b1015611381576000915050610475565b806060015181604001510361139685856103cf565b03949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008282111561143457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261144957506000610475565b8282028284828161145657fe5b04146114ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122736021913960400191505060405180910390fd5b9392505050565b600080821161152457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161152d57fe5b049392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610faa90859061191d565b3390565b6000828201838110156114ad57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b33600090815260036020526040902054821061168a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b90612110565b3360009081526003602052604081208054849081106116a557fe5b9060005260206000209060050201905080600101546116d18260040154426113c390919063ffffffff16565b1015611709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b90612147565b61171333846112e2565b82111561174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b9061217e565b600381015461175b90836113c3565b60038201819055610d395733600090815260036020908152604080832080548251818502810185019093528083529192909190849084015b828210156117f757838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190611793565b50505050905080611813600183516113c390919063ffffffff16565b8151811061181d57fe5b6020026020010151600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020858154811061186f57fe5b6000918252602080832084516005909302019182558381015160018301556040808501516002840155606085015160038085019190915560809095015160049093019290925533835292909252208054806118c657fe5b60008281526020812060057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093019283020181815560018101829055600281018290556003810182905560040155905550505050565b600061197f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119f59092919063ffffffff16565b805190915015610d395780806020019051602081101561199e57600080fd5b5051610d39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612294602a913960400191505060405180910390fd5b6060611a048484600085611a0c565b949350505050565b606082471015611a67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061224d6026913960400191505060405180910390fd5b611a7085611bc6565b611adb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611b4457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611b07565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ba6576040519150601f19603f3d011682016040523d82523d6000602084013e611bab565b606091505b5091509150611bbb828286611bcc565b979650505050505050565b3b151590565b60608315611bdb5750816114ad565b825115611beb5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c4f578181015183820152602001611c37565b50505050905090810190601f168015611c7c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611cef5760008555611d35565b82601f10611d0857805160ff1916838001178555611d35565b82800160010185558215611d35579182015b82811115611d35578251825591602001919060010190611d1a565b50611d41929150611d45565b5090565b5b80821115611d415760008155600101611d46565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091957600080fd5b600082601f830112611d8e578081fd5b813567ffffffffffffffff80821115611da357fe5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501168201018181108382111715611ddf57fe5b604052828152848301602001861015611df6578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611e22578081fd5b6114ad82611d5a565b60008060408385031215611e3d578081fd5b611e4683611d5a565b946020939093013593505050565b60008060208385031215611e66578182fd5b823567ffffffffffffffff80821115611e7d578384fd5b818501915085601f830112611e90578384fd5b813581811115611e9e578485fd5b8660208083028501011115611eb1578485fd5b60209290920196919550909350505050565b600060208284031215611ed4578081fd5b815180151581146114ad578182fd5b60008060408385031215611ef5578182fd5b823567ffffffffffffffff80821115611f0c578384fd5b611f1886838701611d7e565b93506020850135915080821115611f2d578283fd5b50611f3a85828601611d7e565b9150509250929050565b600060208284031215611f55578081fd5b5035919050565b600060208284031215611f6d578081fd5b5051919050565b600080600060608486031215611f88578081fd5b83359250611f9860208501611d5a565b9150604084013590509250925092565b60008060408385031215611fba578182fd5b50508035926020909101359150565b600060208284031215611fda578081fd5b815160ff811681146114ad578182fd5b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000919060409081850190868401855b828110156120925781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a0909301929085019060010161204e565b5091979650505050505050565b6000602080835283518082850152825b818110156120cb578581018301518582016040015282016120af565b818111156120dc5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60208082526012908201527f494e4445585f4f55545f4f465f52414e47450000000000000000000000000000604082015260600190565b60208082526011908201527f434c4946465f4e4f545f52454143484544000000000000000000000000000000604082015260600190565b60208082526018908201527f414d4f554e545f455843454544535f415641494c41424c450000000000000000604082015260600190565b6020808252600e908201527f414d4f554e545f494e56414c4944000000000000000000000000000000000000604082015260600190565b90815260200190565b948552602085019390935260408401919091526060830152608082015260a00190565b60ff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122023cdbf66ba147e0f9ab26158045da4413e218172ded58ceca48b97bb816eab5564736f6c6343000706003300000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000b89200000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000000000000000000a5374616b6564204153540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047341535400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c80638667ab24116100d8578063c89258db1161008c578063f2fde38b11610066578063f2fde38b146102f5578063f8724aba14610308578063fc0c546a1461031b57610182565b8063c89258db146102bc578063d552198d146102cf578063e449f341146102e257610182565b806395d89b41116100bd57806395d89b411461028e578063a694fc3a14610296578063bb2c4100146102a957610182565b80638667ab24146102555780638da5cb5b1461027957610182565b80632ee409081161013a57806370a082311161011457806370a082311461021a578063715018a61461022d5780637ba6f4581461023557610182565b80632ee40908146101dd578063313ce567146101f257806361d2d3631461020757610182565b80630fb5a6b41161016b5780630fb5a6b4146101c557806313d033c0146101cd57806318160ddd146101d557610182565b806306fdde03146101875780630f059913146101a5575b600080fd5b61018f610323565b60405161019c919061209f565b60405180910390f35b6101b86101b3366004611e2b565b6103cf565b60405161019c91906121ec565b6101b861047b565b6101b8610481565b6101b8610487565b6101f06101eb366004611e2b565b610551565b005b6101fa6106bb565b60405161019c9190612218565b6101f0610215366004611fa8565b61075b565b6101b8610228366004611e11565b61080e565b6101f061091e565b610248610243366004611e11565b610a35565b60405161019c9190612031565b610268610263366004611e2b565b610b7a565b60405161019c9594939291906121f5565b610281610bc8565b60405161019c9190611fea565b61018f610be4565b6101f06102a4366004611f44565b610c5d565b6101f06102b7366004611ee3565b610c6a565b6101f06102ca366004611fa8565b610d3e565b6101f06102dd366004611f74565b610d4d565b6101f06102f0366004611e54565b610fb0565b6101f0610303366004611e11565b611141565b6101b8610316366004611e2b565b6112e2565b61028161139f565b6004805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548291908490811061040357fe5b9060005260206000209060050201905060015461042d8260040154426113c390919063ffffffff16565b111561043e57600201549050610475565b610471816000015461046b6104608460040154426113c390919063ffffffff16565b60028501549061143a565b906114b4565b9150505b92915050565b60015481565b60025481565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a16906370a08231906104fc903090600401611fea565b60206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611f5c565b905090565b60008111610594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b906121b5565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600360208181526040808420815160a081018352600180548252600280548387019081529483018a8152606084018b8152426080860190815286548086018855968b529790992093516005909502909301938455935190830155519181019190915592519183019190915551600490910155610651907f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a16333084611535565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106af91906121ec565b60405180910390a35050565b60007f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a73ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561072357600080fd5b505afa158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611fc9565b6107636115ca565b73ffffffffffffffffffffffffffffffffffffffff16610781610bc8565b73ffffffffffffffffffffffffffffffffffffffff161461080357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600191909155600255565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020908152604080832080548251818502810185019093528083528493849084015b828210156108b257838290600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250508152602001906001019061084e565b5050825192935050505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190156109165761090f8282815181106108f457fe5b602002602001015160600151846115ce90919063ffffffff16565b92506108bc565b50505b919050565b6109266115ca565b73ffffffffffffffffffffffffffffffffffffffff16610944610bc8565b73ffffffffffffffffffffffffffffffffffffffff16146109c657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260409020546060908067ffffffffffffffff81118015610a7557600080fd5b50604051908082528060200260200182016040528015610aaf57816020015b610a9c611c8a565b815260200190600190039081610a945790505b5091505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610b745773ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260409020805482908110610b0d57fe5b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050828281518110610b6457fe5b6020026020010181905250610ab3565b50919050565b60036020528160005260406000208181548110610b9657600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b610c673382610551565b50565b610c726115ca565b73ffffffffffffffffffffffffffffffffffffffff16610c90610bc8565b73ffffffffffffffffffffffffffffffffffffffff1614610d1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8151610d25906004906020850190611cb9565b508051610d39906005906020840190611cb9565b505050565b610d49823383610d4d565b5050565b60008111610d87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b906121b5565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805485908110610db857fe5b906000526020600020906005020190508060020154610dd784866103cf565b1415610dec57610de78383610551565b610faa565b6002810154600090610dfe90846115ce565b90506000610e198484600301546115ce90919063ffffffff16565b90506000610e428361046b610e3b8760040154426113c390919063ffffffff16565b889061143a565b84600401540190506040518060a001604052806001548152602001600254815260200184815260200183815260200182815250600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208881548110610ebf57fe5b600091825260209182902083516005909202019081559082015160018201556040820151600282015560608201516003820155608090910151600490910155610f4073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a16333088611535565b8573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051610f9e91906121ec565b60405180910390a35050505b50505050565b6000815b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015611031576000848483818110610feb57fe5b90506020020135111561102c576110148185858481811061100857fe5b90506020020135611642565b83838281811061102057fe5b90506020020135820191505b610fb4565b8115610faa576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a169063a9059cbb906110ab903390869060040161200b565b602060405180830381600087803b1580156110c557600080fd5b505af11580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190611ec3565b5060405160009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906111339086906121ec565b60405180910390a350505050565b6111496115ca565b73ffffffffffffffffffffffffffffffffffffffff16611167610bc8565b73ffffffffffffffffffffffffffffffffffffffff16146111e957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611255576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806122276026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548291908490811061131657fe5b60009182526020918290206040805160a08101825260059093029091018054835260018101549383018490526002810154918301919091526003810154606083015260040154608082018190529092506113719042906113c3565b1015611381576000915050610475565b806060015181604001510361139685856103cf565b03949350505050565b7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a81565b60008282111561143457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261144957506000610475565b8282028284828161145657fe5b04146114ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122736021913960400191505060405180910390fd5b9392505050565b600080821161152457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161152d57fe5b049392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610faa90859061191d565b3390565b6000828201838110156114ad57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b33600090815260036020526040902054821061168a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b90612110565b3360009081526003602052604081208054849081106116a557fe5b9060005260206000209060050201905080600101546116d18260040154426113c390919063ffffffff16565b1015611709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b90612147565b61171333846112e2565b82111561174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058b9061217e565b600381015461175b90836113c3565b60038201819055610d395733600090815260036020908152604080832080548251818502810185019093528083529192909190849084015b828210156117f757838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190611793565b50505050905080611813600183516113c390919063ffffffff16565b8151811061181d57fe5b6020026020010151600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020858154811061186f57fe5b6000918252602080832084516005909302019182558381015160018301556040808501516002840155606085015160038085019190915560809095015160049093019290925533835292909252208054806118c657fe5b60008281526020812060057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093019283020181815560018101829055600281018290556003810182905560040155905550505050565b600061197f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119f59092919063ffffffff16565b805190915015610d395780806020019051602081101561199e57600080fd5b5051610d39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612294602a913960400191505060405180910390fd5b6060611a048484600085611a0c565b949350505050565b606082471015611a67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061224d6026913960400191505060405180910390fd5b611a7085611bc6565b611adb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611b4457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611b07565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ba6576040519150601f19603f3d011682016040523d82523d6000602084013e611bab565b606091505b5091509150611bbb828286611bcc565b979650505050505050565b3b151590565b60608315611bdb5750816114ad565b825115611beb5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c4f578181015183820152602001611c37565b50505050905090810190601f168015611c7c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611cef5760008555611d35565b82601f10611d0857805160ff1916838001178555611d35565b82800160010185558215611d35579182015b82811115611d35578251825591602001919060010190611d1a565b50611d41929150611d45565b5090565b5b80821115611d415760008155600101611d46565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091957600080fd5b600082601f830112611d8e578081fd5b813567ffffffffffffffff80821115611da357fe5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501168201018181108382111715611ddf57fe5b604052828152848301602001861015611df6578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611e22578081fd5b6114ad82611d5a565b60008060408385031215611e3d578081fd5b611e4683611d5a565b946020939093013593505050565b60008060208385031215611e66578182fd5b823567ffffffffffffffff80821115611e7d578384fd5b818501915085601f830112611e90578384fd5b813581811115611e9e578485fd5b8660208083028501011115611eb1578485fd5b60209290920196919550909350505050565b600060208284031215611ed4578081fd5b815180151581146114ad578182fd5b60008060408385031215611ef5578182fd5b823567ffffffffffffffff80821115611f0c578384fd5b611f1886838701611d7e565b93506020850135915080821115611f2d578283fd5b50611f3a85828601611d7e565b9150509250929050565b600060208284031215611f55578081fd5b5035919050565b600060208284031215611f6d578081fd5b5051919050565b600080600060608486031215611f88578081fd5b83359250611f9860208501611d5a565b9150604084013590509250925092565b60008060408385031215611fba578182fd5b50508035926020909101359150565b600060208284031215611fda578081fd5b815160ff811681146114ad578182fd5b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000919060409081850190868401855b828110156120925781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a0909301929085019060010161204e565b5091979650505050505050565b6000602080835283518082850152825b818110156120cb578581018301518582016040015282016120af565b818111156120dc5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60208082526012908201527f494e4445585f4f55545f4f465f52414e47450000000000000000000000000000604082015260600190565b60208082526011908201527f434c4946465f4e4f545f52454143484544000000000000000000000000000000604082015260600190565b60208082526018908201527f414d4f554e545f455843454544535f415641494c41424c450000000000000000604082015260600190565b6020808252600e908201527f414d4f554e545f494e56414c4944000000000000000000000000000000000000604082015260600190565b90815260200190565b948552602085019390935260408401919091526060830152608082015260a00190565b60ff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122023cdbf66ba147e0f9ab26158045da4413e218172ded58ceca48b97bb816eab5564736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000b89200000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000000000000000000a5374616b6564204153540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047341535400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _token (address): 0x27054b13b1B798B345b591a4d22e6562d47eA75a
Arg [1] : _name (string): Staked AST
Arg [2] : _symbol (string): sAST
Arg [3] : _duration (uint256): 12096000
Arg [4] : _cliff (uint256): 2419200
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000b89200
Arg [4] : 000000000000000000000000000000000000000000000000000000000024ea00
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 5374616b65642041535400000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 7341535400000000000000000000000000000000000000000000000000000000
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.