ERC-20
Overview
Max Total Supply
141.942695331637649292 ERC20 ***
Holders
3
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 ERC20 ***Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VaultCurve3Pool
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-07 */ pragma solidity 0.6.12; /** * @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); } /* * @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; } } /** * @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; } } /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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); } } } } /** * @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; using Address for address; 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 is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 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 { } } /** * @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"); } } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } interface IController { function withdraw(address, uint) external; function balanceOf(address) external view returns (uint); function farm(address, uint) external; function harvest(address) external; } interface ITokenMaster { function tokenToPid(address _poolToken) external view returns (uint); function userBalanceForPool(address _user, address _poolToken) external view returns (uint); } // Forked from the original yearn yVault (https://github.com/yearn/yearn-protocol/blob/develop/contracts/vaults/yVault.sol) with the following changes: // - Introduce reward token of which the user can claim from the underlying strategy // - Keeper fees for farm and harvest // - Overriding transfer function to avoid reward token accumulation in TokenMaster (e.g when user stake Vault token into TokenMaster) abstract contract BaseVault is ERC20, ReentrancyGuard { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; /* ========== STATE VARIABLES ========== */ IERC20 public token; IERC20 public rewardToken; uint public availableMin = 9500; uint public farmKeeperFeeMin = 0; uint public harvestKeeperFeeMin = 0; uint public constant MAX = 10000; uint public rewardsPerShareStored; mapping(address => uint256) public userRewardPerSharePaid; mapping(address => uint256) public rewards; address public governance; address public controller; address public tokenMaster; mapping(address => bool) public keepers; /* ========== CONSTRUCTOR ========== */ constructor ( address _token, address _rewardToken, address _controller, address _tokenMaster) public ERC20 ( string(abi.encodePacked("aladdin ", ERC20(_token).name())), string(abi.encodePacked("ald", ERC20(_token).symbol()) ) ) { _setupDecimals(ERC20(_token).decimals()); token = IERC20(_token); rewardToken = IERC20(_rewardToken); controller = _controller; governance = msg.sender; tokenMaster = _tokenMaster; } /* ========== VIEWS ========== */ function balance() public view returns (uint) { return token.balanceOf(address(this)) .add(IController(controller).balanceOf(address(this))); } // Custom logic in here for how much the vault allows to be borrowed // Sets minimum required on-hand to keep small withdrawals cheap function available() public view returns (uint) { return token.balanceOf(address(this)).mul(availableMin).div(MAX); } function getPricePerFullShare() public view returns (uint) { return balance().mul(1e18).div(totalSupply()); } // amount staked in token master function stakedBalanceOf(address _user) public view returns(uint) { return ITokenMaster(tokenMaster).userBalanceForPool(_user, address(this)); } function earned(address account) public view returns (uint) { uint256 totalBalance = balanceOf(account).add(stakedBalanceOf(account)); return totalBalance.mul(rewardsPerShareStored.sub(userRewardPerSharePaid[account])).div(1e18).add(rewards[account]); } /* ========== USER MUTATIVE FUNCTIONS ========== */ function deposit(uint _amount) external nonReentrant { _updateReward(msg.sender); uint _pool = balance(); token.safeTransferFrom(msg.sender, address(this), _amount); uint shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount.mul(totalSupply())).div(_pool); } _mint(msg.sender, shares); emit Deposit(msg.sender, _amount); } // No rebalance implementation for lower fees and faster swaps function withdraw(uint _shares) public nonReentrant { _updateReward(msg.sender); uint r = (balance().mul(_shares)).div(totalSupply()); _burn(msg.sender, _shares); // Check balance uint b = token.balanceOf(address(this)); if (b < r) { uint _withdraw = r.sub(b); IController(controller).withdraw(address(this), _withdraw); uint _after = token.balanceOf(address(this)); uint _diff = _after.sub(b); if (_diff < _withdraw) { r = b.add(_diff); } } token.safeTransfer(msg.sender, r); emit Withdraw(msg.sender, r); } function claim() public { _updateReward(msg.sender); uint reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; rewardToken.safeTransfer(msg.sender, reward); } emit Claim(msg.sender, reward); } function exit() external { withdraw(balanceOf(msg.sender)); claim(); } // Override underlying transfer function to update reward before transfer, except on staking/withdraw to token master function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { if (to != tokenMaster && from != tokenMaster) { _updateReward(from); _updateReward(to); } super._beforeTokenTransfer(from, to, amount); } /* ========== KEEPER MUTATIVE FUNCTIONS ========== */ // Keepers call farm() to send funds to strategy function farm() external onlyKeeper { uint _bal = available(); uint keeperFee = _bal.mul(farmKeeperFeeMin).div(MAX); if (keeperFee > 0) { token.safeTransfer(msg.sender, keeperFee); } uint amountLessFee = _bal.sub(keeperFee); token.safeTransfer(controller, amountLessFee); IController(controller).farm(address(this), amountLessFee); emit Farm(msg.sender, keeperFee, amountLessFee); } // Keepers call harvest() to claim rewards from strategy // harvest() is marked as onlyEOA to prevent sandwich/MEV attack to collect most rewards through a flash-deposit() follow by a claim function harvest() external onlyKeeper { uint _rewardBefore = rewardToken.balanceOf(address(this)); IController(controller).harvest(address(this)); uint _rewardAfter = rewardToken.balanceOf(address(this)); uint harvested = _rewardAfter.sub(_rewardBefore); uint keeperFee = harvested.mul(harvestKeeperFeeMin).div(MAX); if (keeperFee > 0) { rewardToken.safeTransfer(msg.sender, keeperFee); } uint newRewardAmount = harvested.sub(keeperFee); // distribute new rewards to current shares evenly rewardsPerShareStored = rewardsPerShareStored.add(newRewardAmount.mul(1e18).div(totalSupply())); emit Harvest(msg.sender, keeperFee, newRewardAmount); } /* ========== INTERNAL FUNCTIONS ========== */ function _updateReward(address account) internal { rewards[account] = earned(account); userRewardPerSharePaid[account] = rewardsPerShareStored; } /* ========== RESTRICTED FUNCTIONS ========== */ function setAvailableMin(uint _availableMin) external { require(msg.sender == governance, "!governance"); require(_availableMin < MAX, "over MAX"); availableMin = _availableMin; } function setFarmKeeperFeeMin(uint _farmKeeperFeeMin) external { require(msg.sender == governance, "!governance"); require(_farmKeeperFeeMin < MAX, "over MAX"); farmKeeperFeeMin = _farmKeeperFeeMin; } function setHarvestKeeperFeeMin(uint _harvestKeeperFeeMin) external { require(msg.sender == governance, "!governance"); require(_harvestKeeperFeeMin < MAX, "over MAX"); harvestKeeperFeeMin = _harvestKeeperFeeMin; } function setGovernance(address _governance) external { require(msg.sender == governance, "!governance"); governance = _governance; } function setController(address _controller) external { require(msg.sender == governance, "!governance"); controller = _controller; } function setTokenMaster(address _tokenMaster) external { require(msg.sender == governance, "!governance"); tokenMaster = _tokenMaster; } function addKeeper(address _address) external { require(msg.sender == governance, "!governance"); keepers[_address] = true; } function removeKeeper(address _address) external { require(msg.sender == governance, "!governance"); keepers[_address] = false; } /* ========== MODIFIERS ========== */ modifier onlyKeeper() { require(keepers[msg.sender] == true, "!keeper"); _; } /* ========== EVENTS ========== */ event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event Claim(address indexed user, uint256 amount); event Farm(address indexed keeper, uint256 keeperFee, uint256 farmedAmount); event Harvest(address indexed keeper, uint256 keeperFee, uint256 harvestedAmount); } contract VaultCurve3Pool is BaseVault { constructor ( address _controller, address _tokenMaster) public BaseVault( address(0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490), // 3Crv address(0xD533a949740bb3306d119CC777fa900bA034cd52), // crv _controller, _tokenMaster ) {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_tokenMaster","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keeper","type":"address"},{"indexed":false,"internalType":"uint256","name":"keeperFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"farmedAmount","type":"uint256"}],"name":"Farm","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keeper","type":"address"},{"indexed":false,"internalType":"uint256","name":"keeperFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"harvestedAmount","type":"uint256"}],"name":"Harvest","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farmKeeperFeeMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestKeeperFeeMin","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":[{"internalType":"address","name":"","type":"address"}],"name":"keepers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerShareStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_availableMin","type":"uint256"}],"name":"setAvailableMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_farmKeeperFeeMin","type":"uint256"}],"name":"setFarmKeeperFeeMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_harvestKeeperFeeMin","type":"uint256"}],"name":"setHarvestKeeperFeeMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenMaster","type":"address"}],"name":"setTokenMaster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"stakedBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenMaster","outputs":[{"internalType":"address","name":"","type":"address"}],"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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerSharePaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261251c6009556000600a556000600b553480156200002157600080fd5b5060405162002aaf38038062002aaf833981810160405260408110156200004757600080fd5b508051602090910151604080516306fdde0360e01b81529051736c3f90f043a72fa612cbac8115ee7e52bde6e4909173d533a949740bb3306d119cc777fa900ba034cd52918591859185916306fdde03916004808301926000929190829003018186803b158015620000b857600080fd5b505afa158015620000cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015620000f757600080fd5b81019080805160405193929190846401000000008211156200011857600080fd5b9083019060208201858111156200012e57600080fd5b82516401000000008111828201881017156200014957600080fd5b82525081516020918201929091019080838360005b83811015620001785781810151838201526020016200015e565b50505050905090810190601f168015620001a65780820380516001836020036101000a031916815260200191505b50604052505050604051602001808067030b630b23234b7160c51b81525060080182805190602001908083835b60208310620001f45780518252601f199092019160209182019101620001d3565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200026257600080fd5b505afa15801562000277573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015620002a157600080fd5b8101908080516040519392919084640100000000821115620002c257600080fd5b908301906020820185811115620002d857600080fd5b8251640100000000811182820188101715620002f357600080fd5b82525081516020918201929091019080838360005b838110156200032257818101518382015260200162000308565b50505050905090810190601f168015620003505780820380516001836020036101000a031916815260200191505b50604052505050604051602001808062185b1960ea1b81525060030182805190602001908083835b60208310620003995780518252601f19909201916020918201910162000378565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528160039080519060200190620003e592919062000502565b508051620003fb90600490602084019062000502565b50506005805460ff191660121790555060016006556040805163313ce56760e01b815290516200048b916001600160a01b0387169163313ce56791600480820192602092909190829003018186803b1580156200045757600080fd5b505afa1580156200046c573d6000803e3d6000fd5b505050506040513d60208110156200048357600080fd5b5051620004ec565b600780546001600160a01b039586166001600160a01b03199182161790915560088054948616948216949094179093556010805492851692841692909217909155600f805483163317905560118054919093169116179055506200059e9050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200054557805160ff191683800117855562000575565b8280016001018555821562000575579182015b828111156200057557825182559160200191906001019062000558565b506200058392915062000587565b5090565b5b8082111562000583576000815560010162000588565b61250180620005ae6000396000f3fe608060405234801561001057600080fd5b50600436106102685760003560e01c806371e87c3f11610151578063b69ef8a8116100c3578063e586251511610087578063e5862515146106e6578063e9fad8ee14610703578063ed389a861461070b578063f77c479114610713578063f7c618c11461071b578063fc0c546a1461072357610268565b8063b69ef8a814610683578063b6b55f251461068b578063d49d5181146106a8578063dd62ed3e146106b0578063e43888da146106de57610268565b806395d89b411161011557806395d89b41146105cf578063a457c2d7146105d7578063a9059cbb14610603578063ab033ea91461062f578063ac35e1fa14610655578063adae543d1461065d57610268565b806371e87c3f1461055657806377c7b8fc1461055e578063818ae1ce146105665780638f86f41e1461058c57806392eefe9b146105a957610268565b80632e1a7d4d116101ea5780634032b72b116101ae5780634032b72b146104ea5780634641257d1461051057806348a0d754146105185780634e71d92d146105205780635aa6e6751461052857806370a082311461053057610268565b80632e1a7d4d14610455578063313ce5671461047257806336e9332d1461049057806339509351146104985780633bbd64bc146104c457610268565b8063167653911161023157806316765391146103b057806318160ddd146103d657806323b872dd146103de578063265d4409146104145780632e0d96771461043857610268565b80628cc2621461026d57806306fdde03146102a55780630700037d14610322578063095ea7b31461034857806314ae9f2e14610388575b600080fd5b6102936004803603602081101561028357600080fd5b50356001600160a01b031661072b565b60408051918252519081900360200190f35b6102ad6107a8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102936004803603602081101561033857600080fd5b50356001600160a01b031661083e565b6103746004803603604081101561035e57600080fd5b506001600160a01b038135169060200135610850565b604080519115158252519081900360200190f35b6103ae6004803603602081101561039e57600080fd5b50356001600160a01b031661086e565b005b610293600480360360208110156103c657600080fd5b50356001600160a01b03166108dc565b610293610965565b610374600480360360608110156103f457600080fd5b506001600160a01b0381358116916020810135909116906040013561096b565b61041c6109f2565b604080516001600160a01b039092168252519081900360200190f35b6103ae6004803603602081101561044e57600080fd5b5035610a01565b6103ae6004803603602081101561046b57600080fd5b5035610a94565b61047a610d19565b6040805160ff9092168252519081900360200190f35b6103ae610d22565b610374600480360360408110156104ae57600080fd5b506001600160a01b038135169060200135610e96565b610374600480360360208110156104da57600080fd5b50356001600160a01b0316610ee4565b6103ae6004803603602081101561050057600080fd5b50356001600160a01b0316610ef9565b6103ae610f6a565b6102936111db565b6103ae61126f565b61041c6112f0565b6102936004803603602081101561054657600080fd5b50356001600160a01b03166112ff565b61029361131a565b610293611320565b6102936004803603602081101561057c57600080fd5b50356001600160a01b0316611341565b6103ae600480360360208110156105a257600080fd5b5035611353565b6103ae600480360360208110156105bf57600080fd5b50356001600160a01b03166113e6565b6102ad611455565b610374600480360360408110156105ed57600080fd5b506001600160a01b0381351690602001356114b6565b6103746004803603604081101561061957600080fd5b506001600160a01b03813516906020013561151e565b6103ae6004803603602081101561064557600080fd5b50356001600160a01b0316611532565b6102936115a1565b6103ae6004803603602081101561067357600080fd5b50356001600160a01b03166115a7565b610293611616565b6103ae600480360360208110156106a157600080fd5b5035611711565b610293611810565b610293600480360360408110156106c657600080fd5b506001600160a01b0381358116916020013516611816565b610293611841565b6103ae600480360360208110156106fc57600080fd5b5035611847565b6103ae6118da565b6102936118f5565b61041c6118fb565b61041c61190a565b61041c611919565b60008061074961073a846108dc565b610743856112ff565b90611928565b6001600160a01b0384166000908152600e6020908152604080832054600d90925290912054600c549293506107a19261074391670de0b6b3a76400009161079b916107949190611982565b86906119c4565b90611a1d565b9392505050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108345780601f1061080957610100808354040283529160200191610834565b820191906000526020600020905b81548152906001019060200180831161081757829003601f168201915b5050505050905090565b600e6020526000908152604090205481565b600061086461085d611a5f565b8484611a63565b5060015b92915050565b600f546001600160a01b031633146108bb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152601260205260409020805460ff19169055565b60115460408051630477771360e41b81526001600160a01b03848116600483015230602483015291516000939290921691634777713091604480820192602092909190829003018186803b15801561093357600080fd5b505afa158015610947573d6000803e3d6000fd5b505050506040513d602081101561095d57600080fd5b505192915050565b60025490565b6000610978848484611b4f565b6109e884610984611a5f565b6109e3856040518060600160405280602881526020016123eb602891396001600160a01b038a166000908152600160205260408120906109c2611a5f565b6001600160a01b031681526020810191909152604001600020549190611caa565b611a63565b5060019392505050565b6011546001600160a01b031681565b600f546001600160a01b03163314610a4e576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6127108110610a8f576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600b55565b6006805460010190819055610aa833611d41565b6000610ac7610ab5610965565b61079b85610ac1611616565b906119c4565b9050610ad33384611d78565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b1e57600080fd5b505afa158015610b32573d6000803e3d6000fd5b505050506040513d6020811015610b4857600080fd5b5051905081811015610c70576000610b608383611982565b6010546040805163f3fef3a360e01b81523060048201526024810184905290519293506001600160a01b039091169163f3fef3a39160448082019260009290919082900301818387803b158015610bb657600080fd5b505af1158015610bca573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610c1b57600080fd5b505afa158015610c2f573d6000803e3d6000fd5b505050506040513d6020811015610c4557600080fd5b505190506000610c558285611982565b905082811015610c6c57610c698482611928565b94505b5050505b600754610c87906001600160a01b03163384611e74565b60408051838152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506006548114610d15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60055460ff1690565b3360009081526012602052604090205460ff161515600114610d75576040805162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b604482015290519081900360640190fd5b6000610d7f6111db565b90506000610d9e61271061079b600a54856119c490919063ffffffff16565b90508015610dbd57600754610dbd906001600160a01b03163383611e74565b6000610dc98383611982565b601054600754919250610de9916001600160a01b03908116911683611e74565b6010546040805163df0d88b360e01b81523060048201526024810184905290516001600160a01b039092169163df0d88b39160448082019260009290919082900301818387803b158015610e3c57600080fd5b505af1158015610e50573d6000803e3d6000fd5b5050604080518581526020810185905281513394507f9fc16615f48f603b9164a63f0ff1c7bc4c2b67fb3a51ecfd9856b0c843c9c02293509081900390910190a2505050565b6000610864610ea3611a5f565b846109e38560016000610eb4611a5f565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611928565b60126020526000908152604090205460ff1681565b600f546001600160a01b03163314610f46576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152601260205260409020805460ff19166001179055565b3360009081526012602052604090205460ff161515600114610fbd576040805162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b604482015290519081900360640190fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d602081101561103257600080fd5b50516010546040805163072e008f60e11b815230600482015290519293506001600160a01b0390911691630e5c011e9160248082019260009290919082900301818387803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b5050600854604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156110e857600080fd5b505afa1580156110fc573d6000803e3d6000fd5b505050506040513d602081101561111257600080fd5b5051905060006111228284611982565b9050600061114161271061079b600b54856119c490919063ffffffff16565b9050801561116057600854611160906001600160a01b03163383611e74565b600061116c8383611982565b905061119761118e61117c610965565b61079b84670de0b6b3a76400006119c4565b600c5490611928565b600c556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a25050505050565b600954600754604080516370a0823160e01b8152306004820152905160009361126a936127109361079b936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561123857600080fd5b505afa15801561124c573d6000803e3d6000fd5b505050506040513d602081101561126257600080fd5b5051906119c4565b905090565b61127833611d41565b336000908152600e602052604090205480156112b757336000818152600e60205260408120556008546112b7916001600160a01b039091169083611e74565b60408051828152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a250565b600f546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60095481565b600061126a61132d610965565b61079b670de0b6b3a7640000610ac1611616565b600d6020526000908152604090205481565b600f546001600160a01b031633146113a0576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61271081106113e1576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600a55565b600f546001600160a01b03163314611433576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108345780601f1061080957610100808354040283529160200191610834565b60006108646114c3611a5f565b846109e3856040518060600160405280602581526020016124a760259139600160006114ed611a5f565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611caa565b600061086461152b611a5f565b8484611b4f565b600f546001600160a01b0316331461157f576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b600f546001600160a01b031633146115f4576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b601054604080516370a0823160e01b8152306004820152905160009261126a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561166857600080fd5b505afa15801561167c573d6000803e3d6000fd5b505050506040513d602081101561169257600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156116df57600080fd5b505afa1580156116f3573d6000803e3d6000fd5b505050506040513d602081101561170957600080fd5b505190611928565b600680546001019081905561172533611d41565b600061172f611616565b60075490915061174a906001600160a01b0316333086611ecb565b6000611754610965565b61175f575082611778565b6117758261079b61176e610965565b87906119c4565b90505b6117823382611f2b565b60408051858152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a250506006548114610d15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b61271081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a5481565b600f546001600160a01b03163314611894576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61271081106118d5576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600955565b6118eb6118e6336112ff565b610a94565b6118f361126f565b565b600b5481565b6010546001600160a01b031681565b6008546001600160a01b031681565b6007546001600160a01b031681565b6000828201838110156107a1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006107a183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611caa565b6000826119d357506000610868565b828202828482816119e057fe5b04146107a15760405162461bcd60e51b81526004018080602001828103825260218152602001806123ca6021913960400191505060405180910390fd5b60006107a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061201b565b3390565b6001600160a01b038316611aa85760405162461bcd60e51b81526004018080602001828103825260248152602001806124596024913960400191505060405180910390fd5b6001600160a01b038216611aed5760405162461bcd60e51b81526004018080602001828103825260228152602001806123826022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611b945760405162461bcd60e51b81526004018080602001828103825260258152602001806124346025913960400191505060405180910390fd5b6001600160a01b038216611bd95760405162461bcd60e51b815260040180806020018281038252602381526020018061233d6023913960400191505060405180910390fd5b611be4838383612080565b611c21816040518060600160405280602681526020016123a4602691396001600160a01b0386166000908152602081905260409020549190611caa565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611c509082611928565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611d395760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cfe578181015183820152602001611ce6565b50505050905090810190601f168015611d2b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611d4a8161072b565b6001600160a01b039091166000908152600e6020908152604080832093909355600c54600d90915291902055565b6001600160a01b038216611dbd5760405162461bcd60e51b81526004018080602001828103825260218152602001806124136021913960400191505060405180910390fd5b611dc982600083612080565b611e0681604051806060016040528060228152602001612360602291396001600160a01b0385166000908152602081905260409020549190611caa565b6001600160a01b038316600090815260208190526040902055600254611e2c9082611982565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611ec69084906120ce565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f259085906120ce565b50505050565b6001600160a01b038216611f86576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611f9260008383612080565b600254611f9f9082611928565b6002556001600160a01b038216600090815260208190526040902054611fc59082611928565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818361206a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611cfe578181015183820152602001611ce6565b50600083858161207657fe5b0495945050505050565b6011546001600160a01b038381169116148015906120ac57506011546001600160a01b03848116911614155b156120c3576120ba83611d41565b6120c382611d41565b611ec6838383611ec6565b6060612123826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661217f9092919063ffffffff16565b805190915015611ec65780806020019051602081101561214257600080fd5b5051611ec65760405162461bcd60e51b815260040180806020018281038252602a81526020018061247d602a913960400191505060405180910390fd5b606061218e8484600085612196565b949350505050565b60606121a185612303565b6121f2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122315780518252601f199092019160209182019101612212565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612293576040519150601f19603f3d011682016040523d82523d6000602084013e612298565b606091505b509150915081156122ac57915061218e9050565b8051156122bc5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cfe578181015183820152602001611ce6565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061218e57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f70c8584980d8be6593d86d67b4c55106b12753685842d72a569ca0f9eed7f4064736f6c634300060c0033000000000000000000000000a0c500ed25a88640f250c55da7299c3345637f5e0000000000000000000000002ab3351b01b5b189d11711b4e6a6e2dd4ca29dba
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102685760003560e01c806371e87c3f11610151578063b69ef8a8116100c3578063e586251511610087578063e5862515146106e6578063e9fad8ee14610703578063ed389a861461070b578063f77c479114610713578063f7c618c11461071b578063fc0c546a1461072357610268565b8063b69ef8a814610683578063b6b55f251461068b578063d49d5181146106a8578063dd62ed3e146106b0578063e43888da146106de57610268565b806395d89b411161011557806395d89b41146105cf578063a457c2d7146105d7578063a9059cbb14610603578063ab033ea91461062f578063ac35e1fa14610655578063adae543d1461065d57610268565b806371e87c3f1461055657806377c7b8fc1461055e578063818ae1ce146105665780638f86f41e1461058c57806392eefe9b146105a957610268565b80632e1a7d4d116101ea5780634032b72b116101ae5780634032b72b146104ea5780634641257d1461051057806348a0d754146105185780634e71d92d146105205780635aa6e6751461052857806370a082311461053057610268565b80632e1a7d4d14610455578063313ce5671461047257806336e9332d1461049057806339509351146104985780633bbd64bc146104c457610268565b8063167653911161023157806316765391146103b057806318160ddd146103d657806323b872dd146103de578063265d4409146104145780632e0d96771461043857610268565b80628cc2621461026d57806306fdde03146102a55780630700037d14610322578063095ea7b31461034857806314ae9f2e14610388575b600080fd5b6102936004803603602081101561028357600080fd5b50356001600160a01b031661072b565b60408051918252519081900360200190f35b6102ad6107a8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102936004803603602081101561033857600080fd5b50356001600160a01b031661083e565b6103746004803603604081101561035e57600080fd5b506001600160a01b038135169060200135610850565b604080519115158252519081900360200190f35b6103ae6004803603602081101561039e57600080fd5b50356001600160a01b031661086e565b005b610293600480360360208110156103c657600080fd5b50356001600160a01b03166108dc565b610293610965565b610374600480360360608110156103f457600080fd5b506001600160a01b0381358116916020810135909116906040013561096b565b61041c6109f2565b604080516001600160a01b039092168252519081900360200190f35b6103ae6004803603602081101561044e57600080fd5b5035610a01565b6103ae6004803603602081101561046b57600080fd5b5035610a94565b61047a610d19565b6040805160ff9092168252519081900360200190f35b6103ae610d22565b610374600480360360408110156104ae57600080fd5b506001600160a01b038135169060200135610e96565b610374600480360360208110156104da57600080fd5b50356001600160a01b0316610ee4565b6103ae6004803603602081101561050057600080fd5b50356001600160a01b0316610ef9565b6103ae610f6a565b6102936111db565b6103ae61126f565b61041c6112f0565b6102936004803603602081101561054657600080fd5b50356001600160a01b03166112ff565b61029361131a565b610293611320565b6102936004803603602081101561057c57600080fd5b50356001600160a01b0316611341565b6103ae600480360360208110156105a257600080fd5b5035611353565b6103ae600480360360208110156105bf57600080fd5b50356001600160a01b03166113e6565b6102ad611455565b610374600480360360408110156105ed57600080fd5b506001600160a01b0381351690602001356114b6565b6103746004803603604081101561061957600080fd5b506001600160a01b03813516906020013561151e565b6103ae6004803603602081101561064557600080fd5b50356001600160a01b0316611532565b6102936115a1565b6103ae6004803603602081101561067357600080fd5b50356001600160a01b03166115a7565b610293611616565b6103ae600480360360208110156106a157600080fd5b5035611711565b610293611810565b610293600480360360408110156106c657600080fd5b506001600160a01b0381358116916020013516611816565b610293611841565b6103ae600480360360208110156106fc57600080fd5b5035611847565b6103ae6118da565b6102936118f5565b61041c6118fb565b61041c61190a565b61041c611919565b60008061074961073a846108dc565b610743856112ff565b90611928565b6001600160a01b0384166000908152600e6020908152604080832054600d90925290912054600c549293506107a19261074391670de0b6b3a76400009161079b916107949190611982565b86906119c4565b90611a1d565b9392505050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108345780601f1061080957610100808354040283529160200191610834565b820191906000526020600020905b81548152906001019060200180831161081757829003601f168201915b5050505050905090565b600e6020526000908152604090205481565b600061086461085d611a5f565b8484611a63565b5060015b92915050565b600f546001600160a01b031633146108bb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152601260205260409020805460ff19169055565b60115460408051630477771360e41b81526001600160a01b03848116600483015230602483015291516000939290921691634777713091604480820192602092909190829003018186803b15801561093357600080fd5b505afa158015610947573d6000803e3d6000fd5b505050506040513d602081101561095d57600080fd5b505192915050565b60025490565b6000610978848484611b4f565b6109e884610984611a5f565b6109e3856040518060600160405280602881526020016123eb602891396001600160a01b038a166000908152600160205260408120906109c2611a5f565b6001600160a01b031681526020810191909152604001600020549190611caa565b611a63565b5060019392505050565b6011546001600160a01b031681565b600f546001600160a01b03163314610a4e576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6127108110610a8f576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600b55565b6006805460010190819055610aa833611d41565b6000610ac7610ab5610965565b61079b85610ac1611616565b906119c4565b9050610ad33384611d78565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b1e57600080fd5b505afa158015610b32573d6000803e3d6000fd5b505050506040513d6020811015610b4857600080fd5b5051905081811015610c70576000610b608383611982565b6010546040805163f3fef3a360e01b81523060048201526024810184905290519293506001600160a01b039091169163f3fef3a39160448082019260009290919082900301818387803b158015610bb657600080fd5b505af1158015610bca573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610c1b57600080fd5b505afa158015610c2f573d6000803e3d6000fd5b505050506040513d6020811015610c4557600080fd5b505190506000610c558285611982565b905082811015610c6c57610c698482611928565b94505b5050505b600754610c87906001600160a01b03163384611e74565b60408051838152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506006548114610d15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60055460ff1690565b3360009081526012602052604090205460ff161515600114610d75576040805162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b604482015290519081900360640190fd5b6000610d7f6111db565b90506000610d9e61271061079b600a54856119c490919063ffffffff16565b90508015610dbd57600754610dbd906001600160a01b03163383611e74565b6000610dc98383611982565b601054600754919250610de9916001600160a01b03908116911683611e74565b6010546040805163df0d88b360e01b81523060048201526024810184905290516001600160a01b039092169163df0d88b39160448082019260009290919082900301818387803b158015610e3c57600080fd5b505af1158015610e50573d6000803e3d6000fd5b5050604080518581526020810185905281513394507f9fc16615f48f603b9164a63f0ff1c7bc4c2b67fb3a51ecfd9856b0c843c9c02293509081900390910190a2505050565b6000610864610ea3611a5f565b846109e38560016000610eb4611a5f565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611928565b60126020526000908152604090205460ff1681565b600f546001600160a01b03163314610f46576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152601260205260409020805460ff19166001179055565b3360009081526012602052604090205460ff161515600114610fbd576040805162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b604482015290519081900360640190fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d602081101561103257600080fd5b50516010546040805163072e008f60e11b815230600482015290519293506001600160a01b0390911691630e5c011e9160248082019260009290919082900301818387803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b5050600854604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156110e857600080fd5b505afa1580156110fc573d6000803e3d6000fd5b505050506040513d602081101561111257600080fd5b5051905060006111228284611982565b9050600061114161271061079b600b54856119c490919063ffffffff16565b9050801561116057600854611160906001600160a01b03163383611e74565b600061116c8383611982565b905061119761118e61117c610965565b61079b84670de0b6b3a76400006119c4565b600c5490611928565b600c556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a25050505050565b600954600754604080516370a0823160e01b8152306004820152905160009361126a936127109361079b936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561123857600080fd5b505afa15801561124c573d6000803e3d6000fd5b505050506040513d602081101561126257600080fd5b5051906119c4565b905090565b61127833611d41565b336000908152600e602052604090205480156112b757336000818152600e60205260408120556008546112b7916001600160a01b039091169083611e74565b60408051828152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a250565b600f546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60095481565b600061126a61132d610965565b61079b670de0b6b3a7640000610ac1611616565b600d6020526000908152604090205481565b600f546001600160a01b031633146113a0576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61271081106113e1576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600a55565b600f546001600160a01b03163314611433576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108345780601f1061080957610100808354040283529160200191610834565b60006108646114c3611a5f565b846109e3856040518060600160405280602581526020016124a760259139600160006114ed611a5f565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611caa565b600061086461152b611a5f565b8484611b4f565b600f546001600160a01b0316331461157f576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b600f546001600160a01b031633146115f4576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b601054604080516370a0823160e01b8152306004820152905160009261126a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561166857600080fd5b505afa15801561167c573d6000803e3d6000fd5b505050506040513d602081101561169257600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156116df57600080fd5b505afa1580156116f3573d6000803e3d6000fd5b505050506040513d602081101561170957600080fd5b505190611928565b600680546001019081905561172533611d41565b600061172f611616565b60075490915061174a906001600160a01b0316333086611ecb565b6000611754610965565b61175f575082611778565b6117758261079b61176e610965565b87906119c4565b90505b6117823382611f2b565b60408051858152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a250506006548114610d15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b61271081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a5481565b600f546001600160a01b03163314611894576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61271081106118d5576040805162461bcd60e51b81526020600482015260086024820152670deeccae4409a82b60c31b604482015290519081900360640190fd5b600955565b6118eb6118e6336112ff565b610a94565b6118f361126f565b565b600b5481565b6010546001600160a01b031681565b6008546001600160a01b031681565b6007546001600160a01b031681565b6000828201838110156107a1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006107a183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611caa565b6000826119d357506000610868565b828202828482816119e057fe5b04146107a15760405162461bcd60e51b81526004018080602001828103825260218152602001806123ca6021913960400191505060405180910390fd5b60006107a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061201b565b3390565b6001600160a01b038316611aa85760405162461bcd60e51b81526004018080602001828103825260248152602001806124596024913960400191505060405180910390fd5b6001600160a01b038216611aed5760405162461bcd60e51b81526004018080602001828103825260228152602001806123826022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611b945760405162461bcd60e51b81526004018080602001828103825260258152602001806124346025913960400191505060405180910390fd5b6001600160a01b038216611bd95760405162461bcd60e51b815260040180806020018281038252602381526020018061233d6023913960400191505060405180910390fd5b611be4838383612080565b611c21816040518060600160405280602681526020016123a4602691396001600160a01b0386166000908152602081905260409020549190611caa565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611c509082611928565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611d395760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cfe578181015183820152602001611ce6565b50505050905090810190601f168015611d2b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611d4a8161072b565b6001600160a01b039091166000908152600e6020908152604080832093909355600c54600d90915291902055565b6001600160a01b038216611dbd5760405162461bcd60e51b81526004018080602001828103825260218152602001806124136021913960400191505060405180910390fd5b611dc982600083612080565b611e0681604051806060016040528060228152602001612360602291396001600160a01b0385166000908152602081905260409020549190611caa565b6001600160a01b038316600090815260208190526040902055600254611e2c9082611982565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611ec69084906120ce565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f259085906120ce565b50505050565b6001600160a01b038216611f86576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611f9260008383612080565b600254611f9f9082611928565b6002556001600160a01b038216600090815260208190526040902054611fc59082611928565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818361206a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611cfe578181015183820152602001611ce6565b50600083858161207657fe5b0495945050505050565b6011546001600160a01b038381169116148015906120ac57506011546001600160a01b03848116911614155b156120c3576120ba83611d41565b6120c382611d41565b611ec6838383611ec6565b6060612123826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661217f9092919063ffffffff16565b805190915015611ec65780806020019051602081101561214257600080fd5b5051611ec65760405162461bcd60e51b815260040180806020018281038252602a81526020018061247d602a913960400191505060405180910390fd5b606061218e8484600085612196565b949350505050565b60606121a185612303565b6121f2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122315780518252601f199092019160209182019101612212565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612293576040519150601f19603f3d011682016040523d82523d6000602084013e612298565b606091505b509150915081156122ac57915061218e9050565b8051156122bc5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cfe578181015183820152602001611ce6565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061218e57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f70c8584980d8be6593d86d67b4c55106b12753685842d72a569ca0f9eed7f4064736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a0c500ed25a88640f250c55da7299c3345637f5e0000000000000000000000002ab3351b01b5b189d11711b4e6a6e2dd4ca29dba
-----Decoded View---------------
Arg [0] : _controller (address): 0xA0C500eD25a88640F250C55Da7299c3345637F5E
Arg [1] : _tokenMaster (address): 0x2aB3351B01b5B189D11711b4e6a6e2dd4CA29Dba
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0c500ed25a88640f250c55da7299c3345637f5e
Arg [1] : 0000000000000000000000002ab3351b01b5b189d11711b4e6a6e2dd4ca29dba
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.