Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,434 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw And Har... | 19892560 | 339 days ago | IN | 0 ETH | 0.00039667 | ||||
Withdraw And Har... | 19411207 | 407 days ago | IN | 0 ETH | 0.0063573 | ||||
Withdraw And Har... | 18872283 | 482 days ago | IN | 0 ETH | 0.00179343 | ||||
Withdraw And Har... | 16582897 | 804 days ago | IN | 0 ETH | 0.00271216 | ||||
Emergency Withdr... | 16444366 | 823 days ago | IN | 0 ETH | 0.00083902 | ||||
Emergency Withdr... | 16444211 | 823 days ago | IN | 0 ETH | 0.00085274 | ||||
Withdraw And Har... | 15718235 | 925 days ago | IN | 0 ETH | 0.00440898 | ||||
Withdraw And Har... | 15718228 | 925 days ago | IN | 0 ETH | 0.0045682 | ||||
Withdraw And Har... | 15718225 | 925 days ago | IN | 0 ETH | 0.00471072 | ||||
Withdraw And Har... | 15711907 | 926 days ago | IN | 0 ETH | 0.00274203 | ||||
Withdraw And Har... | 15711889 | 926 days ago | IN | 0 ETH | 0.00204181 | ||||
Harvest | 15711870 | 926 days ago | IN | 0 ETH | 0.00151257 | ||||
Harvest | 15624299 | 938 days ago | IN | 0 ETH | 0.00088952 | ||||
Harvest | 15524440 | 952 days ago | IN | 0 ETH | 0.00117819 | ||||
Withdraw And Har... | 15524273 | 952 days ago | IN | 0 ETH | 0.00041004 | ||||
Withdraw And Har... | 15524269 | 952 days ago | IN | 0 ETH | 0.00030265 | ||||
Withdraw And Har... | 15348028 | 980 days ago | IN | 0 ETH | 0.00176876 | ||||
Withdraw And Har... | 15310731 | 986 days ago | IN | 0 ETH | 0.00086837 | ||||
Withdraw And Har... | 15310667 | 986 days ago | IN | 0 ETH | 0.00053453 | ||||
Withdraw And Har... | 15310652 | 986 days ago | IN | 0 ETH | 0.00065682 | ||||
Withdraw And Har... | 15310648 | 986 days ago | IN | 0 ETH | 0.000648 | ||||
Withdraw And Har... | 15310587 | 986 days ago | IN | 0 ETH | 0.00032785 | ||||
Withdraw And Har... | 15310578 | 986 days ago | IN | 0 ETH | 0.00035808 | ||||
Harvest | 15275555 | 992 days ago | IN | 0 ETH | 0.00056552 | ||||
Withdraw And Har... | 15246241 | 996 days ago | IN | 0 ETH | 0.00047655 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SDAOTokenStaking
Compiler Version
v0.6.12+commit.27d51765
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.6.12; pragma experimental ABIEncoderV2; import "./libraries/BoringMath.sol"; import "./libraries/SignedSafeMath.sol"; import "./libraries/BoringERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /************************************************************************************************ Originally from https://github.com/sushiswap/sushiswap/blob/master/contracts/MasterChefV2.sol and https://github.com/sdaoswap/sushiswap/blob/master/contracts/MasterChef.sol This source code has been modified from the original, which was copied from the github repository at commit hash 10148a31d9192bc803dac5d24fe0319b52ae99a4. *************************************************************************************************/ contract SDAOTokenStaking is Ownable { using BoringMath for uint256; using BoringMath128 for uint128; using BoringERC20 for IERC20; using SignedSafeMath for int256; //========== Structs ========== /// @dev Info of each user. /// @param amount LP token amount the user has provided. /// @param rewardDebt The amount of rewards entitled to the user. struct UserInfo { uint256 amount; int256 rewardDebt; } /// @dev Info of each rewards pool. /// @param tokenPerBlock Reward tokens per block number. /// @param lpSupply Total staked amount. /// @param accRewardsPerShare Total rewards accumulated per staked token. /// @param lastRewardBlock Last time rewards were updated for the pool. /// @param endOfEpochBlock End of epoc block number for compute and to avoid deposits. struct PoolInfo { uint256 tokenPerBlock; uint256 lpSupply; uint128 accRewardsPerShare; uint64 lastRewardBlock; uint endOfEpochBlock; } //========== Constants ========== /// @dev For percision calculation while computing the rewards. uint256 private constant ACC_REWARDS_PRECISION = 1e18; /// @dev ERC20 token used to distribute rewards. IERC20 public immutable rewardsToken; /** ========== Storage ========== */ /// @dev Indicates whether a staking pool exists for a given staking token. //mapping(address => bool) public stakingPoolExists; /// @dev Info of each staking pool. PoolInfo[] public poolInfo; /// @dev Address of the LP token for each staking pool. mapping(uint256 => IERC20) public lpToken; /// @dev Info of each user that stakes tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; /// @dev Account allowed to allocate points. address public pointsAllocator; /// @dev Total rewards received from governance for distribution. /// Used to return remaining rewards if staking is canceled. uint256 public totalRewardsReceived; // ========== Events ========== event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event Harvest(address indexed user, uint256 indexed pid, uint256 amount); event LogPoolAddition(uint256 indexed pid, IERC20 indexed lpToken); event LogUpdatePool(uint256 indexed pid, uint64 lastRewardBlock, uint256 lpSupply, uint256 accRewardsPerShare); event RewardsAdded(uint256 amount); event PointsAllocatorSet(address pointsAllocator); // ========== Modifiers ========== /// @dev Ensure the caller is allowed to allocate points. modifier onlyPointsAllocatorOrOwner { require( msg.sender == pointsAllocator || msg.sender == owner(), "MultiTokenStaking: not authorized to allocate points" ); _; } // ========== Constructor ========== /// @dev During the deployment of the contract pass the ERC-20 contract address used for rewards. constructor(address _rewardsToken) public { rewardsToken = IERC20(_rewardsToken); } // ========== Governance ========== /// @dev Set the address of the points allocator. /// This account will have the ability to set allocation points for LP rewards. function setPointsAllocator(address _pointsAllocator) external onlyOwner { require(_pointsAllocator != address(0), "Invalid points allocator address."); pointsAllocator = _pointsAllocator; emit PointsAllocatorSet(_pointsAllocator); } /// @dev Add rewards to be distributed. /// Note: This function must be used to add rewards if the owner /// wants to retain the option to cancel distribution and reclaim /// undistributed tokens. function addRewards(uint256 amount) external onlyPointsAllocatorOrOwner { require(rewardsToken.balanceOf(msg.sender) > 0, "ERC20: not enough tokens to transfer"); totalRewardsReceived = totalRewardsReceived.add(amount); rewardsToken.safeTransferFrom(msg.sender, address(this), amount); emit RewardsAdded(amount); } // ========== Pools ========== /// @dev Add a new LP to the pool. /// Can only be called by the owner or the points allocator. /// @param _lpToken Address of the LP ERC-20 token. /// @param _sdaoPerBlock Rewards per block. /// @param _endofepochblock Epocs end block number. function add(IERC20 _lpToken, uint256 _sdaoPerBlock, uint64 _endofepochblock) public onlyPointsAllocatorOrOwner { //This is not needed as we are going to use the contract for multiple pools with the same LP Tokens //require(!stakingPoolExists[address(_lpToken)], " Staking pool already exists."); require(_endofepochblock > block.number, "Cannot create the pool for past time."); uint256 pid = poolInfo.length; lpToken[pid] = _lpToken; poolInfo.push(PoolInfo({ tokenPerBlock: _sdaoPerBlock, endOfEpochBlock:_endofepochblock, lastRewardBlock: block.number.to64(), lpSupply:0, accRewardsPerShare: 0 })); //stakingPoolExists[address(_lpToken)] = true; emit LogPoolAddition(pid, _lpToken); } /// @dev To get the rewards per block. function sdaoPerBlock(uint256 _pid) public view returns (uint256 amount) { PoolInfo memory pool = poolInfo[_pid]; amount = pool.tokenPerBlock; } /// @dev Update reward variables for all pools in `pids`. /// Note: This can become very expensive. /// @param pids Pool IDs of all to be updated. Make sure to update all active pools. function massUpdatePools(uint256[] calldata pids) external onlyOwner { uint256 len = pids.length; for (uint256 i = 0; i < len; ++i) { updatePool(pids[i]); } } /// @dev Update reward variables of the given pool. /// @param _pid The index of the pool. See `poolInfo`. /// @return pool Returns the pool that was updated. function updatePool(uint256 _pid) private returns (PoolInfo memory pool) { pool = poolInfo[_pid]; uint256 lpSupply = pool.lpSupply; if (block.number > pool.lastRewardBlock && pool.lastRewardBlock < pool.endOfEpochBlock) { if(lpSupply > 0){ uint256 blocks; if(block.number < pool.endOfEpochBlock) { blocks = block.number.sub(pool.lastRewardBlock); } else { blocks = pool.endOfEpochBlock.sub(pool.lastRewardBlock); } uint256 sdaoReward = blocks.mul(sdaoPerBlock(_pid)); pool.accRewardsPerShare = pool.accRewardsPerShare.add((sdaoReward.mul(ACC_REWARDS_PRECISION) / lpSupply).to128()); } pool.lastRewardBlock = block.number.to64(); poolInfo[_pid] = pool; emit LogUpdatePool(_pid, pool.lastRewardBlock, lpSupply, pool.accRewardsPerShare); } } // ========== Users ========== /// @dev View function to see pending rewards on frontend. /// @param _pid The index of the pool. See `poolInfo`. /// @param _user Address of user. /// @return pending rewards for a given user. function pendingRewards(uint256 _pid, address _user) external view returns (uint256 pending) { PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accRewardsPerShare = pool.accRewardsPerShare; uint256 lpSupply = pool.lpSupply; if (block.number > pool.lastRewardBlock && pool.lastRewardBlock < pool.endOfEpochBlock) { if(lpSupply > 0){ uint256 blocks; if(block.number < pool.endOfEpochBlock) { blocks = block.number.sub(pool.lastRewardBlock); } else { blocks = pool.endOfEpochBlock.sub(pool.lastRewardBlock); } uint256 sdaoReward = blocks.mul(sdaoPerBlock(_pid)); accRewardsPerShare = accRewardsPerShare.add(sdaoReward.mul(ACC_REWARDS_PRECISION) / lpSupply); } } pending = int256(user.amount.mul(accRewardsPerShare) / ACC_REWARDS_PRECISION).sub(user.rewardDebt).toUInt256(); } /// @dev Deposit LP tokens to earn rewards. /// @param _pid The index of the pool. See `poolInfo`. /// @param _amount LP token amount to deposit. /// @param _to The receiver of `_amount` deposit benefit. function deposit(uint256 _pid, uint256 _amount, address _to) public { // Input Validation require(_amount > 0 && _to != address(0), "Invalid inputs for deposit."); PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][_to]; // check if epoch as ended or if pool doesnot exist require (pool.endOfEpochBlock > block.number,"This pool epoch has ended. Please join staking new session."); user.amount = user.amount.add(_amount); user.rewardDebt = user.rewardDebt.add(int256(_amount.mul(pool.accRewardsPerShare) / ACC_REWARDS_PRECISION)); // Add to total supply pool.lpSupply = pool.lpSupply.add(_amount); // Update the pool back poolInfo[_pid] = pool; // Interactions lpToken[_pid].safeTransferFrom(msg.sender, address(this), _amount); emit Deposit(msg.sender, _pid, _amount, _to); } /// @dev Withdraw LP tokens from the staking contract. /// @param _pid The index of the pool. See `poolInfo`. /// @param _amount LP token amount to withdraw. /// @param _to Receiver of the LP tokens. function withdraw(uint256 _pid, uint256 _amount, address _to) public { require(_to != address(0), "ERC20: transfer to the zero address"); PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][msg.sender]; // Check whether user has deposited stake require(user.amount >= _amount && _amount > 0, "Invalid amount to withdraw."); // Effects user.rewardDebt = user.rewardDebt.sub(int256(_amount.mul(pool.accRewardsPerShare) / ACC_REWARDS_PRECISION)); user.amount = user.amount.sub(_amount); // Subtract from total supply pool.lpSupply = pool.lpSupply.sub(_amount); // Update the pool back poolInfo[_pid] = pool; // Interactions lpToken[_pid].safeTransfer(_to, _amount); emit Withdraw(msg.sender, _pid, _amount, _to); } /// @dev Harvest proceeds for transaction sender to `_to`. /// @param _pid The index of the pool. See `poolInfo`. /// @param _to Receiver of rewards. function harvest(uint256 _pid, address _to) public { require(_to != address(0), "ERC20: transfer to the zero address"); PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][msg.sender]; int256 accumulatedRewards = int256(user.amount.mul(pool.accRewardsPerShare) / ACC_REWARDS_PRECISION); uint256 _pendingRewards = accumulatedRewards.sub(user.rewardDebt).toUInt256(); // Effects user.rewardDebt = accumulatedRewards; // Interactions if(_pendingRewards > 0 ) { rewardsToken.safeTransfer(_to, _pendingRewards); } emit Harvest(msg.sender, _pid, _pendingRewards); } //// @dev Withdraw LP tokens and harvest accumulated rewards, sending both to `to`. /// @param _pid The index of the pool. See `poolInfo`. /// @param _amount LP token amount to withdraw. /// @param _to Receiver of the LP tokens and rewards. function withdrawAndHarvest(uint256 _pid, uint256 _amount, address _to) public { require(_to != address(0), "ERC20: transfer to the zero address"); PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][msg.sender]; // Check if the user has stake in the pool require(user.amount >= _amount && _amount > 0, "Cannot withdraw more than staked."); int256 accumulatedRewards = int256(user.amount.mul(pool.accRewardsPerShare) / ACC_REWARDS_PRECISION); uint256 _pendingRewards = accumulatedRewards.sub(user.rewardDebt).toUInt256(); // Effects user.rewardDebt = accumulatedRewards.sub(int256(_amount.mul(pool.accRewardsPerShare) / ACC_REWARDS_PRECISION)); user.amount = user.amount.sub(_amount); // Subtract from total supply pool.lpSupply = pool.lpSupply.sub(_amount); // Update the pool back poolInfo[_pid] = pool; // Interactions if(_pendingRewards > 0) { rewardsToken.safeTransfer(_to, _pendingRewards); } lpToken[_pid].safeTransfer(_to, _amount); emit Harvest(msg.sender, _pid, _pendingRewards); emit Withdraw(msg.sender, _pid, _amount, _to); } /// @dev Withdraw without caring about rewards. EMERGENCY ONLY. /// @param _pid The index of the pool. See `poolInfo`. /// @param _to Receiver of the LP tokens. function emergencyWithdraw(uint256 _pid, address _to) public { require(_to != address(0), "ERC20: transfer to the zero address"); UserInfo storage user = userInfo[_pid][msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; PoolInfo memory pool = updatePool(_pid); pool.lpSupply = pool.lpSupply.sub(amount); // Update the pool back poolInfo[_pid] = pool; // Note: transfer can fail or succeed if `amount` is zero. lpToken[_pid].safeTransfer(_to, amount); emit EmergencyWithdraw(msg.sender, _pid, amount, _to); } function withdrawETHAndAnyTokens(address token) external onlyOwner { msg.sender.send(address(this).balance); IERC20 Token = IERC20(token); uint256 currentTokenBalance = Token.balanceOf(address(this)); Token.safeTransfer(msg.sender, currentTokenBalance); } // ========== Getter Functions ========== function poolLength() external view returns (uint256) { return poolInfo.length; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); /// @notice EIP 2612 function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "../interfaces/IERC20.sol"; // solhint-disable avoid-low-level-calls library BoringERC20 { bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol() bytes4 private constant SIG_NAME = 0x06fdde03; // name() bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals() bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256) bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256) function returnDataToString(bytes memory data) internal pure returns (string memory) { if (data.length >= 64) { return abi.decode(data, (string)); } else if (data.length == 32) { uint8 i = 0; while(i < 32 && data[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 32 && data[i] != 0; i++) { bytesArray[i] = data[i]; } return string(bytesArray); } else { return "???"; } } /// @notice Provides a safe ERC20.symbol version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token symbol. function safeSymbol(IERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_SYMBOL)); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.name version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token name. function safeName(IERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_NAME)); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.decimals version which returns '18' as fallback value. /// @param token The address of the ERC-20 token contract. /// @return (uint8) Token decimals. function safeDecimals(IERC20 token) internal view returns (uint8) { (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_DECIMALS)); return success && data.length == 32 ? abi.decode(data, (uint8)) : 18; } /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransfer( IERC20 token, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER, to, amount)); require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed"); } /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param from Transfer tokens from. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransferFrom( IERC20 token, address from, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount)); require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed"); } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /// @notice A library for performing overflow-/underflow-safe math, /// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math). library BoringMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { require(b == 0 || (c = a * b) / b == a, "BoringMath: Mul Overflow"); } function to128(uint256 a) internal pure returns (uint128 c) { require(a <= uint128(-1), "BoringMath: uint128 Overflow"); c = uint128(a); } function to64(uint256 a) internal pure returns (uint64 c) { require(a <= uint64(-1), "BoringMath: uint64 Overflow"); c = uint64(a); } function to32(uint256 a) internal pure returns (uint32 c) { require(a <= uint32(-1), "BoringMath: uint32 Overflow"); c = uint32(a); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint128. library BoringMath128 { function add(uint128 a, uint128 b) internal pure returns (uint128 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint128 a, uint128 b) internal pure returns (uint128 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint64. library BoringMath64 { function add(uint64 a, uint64 b) internal pure returns (uint64 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint64 a, uint64 b) internal pure returns (uint64 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32. library BoringMath32 { function add(uint32 a, uint32 b) internal pure returns (uint32 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint32 a, uint32 b) internal pure returns (uint32 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; library SignedSafeMath { int256 constant private _INT256_MIN = -2**255; /** * @dev Returns the multiplication of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow"); int256 c = a * b; require(c / a == b, "SignedSafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two signed integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(int256 a, int256 b) internal pure returns (int256) { require(b != 0, "SignedSafeMath: division by zero"); require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow"); int256 c = a / b; return c; } /** * @dev Returns the subtraction of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow"); return c; } /** * @dev Returns the addition of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow"); return c; } function toUInt256(int256 a) internal pure returns (uint256) { require(a >= 0, "Integer < 0"); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../GSN/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardsPerShare","type":"uint256"}],"name":"LogUpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pointsAllocator","type":"address"}],"name":"PointsAllocatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_sdaoPerBlock","type":"uint256"},{"internalType":"uint64","name":"_endofepochblock","type":"uint64"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointsAllocator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"tokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"lpSupply","type":"uint256"},{"internalType":"uint128","name":"accRewardsPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"internalType":"uint256","name":"endOfEpochBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"sdaoPerBlock","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pointsAllocator","type":"address"}],"name":"setPointsAllocator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRewardsReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawETHAndAnyTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162002470380380620024708339810160408190526200003491620000a4565b600062000040620000a0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b031916608052620000d4565b3390565b600060208284031215620000b6578081fd5b81516001600160a01b0381168114620000cd578182fd5b9392505050565b60805160601c61236a62000106600039806105f75280610f205280610fdf52806113a65280611489525061236a6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806382c6746b116100b857806393f1a40b1161007c57806393f1a40b14610276578063beceed3914610297578063d18df53c146102aa578063d1abb907146102bd578063d1af0c7d146102d0578063f2fde38b146102d857610142565b806382c6746b1461022d5780638b90934f146102405780638da5cb5b146102535780638dbdbe6d1461025b5780638fd827891461026e57610142565b80634d5428a71161010a5780634d5428a7146101c457806357a5b58c146101cc5780635bac7fe2146101df578063715018a6146101f257806378ed5d1f146101fa5780637e9a6cae1461021a57610142565b8063081e3eda146101475780630ad58d2f146101655780631526fe271461017a57806318fccc761461019e5780632f940c70146101b1575b600080fd5b61014f6102eb565b60405161015c91906122a6565b60405180910390f35b610178610173366004611ce6565b6102f1565b005b61018d610188366004611c87565b6104e4565b60405161015c9594939291906122bd565b6101786101ac366004611cb7565b610537565b6101786101bf366004611cb7565b610668565b61014f6107d0565b6101786101da366004611bad565b6107d6565b61014f6101ed366004611c87565b610841565b6101786108c4565b61020d610208366004611c87565b610943565b60405161015c9190611d4c565b610178610228366004611c3b565b61095e565b61017861023b366004611b91565b610af6565b61017861024e366004611b91565b610be2565b61020d610c93565b610178610269366004611ce6565b610ca2565b61020d610e86565b610289610284366004611cb7565b610e95565b60405161015c9291906122af565b6101786102a5366004611c87565b610eb9565b61014f6102b8366004611cb7565b611036565b6101786102cb366004611ce6565b6111d4565b61020d611487565b6101786102e6366004611b91565b6114ab565b60015490565b6001600160a01b0381166103205760405162461bcd60e51b815260040161031790611dcc565b60405180910390fd5b610328611b50565b61033184611561565b60008581526003602090815260408083203384529091529020805491925090841180159061035f5750600084115b61037b5760405162461bcd60e51b815260040161031790611f3c565b6103bb670de0b6b3a76400006103a784604001516001600160801b0316876117a090919063ffffffff16565b816103ae57fe5b60018401549190046117dd565b600182015580546103cc908561182a565b815560208201516103dd908561182a565b602083015260018054839190879081106103f357fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b0319909216919091179390931692909217909155608090950151600390930192909255888352929092522054610491906001600160a01b0316848661184d565b826001600160a01b031685336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132876040516104d591906122a6565b60405180910390a45050505050565b600181815481106104f157fe5b60009182526020909120600490910201805460018201546002830154600390930154919350916001600160801b03811691600160801b9091046001600160401b03169085565b6001600160a01b03811661055d5760405162461bcd60e51b815260040161031790611dcc565b610565611b50565b61056e83611561565b60008481526003602090815260408083203384529091528082209083015181549394509092670de0b6b3a7640000916105b091906001600160801b03166117a0565b816105b757fe5b04905060006105db6105d68460010154846117dd90919063ffffffff16565b611943565b600184018390559050801561061e5761061e6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868361184d565b85336001600160a01b03167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161065891906122a6565b60405180910390a3505050505050565b6001600160a01b03811661068e5760405162461bcd60e51b815260040161031790611dcc565b6000828152600360209081526040808320338452909152812080548282556001820192909255906106bd611b50565b6106c685611561565b60208101519091506106d8908361182a565b602082015260018054829190879081106106ee57fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b031990921691909117939093169290921790915560809095015160039093019290925588835292909252205461078c906001600160a01b0316858461184d565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516104d591906122a6565b60055481565b6107de611969565b6000546001600160a01b0390811691161461080b5760405162461bcd60e51b8152600401610317906120ec565b8060005b8181101561083b5761083284848381811061082657fe5b90506020020135611561565b5060010161080f565b50505050565b600061084b611b50565b6001838154811061085857fe5b60009182526020918290206040805160a081018252600493909302909101805480845260018201549484019490945260028101546001600160801b03811692840192909252600160801b9091046001600160401b03166060830152600301546080909101529392505050565b6108cc611969565b6000546001600160a01b039081169116146108f95760405162461bcd60e51b8152600401610317906120ec565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002602052600090815260409020546001600160a01b031681565b6004546001600160a01b031633148061098f575061097a610c93565b6001600160a01b0316336001600160a01b0316145b6109ab5760405162461bcd60e51b815260040161031790611e34565b43816001600160401b0316116109d35760405162461bcd60e51b815260040161031790611f73565b60018054600081815260026020908152604080832080546001600160a01b0319166001600160a01b038a16179055805160a08101825287815291820183905281019190915290919060608101610a284361196d565b6001600160401b0390811682528581166020928301528354600181810186556000958652838620855160049093020191825592840151928101929092556040808401516002840180546060870151909416600160801b0267ffffffffffffffff60801b196001600160801b039093166001600160801b0319909516949094179190911692909217909155608090920151600390910155516001600160a01b0386169183917f11fb110b35bb2762dc2b0b5a6675871349c88c1925982af54a6acf07189bd3ce9190a350505050565b610afe611969565b6000546001600160a01b03908116911614610b2b5760405162461bcd60e51b8152600401610317906120ec565b60405133904780156108fc02916000818181858888f150506040516370a0823160e01b8152849350600092506001600160a01b03841691506370a0823190610b77903090600401611d4c565b60206040518083038186803b158015610b8f57600080fd5b505afa158015610ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc79190611c9f565b9050610bdd6001600160a01b038316338361184d565b505050565b610bea611969565b6000546001600160a01b03908116911614610c175760405162461bcd60e51b8152600401610317906120ec565b6001600160a01b038116610c3d5760405162461bcd60e51b815260040161031790612158565b600480546001600160a01b0319166001600160a01b0383161790556040517ffbd9f7b3f09a4e02b45dc9a4edc998ccb59c7ad8a617ac1321574aaafb39573a90610c88908390611d4c565b60405180910390a150565b6000546001600160a01b031690565b600082118015610cba57506001600160a01b03811615155b610cd65760405162461bcd60e51b815260040161031790611ebf565b610cde611b50565b610ce784611561565b60008581526003602090815260408083206001600160a01b038716845290915290206080820151919250904310610d305760405162461bcd60e51b815260040161031790612249565b8054610d3c9085611996565b81556040820151610d7990670de0b6b3a764000090610d659087906001600160801b03166117a0565b81610d6c57fe5b60018401549190046119b9565b60018201556020820151610d8d9085611996565b60208301526001805483919087908110610da357fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b0319909216919091179390931692909217909155608090950151600390930192909255888352929092522054610e42906001600160a01b03163330876119ff565b826001600160a01b031685336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47876040516104d591906122a6565b6004546001600160a01b031681565b60036020908152600092835260408084209091529082529020805460019091015482565b6004546001600160a01b0316331480610eea5750610ed5610c93565b6001600160a01b0316336001600160a01b0316145b610f065760405162461bcd60e51b815260040161031790611e34565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610f55903390600401611d4c565b60206040518083038186803b158015610f6d57600080fd5b505afa158015610f81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa59190611c9f565b11610fc25760405162461bcd60e51b815260040161031790612030565b600554610fcf9082611996565b6005556110076001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846119ff565b7ff8fad42e780bfa5459be3fe691e8ba1aec70342250112139c5771c3fd155f31281604051610c8891906122a6565b6000611040611b50565b6001848154811061104d57fe5b600091825260208083206040805160a08101825260049490940290910180548452600181015484840190815260028201546001600160801b03808216878601908152600160801b9092046001600160401b039081166060890190815260039586015460808a01528d8a529487528589206001600160a01b038d168a529096529390962095519051915194965090911692909116431180156110fe5750836080015184606001516001600160401b0316105b1561119857801561119857600084608001514310156111375760608501516111309043906001600160401b031661182a565b9050611156565b60608501516080860151611153916001600160401b031661182a565b90505b600061116b6111648a610841565b83906117a0565b90506111938361118383670de0b6b3a76400006117a0565b8161118a57fe5b86919004611996565b935050505b600183015483546111c9916105d691670de0b6b3a7640000906111bb90876117a0565b816111c257fe5b04906117dd565b979650505050505050565b6001600160a01b0381166111fa5760405162461bcd60e51b815260040161031790611dcc565b611202611b50565b61120b84611561565b6000858152600360209081526040808320338452909152902080549192509084118015906112395750600084115b6112555760405162461bcd60e51b8152600401610317906120ab565b60408201518154600091670de0b6b3a76400009161127b916001600160801b03166117a0565b8161128257fe5b04905060006112a16105d68460010154846117dd90919063ffffffff16565b90506112df670de0b6b3a76400006112cf86604001516001600160801b0316896117a090919063ffffffff16565b816112d657fe5b849190046117dd565b600184015582546112f0908761182a565b83556020840151611301908761182a565b6020850152600180548591908990811061131757fe5b60009182526020918290208351600490920201908155908201516001820155604082015160028201805460608501516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039094166001600160801b0319909216919091179290921691909117905560809091015160039091015580156113cd576113cd6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868361184d565b6000878152600260205260409020546113f0906001600160a01b0316868861184d565b86336001600160a01b03167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161142a91906122a6565b60405180910390a3846001600160a01b031687336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328960405161147691906122a6565b60405180910390a450505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6114b3611969565b6000546001600160a01b039081169116146114e05760405162461bcd60e51b8152600401610317906120ec565b6001600160a01b0381166115065760405162461bcd60e51b815260040161031790611ef6565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611569611b50565b6001828154811061157657fe5b60009182526020918290206040805160a08101825260049390930290910180548352600181015493830184905260028101546001600160801b03811692840192909252600160801b9091046001600160401b0316606083018190526003909101546080830152909250431180156115fd5750816080015182606001516001600160401b0316105b1561179a5780156116b0576000826080015143101561163657606083015161162f9043906001600160401b031661182a565b9050611655565b60608301516080840151611652916001600160401b031661182a565b90505b600061166361116486610841565b905061169f61168b8461167e84670de0b6b3a76400006117a0565b8161168557fe5b04611af8565b60408601516001600160801b031690611b21565b6001600160801b0316604085015250505b6116b94361196d565b6001600160401b0316606083015260018054839190859081106116d857fe5b600091825260209182902083516004909202019081559082015160018201556040808301516002830180546060808701516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b031990931692909217939093161790556080909301516003909201919091559083015183820151915185927f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad3539261179192909186916122f2565b60405180910390a25b50919050565b60008115806117bb575050808202828282816117b857fe5b04145b6117d75760405162461bcd60e51b815260040161031790612212565b92915050565b60008183038183128015906117f25750838113155b80611807575060008312801561180757508381135b6118235760405162461bcd60e51b815260040161031790612199565b9392505050565b808203828111156117d75760405162461bcd60e51b815260040161031790611d9d565b60006060846001600160a01b031663a9059cbb60e01b8585604051602401611876929190611d84565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516118b49190611d13565b6000604051808303816000865af19150503d80600081146118f1576040519150601f19603f3d011682016040523d82523d6000602084013e6118f6565b606091505b50915091508180156119205750805115806119205750808060200190518101906119209190611c1b565b61193c5760405162461bcd60e51b815260040161031790611e88565b5050505050565b6000808212156119655760405162461bcd60e51b815260040161031790611e0f565b5090565b3390565b60006001600160401b038211156119655760405162461bcd60e51b815260040161031790612121565b818101818110156117d75760405162461bcd60e51b815260040161031790612074565b60008282018183128015906119ce5750838112155b806119e357506000831280156119e357508381125b6118235760405162461bcd60e51b815260040161031790611fb8565b60006060856001600160a01b03166323b872dd60e01b868686604051602401611a2a93929190611d60565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611a689190611d13565b6000604051808303816000865af19150503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5091509150818015611ad4575080511580611ad4575080806020019051810190611ad49190611c1b565b611af05760405162461bcd60e51b8152600401610317906121dd565b505050505050565b60006001600160801b038211156119655760405162461bcd60e51b815260040161031790611ff9565b8181016001600160801b0380831690821610156117d75760405162461bcd60e51b815260040161031790612074565b6040518060a00160405280600081526020016000815260200160006001600160801b0316815260200160006001600160401b03168152602001600081525090565b600060208284031215611ba2578081fd5b81356118238161231c565b60008060208385031215611bbf578081fd5b82356001600160401b0380821115611bd5578283fd5b818501915085601f830112611be8578283fd5b813581811115611bf6578384fd5b8660208083028501011115611c09578384fd5b60209290920196919550909350505050565b600060208284031215611c2c578081fd5b81518015158114611823578182fd5b600080600060608486031215611c4f578081fd5b8335611c5a8161231c565b92506020840135915060408401356001600160401b0381168114611c7c578182fd5b809150509250925092565b600060208284031215611c98578081fd5b5035919050565b600060208284031215611cb0578081fd5b5051919050565b60008060408385031215611cc9578182fd5b823591506020830135611cdb8161231c565b809150509250929050565b600080600060608486031215611cfa578283fd5b83359250602084013591506040840135611c7c8161231c565b60008251815b81811015611d335760208186018101518583015201611d19565b81811115611d415782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b602080825260159082015274426f72696e674d6174683a20556e646572666c6f7760581b604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600b908201526a0496e7465676572203c20360ac1b604082015260600190565b60208082526034908201527f4d756c7469546f6b656e5374616b696e673a206e6f7420617574686f72697a656040820152736420746f20616c6c6f6361746520706f696e747360601b606082015260800190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b6020808252601b908201527f496e76616c696420696e7075747320666f72206465706f7369742e0000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f496e76616c696420616d6f756e7420746f2077697468647261772e0000000000604082015260600190565b60208082526025908201527f43616e6e6f74206372656174652074686520706f6f6c20666f722070617374206040820152643a34b6b29760d91b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601c908201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604082015260600190565b60208082526024908201527f45524332303a206e6f7420656e6f75676820746f6b656e7320746f207472616e60408201526339b332b960e11b606082015260800190565b60208082526018908201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604082015260600190565b60208082526021908201527f43616e6e6f74207769746864726177206d6f7265207468616e207374616b65646040820152601760f91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604082015260600190565b60208082526021908201527f496e76616c696420706f696e747320616c6c6f6361746f7220616464726573736040820152601760f91b606082015260800190565b60208082526024908201527f5369676e6564536166654d6174683a207375627472616374696f6e206f766572604082015263666c6f7760e01b606082015260800190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b60208082526018908201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604082015260600190565b6020808252603b908201527f5468697320706f6f6c2065706f63682068617320656e6465642e20506c65617360408201527f65206a6f696e207374616b696e67206e65772073657373696f6e2e0000000000606082015260800190565b90815260200190565b918252602082015260400190565b94855260208501939093526001600160801b039190911660408401526001600160401b03166060830152608082015260a00190565b6001600160401b0393909316835260208301919091526001600160801b0316604082015260600190565b6001600160a01b038116811461233157600080fd5b5056fea2646970667358221220c708a151ca4661b6b5c494d514adf32c1718e9e7af384b5cf943a5073de3ed7f64736f6c634300060c0033000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806382c6746b116100b857806393f1a40b1161007c57806393f1a40b14610276578063beceed3914610297578063d18df53c146102aa578063d1abb907146102bd578063d1af0c7d146102d0578063f2fde38b146102d857610142565b806382c6746b1461022d5780638b90934f146102405780638da5cb5b146102535780638dbdbe6d1461025b5780638fd827891461026e57610142565b80634d5428a71161010a5780634d5428a7146101c457806357a5b58c146101cc5780635bac7fe2146101df578063715018a6146101f257806378ed5d1f146101fa5780637e9a6cae1461021a57610142565b8063081e3eda146101475780630ad58d2f146101655780631526fe271461017a57806318fccc761461019e5780632f940c70146101b1575b600080fd5b61014f6102eb565b60405161015c91906122a6565b60405180910390f35b610178610173366004611ce6565b6102f1565b005b61018d610188366004611c87565b6104e4565b60405161015c9594939291906122bd565b6101786101ac366004611cb7565b610537565b6101786101bf366004611cb7565b610668565b61014f6107d0565b6101786101da366004611bad565b6107d6565b61014f6101ed366004611c87565b610841565b6101786108c4565b61020d610208366004611c87565b610943565b60405161015c9190611d4c565b610178610228366004611c3b565b61095e565b61017861023b366004611b91565b610af6565b61017861024e366004611b91565b610be2565b61020d610c93565b610178610269366004611ce6565b610ca2565b61020d610e86565b610289610284366004611cb7565b610e95565b60405161015c9291906122af565b6101786102a5366004611c87565b610eb9565b61014f6102b8366004611cb7565b611036565b6101786102cb366004611ce6565b6111d4565b61020d611487565b6101786102e6366004611b91565b6114ab565b60015490565b6001600160a01b0381166103205760405162461bcd60e51b815260040161031790611dcc565b60405180910390fd5b610328611b50565b61033184611561565b60008581526003602090815260408083203384529091529020805491925090841180159061035f5750600084115b61037b5760405162461bcd60e51b815260040161031790611f3c565b6103bb670de0b6b3a76400006103a784604001516001600160801b0316876117a090919063ffffffff16565b816103ae57fe5b60018401549190046117dd565b600182015580546103cc908561182a565b815560208201516103dd908561182a565b602083015260018054839190879081106103f357fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b0319909216919091179390931692909217909155608090950151600390930192909255888352929092522054610491906001600160a01b0316848661184d565b826001600160a01b031685336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132876040516104d591906122a6565b60405180910390a45050505050565b600181815481106104f157fe5b60009182526020909120600490910201805460018201546002830154600390930154919350916001600160801b03811691600160801b9091046001600160401b03169085565b6001600160a01b03811661055d5760405162461bcd60e51b815260040161031790611dcc565b610565611b50565b61056e83611561565b60008481526003602090815260408083203384529091528082209083015181549394509092670de0b6b3a7640000916105b091906001600160801b03166117a0565b816105b757fe5b04905060006105db6105d68460010154846117dd90919063ffffffff16565b611943565b600184018390559050801561061e5761061e6001600160a01b037f000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f16868361184d565b85336001600160a01b03167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161065891906122a6565b60405180910390a3505050505050565b6001600160a01b03811661068e5760405162461bcd60e51b815260040161031790611dcc565b6000828152600360209081526040808320338452909152812080548282556001820192909255906106bd611b50565b6106c685611561565b60208101519091506106d8908361182a565b602082015260018054829190879081106106ee57fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b031990921691909117939093169290921790915560809095015160039093019290925588835292909252205461078c906001600160a01b0316858461184d565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516104d591906122a6565b60055481565b6107de611969565b6000546001600160a01b0390811691161461080b5760405162461bcd60e51b8152600401610317906120ec565b8060005b8181101561083b5761083284848381811061082657fe5b90506020020135611561565b5060010161080f565b50505050565b600061084b611b50565b6001838154811061085857fe5b60009182526020918290206040805160a081018252600493909302909101805480845260018201549484019490945260028101546001600160801b03811692840192909252600160801b9091046001600160401b03166060830152600301546080909101529392505050565b6108cc611969565b6000546001600160a01b039081169116146108f95760405162461bcd60e51b8152600401610317906120ec565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002602052600090815260409020546001600160a01b031681565b6004546001600160a01b031633148061098f575061097a610c93565b6001600160a01b0316336001600160a01b0316145b6109ab5760405162461bcd60e51b815260040161031790611e34565b43816001600160401b0316116109d35760405162461bcd60e51b815260040161031790611f73565b60018054600081815260026020908152604080832080546001600160a01b0319166001600160a01b038a16179055805160a08101825287815291820183905281019190915290919060608101610a284361196d565b6001600160401b0390811682528581166020928301528354600181810186556000958652838620855160049093020191825592840151928101929092556040808401516002840180546060870151909416600160801b0267ffffffffffffffff60801b196001600160801b039093166001600160801b0319909516949094179190911692909217909155608090920151600390910155516001600160a01b0386169183917f11fb110b35bb2762dc2b0b5a6675871349c88c1925982af54a6acf07189bd3ce9190a350505050565b610afe611969565b6000546001600160a01b03908116911614610b2b5760405162461bcd60e51b8152600401610317906120ec565b60405133904780156108fc02916000818181858888f150506040516370a0823160e01b8152849350600092506001600160a01b03841691506370a0823190610b77903090600401611d4c565b60206040518083038186803b158015610b8f57600080fd5b505afa158015610ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc79190611c9f565b9050610bdd6001600160a01b038316338361184d565b505050565b610bea611969565b6000546001600160a01b03908116911614610c175760405162461bcd60e51b8152600401610317906120ec565b6001600160a01b038116610c3d5760405162461bcd60e51b815260040161031790612158565b600480546001600160a01b0319166001600160a01b0383161790556040517ffbd9f7b3f09a4e02b45dc9a4edc998ccb59c7ad8a617ac1321574aaafb39573a90610c88908390611d4c565b60405180910390a150565b6000546001600160a01b031690565b600082118015610cba57506001600160a01b03811615155b610cd65760405162461bcd60e51b815260040161031790611ebf565b610cde611b50565b610ce784611561565b60008581526003602090815260408083206001600160a01b038716845290915290206080820151919250904310610d305760405162461bcd60e51b815260040161031790612249565b8054610d3c9085611996565b81556040820151610d7990670de0b6b3a764000090610d659087906001600160801b03166117a0565b81610d6c57fe5b60018401549190046119b9565b60018201556020820151610d8d9085611996565b60208301526001805483919087908110610da357fe5b6000918252602080832084516004909302019182558381015160018301556040808501516002808501805460608901516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b0319909216919091179390931692909217909155608090950151600390930192909255888352929092522054610e42906001600160a01b03163330876119ff565b826001600160a01b031685336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47876040516104d591906122a6565b6004546001600160a01b031681565b60036020908152600092835260408084209091529082529020805460019091015482565b6004546001600160a01b0316331480610eea5750610ed5610c93565b6001600160a01b0316336001600160a01b0316145b610f065760405162461bcd60e51b815260040161031790611e34565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f16906370a0823190610f55903390600401611d4c565b60206040518083038186803b158015610f6d57600080fd5b505afa158015610f81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa59190611c9f565b11610fc25760405162461bcd60e51b815260040161031790612030565b600554610fcf9082611996565b6005556110076001600160a01b037f000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f163330846119ff565b7ff8fad42e780bfa5459be3fe691e8ba1aec70342250112139c5771c3fd155f31281604051610c8891906122a6565b6000611040611b50565b6001848154811061104d57fe5b600091825260208083206040805160a08101825260049490940290910180548452600181015484840190815260028201546001600160801b03808216878601908152600160801b9092046001600160401b039081166060890190815260039586015460808a01528d8a529487528589206001600160a01b038d168a529096529390962095519051915194965090911692909116431180156110fe5750836080015184606001516001600160401b0316105b1561119857801561119857600084608001514310156111375760608501516111309043906001600160401b031661182a565b9050611156565b60608501516080860151611153916001600160401b031661182a565b90505b600061116b6111648a610841565b83906117a0565b90506111938361118383670de0b6b3a76400006117a0565b8161118a57fe5b86919004611996565b935050505b600183015483546111c9916105d691670de0b6b3a7640000906111bb90876117a0565b816111c257fe5b04906117dd565b979650505050505050565b6001600160a01b0381166111fa5760405162461bcd60e51b815260040161031790611dcc565b611202611b50565b61120b84611561565b6000858152600360209081526040808320338452909152902080549192509084118015906112395750600084115b6112555760405162461bcd60e51b8152600401610317906120ab565b60408201518154600091670de0b6b3a76400009161127b916001600160801b03166117a0565b8161128257fe5b04905060006112a16105d68460010154846117dd90919063ffffffff16565b90506112df670de0b6b3a76400006112cf86604001516001600160801b0316896117a090919063ffffffff16565b816112d657fe5b849190046117dd565b600184015582546112f0908761182a565b83556020840151611301908761182a565b6020850152600180548591908990811061131757fe5b60009182526020918290208351600490920201908155908201516001820155604082015160028201805460608501516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039094166001600160801b0319909216919091179290921691909117905560809091015160039091015580156113cd576113cd6001600160a01b037f000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f16868361184d565b6000878152600260205260409020546113f0906001600160a01b0316868861184d565b86336001600160a01b03167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161142a91906122a6565b60405180910390a3846001600160a01b031687336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328960405161147691906122a6565b60405180910390a450505050505050565b7f000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f81565b6114b3611969565b6000546001600160a01b039081169116146114e05760405162461bcd60e51b8152600401610317906120ec565b6001600160a01b0381166115065760405162461bcd60e51b815260040161031790611ef6565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611569611b50565b6001828154811061157657fe5b60009182526020918290206040805160a08101825260049390930290910180548352600181015493830184905260028101546001600160801b03811692840192909252600160801b9091046001600160401b0316606083018190526003909101546080830152909250431180156115fd5750816080015182606001516001600160401b0316105b1561179a5780156116b0576000826080015143101561163657606083015161162f9043906001600160401b031661182a565b9050611655565b60608301516080840151611652916001600160401b031661182a565b90505b600061166361116486610841565b905061169f61168b8461167e84670de0b6b3a76400006117a0565b8161168557fe5b04611af8565b60408601516001600160801b031690611b21565b6001600160801b0316604085015250505b6116b94361196d565b6001600160401b0316606083015260018054839190859081106116d857fe5b600091825260209182902083516004909202019081559082015160018201556040808301516002830180546060808701516001600160401b0316600160801b0267ffffffffffffffff60801b196001600160801b039095166001600160801b031990931692909217939093161790556080909301516003909201919091559083015183820151915185927f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad3539261179192909186916122f2565b60405180910390a25b50919050565b60008115806117bb575050808202828282816117b857fe5b04145b6117d75760405162461bcd60e51b815260040161031790612212565b92915050565b60008183038183128015906117f25750838113155b80611807575060008312801561180757508381135b6118235760405162461bcd60e51b815260040161031790612199565b9392505050565b808203828111156117d75760405162461bcd60e51b815260040161031790611d9d565b60006060846001600160a01b031663a9059cbb60e01b8585604051602401611876929190611d84565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516118b49190611d13565b6000604051808303816000865af19150503d80600081146118f1576040519150601f19603f3d011682016040523d82523d6000602084013e6118f6565b606091505b50915091508180156119205750805115806119205750808060200190518101906119209190611c1b565b61193c5760405162461bcd60e51b815260040161031790611e88565b5050505050565b6000808212156119655760405162461bcd60e51b815260040161031790611e0f565b5090565b3390565b60006001600160401b038211156119655760405162461bcd60e51b815260040161031790612121565b818101818110156117d75760405162461bcd60e51b815260040161031790612074565b60008282018183128015906119ce5750838112155b806119e357506000831280156119e357508381125b6118235760405162461bcd60e51b815260040161031790611fb8565b60006060856001600160a01b03166323b872dd60e01b868686604051602401611a2a93929190611d60565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611a689190611d13565b6000604051808303816000865af19150503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5091509150818015611ad4575080511580611ad4575080806020019051810190611ad49190611c1b565b611af05760405162461bcd60e51b8152600401610317906121dd565b505050505050565b60006001600160801b038211156119655760405162461bcd60e51b815260040161031790611ff9565b8181016001600160801b0380831690821610156117d75760405162461bcd60e51b815260040161031790612074565b6040518060a00160405280600081526020016000815260200160006001600160801b0316815260200160006001600160401b03168152602001600081525090565b600060208284031215611ba2578081fd5b81356118238161231c565b60008060208385031215611bbf578081fd5b82356001600160401b0380821115611bd5578283fd5b818501915085601f830112611be8578283fd5b813581811115611bf6578384fd5b8660208083028501011115611c09578384fd5b60209290920196919550909350505050565b600060208284031215611c2c578081fd5b81518015158114611823578182fd5b600080600060608486031215611c4f578081fd5b8335611c5a8161231c565b92506020840135915060408401356001600160401b0381168114611c7c578182fd5b809150509250925092565b600060208284031215611c98578081fd5b5035919050565b600060208284031215611cb0578081fd5b5051919050565b60008060408385031215611cc9578182fd5b823591506020830135611cdb8161231c565b809150509250929050565b600080600060608486031215611cfa578283fd5b83359250602084013591506040840135611c7c8161231c565b60008251815b81811015611d335760208186018101518583015201611d19565b81811115611d415782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b602080825260159082015274426f72696e674d6174683a20556e646572666c6f7760581b604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600b908201526a0496e7465676572203c20360ac1b604082015260600190565b60208082526034908201527f4d756c7469546f6b656e5374616b696e673a206e6f7420617574686f72697a656040820152736420746f20616c6c6f6361746520706f696e747360601b606082015260800190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b6020808252601b908201527f496e76616c696420696e7075747320666f72206465706f7369742e0000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f496e76616c696420616d6f756e7420746f2077697468647261772e0000000000604082015260600190565b60208082526025908201527f43616e6e6f74206372656174652074686520706f6f6c20666f722070617374206040820152643a34b6b29760d91b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601c908201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604082015260600190565b60208082526024908201527f45524332303a206e6f7420656e6f75676820746f6b656e7320746f207472616e60408201526339b332b960e11b606082015260800190565b60208082526018908201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604082015260600190565b60208082526021908201527f43616e6e6f74207769746864726177206d6f7265207468616e207374616b65646040820152601760f91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604082015260600190565b60208082526021908201527f496e76616c696420706f696e747320616c6c6f6361746f7220616464726573736040820152601760f91b606082015260800190565b60208082526024908201527f5369676e6564536166654d6174683a207375627472616374696f6e206f766572604082015263666c6f7760e01b606082015260800190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b60208082526018908201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604082015260600190565b6020808252603b908201527f5468697320706f6f6c2065706f63682068617320656e6465642e20506c65617360408201527f65206a6f696e207374616b696e67206e65772073657373696f6e2e0000000000606082015260800190565b90815260200190565b918252602082015260400190565b94855260208501939093526001600160801b039190911660408401526001600160401b03166060830152608082015260a00190565b6001600160401b0393909316835260208301919091526001600160801b0316604082015260600190565b6001600160a01b038116811461233157600080fd5b5056fea2646970667358221220c708a151ca4661b6b5c494d514adf32c1718e9e7af384b5cf943a5073de3ed7f64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f
-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x993864E43Caa7F7F12953AD6fEb1d1Ca635B875F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000993864e43caa7f7f12953ad6feb1d1ca635b875f
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.