ERC-20
Overview
Max Total Supply
13,342,571.416522711380390679 MENSA
Holders
5,024
Market
Price
$0.00 @ 0.000000 FTM
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.042695008092711781 MENSAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
MensaMinter
Compiler Version
v0.5.17+commit.d19bba13
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.5.0; /** @title IMensaAddressesProvider interface @notice provides the interface to fetch the MensaCore address */ contract IMensaAddressesProvider { function getMensa() public view returns (address); function setMensaImpl(address _pool) public; function getMensaCore() public view returns (address payable); function setMensaCoreImpl(address _mensaCore) public; function getMensaConfigurator() public view returns (address); function setMensaConfiguratorImpl(address _configurator) public; function getMensaDataProvider() public view returns (address); function setMensaDataProviderImpl(address _provider) public; function getMensaParametersProvider() public view returns (address); function setMensaParametersProviderImpl(address _parametersProvider) public; function getTokenDistributor() public view returns (address); function setTokenDistributor(address _tokenDistributor) public; function getFeeProvider() public view returns (address); function setFeeProviderImpl(address _feeProvider) public; function getMensaLiquidationManager() public view returns (address); function setMensaLiquidationManager(address _manager) public; function getMensaManager() public view returns (address); function setMensaManager(address _mensaManager) public; function getPriceOracle() public view returns (address); function setPriceOracle(address _priceOracle) public; function getInterestRateOracle() public view returns (address); function setInterestRateOracle(address _interestRateOracle) public; }
pragma solidity ^0.5.0; interface IMensaMinter { function mintMensaToken(address reserve, address _user, uint256 _gid, uint256 _amount) external; function withdrawMensaToken(address _user, uint256 _gid, uint256 amount, bool unlockedOnly) external; }
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../interfaces/IMensaAddressesProvider.sol"; import "../interfaces/IMensaMinter.sol"; import "./MensaToken.sol"; contract MensaMinter is MensaToken, IMensaMinter, Ownable { using SafeMath for uint256; bool private locked; modifier noReentrancy() { require( !locked, "Reentrant call." ); locked = true; _; locked = false; } event MintDeposit(address indexed user, uint256 indexed pid, uint256 gid, uint256 amount, uint256 total); event MintWithdraw(address indexed user, uint256 indexed pid, uint256 gid, uint256 amount, uint256 total, uint256 received); uint256 private _alloced = 0; uint liquidityPool = 3; uint constPoolCount = 4; uint256 depositWithdraw = 1; uint256 borrowRepay = 2; uint256 protectDurationBlocks = 2356360; PoolInfo[] private poolInfo; mapping(uint256 => uint256[]) idxGroups; IMensaAddressesProvider ap; address private lp; mapping(uint256 => bool) constPoolIsInit; constructor(address addressAp) public MensaToken("Mensa", "MENSA") { ap = IMensaAddressesProvider(addressAp); } function setLp(address addressLP) public noReentrancy onlyOwner { lp = addressLP; } function mint(address _to, uint256 _amount) internal { MensaTokenMint(_to, _amount); } modifier onlyMensa { require(ap.getMensa() == msg.sender, "MensaToken: the caller must be mensa contract"); _; } struct UserInfo { uint256 amount; uint256 lastWithdrawBlock; uint256 rewardDebt; uint256 protectAmount; uint256 mintPending; uint256 protectMintPending; uint256 PDA; } struct Group { uint256 allocPoint; uint256 totalAmount; uint256 accPerShare; mapping (address => UserInfo) users; } struct PoolInfo { uint256 poolCap; uint256 totalAllocPoint; uint256 startBlock; uint256 endBlock; uint256 bonusPerBlock; uint256 lockedTotal; bool ageout; mapping (uint256 =>Group) groups; } function poolLength() public view returns (uint256) { return poolInfo.length; } function createPool(uint256 _pid, uint256 _poolCap, uint256 _startBlock, uint256 _endBlock) public noReentrancy onlyOwner { require(_pid == poolLength(), "createPool: _pid fault"); require(block.number < _endBlock && _endBlock > _startBlock , "createPool: Invailed block parameters"); _poolCap = _poolCap.mul(1e18); require(_poolCap > 0, "createPool: cap fault"); _alloced = _alloced.add(_poolCap); uint256 startBlock = block.number > _startBlock ? block.number : _startBlock; require(_endBlock > startBlock , "createPool: Invailed block parameters 2"); uint256 _bonusPerBlock = _poolCap.div(_endBlock.sub(startBlock)); poolInfo.push(PoolInfo({ poolCap: _poolCap, totalAllocPoint: 0, startBlock: startBlock, endBlock: _endBlock, bonusPerBlock: _bonusPerBlock, lockedTotal: 0, ageout: false })); } function setGroup(uint256 _pid, uint256 _gid, uint256 _allocPoint) public noReentrancy onlyOwner { require(_pid < poolLength(), "setGroup: _pid fault"); require(constPoolIsInit[_pid] == false, "init failed"); if (poolInfo[_pid].groups[_gid].allocPoint == 0){ idxGroups[_pid].push(_gid); } poolInfo[_pid].totalAllocPoint = poolInfo[_pid].totalAllocPoint.sub(poolInfo[_pid].groups[_gid].allocPoint).add(_allocPoint); poolInfo[_pid].groups[_gid] = Group({ allocPoint: _allocPoint, totalAmount: 0, accPerShare: 0 }); massUpdateGroups(_pid); } function getMultiplier(uint256 _from, uint256 _to, uint256 _start, uint256 _end) internal pure returns (uint256) { require(_from <= _to, "Block counting: "); require(_start <= _end, "Block counting: "); if (_to > _end) { _to = _end; } if (_from < _start) { _from = _start; } if (_from >= _to) { return 0; } return _to.sub(_from); } function massUpdateGroups(uint256 _pid) internal { uint256 length = idxGroups[_pid].length; for (uint256 i = 0; i < length; ++i) { updateGroup(_pid, idxGroups[_pid][i]); } } function calculateMGR(uint256 point, uint256 base) internal pure returns (uint256 mgr) { mgr = 1e18; mgr = mgr.mul(point).div(base); uint256 z = mgr.add(1).div(2); uint256 y = mgr; while(z < y){ y = z; z = mgr.div(z).add(z).div(2); } mgr = y.mul(75e7); } function updateUserProtectDuration(address userAddr, UserInfo storage u, uint256 amount, uint256 pending, uint256 poolPrice, bool unlockedOnly) internal returns(uint256 unlocked, uint256 flushCount) { if (block.number > u.PDA) { u.protectAmount = 0; u.protectMintPending = 0; } { uint256 pa = u.protectAmount.add(amount); if (pa > 0) { u.PDA = u.protectAmount.mul(u.PDA).add(amount.mul(block.number.add(protectDurationBlocks))).div(pa); } } u.lastWithdrawBlock = block.number; u.mintPending = u.mintPending.add(pending); if (u.protectAmount != 0) { u.protectMintPending = u.protectMintPending.add(pending.mul(u.protectAmount).div(u.amount)); } u.amount = u.amount.add(amount); u.protectAmount = u.protectAmount.add(amount); if (amount == 0){ if (unlockedOnly) { flushCount = u.mintPending.sub(u.protectMintPending).add(poolPrice); u.mintPending = u.protectMintPending; }else{ unlocked = u.protectMintPending.div(4); flushCount = u.mintPending.sub(unlocked).add(poolPrice); u.mintPending = 0; u.protectMintPending = 0; } if (flushCount > 0) { mint(address(this), flushCount); this.transfer(userAddr, flushCount); } } } function updateGroup(uint256 _pid, uint256 _gid) internal { PoolInfo storage pool = poolInfo[_pid]; Group storage group = pool.groups[_gid]; uint256 mgr = calculateMGR(group.totalAmount, pool.poolCap); group.accPerShare = pool.bonusPerBlock.mul(group.allocPoint).div(pool.totalAllocPoint).mul(mgr).div(1e18); } function getPoolInfo (uint256 _pid) public view returns (uint256 poolCap, uint256 totalAllocPoint, uint256 startBlock, uint256 endBlock, uint256 bonusPerBlock, uint256 lockedTotal) { PoolInfo storage pool = poolInfo[_pid]; poolCap = pool.poolCap; totalAllocPoint = pool.totalAllocPoint; startBlock = pool.startBlock; endBlock = pool.endBlock; bonusPerBlock = pool.bonusPerBlock; lockedTotal = pool.lockedTotal; } function getGroupInfo(uint256 _pid, uint256 _gid) public view returns (uint256 gp, uint256 groupTotal, uint256 accPerShare){ PoolInfo storage pool = poolInfo[_pid]; Group storage group = pool.groups[_gid]; gp = group.allocPoint; groupTotal = group.totalAmount; accPerShare = group.accPerShare; } function _deposit(uint256 _pid, uint256 _gid, address u, uint256 _amount) internal { if (_amount == 0) { return; } PoolInfo storage pool = poolInfo[_pid]; if (pool.ageout) { return; } if (pool.endBlock < block.number) { pool.ageout = true; return; } Group storage group = pool.groups[_gid]; UserInfo storage user = group.users[u]; uint256 multiplier = getMultiplier(user.lastWithdrawBlock, block.number, pool.startBlock, pool.endBlock); uint256 pending = 0; if (group.totalAmount > 0) { pending = multiplier.mul(group.accPerShare).mul(user.amount).div(group.totalAmount); } group.totalAmount = group.totalAmount.add(_amount); updateGroup(_pid, _gid); updateUserProtectDuration(u, user, _amount, pending, 0, true); emit MintDeposit(u, _pid, _gid, user.amount, group.totalAmount); } function _withdraw(uint256 _pid, uint256 _gid, address u, uint256 _amount, bool unlockedOnly) internal { uint256 unlock = 0; uint256 unlockAmount = 0; uint256 flush = 0; PoolInfo storage pool = poolInfo[_pid]; if (pool.ageout == false && pool.endBlock < block.number) { pool.ageout = true; } Group storage group = pool.groups[_gid]; UserInfo storage user = group.users[u]; if (!(group.totalAmount > 0)) { return; } require(user.amount >= _amount, "withdraw: not good"); if (pool.endBlock < block.number){ user.protectAmount = 0; user.protectMintPending = 0; } unlockAmount = user.amount.sub(user.protectAmount); require(!(unlockedOnly && unlockAmount<_amount) , "withdraw: unlocked balance not enough"); uint256 multiplier = getMultiplier(user.lastWithdrawBlock, block.number, pool.startBlock, pool.endBlock); uint256 pending = multiplier.mul(group.accPerShare).mul(user.amount).div(group.totalAmount); uint256 protectPrice; { uint256 rate = _priceRate(pool, group, user); protectPrice = pool.lockedTotal.mul(rate).div(1e18); if (unlockAmount >= _amount) { unlockedOnly = true; } } (unlock, flush) = updateUserProtectDuration(u, user, 0, pending, protectPrice, unlockedOnly); pool.lockedTotal = pool.lockedTotal.add(unlock).sub(protectPrice); user.amount = user.amount.sub(_amount); if (user.protectAmount > user.amount){ user.protectAmount = user.amount; } user.rewardDebt = user.rewardDebt.add(pending); group.totalAmount = group.totalAmount.sub(_amount); if (!pool.ageout) { updateGroup(_pid, _gid); } emit MintWithdraw(msg.sender, _pid, _gid, _amount, group.totalAmount, flush); } function pendingMensa(uint256 _pid, uint256 _gid, address _user) public view returns (uint256 amount, uint256 protectAmount, uint256 rewardDebt, uint256 pending, uint256 protectMintPending, uint256 protectPrice, uint256 lockedTotal) { PoolInfo storage pool = poolInfo[_pid]; Group storage group = pool.groups[_gid]; UserInfo storage user = group.users[_user]; if (group.totalAmount == 0) { return (0, 0, 0, 0, 0, 0, 0); } uint256 multiplier = getMultiplier(user.lastWithdrawBlock, block.number, pool.startBlock, pool.endBlock); pending = multiplier.mul(group.accPerShare).mul(user.amount).div(group.totalAmount).add(user.mintPending); amount = user.amount; uint256 rate = _priceRate(pool, group, user); protectPrice = pool.lockedTotal.mul(rate).div(1e18); if (block.number < user.PDA) { protectAmount = user.protectAmount; protectMintPending = multiplier.mul(group.accPerShare).mul(user.protectAmount).div(group.totalAmount).add(user.protectMintPending); } rewardDebt = user.rewardDebt; lockedTotal = pool.lockedTotal; } function selectPool() internal view returns (uint256){ for (uint i = constPoolCount; i<poolLength(); i++) { if (poolInfo[i].endBlock > block.number) { return i; } } return 0; } function getUserAmount(uint256 _gid, address _user) public view returns (uint256 amount, uint256 pending, uint256 protectPending, uint256 protectPriceTotal, uint256 lockedPriceTotal){ if (poolLength() <= constPoolCount) { return (0, 0, 0, 0, 0); } if (_gid != depositWithdraw && _gid != borrowRepay) { return (0, 0, 0, 0, 0); } uint256 p; uint256 pm; uint256 pp; uint256 lt; for (uint i = liquidityPool; i<poolLength(); i++) { amount = amount.add(poolInfo[i].groups[_gid].users[_user].amount); (, , , p, pm,pp,lt) = pendingMensa(i, _gid, _user); pending = pending.add(p); protectPending = protectPending.add(pm); protectPriceTotal = protectPriceTotal.add(pp); lockedPriceTotal = lockedPriceTotal.add(lt); } } function _priceRate(PoolInfo memory p, Group memory g, UserInfo memory u) internal view returns (uint256 rate) { if (g.totalAmount == 0) { return 0; } uint256 protectAmount = u.protectAmount; if (block.number > u.PDA) { protectAmount = 0; } rate = 1e18; rate = rate.mul(u.amount.sub(protectAmount)).mul(g.allocPoint).div(p.totalAllocPoint).div(g.totalAmount); } function priceRate(address u) external view returns (uint256 rate) { PoolInfo storage pool = poolInfo[liquidityPool]; uint256 _rate; Group storage group = pool.groups[depositWithdraw]; UserInfo storage user = group.users[u]; if (user.amount != 0) { _rate = _priceRate(pool, group, user); rate = rate.add(_rate); } } function mintMensaToken(address _reserve, address _user, uint256 _gid, uint256 _amount) external noReentrancy onlyMensa { if (_amount == 0) { return; } require(poolLength() >= constPoolCount, "minMensaToken: Invailed pools"); require(_gid == depositWithdraw || _gid == borrowRepay, "minMensaToken: Invailed action"); if (_reserve == lp) { _deposit(liquidityPool, _gid, _user, _amount); return; } uint256 _pid = selectPool(); if (!(_pid < constPoolCount)){ _deposit(_pid, _gid, _user, _amount); } } function withdrawMensaToken(address _user, uint256 _gid, uint256 amount, bool unlockedOnly) external noReentrancy onlyMensa { if (amount == 0) { return; } require(poolLength() > constPoolCount, "minMensaToken: Invailed pools"); require(_gid == depositWithdraw || _gid == borrowRepay, "minMensaToken: Invailed action"); uint256 _amount; (_amount, , , ,) = getUserAmount(_gid, _user); if (amount > _amount) { amount = _amount; } for (uint i = poolLength()-1; i >= liquidityPool; i--) { _amount = poolInfo[i].groups[_gid].users[_user].amount; if (_amount > 0){ if (amount > _amount) { _withdraw(i, _gid, _user, _amount, unlockedOnly); amount = amount.sub(_amount); } else { _withdraw(i, _gid, _user, amount, unlockedOnly); amount = 0; } } if (amount == 0) { return; } } } function _withdrawPendingMensaToken(uint256 _gid, bool unlockedOnly) public { require(poolLength() > constPoolCount, "minMensaToken: Invailed pools"); require(_gid == depositWithdraw || _gid == borrowRepay, "minMensaToken: Invailed action"); for (uint i = poolLength()-1; i >= liquidityPool; i--) { if (poolInfo[i].groups[_gid].users[msg.sender].lastWithdrawBlock < block.number) { _withdraw(i, _gid, msg.sender, 0, unlockedOnly); } } } function withdrawPendingMensaToken(bool unlockedOnly) public { _withdrawPendingMensaToken(1, unlockedOnly); _withdrawPendingMensaToken(2, unlockedOnly); } function setPoolInited(uint256 _pid) public noReentrancy onlyOwner { constPoolIsInit[_pid] = true; } function deposit(uint256 _pid, uint256 _gid, address u, uint256 _amount) external noReentrancy onlyOwner { require(_pid < liquidityPool, "only for const pool"); require(constPoolIsInit[_pid] == false, "init failed"); constPoolIsInit[_pid] = true; _deposit(_pid, _gid, u, _amount); } function withdraw(uint256 _pid, uint256 _gid, address u, uint256 _amount) external noReentrancy onlyOwner { require(_pid < liquidityPool, "only for const pool" ); _withdraw(_pid, _gid, u, _amount, true); } }
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; /** * @title Mensa ERC20 MensaToken * * @dev Implementation of the interest bearing token for the DLP protocol. */ contract MensaToken is ERC20, ERC20Detailed { uint256 private _cap = 200000000e18; uint256 private _supply = 0; constructor( string memory _name, string memory _symbol ) public ERC20Detailed(_name, _symbol, 18) { } function MensaTokenMint(address _to, uint256 _amount) internal { require(_supply.add(_amount) <= _cap, "Mensa cap exceeded"); _supply = _supply.add(_amount); _mint(_to, _amount); } function totalSupply() public view returns (uint256) { return _supply; } function cap() public view returns (uint256) { return _cap; } }
pragma solidity ^0.5.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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
pragma solidity ^0.5.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, 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. * * _Available since v2.4.0._ */ 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. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 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. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity ^0.5.0; import "../GSN/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. * * 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. */ 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 returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _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 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
pragma solidity ^0.5.0; import "../../GSN/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 {ERC20Mintable}. * * 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; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public 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 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 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 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 { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _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 { require(account != address(0), "ERC20: mint to the zero address"); _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 { require(account != address(0), "ERC20: burn from the zero address"); _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 { 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 Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } }
pragma solidity ^0.5.0; import "./IERC20.sol"; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @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. * * 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; } }
pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @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); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"addressAp","type":"address"}],"payable":false,"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":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"MintDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"received","type":"uint256"}],"name":"MintWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"bool","name":"unlockedOnly","type":"bool"}],"name":"_withdrawPendingMensaToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_poolCap","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"createPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"address","name":"u","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_gid","type":"uint256"}],"name":"getGroupInfo","outputs":[{"internalType":"uint256","name":"gp","type":"uint256"},{"internalType":"uint256","name":"groupTotal","type":"uint256"},{"internalType":"uint256","name":"accPerShare","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"getPoolInfo","outputs":[{"internalType":"uint256","name":"poolCap","type":"uint256"},{"internalType":"uint256","name":"totalAllocPoint","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"bonusPerBlock","type":"uint256"},{"internalType":"uint256","name":"lockedTotal","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"pending","type":"uint256"},{"internalType":"uint256","name":"protectPending","type":"uint256"},{"internalType":"uint256","name":"protectPriceTotal","type":"uint256"},{"internalType":"uint256","name":"lockedPriceTotal","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintMensaToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingMensa","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"protectAmount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"pending","type":"uint256"},{"internalType":"uint256","name":"protectMintPending","type":"uint256"},{"internalType":"uint256","name":"protectPrice","type":"uint256"},{"internalType":"uint256","name":"lockedTotal","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"u","type":"address"}],"name":"priceRate","outputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"setGroup","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"addressLP","type":"address"}],"name":"setLp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setPoolInited","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"address","name":"u","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_gid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"unlockedOnly","type":"bool"}],"name":"withdrawMensaToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"unlockedOnly","type":"bool"}],"name":"withdrawPendingMensaToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526aa56fa5b99019a5c8000000600655600060075560006009556003600a556004600b556001600c556002600d556223f488600e553480156200004557600080fd5b50604051620036f7380380620036f7833981810160405260208110156200006b57600080fd5b50516040805180820182526005808252644d656e736160d81b60208381019182528451808601909552918452644d454e534160d81b91840191909152815191929183918391601291620000c2916003919062000178565b508151620000d890600490602085019062000178565b506005805460ff191660ff929092169190911790555060009250620000ff91505062000173565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350601180546001600160a01b0319166001600160a01b03929092169190911790556200021a565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001bb57805160ff1916838001178555620001eb565b82800160010185558215620001eb579182015b82811115620001eb578251825591602001919060010190620001ce565b50620001f9929150620001fd565b5090565b6200017591905b80821115620001f9576000815560010162000204565b6134cd806200022a6000396000f3fe608060405234801561001057600080fd5b50600436106101805760003560e01c806306fdde0314610185578063081e3eda14610202578063095ea7b31461021c5780631377984f1461025c57806318160ddd1461028d57806323b872dd146102955780632f380b35146102cb578063313ce5671461031b5780633437586b14610339578063355274ea1461039057806339509351146103985780633abe7b31146103c45780633b4b701f146103e157806370a082311461041b578063715018a6146104415780638473665b146104495780638da5cb5b1461046f5780638f32d59b1461049357806395d89b411461049b578063a00caf27146104a3578063a0717ff3146104c8578063a3ac81ff14610509578063a457c2d714610528578063a9059cbb14610554578063a9ba3bcf14610580578063b5dfd153146105bc578063bdd5164e146105f4578063dd62ed3e1461061d578063e78f09491461064b578063efef97f014610683578063f2fde38b146106ed578063f4c2baa914610713575b600080fd5b61018d610739565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c75781810151838201526020016101af565b50505050905090810190601f1680156101f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61020a6107d0565b60408051918252519081900360200190f35b6102486004803603604081101561023257600080fd5b506001600160a01b0381351690602001356107d6565b604080519115158252519081900360200190f35b61028b6004803603608081101561027257600080fd5b50803590602081013590604081013590606001356107f4565b005b61020a610ba3565b610248600480360360608110156102ab57600080fd5b506001600160a01b03813581169160208101359091169060400135610ba9565b6102e8600480360360208110156102e157600080fd5b5035610c37565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b610323610c90565b6040805160ff9092168252519081900360200190f35b6103656004803603604081101561034f57600080fd5b50803590602001356001600160a01b0316610c99565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b61020a610df7565b610248600480360360408110156103ae57600080fd5b506001600160a01b038135169060200135610dfd565b61028b600480360360208110156103da57600080fd5b5035610e51565b61028b600480360360808110156103f757600080fd5b506001600160a01b0381351690602081013590604081013590606001351515610f24565b61020a6004803603602081101561043157600080fd5b50356001600160a01b03166111cd565b61028b6111e8565b61020a6004803603602081101561045f57600080fd5b50356001600160a01b0316611267565b6104776113c0565b604080516001600160a01b039092168252519081900360200190f35b6102486113cf565b61018d6113f5565b61028b600480360360408110156104b957600080fd5b50803590602001351515611456565b6104eb600480360360408110156104de57600080fd5b5080359060200135611569565b60408051938452602084019290925282820152519081900360600190f35b61028b6004803603602081101561051f57600080fd5b503515156115b6565b6102486004803603604081101561053e57600080fd5b506001600160a01b0381351690602001356115cf565b6102486004803603604081101561056a57600080fd5b506001600160a01b03813516906020013561163d565b61028b6004803603608081101561059657600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135611651565b61028b600480360360808110156105d257600080fd5b508035906020810135906001600160a01b03604082013516906060013561186e565b61028b6004803603606081101561060a57600080fd5b5080359060208101359060400135611973565b61020a6004803603604081101561063357600080fd5b506001600160a01b0381358116916020013516611c26565b61028b6004803603608081101561066157600080fd5b508035906020810135906001600160a01b036040820135169060600135611c51565b6106b56004803603606081101561069957600080fd5b50803590602081013590604001356001600160a01b0316611dbf565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b61028b6004803603602081101561070357600080fd5b50356001600160a01b031661201b565b61028b6004803603602081101561072957600080fd5b50356001600160a01b031661206b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c55780601f1061079a576101008083540402835291602001916107c5565b820191906000526020600020905b8154815290600101906020018083116107a857829003601f168201915b505050505090505b90565b600f5490565b60006107ea6107e3612145565b8484612149565b5060015b92915050565b600854600160a01b900460ff1615610845576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556108606113cf565b61089f576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6108a76107d0565b84146108f3576040805162461bcd60e51b815260206004820152601660248201527518dc99585d19541bdbdb0e8817dc1a590819985d5b1d60521b604482015290519081900360640190fd5b804310801561090157508181115b61093c5760405162461bcd60e51b81526004018080602001828103825260258152602001806132a46025913960400191505060405180910390fd5b61095483670de0b6b3a764000063ffffffff61223516565b9250600083116109a3576040805162461bcd60e51b815260206004820152601560248201527418dc99585d19541bdbdb0e8818d85c0819985d5b1d605a1b604482015290519081900360640190fd5b6009546109b6908463ffffffff61228e16565b60095560004383106109c857826109ca565b435b9050808211610a0a5760405162461bcd60e51b81526004018080602001828103825260278152602001806133166027913960400191505060405180910390fd5b6000610a2c610a1f848463ffffffff6122e616565b869063ffffffff61232816565b6040805160e081018252968752600060208801818152918801948552606088019586526080880192835260a0880181815260c08901828152600f8054600181018255935298517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80260089384029081019190915592517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80384015594517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80483015594517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80582015590517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80682015591517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8078301555092517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac808909301805460ff19169315159390931790925550805460ff60a01b1916905550565b60075490565b6000610bb6848484612367565b610c2c84610bc2612145565b610c278560405180606001604052806028815260200161337e602891396001600160a01b038a16600090815260016020526040812090610c00612145565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6124b116565b612149565b5060015b9392505050565b6000806000806000806000600f8881548110610c4f57fe5b6000918252602090912060089091020180546001820154600283015460038401546004850154600590950154939d929c50909a509850919650945092505050565b60055460ff1690565b6000806000806000600b54610cac6107d0565b11610cc557506000935083925082915081905080610ded565b600c548714158015610cd95750600d548714155b15610cf257506000935083925082915081905080610ded565b6000806000806000600a5490505b610d086107d0565b811015610de757610d7a600f8281548110610d1f57fe5b906000526020600020906008020160070160008e815260200190815260200160002060030160008d6001600160a01b03166001600160a01b03168152602001908152602001600020600001548b61228e90919063ffffffff16565b9950610d87818d8d611dbf565b929a5090985096509450610da792508b915087905063ffffffff61228e16565b9850610db9888563ffffffff61228e16565b9750610dcb878463ffffffff61228e16565b9650610ddd868363ffffffff61228e16565b9550600101610d00565b50505050505b9295509295909350565b60065490565b60006107ea610e0a612145565b84610c278560016000610e1b612145565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61228e16565b600854600160a01b900460ff1615610ea2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b179055610ebd6113cf565b610efc576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6000908152601360205260409020805460ff191660011790556008805460ff60a01b19169055565b600854600160a01b900460ff1615610f75576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b17905560115460408051630ef57ac560e41b8152905133926001600160a01b03169163ef57ac50916004808301926020929190829003018186803b158015610fcc57600080fd5b505afa158015610fe0573d6000803e3d6000fd5b505050506040513d6020811015610ff657600080fd5b50516001600160a01b03161461103d5760405162461bcd60e51b815260040180806020018281038252602d8152602001806132c9602d913960400191505060405180910390fd5b81611047576111ba565b600b546110526107d0565b11611092576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548314806110a35750600d5483145b6110e2576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b60006110ee8486610c99565b5092935050505080831115611101578092505b6000600161110d6107d0565b0390505b600a5481106111b757600f818154811061112757fe5b60009182526020808320888452600760089093020191909101815260408083206001600160a01b038a168452600301909152902054915081156111a25781841115611190576111798186888587612548565b611189848363ffffffff6122e616565b93506111a2565b61119d8186888787612548565b600093505b836111ae5750506111ba565b60001901611111565b50505b50506008805460ff60a01b191690555050565b6001600160a01b031660009081526020819052604090205490565b6111f06113cf565b61122f576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316906000805160206133c6833981519152908390a3600880546001600160a01b0319169055565b600080600f600a548154811061127957fe5b60009182526020808320600c5484526007600890930201918201815260408084206001600160a01b038816855260038101909252832080549294509091156113b7576113a2846040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050836040518060600160405290816000820154815260200160018201548152602001600282015481525050836040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b92506113b4858463ffffffff61228e16565b94505b50505050919050565b6008546001600160a01b031690565b6008546000906001600160a01b03166113e6612145565b6001600160a01b031614905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c55780601f1061079a576101008083540402835291602001916107c5565b600b546114616107d0565b116114a1576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548214806114b25750600d5482145b6114f1576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b600060016114fd6107d0565b0390505b600a5481106115645743600f828154811061151857fe5b6000918252602080832087845260076008909302019190910181526040808320338452600301909152902060010154101561155b5761155b818433600086612548565b60001901611501565b505050565b600080600080600f868154811061157c57fe5b6000918252602080832097835260076008909202909701019095525050604090922080546001820154600290920154909591945092509050565b6115c1600182611456565b6115cc600282611456565b50565b60006107ea6115dc612145565b84610c27856040518060600160405280602581526020016134746025913960016000611606612145565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6124b116565b60006107ea61164a612145565b8484612367565b600854600160a01b900460ff16156116a2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b17905560115460408051630ef57ac560e41b8152905133926001600160a01b03169163ef57ac50916004808301926020929190829003018186803b1580156116f957600080fd5b505afa15801561170d573d6000803e3d6000fd5b505050506040513d602081101561172357600080fd5b50516001600160a01b03161461176a5760405162461bcd60e51b815260040180806020018281038252602d8152602001806132c9602d913960400191505060405180910390fd5b80611774576111ba565b600b5461177f6107d0565b10156117c0576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548214806117d15750600d5482145b611810576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b6012546001600160a01b038581169116141561183957611834600a54838584612999565b6111ba565b6000611843612b11565b9050600b54811061185a5761185a81848685612999565b5050506008805460ff60a01b191690555050565b600854600160a01b900460ff16156118bf576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556118da6113cf565b611919576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b600a548410611965576040805162461bcd60e51b81526020600482015260136024820152721bdb9b1e48199bdc8818dbdb9cdd081c1bdbdb606a1b604482015290519081900360640190fd5b6111ba848484846001612548565b600854600160a01b900460ff16156119c4576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556119df6113cf565b611a1e576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b611a266107d0565b8310611a70576040805162461bcd60e51b81526020600482015260146024820152731cd95d11dc9bdd5c0e8817dc1a590819985d5b1d60621b604482015290519081900360640190fd5b60008381526013602052604090205460ff1615611ac2576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d0819985a5b195960aa1b604482015290519081900360640190fd5b600f8381548110611acf57fe5b6000918252602080832085845260076008909302019190910190526040902054611b15576000838152601060209081526040822080546001810182559083529120018290555b611b8881611b7c600f8681548110611b2957fe5b9060005260206000209060080201600701600086815260200190815260200160002060000154600f8781548110611b5c57fe5b9060005260206000209060080201600101546122e690919063ffffffff16565b9063ffffffff61228e16565b600f8481548110611b9557fe5b9060005260206000209060080201600101819055506040518060600160405280828152602001600081526020016000815250600f8481548110611bd457fe5b60009182526020808320868452600760089093020191909101815260409182902083518155908301516001820155910151600290910155611c1483612b64565b50506008805460ff60a01b1916905550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600854600160a01b900460ff1615611ca2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b179055611cbd6113cf565b611cfc576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b600a548410611d48576040805162461bcd60e51b81526020600482015260136024820152721bdb9b1e48199bdc8818dbdb9cdd081c1bdbdb606a1b604482015290519081900360640190fd5b60008481526013602052604090205460ff1615611d9a576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d0819985a5b195960aa1b604482015290519081900360640190fd5b6000848152601360205260409020805460ff191660011790556111ba84848484612999565b600080600080600080600080600f8b81548110611dd857fe5b600091825260208083208d84526007600890930201918201815260408084206001600160a01b038e16855260038101909252909220600183015491935090611e3957506000985088975087965086955085945084935083925061200e915050565b6000611e5382600101544386600201548760030154612bb5565b9050611e9c8260040154611b7c8560010154611e908660000154611e8489600201548861223590919063ffffffff16565b9063ffffffff61223516565b9063ffffffff61232816565b975081600001549a506000611f8e856040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050856040518060600160405290816000820154815260200160018201548152602001600282015481525050856040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b9050611fb3670de0b6b3a7640000611e9083886005015461223590919063ffffffff16565b96508260060154431015611ffa5782600301549a50611ff78360050154611b7c8660010154611e908760030154611e848a600201548961223590919063ffffffff16565b97505b826002015499508460050154955050505050505b9397509397509397909450565b6120236113cf565b612062576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6115cc81612c89565b600854600160a01b900460ff16156120bc576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556120d76113cf565b612116576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b03929092169190911790556008805460ff60a01b19169055565b3390565b6001600160a01b03831661218e5760405162461bcd60e51b815260040180806020018281038252602481526020018061342b6024913960400191505060405180910390fd5b6001600160a01b0382166121d35760405162461bcd60e51b815260040180806020018281038252602281526020018061325c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082612244575060006107ee565b8282028284828161225157fe5b0414610c305760405162461bcd60e51b815260040180806020018281038252602181526020018061335d6021913960400191505060405180910390fd5b600082820183811015610c30576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000610c3083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124b1565b6000610c3083836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250612d18565b6001600160a01b0383166123ac5760405162461bcd60e51b81526004018080602001828103825260258152602001806134066025913960400191505060405180910390fd5b6001600160a01b0382166123f15760405162461bcd60e51b81526004018080602001828103825260238152602001806132136023913960400191505060405180910390fd5b6124348160405180606001604052806026815260200161327e602691396001600160a01b038616600090815260208190526040902054919063ffffffff6124b116565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612469908263ffffffff61228e16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716926000805160206133e683398151915292918290030190a3505050565b600081848411156125405760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125055781810151838201526020016124ed565b50505050905090810190601f1680156125325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600f80546000918291829182918a90811061255f57fe5b60009182526020909120600890910201600681015490915060ff1615801561258a5750438160030154105b1561259f5760068101805460ff191660011790555b600088815260078201602090815260408083206001600160a01b038b1684526003810190925290912060018201546125dc57505050505050612913565b8054881115612627576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b43836003015410156126425760006003820181905560058201555b600381015481546126589163ffffffff6122e616565b945086801561266657508785105b156126a25760405162461bcd60e51b815260040180806020018281038252602581526020018061344f6025913960400191505060405180910390fd5b60006126bc82600101544386600201548760030154612bb5565b905060006126e78460010154611e908560000154611e8488600201548761223590919063ffffffff16565b90506000806127d3876040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050876040518060600160405290816000820154815260200160018201548152602001600282015481525050876040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b90506127f8670de0b6b3a7640000611e90838a6005015461223590919063ffffffff16565b91508b89106128065760019a505b506128168c85600085858f612d7d565b6005880154919a509750612842908290612836908c63ffffffff61228e16565b9063ffffffff6122e616565b60058701558354612859908c63ffffffff6122e616565b8085556003850154111561286f57835460038501555b6002840154612884908363ffffffff61228e16565b6002850155600185015461289e908c63ffffffff6122e616565b6001860155600686015460ff166128b9576128b98e8e612fac565b6001850154604080518f8152602081018e90528082019290925260608201899052518f9133917f86784a3350d1ccf2afa596ee4af33ccc51cc23ef7def5e05526a9deebeed11c29181900360800190a35050505050505050505b5050505050565b600082602001516000141561293157506000610c30565b606082015160c0830151431115612946575060005b670de0b6b3a764000091506129908460200151611e908760200151611e908860000151611e84612983888b600001516122e690919063ffffffff16565b899063ffffffff61223516565b95945050505050565b806129a357612b0b565b6000600f85815481106129b257fe5b60009182526020909120600890910201600681015490915060ff16156129d85750612b0b565b43816003015410156129f757600601805460ff19166001179055612b0b565b600084815260078201602090815260408083206001600160a01b038716845260038082019093529083206001810154600286015493860154929491939192612a40924391612bb5565b600184015490915060009015612a7a57612a778460010154611e908560000154611e8488600201548761223590919063ffffffff16565b90505b6001840154612a8f908763ffffffff61228e16565b6001850155612a9e8989612fac565b612aae8784888460006001612d7d565b505082546001850154604080518b8152602081019390935282810191909152518a916001600160a01b038a16917f36ab550a399d9b968ddca0bc1d128ddfeb688341adb9be73efc280825b66d8109181900360600190a350505050505b50505050565b600b546000905b612b206107d0565b811015612b5c5743600f8281548110612b3557fe5b9060005260206000209060080201600301541115612b545790506107cd565b600101612b18565b506000905090565b600081815260106020526040812054905b818110156115645760008381526010602052604090208054612bad91859184908110612b9d57fe5b9060005260206000200154612fac565b600101612b75565b600083851115612bff576040805162461bcd60e51b815260206004820152601060248201526f0213637b1b59031b7bab73a34b7339d160851b604482015290519081900360640190fd5b81831115612c47576040805162461bcd60e51b815260206004820152601060248201526f0213637b1b59031b7bab73a34b7339d160851b604482015290519081900360640190fd5b81841115612c53578193505b82851015612c5f578294505b838510612c6e57506000612c81565b612c7e848663ffffffff6122e616565b90505b949350505050565b6001600160a01b038116612cce5760405162461bcd60e51b81526004018080602001828103825260268152602001806132366026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216906000805160206133c683398151915290600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60008183612d675760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125055781810151838201526020016124ed565b506000838581612d7357fe5b0495945050505050565b6000808660060154431115612d9b5760006003880181905560058801555b6003870154600090612db3908863ffffffff61228e16565b90508015612e0657612e0081611e90612de7612dda600e544361228e90919063ffffffff16565b8b9063ffffffff61223516565b60068c015460038d0154611b7c9163ffffffff61223516565b60068901555b504360018801556004870154612e22908663ffffffff61228e16565b6004880155600387015415612e685786546003880154612e6291612e5191611e9090899063ffffffff61223516565b60058901549063ffffffff61228e16565b60058801555b8654612e7a908763ffffffff61228e16565b87556003870154612e91908763ffffffff61228e16565b600388015585612fa1578215612ed157612ec084611b7c89600501548a600401546122e690919063ffffffff16565b600588015460048901559050612f15565b6005870154612ee790600463ffffffff61232816565b9150612f0484611b7c848a600401546122e690919063ffffffff16565b600060048901819055600589015590505b8015612fa157612f253082613034565b6040805163a9059cbb60e01b81526001600160a01b038a166004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015612f7457600080fd5b505af1158015612f88573d6000803e3d6000fd5b505050506040513d6020811015612f9e57600080fd5b50505b965096945050505050565b6000600f8381548110612fbb57fe5b60009182526020808320858452600760089093020191820190526040822060018101548254929450909291612ff09190613042565b9050613025670de0b6b3a7640000611e9083611e848760010154611e9088600001548a6004015461223590919063ffffffff16565b82600201819055505050505050565b61303e82826130bb565b5050565b670de0b6b3a764000061305f82611e90838663ffffffff61223516565b905060006130796002611e9084600163ffffffff61228e16565b9050815b808210156130a75750806130a06002611e9083611b7c878263ffffffff61232816565b915061307d565b61299081632cb4178063ffffffff61223516565b6006546007546130d1908363ffffffff61228e16565b1115613119576040805162461bcd60e51b815260206004820152601260248201527113595b9cd84818d85c08195e18d95959195960721b604482015290519081900360640190fd5b60075461312c908263ffffffff61228e16565b60075561303e82826001600160a01b03821661318f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546131a2908263ffffffff61228e16565b6002556001600160a01b0382166000908152602081905260409020546131ce908263ffffffff61228e16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206133e68339815191529281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365637265617465506f6f6c3a20496e7661696c656420626c6f636b20706172616d65746572734d656e7361546f6b656e3a207468652063616c6c6572206d757374206265206d656e736120636f6e74726163746d696e4d656e7361546f6b656e3a20496e7661696c656420616374696f6e0000637265617465506f6f6c3a20496e7661696c656420626c6f636b20706172616d657465727320326d696e4d656e7361546f6b656e3a20496e7661696c656420706f6f6c73000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737377697468647261773a20756e6c6f636b65642062616c616e6365206e6f7420656e6f75676845524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158200a0e5dac75529d868e7ef6ecc6900d0b9da79c97b5aba9259baf409dfe15858e64736f6c63430005110032000000000000000000000000d7891d874f42a0503e486307b94a1acddd08e958
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101805760003560e01c806306fdde0314610185578063081e3eda14610202578063095ea7b31461021c5780631377984f1461025c57806318160ddd1461028d57806323b872dd146102955780632f380b35146102cb578063313ce5671461031b5780633437586b14610339578063355274ea1461039057806339509351146103985780633abe7b31146103c45780633b4b701f146103e157806370a082311461041b578063715018a6146104415780638473665b146104495780638da5cb5b1461046f5780638f32d59b1461049357806395d89b411461049b578063a00caf27146104a3578063a0717ff3146104c8578063a3ac81ff14610509578063a457c2d714610528578063a9059cbb14610554578063a9ba3bcf14610580578063b5dfd153146105bc578063bdd5164e146105f4578063dd62ed3e1461061d578063e78f09491461064b578063efef97f014610683578063f2fde38b146106ed578063f4c2baa914610713575b600080fd5b61018d610739565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c75781810151838201526020016101af565b50505050905090810190601f1680156101f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61020a6107d0565b60408051918252519081900360200190f35b6102486004803603604081101561023257600080fd5b506001600160a01b0381351690602001356107d6565b604080519115158252519081900360200190f35b61028b6004803603608081101561027257600080fd5b50803590602081013590604081013590606001356107f4565b005b61020a610ba3565b610248600480360360608110156102ab57600080fd5b506001600160a01b03813581169160208101359091169060400135610ba9565b6102e8600480360360208110156102e157600080fd5b5035610c37565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b610323610c90565b6040805160ff9092168252519081900360200190f35b6103656004803603604081101561034f57600080fd5b50803590602001356001600160a01b0316610c99565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b61020a610df7565b610248600480360360408110156103ae57600080fd5b506001600160a01b038135169060200135610dfd565b61028b600480360360208110156103da57600080fd5b5035610e51565b61028b600480360360808110156103f757600080fd5b506001600160a01b0381351690602081013590604081013590606001351515610f24565b61020a6004803603602081101561043157600080fd5b50356001600160a01b03166111cd565b61028b6111e8565b61020a6004803603602081101561045f57600080fd5b50356001600160a01b0316611267565b6104776113c0565b604080516001600160a01b039092168252519081900360200190f35b6102486113cf565b61018d6113f5565b61028b600480360360408110156104b957600080fd5b50803590602001351515611456565b6104eb600480360360408110156104de57600080fd5b5080359060200135611569565b60408051938452602084019290925282820152519081900360600190f35b61028b6004803603602081101561051f57600080fd5b503515156115b6565b6102486004803603604081101561053e57600080fd5b506001600160a01b0381351690602001356115cf565b6102486004803603604081101561056a57600080fd5b506001600160a01b03813516906020013561163d565b61028b6004803603608081101561059657600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135611651565b61028b600480360360808110156105d257600080fd5b508035906020810135906001600160a01b03604082013516906060013561186e565b61028b6004803603606081101561060a57600080fd5b5080359060208101359060400135611973565b61020a6004803603604081101561063357600080fd5b506001600160a01b0381358116916020013516611c26565b61028b6004803603608081101561066157600080fd5b508035906020810135906001600160a01b036040820135169060600135611c51565b6106b56004803603606081101561069957600080fd5b50803590602081013590604001356001600160a01b0316611dbf565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b61028b6004803603602081101561070357600080fd5b50356001600160a01b031661201b565b61028b6004803603602081101561072957600080fd5b50356001600160a01b031661206b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c55780601f1061079a576101008083540402835291602001916107c5565b820191906000526020600020905b8154815290600101906020018083116107a857829003601f168201915b505050505090505b90565b600f5490565b60006107ea6107e3612145565b8484612149565b5060015b92915050565b600854600160a01b900460ff1615610845576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556108606113cf565b61089f576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6108a76107d0565b84146108f3576040805162461bcd60e51b815260206004820152601660248201527518dc99585d19541bdbdb0e8817dc1a590819985d5b1d60521b604482015290519081900360640190fd5b804310801561090157508181115b61093c5760405162461bcd60e51b81526004018080602001828103825260258152602001806132a46025913960400191505060405180910390fd5b61095483670de0b6b3a764000063ffffffff61223516565b9250600083116109a3576040805162461bcd60e51b815260206004820152601560248201527418dc99585d19541bdbdb0e8818d85c0819985d5b1d605a1b604482015290519081900360640190fd5b6009546109b6908463ffffffff61228e16565b60095560004383106109c857826109ca565b435b9050808211610a0a5760405162461bcd60e51b81526004018080602001828103825260278152602001806133166027913960400191505060405180910390fd5b6000610a2c610a1f848463ffffffff6122e616565b869063ffffffff61232816565b6040805160e081018252968752600060208801818152918801948552606088019586526080880192835260a0880181815260c08901828152600f8054600181018255935298517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80260089384029081019190915592517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80384015594517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80483015594517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80582015590517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80682015591517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8078301555092517f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac808909301805460ff19169315159390931790925550805460ff60a01b1916905550565b60075490565b6000610bb6848484612367565b610c2c84610bc2612145565b610c278560405180606001604052806028815260200161337e602891396001600160a01b038a16600090815260016020526040812090610c00612145565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6124b116565b612149565b5060015b9392505050565b6000806000806000806000600f8881548110610c4f57fe5b6000918252602090912060089091020180546001820154600283015460038401546004850154600590950154939d929c50909a509850919650945092505050565b60055460ff1690565b6000806000806000600b54610cac6107d0565b11610cc557506000935083925082915081905080610ded565b600c548714158015610cd95750600d548714155b15610cf257506000935083925082915081905080610ded565b6000806000806000600a5490505b610d086107d0565b811015610de757610d7a600f8281548110610d1f57fe5b906000526020600020906008020160070160008e815260200190815260200160002060030160008d6001600160a01b03166001600160a01b03168152602001908152602001600020600001548b61228e90919063ffffffff16565b9950610d87818d8d611dbf565b929a5090985096509450610da792508b915087905063ffffffff61228e16565b9850610db9888563ffffffff61228e16565b9750610dcb878463ffffffff61228e16565b9650610ddd868363ffffffff61228e16565b9550600101610d00565b50505050505b9295509295909350565b60065490565b60006107ea610e0a612145565b84610c278560016000610e1b612145565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61228e16565b600854600160a01b900460ff1615610ea2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b179055610ebd6113cf565b610efc576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6000908152601360205260409020805460ff191660011790556008805460ff60a01b19169055565b600854600160a01b900460ff1615610f75576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b17905560115460408051630ef57ac560e41b8152905133926001600160a01b03169163ef57ac50916004808301926020929190829003018186803b158015610fcc57600080fd5b505afa158015610fe0573d6000803e3d6000fd5b505050506040513d6020811015610ff657600080fd5b50516001600160a01b03161461103d5760405162461bcd60e51b815260040180806020018281038252602d8152602001806132c9602d913960400191505060405180910390fd5b81611047576111ba565b600b546110526107d0565b11611092576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548314806110a35750600d5483145b6110e2576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b60006110ee8486610c99565b5092935050505080831115611101578092505b6000600161110d6107d0565b0390505b600a5481106111b757600f818154811061112757fe5b60009182526020808320888452600760089093020191909101815260408083206001600160a01b038a168452600301909152902054915081156111a25781841115611190576111798186888587612548565b611189848363ffffffff6122e616565b93506111a2565b61119d8186888787612548565b600093505b836111ae5750506111ba565b60001901611111565b50505b50506008805460ff60a01b191690555050565b6001600160a01b031660009081526020819052604090205490565b6111f06113cf565b61122f576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316906000805160206133c6833981519152908390a3600880546001600160a01b0319169055565b600080600f600a548154811061127957fe5b60009182526020808320600c5484526007600890930201918201815260408084206001600160a01b038816855260038101909252832080549294509091156113b7576113a2846040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050836040518060600160405290816000820154815260200160018201548152602001600282015481525050836040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b92506113b4858463ffffffff61228e16565b94505b50505050919050565b6008546001600160a01b031690565b6008546000906001600160a01b03166113e6612145565b6001600160a01b031614905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107c55780601f1061079a576101008083540402835291602001916107c5565b600b546114616107d0565b116114a1576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548214806114b25750600d5482145b6114f1576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b600060016114fd6107d0565b0390505b600a5481106115645743600f828154811061151857fe5b6000918252602080832087845260076008909302019190910181526040808320338452600301909152902060010154101561155b5761155b818433600086612548565b60001901611501565b505050565b600080600080600f868154811061157c57fe5b6000918252602080832097835260076008909202909701019095525050604090922080546001820154600290920154909591945092509050565b6115c1600182611456565b6115cc600282611456565b50565b60006107ea6115dc612145565b84610c27856040518060600160405280602581526020016134746025913960016000611606612145565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6124b116565b60006107ea61164a612145565b8484612367565b600854600160a01b900460ff16156116a2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b17905560115460408051630ef57ac560e41b8152905133926001600160a01b03169163ef57ac50916004808301926020929190829003018186803b1580156116f957600080fd5b505afa15801561170d573d6000803e3d6000fd5b505050506040513d602081101561172357600080fd5b50516001600160a01b03161461176a5760405162461bcd60e51b815260040180806020018281038252602d8152602001806132c9602d913960400191505060405180910390fd5b80611774576111ba565b600b5461177f6107d0565b10156117c0576040805162461bcd60e51b815260206004820152601d602482015260008051602061333d833981519152604482015290519081900360640190fd5b600c548214806117d15750600d5482145b611810576040805162461bcd60e51b815260206004820152601e60248201526000805160206132f6833981519152604482015290519081900360640190fd5b6012546001600160a01b038581169116141561183957611834600a54838584612999565b6111ba565b6000611843612b11565b9050600b54811061185a5761185a81848685612999565b5050506008805460ff60a01b191690555050565b600854600160a01b900460ff16156118bf576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556118da6113cf565b611919576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b600a548410611965576040805162461bcd60e51b81526020600482015260136024820152721bdb9b1e48199bdc8818dbdb9cdd081c1bdbdb606a1b604482015290519081900360640190fd5b6111ba848484846001612548565b600854600160a01b900460ff16156119c4576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556119df6113cf565b611a1e576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b611a266107d0565b8310611a70576040805162461bcd60e51b81526020600482015260146024820152731cd95d11dc9bdd5c0e8817dc1a590819985d5b1d60621b604482015290519081900360640190fd5b60008381526013602052604090205460ff1615611ac2576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d0819985a5b195960aa1b604482015290519081900360640190fd5b600f8381548110611acf57fe5b6000918252602080832085845260076008909302019190910190526040902054611b15576000838152601060209081526040822080546001810182559083529120018290555b611b8881611b7c600f8681548110611b2957fe5b9060005260206000209060080201600701600086815260200190815260200160002060000154600f8781548110611b5c57fe5b9060005260206000209060080201600101546122e690919063ffffffff16565b9063ffffffff61228e16565b600f8481548110611b9557fe5b9060005260206000209060080201600101819055506040518060600160405280828152602001600081526020016000815250600f8481548110611bd457fe5b60009182526020808320868452600760089093020191909101815260409182902083518155908301516001820155910151600290910155611c1483612b64565b50506008805460ff60a01b1916905550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600854600160a01b900460ff1615611ca2576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b179055611cbd6113cf565b611cfc576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b600a548410611d48576040805162461bcd60e51b81526020600482015260136024820152721bdb9b1e48199bdc8818dbdb9cdd081c1bdbdb606a1b604482015290519081900360640190fd5b60008481526013602052604090205460ff1615611d9a576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d0819985a5b195960aa1b604482015290519081900360640190fd5b6000848152601360205260409020805460ff191660011790556111ba84848484612999565b600080600080600080600080600f8b81548110611dd857fe5b600091825260208083208d84526007600890930201918201815260408084206001600160a01b038e16855260038101909252909220600183015491935090611e3957506000985088975087965086955085945084935083925061200e915050565b6000611e5382600101544386600201548760030154612bb5565b9050611e9c8260040154611b7c8560010154611e908660000154611e8489600201548861223590919063ffffffff16565b9063ffffffff61223516565b9063ffffffff61232816565b975081600001549a506000611f8e856040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050856040518060600160405290816000820154815260200160018201548152602001600282015481525050856040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b9050611fb3670de0b6b3a7640000611e9083886005015461223590919063ffffffff16565b96508260060154431015611ffa5782600301549a50611ff78360050154611b7c8660010154611e908760030154611e848a600201548961223590919063ffffffff16565b97505b826002015499508460050154955050505050505b9397509397509397909450565b6120236113cf565b612062576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b6115cc81612c89565b600854600160a01b900460ff16156120bc576040805162461bcd60e51b815260206004820152600f60248201526e2932b2b73a3930b73a1031b0b6361760891b604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b1790556120d76113cf565b612116576040805162461bcd60e51b815260206004820181905260248201526000805160206133a6833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b03929092169190911790556008805460ff60a01b19169055565b3390565b6001600160a01b03831661218e5760405162461bcd60e51b815260040180806020018281038252602481526020018061342b6024913960400191505060405180910390fd5b6001600160a01b0382166121d35760405162461bcd60e51b815260040180806020018281038252602281526020018061325c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082612244575060006107ee565b8282028284828161225157fe5b0414610c305760405162461bcd60e51b815260040180806020018281038252602181526020018061335d6021913960400191505060405180910390fd5b600082820183811015610c30576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000610c3083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124b1565b6000610c3083836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250612d18565b6001600160a01b0383166123ac5760405162461bcd60e51b81526004018080602001828103825260258152602001806134066025913960400191505060405180910390fd5b6001600160a01b0382166123f15760405162461bcd60e51b81526004018080602001828103825260238152602001806132136023913960400191505060405180910390fd5b6124348160405180606001604052806026815260200161327e602691396001600160a01b038616600090815260208190526040902054919063ffffffff6124b116565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612469908263ffffffff61228e16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716926000805160206133e683398151915292918290030190a3505050565b600081848411156125405760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125055781810151838201526020016124ed565b50505050905090810190601f1680156125325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600f80546000918291829182918a90811061255f57fe5b60009182526020909120600890910201600681015490915060ff1615801561258a5750438160030154105b1561259f5760068101805460ff191660011790555b600088815260078201602090815260408083206001600160a01b038b1684526003810190925290912060018201546125dc57505050505050612913565b8054881115612627576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b43836003015410156126425760006003820181905560058201555b600381015481546126589163ffffffff6122e616565b945086801561266657508785105b156126a25760405162461bcd60e51b815260040180806020018281038252602581526020018061344f6025913960400191505060405180910390fd5b60006126bc82600101544386600201548760030154612bb5565b905060006126e78460010154611e908560000154611e8488600201548761223590919063ffffffff16565b90506000806127d3876040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff161515151581525050876040518060600160405290816000820154815260200160018201548152602001600282015481525050876040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505061291a565b90506127f8670de0b6b3a7640000611e90838a6005015461223590919063ffffffff16565b91508b89106128065760019a505b506128168c85600085858f612d7d565b6005880154919a509750612842908290612836908c63ffffffff61228e16565b9063ffffffff6122e616565b60058701558354612859908c63ffffffff6122e616565b8085556003850154111561286f57835460038501555b6002840154612884908363ffffffff61228e16565b6002850155600185015461289e908c63ffffffff6122e616565b6001860155600686015460ff166128b9576128b98e8e612fac565b6001850154604080518f8152602081018e90528082019290925260608201899052518f9133917f86784a3350d1ccf2afa596ee4af33ccc51cc23ef7def5e05526a9deebeed11c29181900360800190a35050505050505050505b5050505050565b600082602001516000141561293157506000610c30565b606082015160c0830151431115612946575060005b670de0b6b3a764000091506129908460200151611e908760200151611e908860000151611e84612983888b600001516122e690919063ffffffff16565b899063ffffffff61223516565b95945050505050565b806129a357612b0b565b6000600f85815481106129b257fe5b60009182526020909120600890910201600681015490915060ff16156129d85750612b0b565b43816003015410156129f757600601805460ff19166001179055612b0b565b600084815260078201602090815260408083206001600160a01b038716845260038082019093529083206001810154600286015493860154929491939192612a40924391612bb5565b600184015490915060009015612a7a57612a778460010154611e908560000154611e8488600201548761223590919063ffffffff16565b90505b6001840154612a8f908763ffffffff61228e16565b6001850155612a9e8989612fac565b612aae8784888460006001612d7d565b505082546001850154604080518b8152602081019390935282810191909152518a916001600160a01b038a16917f36ab550a399d9b968ddca0bc1d128ddfeb688341adb9be73efc280825b66d8109181900360600190a350505050505b50505050565b600b546000905b612b206107d0565b811015612b5c5743600f8281548110612b3557fe5b9060005260206000209060080201600301541115612b545790506107cd565b600101612b18565b506000905090565b600081815260106020526040812054905b818110156115645760008381526010602052604090208054612bad91859184908110612b9d57fe5b9060005260206000200154612fac565b600101612b75565b600083851115612bff576040805162461bcd60e51b815260206004820152601060248201526f0213637b1b59031b7bab73a34b7339d160851b604482015290519081900360640190fd5b81831115612c47576040805162461bcd60e51b815260206004820152601060248201526f0213637b1b59031b7bab73a34b7339d160851b604482015290519081900360640190fd5b81841115612c53578193505b82851015612c5f578294505b838510612c6e57506000612c81565b612c7e848663ffffffff6122e616565b90505b949350505050565b6001600160a01b038116612cce5760405162461bcd60e51b81526004018080602001828103825260268152602001806132366026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216906000805160206133c683398151915290600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60008183612d675760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125055781810151838201526020016124ed565b506000838581612d7357fe5b0495945050505050565b6000808660060154431115612d9b5760006003880181905560058801555b6003870154600090612db3908863ffffffff61228e16565b90508015612e0657612e0081611e90612de7612dda600e544361228e90919063ffffffff16565b8b9063ffffffff61223516565b60068c015460038d0154611b7c9163ffffffff61223516565b60068901555b504360018801556004870154612e22908663ffffffff61228e16565b6004880155600387015415612e685786546003880154612e6291612e5191611e9090899063ffffffff61223516565b60058901549063ffffffff61228e16565b60058801555b8654612e7a908763ffffffff61228e16565b87556003870154612e91908763ffffffff61228e16565b600388015585612fa1578215612ed157612ec084611b7c89600501548a600401546122e690919063ffffffff16565b600588015460048901559050612f15565b6005870154612ee790600463ffffffff61232816565b9150612f0484611b7c848a600401546122e690919063ffffffff16565b600060048901819055600589015590505b8015612fa157612f253082613034565b6040805163a9059cbb60e01b81526001600160a01b038a166004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015612f7457600080fd5b505af1158015612f88573d6000803e3d6000fd5b505050506040513d6020811015612f9e57600080fd5b50505b965096945050505050565b6000600f8381548110612fbb57fe5b60009182526020808320858452600760089093020191820190526040822060018101548254929450909291612ff09190613042565b9050613025670de0b6b3a7640000611e9083611e848760010154611e9088600001548a6004015461223590919063ffffffff16565b82600201819055505050505050565b61303e82826130bb565b5050565b670de0b6b3a764000061305f82611e90838663ffffffff61223516565b905060006130796002611e9084600163ffffffff61228e16565b9050815b808210156130a75750806130a06002611e9083611b7c878263ffffffff61232816565b915061307d565b61299081632cb4178063ffffffff61223516565b6006546007546130d1908363ffffffff61228e16565b1115613119576040805162461bcd60e51b815260206004820152601260248201527113595b9cd84818d85c08195e18d95959195960721b604482015290519081900360640190fd5b60075461312c908263ffffffff61228e16565b60075561303e82826001600160a01b03821661318f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546131a2908263ffffffff61228e16565b6002556001600160a01b0382166000908152602081905260409020546131ce908263ffffffff61228e16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206133e68339815191529281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365637265617465506f6f6c3a20496e7661696c656420626c6f636b20706172616d65746572734d656e7361546f6b656e3a207468652063616c6c6572206d757374206265206d656e736120636f6e74726163746d696e4d656e7361546f6b656e3a20496e7661696c656420616374696f6e0000637265617465506f6f6c3a20496e7661696c656420626c6f636b20706172616d657465727320326d696e4d656e7361546f6b656e3a20496e7661696c656420706f6f6c73000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737377697468647261773a20756e6c6f636b65642062616c616e6365206e6f7420656e6f75676845524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158200a0e5dac75529d868e7ef6ecc6900d0b9da79c97b5aba9259baf409dfe15858e64736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d7891d874f42a0503e486307b94a1acddd08e958
-----Decoded View---------------
Arg [0] : addressAp (address): 0xd7891D874F42A0503e486307B94a1acdDd08e958
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d7891d874f42a0503e486307b94a1acddd08e958
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.