Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 315 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14559497 | 980 days ago | IN | 0 ETH | 0.01225811 | ||||
Emergency Withdr... | 14185614 | 1038 days ago | IN | 0 ETH | 0.00315039 | ||||
Withdraw | 13910994 | 1080 days ago | IN | 0 ETH | 0.01315436 | ||||
Claim Reward | 13910991 | 1080 days ago | IN | 0 ETH | 0.01594096 | ||||
Remove | 13906958 | 1081 days ago | IN | 0 ETH | 0.00429825 | ||||
Withdraw | 13830317 | 1093 days ago | IN | 0 ETH | 0.00812904 | ||||
Claim Reward | 13830307 | 1093 days ago | IN | 0 ETH | 0.0058807 | ||||
Claim Reward | 13830289 | 1093 days ago | IN | 0 ETH | 0.01109501 | ||||
Withdraw | 13825603 | 1094 days ago | IN | 0 ETH | 0.03316268 | ||||
Claim Reward | 13825595 | 1094 days ago | IN | 0 ETH | 0.03837145 | ||||
Claim Reward | 13798206 | 1098 days ago | IN | 0 ETH | 0.0158754 | ||||
Withdraw | 13683446 | 1116 days ago | IN | 0 ETH | 0.01544649 | ||||
Claim Reward | 13683263 | 1116 days ago | IN | 0 ETH | 0.01219828 | ||||
Claim Reward | 13683086 | 1116 days ago | IN | 0 ETH | 0.0193821 | ||||
Withdraw | 13672031 | 1118 days ago | IN | 0 ETH | 0.03810461 | ||||
Withdraw | 13671947 | 1118 days ago | IN | 0 ETH | 0.03676761 | ||||
Claim Reward | 13651680 | 1121 days ago | IN | 0 ETH | 0.00846577 | ||||
Emergency Withdr... | 13650757 | 1121 days ago | IN | 0 ETH | 0.0067926 | ||||
Claim Reward | 13650320 | 1121 days ago | IN | 0 ETH | 0.0113497 | ||||
Claim Reward | 13650281 | 1121 days ago | IN | 0 ETH | 0.01803378 | ||||
Withdraw | 13649530 | 1121 days ago | IN | 0 ETH | 0.03283331 | ||||
Withdraw | 13642146 | 1123 days ago | IN | 0 ETH | 0.02491475 | ||||
Withdraw | 13642137 | 1123 days ago | IN | 0 ETH | 0.01069313 | ||||
Withdraw | 13642137 | 1123 days ago | IN | 0 ETH | 0.0254267 | ||||
Withdraw | 13642135 | 1123 days ago | IN | 0 ETH | 0.0150099 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Farm
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "./interfaces/IUniswapV2Pair.sol"; contract Farm is AccessControl, ReentrancyGuard { using SafeERC20 for IERC20; using SafeMath for uint256; /* ----------- LiquidityMining START----------------------- */ //bool public initialized; address[] public tokenAddresses; struct RewardToken { uint256 initReward; uint256 startTime; uint256 rewardRate; uint256 duration; uint256 periodFinish; mapping(address => uint256) userRewardPerTokenPaid; mapping(address => uint256) rewards; uint256 rewardPerTokenStored; uint256 lastUpdateTime; bool initialized; } mapping(address => RewardToken) public rewardTokens; bytes32 public constant COLLECTION = bytes32(keccak256("COLLECTION_ROLE")); /** * @dev Initialize contract. * @param _rewardToken The address * @param _initReward Initial reward */ function initialize( address _rewardToken, uint256 _initReward, uint256 _startTime, uint256 _duration ) external onlyRole(DEFAULT_ADMIN_ROLE) { require( _rewardToken != address(0), "StakingRewards: rewardToken cannot be null" ); require(_initReward != 0, "StakingRewards: initreward cannot be null"); require(_duration != 0, "StakingRewards: duration cannot be null"); require( rewardTokens[_rewardToken].initialized == false, "already initialized" ); RewardToken storage rewardToken = rewardTokens[_rewardToken]; rewardToken.initReward = _initReward; rewardToken.startTime = _startTime; rewardToken.initialized = true; tokenAddresses.push(_rewardToken); rewardToken.duration = (_duration * 24 hours); _notifyRewardAmount(_rewardToken, _initReward); } uint256 private _totalSupply; mapping(address => uint256) public _balances; event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); event EmergencyWithdraw(address indexed user, uint256 amount); function updateReward(address account) internal { RewardToken storage rewardTokenStruct; uint256 len = tokenAddresses.length; for (uint256 i = 0; i < len; i++) { rewardTokenStruct = rewardTokens[tokenAddresses[i]]; rewardTokenStruct.rewardPerTokenStored = rewardPerToken( tokenAddresses[i] ); rewardTokenStruct.lastUpdateTime = lastTimeRewardApplicable( tokenAddresses[i] ); if (account != address(0)) { rewardTokenStruct.rewards[account] = earned( tokenAddresses[i], account ); rewardTokenStruct.userRewardPerTokenPaid[ account ] = rewardTokenStruct.rewardPerTokenStored; } } } function getRewardTokens() public view returns (address[] memory) { return tokenAddresses; } function lastTimeRewardApplicable(address rewardTokenAddress) public view returns (uint256) { return Math.min( block.timestamp, rewardTokens[rewardTokenAddress].periodFinish ); } function rewardPerToken(address rewardTokenAddress) public view returns (uint256) { RewardToken storage rewardTokenStruct = rewardTokens[ rewardTokenAddress ]; if (_totalSupply == 0) { return rewardTokenStruct.rewardPerTokenStored; } return rewardTokenStruct.rewardPerTokenStored.add( lastTimeRewardApplicable(rewardTokenAddress) .sub(rewardTokenStruct.lastUpdateTime) .mul(rewardTokenStruct.rewardRate) .mul(1e18) .div(_totalSupply) ); } function earned(address rewardTokenAddress, address account) public view returns (uint256) { RewardToken storage rewardTokenStruct = rewardTokens[ rewardTokenAddress ]; uint256 amount = _balances[account] .mul( rewardPerToken(rewardTokenAddress).sub( rewardTokenStruct.userRewardPerTokenPaid[account] ) ) .div(1e36) .add(rewardTokenStruct.rewards[account]); return amount; } function claimReward(address rewardTokenAddress) external nonReentrant { updateReward(msg.sender); RewardToken storage rewardTokenStruct = rewardTokens[ rewardTokenAddress ]; uint256 reward = rewardTokenStruct.rewards[msg.sender]; require(reward > 0, "you have no reward"); IERC20 token = IERC20(rewardTokenAddress); require(token.transfer(msg.sender, reward), "Transfer error!"); rewardTokenStruct.rewards[msg.sender] = 0; //token.transferFrom(address(this), msg.sender, reward); emit RewardPaid(msg.sender, reward); } function getReward(address rewardTokenAddress) internal nonReentrant { RewardToken storage rewardTokenStruct = rewardTokens[ rewardTokenAddress ]; uint256 reward = rewardTokenStruct.rewards[msg.sender]; require(reward > 0, "you have no reward"); IERC20 token = IERC20(rewardTokenAddress); require(token.transfer(msg.sender, reward), "Transfer error!"); rewardTokenStruct.rewards[msg.sender] = 0; //token.transferFrom(address(this), msg.sender, reward); emit RewardPaid(msg.sender, reward); } function emergencyWithdraw(uint256 amount) external nonReentrant { require(amount > 0, "StakingRewards: Cannot withdraw 0"); require( _balances[msg.sender] >= amount, "Insufficient amount for emergency Withdraw" ); //updateReward(msg.sender); _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); _token.safeTransfer(msg.sender, amount); emit EmergencyWithdraw(msg.sender, amount); } function remove(uint256 index) external onlyRole(DEFAULT_ADMIN_ROLE) returns (address[] memory) { if (index >= tokenAddresses.length) return tokenAddresses; for (uint256 i = index; i < tokenAddresses.length - 1; i++) { tokenAddresses[i] = tokenAddresses[i + 1]; } tokenAddresses.pop(); return tokenAddresses; } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function _stake(uint256 _amount) private { _totalSupply = _totalSupply.add(_amount); _balances[msg.sender] = _balances[msg.sender].add(_amount); //stakingToken.safeTransferFrom(msg.sender, address(this), _amount); } function _withdraw(uint256 _amount) private { _totalSupply = _totalSupply.sub(_amount); _balances[msg.sender] = _balances[msg.sender].sub(_amount); //stakingToken.safeTransfer(msg.sender, _amount); } function _notifyRewardAmount(address rewardTokenAddress, uint256 reward) internal { updateReward(address(0)); RewardToken storage rewardTokenStruct = rewardTokens[ rewardTokenAddress ]; rewardTokenStruct.rewardRate = reward.mul(1e18).div( rewardTokenStruct.duration ); rewardTokenStruct.lastUpdateTime = block.timestamp; rewardTokenStruct.periodFinish = block.timestamp.add( rewardTokenStruct.duration ); emit RewardAdded(reward); } function dailyRewardApy(address token) external view returns (uint256) { uint256 rate = rewardTokens[token].rewardRate; uint256 dailyReward = rate.div(1e18); return (dailyReward * 86400); } /* ----------- LiquidityMining START----------------------- */ /* ---------- FARMING Variables --------------------*/ struct Staker { uint256 amount; uint256 lpAmount; uint256 lpToSepa; uint256 points; uint256 timestamp; bool isExist; bool farm; bool lp; } uint256 public total; uint256 immutable fixedConstantPerToken; bytes32 public constant WITHDRAW_ROLE = keccak256("WITHDRAW_ROLE"); mapping(address => Staker) public stakers; IERC20 private _token = IERC20(address(0)); /* ----------- FARMING EVENTS ----------------------- */ event SenderDeposited( address indexed _sender, uint256 _amount, uint256 _timestamp ); event SenderWithdrawed( address indexed _sender, uint256 _amount, uint256 _timestamp ); event GivenPoints(address indexed _address, uint256 _point); event PaymentOccured(address indexed _buyer, uint256 _amount); /* ----------- FARM FUNCTIONS START ----------------------- */ constructor( IERC20 token, uint256 tokenMultiplier, address crowdsaleFactory ) { _token = token; fixedConstantPerToken = tokenMultiplier * 1e18; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, crowdsaleFactory); } function getTokenAddress() external view returns (address) { return address(_token); } function giveAway(address _address, uint256 points) external onlyRole(DEFAULT_ADMIN_ROLE) { stakers[_address].points = points; emit GivenPoints(_address, points); } function farmed(address sender) external view returns (uint256) { // Returns how many tokens in this account has farmed return (stakers[sender].amount); } function farmedStart(address sender) external view returns (uint256) { // Returns when this account started farming return (stakers[sender].timestamp); } function payment(address buyer, uint256 amount) external onlyRole(COLLECTION) returns (bool) { consolidate(buyer); Staker storage st = stakers[buyer]; require(st.points > 0, "accrued points equal to 0"); require(st.points >= amount, "Insufficient points!"); st.points -= amount; emit PaymentOccured(buyer, amount); return true; } function getConsolidatedRewards(address buyer) external view returns (uint256) { return stakers[buyer].points; } function rewardedPoints(address staker) public view returns (uint256) { Staker storage st = stakers[staker]; uint256 _seconds = block.timestamp.sub(st.timestamp); uint256 earnPerSec = fixedConstantPerToken / (60 * 60 * 24); uint256 result = (st.points + ((st.amount * earnPerSec) * _seconds) / 1e18) + _rewardedPointsLp(staker); return result; } function consolidate(address staker) internal { uint256 points = rewardedPoints(staker); stakers[staker].points = points; stakers[staker].timestamp = block.timestamp; } function deposit(uint256 amount) external nonReentrant { require(amount > 0, "Insufficient amount"); require( _token.balanceOf(msg.sender) >= amount, "Insufficient amount for deposit" ); _setupRole(WITHDRAW_ROLE, msg.sender); address sender = msg.sender; // Staker memory stakerData = stakers[sender]; _token.safeTransferFrom(sender, address(this), amount); consolidate(sender); total = total + amount; stakers[sender].amount += amount; stakers[sender].farm = true; updateReward(msg.sender); _stake(amount); // solium-disable-next-line security/no-block-members emit SenderDeposited(sender, amount, block.timestamp); } function withdraw(uint256 amount) public { updateReward(msg.sender); address sender = msg.sender; require(amount > 0, "amount cannot be zero!"); require(stakers[sender].amount >= amount, "Insufficient amount!"); require(_token.transfer(address(sender), amount), "Transfer error!"); consolidate(sender); stakers[sender].amount -= amount; if (stakers[sender].amount == 0) { stakers[sender].farm = false; } total = total - amount; // solium-disable-next-line security/no-block-members _withdraw(amount); uint256 len = tokenAddresses.length; for (uint256 i = 0; i < len; i++) { uint256 reward = rewardTokens[tokenAddresses[i]].rewards[ msg.sender ]; if (reward > 0) { getReward(tokenAddresses[i]); } } emit SenderWithdrawed(sender, amount, block.timestamp); } /* ---------- LP Variables --------------------*/ IUniswapV2Pair uniPair; uint256 totalLp; /* ----------- LP EVENTS ----------------------- */ event LpDeposited( address indexed _sender, uint256 _lpAmount, uint256 _sepaAmount, uint256 _timestamp ); event LpWithdrawed( address indexed _sender, uint256 _lpAmount, uint256 _timestamp ); function setUniswapPairAddress(address _sepaWethPair) external onlyRole(DEFAULT_ADMIN_ROLE) { uniPair = IUniswapV2Pair(_sepaWethPair); } function _calcSepaToken(uint256 lpAmount) private view returns (uint256) { uint256 userLpRatio = (lpAmount * (1e36)) / uniPair.totalSupply(); (uint256 sepaReserve, , ) = uniPair.getReserves(); uint256 sepaAmount = (userLpRatio * sepaReserve) / (1e36); return sepaAmount; } function _rewardedPointsLp(address staker) private view returns (uint256) { Staker storage st = stakers[staker]; uint256 _seconds = block.timestamp.sub(st.timestamp); uint256 earnPerSec = fixedConstantPerToken / (60 * 60 * 24); return (((st.lpToSepa * earnPerSec) * _seconds) / 1e18) * 2; } function depositLp(uint256 lpAmount) external nonReentrant { require(lpAmount > 0, "Insufficient amount"); require( uniPair.balanceOf(msg.sender) >= lpAmount, "Insufficient amount for deposit" ); uint256 sepaAmount = _calcSepaToken(lpAmount); require(sepaAmount > 0, "Insufficient amount"); address sender = msg.sender; uniPair.transferFrom(sender, address(this), lpAmount); consolidate(sender); totalLp += lpAmount; stakers[sender].lpToSepa += sepaAmount; stakers[sender].lpAmount += lpAmount; stakers[sender].lp = true; emit LpDeposited(sender, lpAmount, sepaAmount, block.timestamp); } function withdrawLp(uint256 lpAmount) public { address sender = msg.sender; require(lpAmount > 0, "amount cannot be zero!"); require(stakers[sender].lpAmount >= lpAmount, "Insufficient amount!"); require(uniPair.transfer(address(sender), lpAmount), "Transfer error!"); consolidate(sender); stakers[sender].lpAmount -= lpAmount; if (stakers[sender].lpAmount == 0) { stakers[sender].lp = false; stakers[sender].lpToSepa = 0; } else { stakers[sender].lpToSepa = _calcSepaToken(stakers[sender].lpAmount); } totalLp = totalLp - lpAmount; emit LpWithdrawed(sender, lpAmount, block.timestamp); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @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 a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute. return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
/** *Submitted for verification at Etherscan.io on 2020-05-05 */ // File: contracts/interfaces/IUniswapV2Pair.sol pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenMultiplier","type":"uint256"},{"internalType":"address","name":"crowdsaleFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_point","type":"uint256"}],"name":"GivenPoints","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_lpAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_sepaAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"LpDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_lpAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"LpWithdrawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PaymentOccured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"SenderDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"SenderWithdrawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"COLLECTION","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"dailyRewardApy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"depositLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"farmed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"farmedStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"getConsolidatedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"points","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_initReward","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"payment","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"remove","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardTokens","outputs":[{"internalType":"uint256","name":"initReward","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"rewardedPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sepaWethPair","type":"address"}],"name":"setUniswapPairAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lpAmount","type":"uint256"},{"internalType":"uint256","name":"lpToSepa","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bool","name":"isExist","type":"bool"},{"internalType":"bool","name":"farm","type":"bool"},{"internalType":"bool","name":"lp","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"withdrawLp","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052600880546001600160a01b03191690553480156200002157600080fd5b5060405162002f8038038062002f8083398101604081905262000044916200014d565b60018055600880546001600160a01b0319166001600160a01b0385161790556200007782670de0b6b3a764000062000194565b608052620000876000336200009d565b620000946000826200009d565b505050620001d9565b620000a98282620000ad565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000a9576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001093390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008060006060848603121562000162578283fd5b83516200016f81620001c0565b6020850151604086015191945092506200018981620001c0565b809150509250925092565b6000816000190483118215151615620001bb57634e487b7160e01b81526011600452602481fd5b500290565b6001600160a01b0381168114620001d657600080fd5b50565b608051612d84620001fc6000396000818161124801526123130152612d846000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806370a0823111610130578063c30da48e116100b8578063dae7292a1161007c578063dae7292a146105b7578063e02023a1146105ca578063e5df8b84146105f1578063f122977714610604578063f5ab16cc1461061757600080fd5b8063c30da48e14610563578063c4f59f9b14610576578063ca8001441461057e578063d279c19114610591578063d547741f146105a457600080fd5b8063959afa15116100ff578063959afa15146104f6578063a07ddb3e14610509578063a217fddf14610535578063b6b55f251461053d578063bd7644b81461055057600080fd5b806370a082311461040d5780638c8794b9146104365780639168ae721461044957806391d14854146104e357600080fd5b806338066f3a116101b35780635312ea8e116101825780635312ea8e1461038d578063638634ee146103a057806367a09c23146103b3578063697b2365146103c65780636ebcf607146103ed57600080fd5b806338066f3a146103055780634216f972146103315780634cc822151461035a5780634ec81af11461037a57600080fd5b8063248a9ca3116101fa578063248a9ca31461029e5780632ddbd13a146102c15780632e1a7d4d146102ca5780632f2ff15d146102df57806336568abe146102f257600080fd5b806301ffc9a71461022c57806310fe9ae81461025457806318160ddd14610279578063211dc32d1461028b575b600080fd5b61023f61023a366004612a40565b6106ab565b60405190151581526020015b60405180910390f35b6008546001600160a01b03165b6040516001600160a01b03909116815260200161024b565b6004545b60405190815260200161024b565b61027d610299366004612953565b6106e2565b61027d6102ac366004612a06565b60009081526020819052604090206001015490565b61027d60065481565b6102dd6102d8366004612a06565b610780565b005b6102dd6102ed366004612a1e565b610a73565b6102dd610300366004612a1e565b610a9e565b61027d610313366004612939565b6001600160a01b031660009081526007602052604090206004015490565b61027d61033f366004612939565b6001600160a01b031660009081526007602052604090205490565b61036d610368366004612a06565b610b1c565b60405161024b9190612b5f565b6102dd6103883660046129ae565b610cf1565b6102dd61039b366004612a06565b610f1b565b61027d6103ae366004612939565b61109e565b61023f6103c1366004612985565b6110c5565b61027d7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c81565b61027d6103fb366004612939565b60056020526000908152604090205481565b61027d61041b366004612939565b6001600160a01b031660009081526005602052604090205490565b61027d610444366004612939565b611211565b6104a2610457366004612939565b600760205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff808216916101008104821691620100009091041688565b6040805198895260208901979097529587019490945260608601929092526080850152151560a0840152151560c0830152151560e08201526101000161024b565b61023f6104f1366004612a1e565b6112ca565b6102dd610504366004612a06565b6112f3565b61027d610517366004612939565b6001600160a01b031660009081526007602052604090206003015490565b61027d600081565b6102dd61054b366004612a06565b611560565b6102dd61055e366004612939565b61177e565b61027d610571366004612939565b6117ad565b61036d6117f3565b6102dd61058c366004612985565b611855565b6102dd61059f366004612939565b6118b1565b6102dd6105b2366004612a1e565b611a43565b6102dd6105c5366004612a06565b611a69565b61027d7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b6102616105ff366004612a06565b611d30565b61027d610612366004612939565b611d5a565b61066e610625366004612939565b6003602081905260009182526040909120805460018201546002830154938301546004840154600785015460088601546009909601549496939593949293919290919060ff1688565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c0830152151560e08201526101000161024b565b60006001600160e01b03198216637965db0b60e01b14806106dc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600160a01b03808316600090815260036020908152604080832093851683526006840182528083205460058501909252822054919291839161077791610771906ec097ce7bc90715b34b9f10000000009061076b9061074c906107468c611d5a565b90611dc9565b6001600160a01b038a1660009081526005602052604090205490611dd5565b90611de1565b90611ded565b95945050505050565b61078933611df9565b33816107d55760405162461bcd60e51b8152602060048201526016602482015275616d6f756e742063616e6e6f74206265207a65726f2160501b60448201526064015b60405180910390fd5b6001600160a01b0381166000908152600760205260409020548211156108345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420616d6f756e742160601b60448201526064016107cc565b60085460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b15801561088257600080fd5b505af1158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba91906129e6565b6108d65760405162461bcd60e51b81526004016107cc90612bdf565b6108df81611f78565b6001600160a01b03811660009081526007602052604081208054849290610907908490612cc3565b90915550506001600160a01b03811660009081526007602052604090205461094e576001600160a01b0381166000908152600760205260409020600501805461ff00191690555b8160065461095c9190612cc3565b60065561096882611fae565b60025460005b81811015610a29576000600360006002848154811061099d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812033825260060190925290205490508015610a1657610a16600283815481106109fc57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316611feb565b5080610a2181612d1d565b91505061096e565b50604080518481524260208201526001600160a01b038416917fcea4a8298dbe2139215cb1067c1f72633f2161ac133d5222ed02607541431a9e91015b60405180910390a2505050565b600082815260208190526040902060010154610a8f813361207e565b610a9983836120e2565b505050565b6001600160a01b0381163314610b0e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016107cc565b610b188282612166565b5050565b60606000610b2a813361207e565b6002548310610b95576002805480602002602001604051908101604052809291908181526020018280548015610b8957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b6b575b50505050509150610ceb565b825b600254610ba690600190612cc3565b811015610c4d576002610bba826001612c6c565b81548110610bd857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600280546001600160a01b039092169183908110610c1257634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905580610c4581612d1d565b915050610b97565b506002805480610c6d57634e487b7160e01b600052603160045260246000fd5b6000828152602090819020820160001990810180546001600160a01b031916905590910190915560028054604080518285028101850190915281815292830182828015610ce357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610cc5575b505050505091505b50919050565b6000610cfd813361207e565b6001600160a01b038516610d665760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e67526577617264733a20726577617264546f6b656e2063616e6e6044820152691bdd081899481b9d5b1b60b21b60648201526084016107cc565b83610dc55760405162461bcd60e51b815260206004820152602960248201527f5374616b696e67526577617264733a20696e69747265776172642063616e6e6f6044820152681d081899481b9d5b1b60ba1b60648201526084016107cc565b81610e225760405162461bcd60e51b815260206004820152602760248201527f5374616b696e67526577617264733a206475726174696f6e2063616e6e6f74206044820152661899481b9d5b1b60ca1b60648201526084016107cc565b6001600160a01b03851660009081526003602052604090206009015460ff1615610e845760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016107cc565b6001600160a01b0385166000818152600360205260408120868155600180820187905560098201805460ff1916821790556002805491820181559092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b031916909217909155610f048362015180612ca4565b6003820155610f1386866121cb565b505050505050565b60026001541415610f3e5760405162461bcd60e51b81526004016107cc90612c35565b600260015580610f9a5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e67526577617264733a2043616e6e6f74207769746864726177206044820152600360fc1b60648201526084016107cc565b3360009081526005602052604090205481111561100c5760405162461bcd60e51b815260206004820152602a60248201527f496e73756666696369656e7420616d6f756e7420666f7220656d657267656e636044820152697920576974686472617760b01b60648201526084016107cc565b6004546110199082611dc9565b600455336000908152600560205260409020546110369082611dc9565b33600081815260056020526040902091909155600854611062916001600160a01b039091169083612263565b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25060018055565b6001600160a01b0381166000908152600360205260408120600401546106dc9042906122c6565b60007f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c6110f2813361207e565b6110fb84611f78565b6001600160a01b038416600090815260076020526040902060038101546111645760405162461bcd60e51b815260206004820152601960248201527f6163637275656420706f696e747320657175616c20746f20300000000000000060448201526064016107cc565b83816003015410156111af5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420706f696e74732160601b60448201526064016107cc565b838160030160008282546111c39190612cc3565b90915550506040518481526001600160a01b038616907fcf2fe85adda34af12c3dbee53b8a72e2e9146f848eb42670887ffc19f68bb9459060200160405180910390a2506001949350505050565b6001600160a01b03811660009081526007602052604081206004810154829061123b904290611dc9565b9050600061126c620151807f0000000000000000000000000000000000000000000000000000000000000000612c84565b90506000611279866122dc565b670de0b6b3a7640000848487600001546112939190612ca4565b61129d9190612ca4565b6112a79190612c84565b85600301546112b69190612c6c565b6112c09190612c6c565b9695505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b338161133a5760405162461bcd60e51b8152602060048201526016602482015275616d6f756e742063616e6e6f74206265207a65726f2160501b60448201526064016107cc565b6001600160a01b03811660009081526007602052604090206001015482111561139c5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420616d6f756e742160601b60448201526064016107cc565b60095460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b1580156113ea57600080fd5b505af11580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142291906129e6565b61143e5760405162461bcd60e51b81526004016107cc90612bdf565b61144781611f78565b6001600160a01b03811660009081526007602052604081206001018054849290611472908490612cc3565b90915550506001600160a01b0381166000908152600760205260409020600101546114c6576001600160a01b038116600090815260076020526040812060058101805462ff00001916905560020155611508565b6001600160a01b0381166000908152600760205260409020600101546114eb90612372565b6001600160a01b0382166000908152600760205260409020600201555b81600a546115169190612cc3565b600a55604080518381524260208201526001600160a01b038316917f7156a628e80984c633d11e59d687441b8a41caa15eef64e898f9de738dac85d3910160405180910390a25050565b600260015414156115835760405162461bcd60e51b81526004016107cc90612c35565b6002600155806115a55760405162461bcd60e51b81526004016107cc90612c08565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156115e857600080fd5b505afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190612ab6565b101561166e5760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e7420616d6f756e7420666f72206465706f7369740060448201526064016107cc565b6116987f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec336124db565b60085433906116b2906001600160a01b03168230856124e5565b6116bb81611f78565b816006546116c99190612c6c565b6006556001600160a01b038116600090815260076020526040812080548492906116f4908490612c6c565b90915550506001600160a01b0381166000908152600760205260409020600501805461ff00191661010017905561172a33611df9565b6117338261251d565b604080518381524260208201526001600160a01b038316917f541aa882ab8c356c07be43f88ec69c8493b107de3f42b57436aee2a0cabb131a910160405180910390a2505060018055565b600061178a813361207e565b50600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260036020526040812060020154816117dc82670de0b6b3a7640000611de1565b90506117eb8162015180612ca4565b949350505050565b6060600280548060200260200160405190810160405280929190818152602001828054801561184b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161182d575b5050505050905090565b6000611861813361207e565b6001600160a01b03831660008181526007602052604090819020600301849055517fc212a28ce0b1deac43d913831030c91f107d710d3408bc16bfc7157f97b588ec90610a669085815260200190565b600260015414156118d45760405162461bcd60e51b81526004016107cc90612c35565b60026001556118e233611df9565b6001600160a01b038116600090815260036020908152604080832033845260068101909252909120548061194d5760405162461bcd60e51b81526020600482015260126024820152711e5bdd481a185d99481b9bc81c995dd85c9960721b60448201526064016107cc565b60405163a9059cbb60e01b81523360048201526024810182905283906001600160a01b0382169063a9059cbb90604401602060405180830381600087803b15801561199757600080fd5b505af11580156119ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cf91906129e6565b6119eb5760405162461bcd60e51b81526004016107cc90612bdf565b33600081815260068501602052604080822091909155517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690611a319085815260200190565b60405180910390a25050600180555050565b600082815260208190526040902060010154611a5f813361207e565b610a998383612166565b60026001541415611a8c5760405162461bcd60e51b81526004016107cc90612c35565b600260015580611aae5760405162461bcd60e51b81526004016107cc90612c08565b6009546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b299190612ab6565b1015611b775760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e7420616d6f756e7420666f72206465706f7369740060448201526064016107cc565b6000611b8282612372565b905060008111611ba45760405162461bcd60e51b81526004016107cc90612c08565b6009546040516323b872dd60e01b8152336004820181905230602483015260448201859052916001600160a01b0316906323b872dd90606401602060405180830381600087803b158015611bf757600080fd5b505af1158015611c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2f91906129e6565b50611c3981611f78565b82600a6000828254611c4b9190612c6c565b90915550506001600160a01b03811660009081526007602052604081206002018054849290611c7b908490612c6c565b90915550506001600160a01b03811660009081526007602052604081206001018054859290611cab908490612c6c565b90915550506001600160a01b03811660008181526007602052604090819020600501805462ff0000191662010000179055517f1508d704d3ababd41a15d0d5298b65cdd7fd16c1c76d47852a99fba76570a11b90611d1f908690869042909283526020830191909152604082015260600190565b60405180910390a250506001805550565b60028181548110611d4057600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b0381166000908152600360205260408120600454611d83576007015492915050565b611dc2611db760045461076b670de0b6b3a7640000611db18660020154611db188600801546107468c61109e565b90611dd5565b600783015490611ded565b9392505050565b6000611dc28284612cc3565b6000611dc28284612ca4565b6000611dc28284612c84565b6000611dc28284612c6c565b600254600090815b81811015611f72576003600060028381548110611e2e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902060028054919450611e959183908110611e7b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316611d5a565b8360070181905550611edb60028281548110611ec157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031661109e565b60088401556001600160a01b03841615611f6057611f2e60028281548110611f1357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316856106e2565b6001600160a01b0385166000908152600685016020908152604080832093909355600786015460058701909152919020555b80611f6a81612d1d565b915050611e01565b50505050565b6000611f8382611211565b6001600160a01b03909216600090815260076020526040902060038101929092555042600490910155565b600454611fbb9082611dc9565b60045533600090815260056020526040902054611fd89082611dc9565b3360009081526005602052604090205550565b6002600154141561200e5760405162461bcd60e51b81526004016107cc90612c35565b60026001556001600160a01b038116600090815260036020908152604080832033845260068101909252909120548061194d5760405162461bcd60e51b81526020600482015260126024820152711e5bdd481a185d99481b9bc81c995dd85c9960721b60448201526064016107cc565b61208882826112ca565b610b18576120a0816001600160a01b03166014612547565b6120ab836020612547565b6040516020016120bc929190612aea565b60408051601f198184030181529082905262461bcd60e51b82526107cc91600401612bac565b6120ec82826112ca565b610b18576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61217082826112ca565b15610b18576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6121d56000611df9565b6001600160a01b03821660009081526003602081905260409091209081015461220a9061076b84670de0b6b3a7640000611dd5565b6002820155426008820181905560038201546122269190611ded565b60048201556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6040516001600160a01b038316602482015260448101829052610a9990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612729565b60008183106122d55781611dc2565b5090919050565b6001600160a01b038116600090815260076020526040812060048101548290612306904290611dc9565b90506000612337620151807f0000000000000000000000000000000000000000000000000000000000000000612c84565b9050670de0b6b3a7640000828285600201546123539190612ca4565b61235d9190612ca4565b6123679190612c84565b610777906002612ca4565b600080600960009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156123c357600080fd5b505afa1580156123d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fb9190612ab6565b612414846ec097ce7bc90715b34b9f1000000000612ca4565b61241e9190612c84565b90506000600960009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561247057600080fd5b505afa158015612484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a89190612a68565b50506001600160701b0316905060006ec097ce7bc90715b34b9f10000000006124d18385612ca4565b6107779190612c84565b610b1882826120e2565b6040516001600160a01b0380851660248301528316604482015260648101829052611f729085906323b872dd60e01b9060840161228f565b60045461252a9082611ded565b60045533600090815260056020526040902054611fd89082611ded565b60606000612556836002612ca4565b612561906002612c6c565b67ffffffffffffffff81111561258757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125b1576020820181803683370190505b509050600360fc1b816000815181106125da57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061261757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061263b846002612ca4565b612646906001612c6c565b90505b60018111156126da576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061268857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106126ac57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126d381612d06565b9050612649565b508315611dc25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107cc565b600061277e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127fb9092919063ffffffff16565b805190915015610a99578080602001905181019061279c91906129e6565b610a995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107cc565b60606117eb848460008585843b6128545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107cc565b600080866001600160a01b031685876040516128709190612ace565b60006040518083038185875af1925050503d80600081146128ad576040519150601f19603f3d011682016040523d82523d6000602084013e6128b2565b606091505b50915091506128c28282866128cd565b979650505050505050565b606083156128dc575081611dc2565b8251156128ec5782518084602001fd5b8160405162461bcd60e51b81526004016107cc9190612bac565b80356001600160a01b038116811461291d57600080fd5b919050565b80516001600160701b038116811461291d57600080fd5b60006020828403121561294a578081fd5b611dc282612906565b60008060408385031215612965578081fd5b61296e83612906565b915061297c60208401612906565b90509250929050565b60008060408385031215612997578182fd5b6129a083612906565b946020939093013593505050565b600080600080608085870312156129c3578182fd5b6129cc85612906565b966020860135965060408601359560600135945092505050565b6000602082840312156129f7578081fd5b81518015158114611dc2578182fd5b600060208284031215612a17578081fd5b5035919050565b60008060408385031215612a30578182fd5b8235915061297c60208401612906565b600060208284031215612a51578081fd5b81356001600160e01b031981168114611dc2578182fd5b600080600060608486031215612a7c578283fd5b612a8584612922565b9250612a9360208501612922565b9150604084015163ffffffff81168114612aab578182fd5b809150509250925092565b600060208284031215612ac7578081fd5b5051919050565b60008251612ae0818460208701612cda565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612b22816017850160208801612cda565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612b53816028840160208801612cda565b01602801949350505050565b6020808252825182820181905260009190848201906040850190845b81811015612ba05783516001600160a01b031683529284019291840191600101612b7b565b50909695505050505050565b6020815260008251806020840152612bcb816040850160208701612cda565b601f01601f19169190910160400192915050565b6020808252600f908201526e5472616e73666572206572726f722160881b604082015260600190565b602080825260139082015272125b9cdd59999a58da595b9d08185b5bdd5b9d606a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612c7f57612c7f612d38565b500190565b600082612c9f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612cbe57612cbe612d38565b500290565b600082821015612cd557612cd5612d38565b500390565b60005b83811015612cf5578181015183820152602001612cdd565b83811115611f725750506000910152565b600081612d1557612d15612d38565b506000190190565b6000600019821415612d3157612d31612d38565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122048630314b1a9cb9641c6ffd5bfd75da59b2df5c155b11dd4b5535a647b975bb364736f6c6343000804003300000000000000000000000010994aa2fb8e6ba5d9fb2bc127ff228c4fe6167f0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000900dd2a4167e55bc219ce82f679f4aee39efa0e5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c806370a0823111610130578063c30da48e116100b8578063dae7292a1161007c578063dae7292a146105b7578063e02023a1146105ca578063e5df8b84146105f1578063f122977714610604578063f5ab16cc1461061757600080fd5b8063c30da48e14610563578063c4f59f9b14610576578063ca8001441461057e578063d279c19114610591578063d547741f146105a457600080fd5b8063959afa15116100ff578063959afa15146104f6578063a07ddb3e14610509578063a217fddf14610535578063b6b55f251461053d578063bd7644b81461055057600080fd5b806370a082311461040d5780638c8794b9146104365780639168ae721461044957806391d14854146104e357600080fd5b806338066f3a116101b35780635312ea8e116101825780635312ea8e1461038d578063638634ee146103a057806367a09c23146103b3578063697b2365146103c65780636ebcf607146103ed57600080fd5b806338066f3a146103055780634216f972146103315780634cc822151461035a5780634ec81af11461037a57600080fd5b8063248a9ca3116101fa578063248a9ca31461029e5780632ddbd13a146102c15780632e1a7d4d146102ca5780632f2ff15d146102df57806336568abe146102f257600080fd5b806301ffc9a71461022c57806310fe9ae81461025457806318160ddd14610279578063211dc32d1461028b575b600080fd5b61023f61023a366004612a40565b6106ab565b60405190151581526020015b60405180910390f35b6008546001600160a01b03165b6040516001600160a01b03909116815260200161024b565b6004545b60405190815260200161024b565b61027d610299366004612953565b6106e2565b61027d6102ac366004612a06565b60009081526020819052604090206001015490565b61027d60065481565b6102dd6102d8366004612a06565b610780565b005b6102dd6102ed366004612a1e565b610a73565b6102dd610300366004612a1e565b610a9e565b61027d610313366004612939565b6001600160a01b031660009081526007602052604090206004015490565b61027d61033f366004612939565b6001600160a01b031660009081526007602052604090205490565b61036d610368366004612a06565b610b1c565b60405161024b9190612b5f565b6102dd6103883660046129ae565b610cf1565b6102dd61039b366004612a06565b610f1b565b61027d6103ae366004612939565b61109e565b61023f6103c1366004612985565b6110c5565b61027d7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c81565b61027d6103fb366004612939565b60056020526000908152604090205481565b61027d61041b366004612939565b6001600160a01b031660009081526005602052604090205490565b61027d610444366004612939565b611211565b6104a2610457366004612939565b600760205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff808216916101008104821691620100009091041688565b6040805198895260208901979097529587019490945260608601929092526080850152151560a0840152151560c0830152151560e08201526101000161024b565b61023f6104f1366004612a1e565b6112ca565b6102dd610504366004612a06565b6112f3565b61027d610517366004612939565b6001600160a01b031660009081526007602052604090206003015490565b61027d600081565b6102dd61054b366004612a06565b611560565b6102dd61055e366004612939565b61177e565b61027d610571366004612939565b6117ad565b61036d6117f3565b6102dd61058c366004612985565b611855565b6102dd61059f366004612939565b6118b1565b6102dd6105b2366004612a1e565b611a43565b6102dd6105c5366004612a06565b611a69565b61027d7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b6102616105ff366004612a06565b611d30565b61027d610612366004612939565b611d5a565b61066e610625366004612939565b6003602081905260009182526040909120805460018201546002830154938301546004840154600785015460088601546009909601549496939593949293919290919060ff1688565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c0830152151560e08201526101000161024b565b60006001600160e01b03198216637965db0b60e01b14806106dc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600160a01b03808316600090815260036020908152604080832093851683526006840182528083205460058501909252822054919291839161077791610771906ec097ce7bc90715b34b9f10000000009061076b9061074c906107468c611d5a565b90611dc9565b6001600160a01b038a1660009081526005602052604090205490611dd5565b90611de1565b90611ded565b95945050505050565b61078933611df9565b33816107d55760405162461bcd60e51b8152602060048201526016602482015275616d6f756e742063616e6e6f74206265207a65726f2160501b60448201526064015b60405180910390fd5b6001600160a01b0381166000908152600760205260409020548211156108345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420616d6f756e742160601b60448201526064016107cc565b60085460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b15801561088257600080fd5b505af1158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba91906129e6565b6108d65760405162461bcd60e51b81526004016107cc90612bdf565b6108df81611f78565b6001600160a01b03811660009081526007602052604081208054849290610907908490612cc3565b90915550506001600160a01b03811660009081526007602052604090205461094e576001600160a01b0381166000908152600760205260409020600501805461ff00191690555b8160065461095c9190612cc3565b60065561096882611fae565b60025460005b81811015610a29576000600360006002848154811061099d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812033825260060190925290205490508015610a1657610a16600283815481106109fc57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316611feb565b5080610a2181612d1d565b91505061096e565b50604080518481524260208201526001600160a01b038416917fcea4a8298dbe2139215cb1067c1f72633f2161ac133d5222ed02607541431a9e91015b60405180910390a2505050565b600082815260208190526040902060010154610a8f813361207e565b610a9983836120e2565b505050565b6001600160a01b0381163314610b0e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016107cc565b610b188282612166565b5050565b60606000610b2a813361207e565b6002548310610b95576002805480602002602001604051908101604052809291908181526020018280548015610b8957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b6b575b50505050509150610ceb565b825b600254610ba690600190612cc3565b811015610c4d576002610bba826001612c6c565b81548110610bd857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600280546001600160a01b039092169183908110610c1257634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905580610c4581612d1d565b915050610b97565b506002805480610c6d57634e487b7160e01b600052603160045260246000fd5b6000828152602090819020820160001990810180546001600160a01b031916905590910190915560028054604080518285028101850190915281815292830182828015610ce357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610cc5575b505050505091505b50919050565b6000610cfd813361207e565b6001600160a01b038516610d665760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e67526577617264733a20726577617264546f6b656e2063616e6e6044820152691bdd081899481b9d5b1b60b21b60648201526084016107cc565b83610dc55760405162461bcd60e51b815260206004820152602960248201527f5374616b696e67526577617264733a20696e69747265776172642063616e6e6f6044820152681d081899481b9d5b1b60ba1b60648201526084016107cc565b81610e225760405162461bcd60e51b815260206004820152602760248201527f5374616b696e67526577617264733a206475726174696f6e2063616e6e6f74206044820152661899481b9d5b1b60ca1b60648201526084016107cc565b6001600160a01b03851660009081526003602052604090206009015460ff1615610e845760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016107cc565b6001600160a01b0385166000818152600360205260408120868155600180820187905560098201805460ff1916821790556002805491820181559092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b031916909217909155610f048362015180612ca4565b6003820155610f1386866121cb565b505050505050565b60026001541415610f3e5760405162461bcd60e51b81526004016107cc90612c35565b600260015580610f9a5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e67526577617264733a2043616e6e6f74207769746864726177206044820152600360fc1b60648201526084016107cc565b3360009081526005602052604090205481111561100c5760405162461bcd60e51b815260206004820152602a60248201527f496e73756666696369656e7420616d6f756e7420666f7220656d657267656e636044820152697920576974686472617760b01b60648201526084016107cc565b6004546110199082611dc9565b600455336000908152600560205260409020546110369082611dc9565b33600081815260056020526040902091909155600854611062916001600160a01b039091169083612263565b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25060018055565b6001600160a01b0381166000908152600360205260408120600401546106dc9042906122c6565b60007f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c6110f2813361207e565b6110fb84611f78565b6001600160a01b038416600090815260076020526040902060038101546111645760405162461bcd60e51b815260206004820152601960248201527f6163637275656420706f696e747320657175616c20746f20300000000000000060448201526064016107cc565b83816003015410156111af5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420706f696e74732160601b60448201526064016107cc565b838160030160008282546111c39190612cc3565b90915550506040518481526001600160a01b038616907fcf2fe85adda34af12c3dbee53b8a72e2e9146f848eb42670887ffc19f68bb9459060200160405180910390a2506001949350505050565b6001600160a01b03811660009081526007602052604081206004810154829061123b904290611dc9565b9050600061126c620151807f0000000000000000000000000000000000000000000000056bc75e2d63100000612c84565b90506000611279866122dc565b670de0b6b3a7640000848487600001546112939190612ca4565b61129d9190612ca4565b6112a79190612c84565b85600301546112b69190612c6c565b6112c09190612c6c565b9695505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b338161133a5760405162461bcd60e51b8152602060048201526016602482015275616d6f756e742063616e6e6f74206265207a65726f2160501b60448201526064016107cc565b6001600160a01b03811660009081526007602052604090206001015482111561139c5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e7420616d6f756e742160601b60448201526064016107cc565b60095460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b1580156113ea57600080fd5b505af11580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142291906129e6565b61143e5760405162461bcd60e51b81526004016107cc90612bdf565b61144781611f78565b6001600160a01b03811660009081526007602052604081206001018054849290611472908490612cc3565b90915550506001600160a01b0381166000908152600760205260409020600101546114c6576001600160a01b038116600090815260076020526040812060058101805462ff00001916905560020155611508565b6001600160a01b0381166000908152600760205260409020600101546114eb90612372565b6001600160a01b0382166000908152600760205260409020600201555b81600a546115169190612cc3565b600a55604080518381524260208201526001600160a01b038316917f7156a628e80984c633d11e59d687441b8a41caa15eef64e898f9de738dac85d3910160405180910390a25050565b600260015414156115835760405162461bcd60e51b81526004016107cc90612c35565b6002600155806115a55760405162461bcd60e51b81526004016107cc90612c08565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156115e857600080fd5b505afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190612ab6565b101561166e5760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e7420616d6f756e7420666f72206465706f7369740060448201526064016107cc565b6116987f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec336124db565b60085433906116b2906001600160a01b03168230856124e5565b6116bb81611f78565b816006546116c99190612c6c565b6006556001600160a01b038116600090815260076020526040812080548492906116f4908490612c6c565b90915550506001600160a01b0381166000908152600760205260409020600501805461ff00191661010017905561172a33611df9565b6117338261251d565b604080518381524260208201526001600160a01b038316917f541aa882ab8c356c07be43f88ec69c8493b107de3f42b57436aee2a0cabb131a910160405180910390a2505060018055565b600061178a813361207e565b50600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260036020526040812060020154816117dc82670de0b6b3a7640000611de1565b90506117eb8162015180612ca4565b949350505050565b6060600280548060200260200160405190810160405280929190818152602001828054801561184b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161182d575b5050505050905090565b6000611861813361207e565b6001600160a01b03831660008181526007602052604090819020600301849055517fc212a28ce0b1deac43d913831030c91f107d710d3408bc16bfc7157f97b588ec90610a669085815260200190565b600260015414156118d45760405162461bcd60e51b81526004016107cc90612c35565b60026001556118e233611df9565b6001600160a01b038116600090815260036020908152604080832033845260068101909252909120548061194d5760405162461bcd60e51b81526020600482015260126024820152711e5bdd481a185d99481b9bc81c995dd85c9960721b60448201526064016107cc565b60405163a9059cbb60e01b81523360048201526024810182905283906001600160a01b0382169063a9059cbb90604401602060405180830381600087803b15801561199757600080fd5b505af11580156119ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cf91906129e6565b6119eb5760405162461bcd60e51b81526004016107cc90612bdf565b33600081815260068501602052604080822091909155517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690611a319085815260200190565b60405180910390a25050600180555050565b600082815260208190526040902060010154611a5f813361207e565b610a998383612166565b60026001541415611a8c5760405162461bcd60e51b81526004016107cc90612c35565b600260015580611aae5760405162461bcd60e51b81526004016107cc90612c08565b6009546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b299190612ab6565b1015611b775760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e7420616d6f756e7420666f72206465706f7369740060448201526064016107cc565b6000611b8282612372565b905060008111611ba45760405162461bcd60e51b81526004016107cc90612c08565b6009546040516323b872dd60e01b8152336004820181905230602483015260448201859052916001600160a01b0316906323b872dd90606401602060405180830381600087803b158015611bf757600080fd5b505af1158015611c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2f91906129e6565b50611c3981611f78565b82600a6000828254611c4b9190612c6c565b90915550506001600160a01b03811660009081526007602052604081206002018054849290611c7b908490612c6c565b90915550506001600160a01b03811660009081526007602052604081206001018054859290611cab908490612c6c565b90915550506001600160a01b03811660008181526007602052604090819020600501805462ff0000191662010000179055517f1508d704d3ababd41a15d0d5298b65cdd7fd16c1c76d47852a99fba76570a11b90611d1f908690869042909283526020830191909152604082015260600190565b60405180910390a250506001805550565b60028181548110611d4057600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b0381166000908152600360205260408120600454611d83576007015492915050565b611dc2611db760045461076b670de0b6b3a7640000611db18660020154611db188600801546107468c61109e565b90611dd5565b600783015490611ded565b9392505050565b6000611dc28284612cc3565b6000611dc28284612ca4565b6000611dc28284612c84565b6000611dc28284612c6c565b600254600090815b81811015611f72576003600060028381548110611e2e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902060028054919450611e959183908110611e7b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316611d5a565b8360070181905550611edb60028281548110611ec157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031661109e565b60088401556001600160a01b03841615611f6057611f2e60028281548110611f1357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316856106e2565b6001600160a01b0385166000908152600685016020908152604080832093909355600786015460058701909152919020555b80611f6a81612d1d565b915050611e01565b50505050565b6000611f8382611211565b6001600160a01b03909216600090815260076020526040902060038101929092555042600490910155565b600454611fbb9082611dc9565b60045533600090815260056020526040902054611fd89082611dc9565b3360009081526005602052604090205550565b6002600154141561200e5760405162461bcd60e51b81526004016107cc90612c35565b60026001556001600160a01b038116600090815260036020908152604080832033845260068101909252909120548061194d5760405162461bcd60e51b81526020600482015260126024820152711e5bdd481a185d99481b9bc81c995dd85c9960721b60448201526064016107cc565b61208882826112ca565b610b18576120a0816001600160a01b03166014612547565b6120ab836020612547565b6040516020016120bc929190612aea565b60408051601f198184030181529082905262461bcd60e51b82526107cc91600401612bac565b6120ec82826112ca565b610b18576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61217082826112ca565b15610b18576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6121d56000611df9565b6001600160a01b03821660009081526003602081905260409091209081015461220a9061076b84670de0b6b3a7640000611dd5565b6002820155426008820181905560038201546122269190611ded565b60048201556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6040516001600160a01b038316602482015260448101829052610a9990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612729565b60008183106122d55781611dc2565b5090919050565b6001600160a01b038116600090815260076020526040812060048101548290612306904290611dc9565b90506000612337620151807f0000000000000000000000000000000000000000000000056bc75e2d63100000612c84565b9050670de0b6b3a7640000828285600201546123539190612ca4565b61235d9190612ca4565b6123679190612c84565b610777906002612ca4565b600080600960009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156123c357600080fd5b505afa1580156123d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fb9190612ab6565b612414846ec097ce7bc90715b34b9f1000000000612ca4565b61241e9190612c84565b90506000600960009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561247057600080fd5b505afa158015612484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a89190612a68565b50506001600160701b0316905060006ec097ce7bc90715b34b9f10000000006124d18385612ca4565b6107779190612c84565b610b1882826120e2565b6040516001600160a01b0380851660248301528316604482015260648101829052611f729085906323b872dd60e01b9060840161228f565b60045461252a9082611ded565b60045533600090815260056020526040902054611fd89082611ded565b60606000612556836002612ca4565b612561906002612c6c565b67ffffffffffffffff81111561258757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125b1576020820181803683370190505b509050600360fc1b816000815181106125da57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061261757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061263b846002612ca4565b612646906001612c6c565b90505b60018111156126da576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061268857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106126ac57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126d381612d06565b9050612649565b508315611dc25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107cc565b600061277e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127fb9092919063ffffffff16565b805190915015610a99578080602001905181019061279c91906129e6565b610a995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107cc565b60606117eb848460008585843b6128545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107cc565b600080866001600160a01b031685876040516128709190612ace565b60006040518083038185875af1925050503d80600081146128ad576040519150601f19603f3d011682016040523d82523d6000602084013e6128b2565b606091505b50915091506128c28282866128cd565b979650505050505050565b606083156128dc575081611dc2565b8251156128ec5782518084602001fd5b8160405162461bcd60e51b81526004016107cc9190612bac565b80356001600160a01b038116811461291d57600080fd5b919050565b80516001600160701b038116811461291d57600080fd5b60006020828403121561294a578081fd5b611dc282612906565b60008060408385031215612965578081fd5b61296e83612906565b915061297c60208401612906565b90509250929050565b60008060408385031215612997578182fd5b6129a083612906565b946020939093013593505050565b600080600080608085870312156129c3578182fd5b6129cc85612906565b966020860135965060408601359560600135945092505050565b6000602082840312156129f7578081fd5b81518015158114611dc2578182fd5b600060208284031215612a17578081fd5b5035919050565b60008060408385031215612a30578182fd5b8235915061297c60208401612906565b600060208284031215612a51578081fd5b81356001600160e01b031981168114611dc2578182fd5b600080600060608486031215612a7c578283fd5b612a8584612922565b9250612a9360208501612922565b9150604084015163ffffffff81168114612aab578182fd5b809150509250925092565b600060208284031215612ac7578081fd5b5051919050565b60008251612ae0818460208701612cda565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612b22816017850160208801612cda565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612b53816028840160208801612cda565b01602801949350505050565b6020808252825182820181905260009190848201906040850190845b81811015612ba05783516001600160a01b031683529284019291840191600101612b7b565b50909695505050505050565b6020815260008251806020840152612bcb816040850160208701612cda565b601f01601f19169190910160400192915050565b6020808252600f908201526e5472616e73666572206572726f722160881b604082015260600190565b602080825260139082015272125b9cdd59999a58da595b9d08185b5bdd5b9d606a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612c7f57612c7f612d38565b500190565b600082612c9f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612cbe57612cbe612d38565b500290565b600082821015612cd557612cd5612d38565b500390565b60005b83811015612cf5578181015183820152602001612cdd565b83811115611f725750506000910152565b600081612d1557612d15612d38565b506000190190565b6000600019821415612d3157612d31612d38565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122048630314b1a9cb9641c6ffd5bfd75da59b2df5c155b11dd4b5535a647b975bb364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000010994aa2fb8e6ba5d9fb2bc127ff228c4fe6167f0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000900dd2a4167e55bc219ce82f679f4aee39efa0e5
-----Decoded View---------------
Arg [0] : token (address): 0x10994AA2FB8E6bA5D9FB2BC127FF228c4fe6167F
Arg [1] : tokenMultiplier (uint256): 100
Arg [2] : crowdsaleFactory (address): 0x900dd2A4167E55bc219cE82F679f4Aee39eFa0E5
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000010994aa2fb8e6ba5d9fb2bc127ff228c4fe6167f
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [2] : 000000000000000000000000900dd2a4167e55bc219ce82f679f4aee39efa0e5
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.