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 997 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 13203679 | 1120 days ago | IN | 0 ETH | 0.00793032 | ||||
Unstake | 13126104 | 1132 days ago | IN | 0 ETH | 0.00808793 | ||||
Unstake | 13093952 | 1137 days ago | IN | 0 ETH | 0.00702069 | ||||
Get Reward | 12972853 | 1156 days ago | IN | 0 ETH | 0.00615434 | ||||
Stake | 12806711 | 1182 days ago | IN | 0 ETH | 0.00100077 | ||||
Unstake | 12779877 | 1186 days ago | IN | 0 ETH | 0.00276847 | ||||
Unstake | 12779363 | 1186 days ago | IN | 0 ETH | 0.00303241 | ||||
Stake | 12772586 | 1187 days ago | IN | 0 ETH | 0.00133465 | ||||
Unstake | 12739742 | 1192 days ago | IN | 0 ETH | 0.00145941 | ||||
Stake | 12732489 | 1193 days ago | IN | 0 ETH | 0.00089183 | ||||
Stake | 12731039 | 1194 days ago | IN | 0 ETH | 0.00190004 | ||||
Unstake | 12679649 | 1202 days ago | IN | 0 ETH | 0.00255868 | ||||
Unstake | 12633997 | 1209 days ago | IN | 0 ETH | 0.00317637 | ||||
Stake | 12633031 | 1209 days ago | IN | 0 ETH | 0.00263925 | ||||
Unstake | 12609550 | 1213 days ago | IN | 0 ETH | 0.001287 | ||||
Unstake | 12577736 | 1217 days ago | IN | 0 ETH | 0.00214594 | ||||
Stake | 12559928 | 1220 days ago | IN | 0 ETH | 0.00263805 | ||||
Unstake | 12544361 | 1223 days ago | IN | 0 ETH | 0.0029025 | ||||
Unstake | 12538958 | 1223 days ago | IN | 0 ETH | 0.00193242 | ||||
Stake | 12532648 | 1224 days ago | IN | 0 ETH | 0.0016204 | ||||
Stake | 12532639 | 1224 days ago | IN | 0 ETH | 0.00295562 | ||||
Unstake | 12525541 | 1226 days ago | IN | 0 ETH | 0.00382539 | ||||
Unstake | 12437059 | 1239 days ago | IN | 0 ETH | 0.00849105 | ||||
Get Reward | 12435595 | 1239 days ago | IN | 0 ETH | 0.0076207 | ||||
Unstake | 12416287 | 1242 days ago | IN | 0 ETH | 0.03487123 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RewardPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-08 */ // File: @openzeppelin\contracts\token\ERC20\IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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); } // File: node_modules\@openzeppelin\contracts\utils\Address.sol pragma solidity ^0.6.2; /** * @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 in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin\contracts\token\ERC20\SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin\contracts\math\Math.sol pragma solidity ^0.6.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); } } // File: @openzeppelin\contracts\math\SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: node_modules\@openzeppelin\contracts\GSN\Context.sol 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; } } // File: @openzeppelin\contracts\access\Ownable.sol pragma solidity ^0.6.0; /** * @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; } } // File: @openzeppelin\contracts\utils\ReentrancyGuard.sol pragma solidity ^0.6.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]. */ 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 () internal { _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; } } // File: ..\contracts\IRewardDistributor.sol pragma solidity ^0.6.12; abstract contract IRewardDistributor is Ownable { address rewardDistributor; constructor(address _rewardDistributor) public { rewardDistributor = _rewardDistributor; } function fundPool(uint256 reward) external virtual; modifier onlyRewardDistributor() { require(_msgSender() == rewardDistributor, "Caller is not reward distributor"); _; } function setRewardDistributor(address _rewardDistributor) external onlyOwner { rewardDistributor = _rewardDistributor; } } // File: @openzeppelin\contracts\token\ERC20\ERC20.sol pragma solidity ^0.6.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: ..\contracts\DraculaToken.sol pragma solidity 0.6.12; contract DraculaToken is ERC20("Dracula Token", "DRC"), Ownable { using SafeMath for uint256; event Minted(address indexed minter, address indexed receiver, uint mintAmount); event Burned(address indexed burner, uint burnAmount); function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); emit Minted(owner(), _to, _amount); } function burn(uint256 _amount) public { _burn(msg.sender, _amount); emit Burned(msg.sender, _amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override virtual { _moveDelegates(_delegates[from], _delegates[to], amount); } /// @dev A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "DRC::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "DRC::delegateBySig: invalid nonce"); require(now <= expiry, "DRC::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "DRC::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying DRCs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "DRC::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // File: ..\contracts\RewardPool.sol pragma solidity ^0.6.12; /// @title A reward pool that does not mint /// @dev The rewards are transferred to the pool by calling `fundPool`. /// Only the reward distributor can notify. contract RewardPool is IRewardDistributor, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; using SafeERC20 for DraculaToken; DraculaToken public dracula; IERC20 public rewardToken; uint256 public rewardsDuration; uint256 public periodFinish; uint256 public rewardRate; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public burnRate = 1; // default 1% uint256 public totalStaked; mapping(address => uint256) private stakedBalances; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; 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); modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } constructor( address _rewardToken, DraculaToken _dracula, uint256 _rewardsDuration, address _rewardDistributor) public IRewardDistributor(_rewardDistributor) { rewardToken = IERC20(_rewardToken); dracula = _dracula; rewardsDuration = _rewardsDuration; } function balanceOf(address account) external view returns (uint256) { return stakedBalances[account]; } function setBurnRate(uint256 _burnRate) external onlyOwner { require(_burnRate <= 10, "Invalid burn rate value"); burnRate = _burnRate; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalStaked == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardRate) .mul(1e18) .div(totalStaked) ); } function rewardForDuration() external view returns (uint256) { return rewardRate.mul(rewardsDuration); } /// @notice Calculate the earned rewards for an account /// @return amount earned by specified account function earned(address account) public view returns (uint256) { return stakedBalances[account] .mul(rewardPerToken().sub(userRewardPerTokenPaid[account])) .div(1e18) .add(rewards[account]); } /// @notice Stake specified amount function stake(uint256 amount) external nonReentrant updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); totalStaked = totalStaked.add(amount); stakedBalances[msg.sender] = stakedBalances[msg.sender].add(amount); dracula.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } /// @notice Withdraw specified amount and collect rewards function unstake(uint256 amount) external { withdraw(amount); getReward(); } /// @notice Claims reward for the sender account function getReward() public nonReentrant updateReward(msg.sender) { uint256 reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; rewardToken.safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } /// @notice Withdraw specified amount /// @dev A configurable percentage is burnt on withdrawal function withdraw(uint256 amount) internal nonReentrant updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); uint256 amount_send = amount; if (burnRate > 0) { uint256 amount_burn = amount.mul(burnRate).div(100); amount_send = amount.sub(amount_burn); require(amount == amount_send + amount_burn, "Burn value invalid"); dracula.burn(amount_burn); } totalStaked = totalStaked.sub(amount); stakedBalances[msg.sender] = stakedBalances[msg.sender].sub(amount); dracula.safeTransfer(msg.sender, amount_send); emit Withdrawn(msg.sender, amount_send); } /// @notice Transfers reward amount to pool and updates reward rate /// @dev Should be called by external mechanism function fundPool(uint256 reward) external override onlyRewardDistributor updateReward(address(0)) { // overflow fix according to https://sips.synthetix.io/sips/sip-77 require(reward < uint(-1) / 1e18, "the notified reward cannot invoke multiplication overflow"); rewardToken.safeTransferFrom(msg.sender, address(this), reward); if (block.timestamp >= periodFinish) { rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(rewardsDuration); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); emit RewardAdded(reward); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"contract DraculaToken","name":"_dracula","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"address","name":"_rewardDistributor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dracula","outputs":[{"internalType":"contract DraculaToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"fundPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnRate","type":"uint256"}],"name":"setBurnRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardDistributor","type":"address"}],"name":"setRewardDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStaked","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":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600a5534801561001557600080fd5b506040516117703803806117708339818101604052608081101561003857600080fd5b508051602082015160408301516060909301519192909180600061005a6100f1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b039384161782556002919091556004805482169683169690961790955560038054909516931692909217909255506005556100f5565b3390565b61166c806101046000396000f3fe608060405234801561001057600080fd5b50600436106101a25760003560e01c80638b876347116100ee578063cd3daf9d11610097578063df136d6511610071578063df136d6514610369578063ebe2b12b14610371578063f2fde38b14610379578063f7c618c11461039f576101a2565b8063cd3daf9d1461033c578063d3815bda14610344578063da3a5f721461034c576101a2565b8063a694fc3a116100c8578063a694fc3a1461030f578063bed998501461032c578063c8f33c9114610334576101a2565b80638b8763471461029f5780638da5cb5b146102c5578063a1809b95146102e9576101a2565b80636946a235116101505780637b0a47ee1161012a5780637b0a47ee1461028757806380faa57d1461028f578063817b1cd214610297576101a2565b80636946a2351461025157806370a0823114610259578063715018a61461027f576101a2565b80632e17de78116101815780632e17de7814610224578063386a9525146102415780633d18b91214610249576101a2565b80628cc262146101a75780630700037d146101df578063189d165e14610205575b600080fd5b6101cd600480360360208110156101bd57600080fd5b50356001600160a01b03166103a7565b60408051918252519081900360200190f35b6101cd600480360360208110156101f557600080fd5b50356001600160a01b0316610425565b6102226004803603602081101561021b57600080fd5b5035610437565b005b6102226004803603602081101561023a57600080fd5b50356104fc565b6101cd610510565b610222610516565b6101cd61064b565b6101cd6004803603602081101561026f57600080fd5b50356001600160a01b031661066a565b610222610685565b6101cd610746565b6101cd61074c565b6101cd61075a565b6101cd600480360360208110156102b557600080fd5b50356001600160a01b0316610760565b6102cd610772565b604080516001600160a01b039092168252519081900360200190f35b610222600480360360208110156102ff57600080fd5b50356001600160a01b0316610781565b6102226004803603602081101561032557600080fd5b503561081a565b6101cd6109bb565b6101cd6109c1565b6101cd6109c7565b6102cd610a15565b6102226004803603602081101561036257600080fd5b5035610a24565b6101cd610c0d565b6101cd610c13565b6102226004803603602081101561038f57600080fd5b50356001600160a01b0316610c19565b6102cd610d30565b6001600160a01b0381166000908152600e6020908152604080832054600d90925282205461041f919061041990670de0b6b3a764000090610413906103f4906103ee6109c7565b90610d3f565b6001600160a01b0388166000908152600c602052604090205490610d88565b90610de1565b90610e23565b92915050565b600e6020526000908152604090205481565b61043f610e7d565b6000546001600160a01b039081169116146104a1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a8111156104f7576040805162461bcd60e51b815260206004820152601760248201527f496e76616c6964206275726e20726174652076616c7565000000000000000000604482015290519081900360640190fd5b600a55565b61050581610e81565b61050d610516565b50565b60055481565b60028054141561056d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600280553361057a6109c7565b60095561058561074c565b6008556001600160a01b038116156105cc576105a0816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b336000908152600e6020526040902054801561064257336000818152600e602052604081205560045461060b916001600160a01b03909116908361112c565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600255565b6000610664600554600754610d8890919063ffffffff16565b90505b90565b6001600160a01b03166000908152600c602052604090205490565b61068d610e7d565b6000546001600160a01b039081169116146106ef576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60075481565b6000610664426006546111b1565b600b5481565b600d6020526000908152604090205481565b6000546001600160a01b031690565b610789610e7d565b6000546001600160a01b039081169116146107eb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600280541415610871576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600280553361087e6109c7565b60095561088961074c565b6008556001600160a01b038116156108d0576108a4816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b60008211610925576040805162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b546109329083610e23565b600b55336000908152600c602052604090205461094f9083610e23565b336000818152600c602052604090209190915560035461097c916001600160a01b039091169030856111c7565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600255565b600a5481565b60085481565b6000600b54600014156109dd5750600954610667565b610664610a0c600b54610413670de0b6b3a7640000610a06600754610a066008546103ee61074c565b90610d88565b60095490610e23565b6003546001600160a01b031681565b6001546001600160a01b0316610a38610e7d565b6001600160a01b031614610a93576040805162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f7420726577617264206469737472696275746f72604482015290519081900360640190fd5b6000610a9d6109c7565b600955610aa861074c565b6008556001600160a01b03811615610aef57610ac3816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b7812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f218210610b465760405162461bcd60e51b81526004018080602001828103825260398152602001806115b36039913960400191505060405180910390fd5b600454610b5e906001600160a01b03163330856111c7565b6006544210610b7d57600554610b75908390610de1565b600755610bc0565b600654600090610b8d9042610d3f565b90506000610ba660075483610d8890919063ffffffff16565b600554909150610bba906104138684610e23565b60075550505b426008819055600554610bd39190610e23565b6006556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60095481565b60065481565b610c21610e7d565b6000546001600160a01b03908116911614610c83576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610cc85760405162461bcd60e51b815260040180806020018281038252602681526020018061158d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6000610d8183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611255565b9392505050565b600082610d975750600061041f565b82820282848281610da457fe5b0414610d815760405162461bcd60e51b81526004018080602001828103825260218152602001806115ec6021913960400191505060405180910390fd5b6000610d8183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112ec565b600082820183811015610d81576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600280541415610ed8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805533610ee56109c7565b600955610ef061074c565b6008556001600160a01b03811615610f3757610f0b816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b60008211610f8c576040805162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600a54829015611096576000610fb26064610413600a5487610d8890919063ffffffff16565b9050610fbe8482610d3f565b91508082018414611016576040805162461bcd60e51b815260206004820152601260248201527f4275726e2076616c756520696e76616c69640000000000000000000000000000604482015290519081900360640190fd5b600354604080517f42966c680000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b50505050505b600b546110a39084610d3f565b600b55336000908152600c60205260409020546110c09084610d3f565b336000818152600c60205260409020919091556003546110ec916001600160a01b03909116908361112c565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050600160025550565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526111ac908490611351565b505050565b60008183106111c05781610d81565b5090919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261124f908590611351565b50505050565b600081848411156112e45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112a9578181015183820152602001611291565b50505050905090810190601f1680156112d65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361133b5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156112a9578181015183820152602001611291565b50600083858161134757fe5b0495945050505050565b60606113a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114029092919063ffffffff16565b8051909150156111ac578080602001905160208110156113c557600080fd5b50516111ac5760405162461bcd60e51b815260040180806020018281038252602a81526020018061160d602a913960400191505060405180910390fd5b60606114118484600085611419565b949350505050565b606061142485611586565b611475576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114b45780518252601f199092019160209182019101611495565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611516576040519150601f19603f3d011682016040523d82523d6000602084013e61151b565b606091505b5091509150811561152f5791506114119050565b80511561153f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156112a9578181015183820152602001611291565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373746865206e6f746966696564207265776172642063616e6e6f7420696e766f6b65206d756c7469706c69636174696f6e206f766572666c6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212203c8daf1820b796d976370e019195ffbcf712a46bb2a1d366d0e172a0d8a86a9b64736f6c634300060c0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000b78b3320493a4efaa1028130c5ba26f0b6085ef8000000000000000000000000000000000000000000000000000000000012750000000000000000000000000094627695f66ab36ae00c1995a30bf5b30e139873
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a25760003560e01c80638b876347116100ee578063cd3daf9d11610097578063df136d6511610071578063df136d6514610369578063ebe2b12b14610371578063f2fde38b14610379578063f7c618c11461039f576101a2565b8063cd3daf9d1461033c578063d3815bda14610344578063da3a5f721461034c576101a2565b8063a694fc3a116100c8578063a694fc3a1461030f578063bed998501461032c578063c8f33c9114610334576101a2565b80638b8763471461029f5780638da5cb5b146102c5578063a1809b95146102e9576101a2565b80636946a235116101505780637b0a47ee1161012a5780637b0a47ee1461028757806380faa57d1461028f578063817b1cd214610297576101a2565b80636946a2351461025157806370a0823114610259578063715018a61461027f576101a2565b80632e17de78116101815780632e17de7814610224578063386a9525146102415780633d18b91214610249576101a2565b80628cc262146101a75780630700037d146101df578063189d165e14610205575b600080fd5b6101cd600480360360208110156101bd57600080fd5b50356001600160a01b03166103a7565b60408051918252519081900360200190f35b6101cd600480360360208110156101f557600080fd5b50356001600160a01b0316610425565b6102226004803603602081101561021b57600080fd5b5035610437565b005b6102226004803603602081101561023a57600080fd5b50356104fc565b6101cd610510565b610222610516565b6101cd61064b565b6101cd6004803603602081101561026f57600080fd5b50356001600160a01b031661066a565b610222610685565b6101cd610746565b6101cd61074c565b6101cd61075a565b6101cd600480360360208110156102b557600080fd5b50356001600160a01b0316610760565b6102cd610772565b604080516001600160a01b039092168252519081900360200190f35b610222600480360360208110156102ff57600080fd5b50356001600160a01b0316610781565b6102226004803603602081101561032557600080fd5b503561081a565b6101cd6109bb565b6101cd6109c1565b6101cd6109c7565b6102cd610a15565b6102226004803603602081101561036257600080fd5b5035610a24565b6101cd610c0d565b6101cd610c13565b6102226004803603602081101561038f57600080fd5b50356001600160a01b0316610c19565b6102cd610d30565b6001600160a01b0381166000908152600e6020908152604080832054600d90925282205461041f919061041990670de0b6b3a764000090610413906103f4906103ee6109c7565b90610d3f565b6001600160a01b0388166000908152600c602052604090205490610d88565b90610de1565b90610e23565b92915050565b600e6020526000908152604090205481565b61043f610e7d565b6000546001600160a01b039081169116146104a1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a8111156104f7576040805162461bcd60e51b815260206004820152601760248201527f496e76616c6964206275726e20726174652076616c7565000000000000000000604482015290519081900360640190fd5b600a55565b61050581610e81565b61050d610516565b50565b60055481565b60028054141561056d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600280553361057a6109c7565b60095561058561074c565b6008556001600160a01b038116156105cc576105a0816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b336000908152600e6020526040902054801561064257336000818152600e602052604081205560045461060b916001600160a01b03909116908361112c565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600255565b6000610664600554600754610d8890919063ffffffff16565b90505b90565b6001600160a01b03166000908152600c602052604090205490565b61068d610e7d565b6000546001600160a01b039081169116146106ef576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60075481565b6000610664426006546111b1565b600b5481565b600d6020526000908152604090205481565b6000546001600160a01b031690565b610789610e7d565b6000546001600160a01b039081169116146107eb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600280541415610871576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600280553361087e6109c7565b60095561088961074c565b6008556001600160a01b038116156108d0576108a4816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b60008211610925576040805162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b546109329083610e23565b600b55336000908152600c602052604090205461094f9083610e23565b336000818152600c602052604090209190915560035461097c916001600160a01b039091169030856111c7565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600255565b600a5481565b60085481565b6000600b54600014156109dd5750600954610667565b610664610a0c600b54610413670de0b6b3a7640000610a06600754610a066008546103ee61074c565b90610d88565b60095490610e23565b6003546001600160a01b031681565b6001546001600160a01b0316610a38610e7d565b6001600160a01b031614610a93576040805162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f7420726577617264206469737472696275746f72604482015290519081900360640190fd5b6000610a9d6109c7565b600955610aa861074c565b6008556001600160a01b03811615610aef57610ac3816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b7812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f218210610b465760405162461bcd60e51b81526004018080602001828103825260398152602001806115b36039913960400191505060405180910390fd5b600454610b5e906001600160a01b03163330856111c7565b6006544210610b7d57600554610b75908390610de1565b600755610bc0565b600654600090610b8d9042610d3f565b90506000610ba660075483610d8890919063ffffffff16565b600554909150610bba906104138684610e23565b60075550505b426008819055600554610bd39190610e23565b6006556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60095481565b60065481565b610c21610e7d565b6000546001600160a01b03908116911614610c83576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610cc85760405162461bcd60e51b815260040180806020018281038252602681526020018061158d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6000610d8183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611255565b9392505050565b600082610d975750600061041f565b82820282848281610da457fe5b0414610d815760405162461bcd60e51b81526004018080602001828103825260218152602001806115ec6021913960400191505060405180910390fd5b6000610d8183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112ec565b600082820183811015610d81576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600280541415610ed8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805533610ee56109c7565b600955610ef061074c565b6008556001600160a01b03811615610f3757610f0b816103a7565b6001600160a01b0382166000908152600e6020908152604080832093909355600954600d909152919020555b60008211610f8c576040805162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600a54829015611096576000610fb26064610413600a5487610d8890919063ffffffff16565b9050610fbe8482610d3f565b91508082018414611016576040805162461bcd60e51b815260206004820152601260248201527f4275726e2076616c756520696e76616c69640000000000000000000000000000604482015290519081900360640190fd5b600354604080517f42966c680000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b50505050505b600b546110a39084610d3f565b600b55336000908152600c60205260409020546110c09084610d3f565b336000818152600c60205260409020919091556003546110ec916001600160a01b03909116908361112c565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050600160025550565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526111ac908490611351565b505050565b60008183106111c05781610d81565b5090919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261124f908590611351565b50505050565b600081848411156112e45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112a9578181015183820152602001611291565b50505050905090810190601f1680156112d65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361133b5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156112a9578181015183820152602001611291565b50600083858161134757fe5b0495945050505050565b60606113a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114029092919063ffffffff16565b8051909150156111ac578080602001905160208110156113c557600080fd5b50516111ac5760405162461bcd60e51b815260040180806020018281038252602a81526020018061160d602a913960400191505060405180910390fd5b60606114118484600085611419565b949350505050565b606061142485611586565b611475576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114b45780518252601f199092019160209182019101611495565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611516576040519150601f19603f3d011682016040523d82523d6000602084013e61151b565b606091505b5091509150811561152f5791506114119050565b80511561153f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156112a9578181015183820152602001611291565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373746865206e6f746966696564207265776172642063616e6e6f7420696e766f6b65206d756c7469706c69636174696f6e206f766572666c6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212203c8daf1820b796d976370e019195ffbcf712a46bb2a1d366d0e172a0d8a86a9b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000b78b3320493a4efaa1028130c5ba26f0b6085ef8000000000000000000000000000000000000000000000000000000000012750000000000000000000000000094627695f66ab36ae00c1995a30bf5b30e139873
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _dracula (address): 0xb78B3320493a4EFaa1028130C5Ba26f0B6085Ef8
Arg [2] : _rewardsDuration (uint256): 1209600
Arg [3] : _rewardDistributor (address): 0x94627695F66Ab36Ae00c1995a30Bf5B30E139873
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000b78b3320493a4efaa1028130c5ba26f0b6085ef8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000127500
Arg [3] : 00000000000000000000000094627695f66ab36ae00c1995a30bf5b30e139873
Deployed Bytecode Sourcemap
45709:5717:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48376:270;;;;;;;;;;;;;;;;-1:-1:-1;48376:270:0;-1:-1:-1;;;;;48376:270:0;;:::i;:::-;;;;;;;;;;;;;;;;46333:42;;;;;;;;;;;;;;;;-1:-1:-1;46333:42:0;-1:-1:-1;;;;;46333:42:0;;:::i;47406:160::-;;;;;;;;;;;;;;;;-1:-1:-1;47406:160:0;;:::i;:::-;;49137:99;;;;;;;;;;;;;;;;-1:-1:-1;49137:99:0;;:::i;45948:30::-;;;:::i;49298:306::-;;;:::i;48137:118::-;;;:::i;47281:117::-;;;;;;;;;;;;;;;;-1:-1:-1;47281:117:0;-1:-1:-1;;;;;47281:117:0;;:::i;21580:148::-;;;:::i;46021:25::-;;;:::i;47574:131::-;;;:::i;46179:26::-;;;:::i;46269:57::-;;;;;;;;;;;;;;;;-1:-1:-1;46269:57:0;-1:-1:-1;;;;;46269:57:0;;:::i;20938:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;20938:79:0;;;;;;;;;;;;;;25312:157;;;;;;;;;;;;;;;;-1:-1:-1;25312:157:0;-1:-1:-1;;;;;25312:157:0;;:::i;48694:372::-;;;;;;;;;;;;;;;;-1:-1:-1;48694:372:0;;:::i;46131:27::-;;;:::i;46053:29::-;;;:::i;47713:416::-;;;:::i;45882:27::-;;;:::i;50546:877::-;;;;;;;;;;;;;;;;-1:-1:-1;50546:877:0;;:::i;46089:35::-;;;:::i;45987:27::-;;;:::i;21883:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21883:244:0;-1:-1:-1;;;;;21883:244:0;;:::i;45916:25::-;;;:::i;48376:270::-;-1:-1:-1;;;;;48621:16:0;;48430:7;48621:16;;;:7;:16;;;;;;;;;48537:22;:31;;;;;;48470:168;;48621:16;48470:128;;48593:4;;48470:100;;48516:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;-1:-1:-1;;;;;48470:23:0;;;;;;:14;:23;;;;;;;:45;:100::i;:::-;:122;;:128::i;:::-;:150;;:168::i;:::-;48450:188;48376:270;-1:-1:-1;;48376:270:0:o;46333:42::-;;;;;;;;;;;;;:::o;47406:160::-;21160:12;:10;:12::i;:::-;21150:6;;-1:-1:-1;;;;;21150:6:0;;;:22;;;21142:67;;;;;-1:-1:-1;;;21142:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47497:2:::1;47484:9;:15;;47476:51;;;::::0;;-1:-1:-1;;;47476:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;47538:8;:20:::0;47406:160::o;49137:99::-;49190:16;49199:6;49190:8;:16::i;:::-;49217:11;:9;:11::i;:::-;49137:99;:::o;45948:30::-;;;;:::o;49298:306::-;23867:1;24473:7;;:19;;24465:63;;;;;-1:-1:-1;;;24465:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23867:1;24606:18;;49352:10:::1;46677:16;:14;:16::i;:::-;46654:20;:39:::0;46721:26:::1;:24;:26::i;:::-;46704:14;:43:::0;-1:-1:-1;;;;;46762:21:0;::::1;::::0;46758:157:::1;;46819:15;46826:7;46819:6;:15::i;:::-;-1:-1:-1::0;;;;;46800:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;46883:20:::1;::::0;46849:22:::1;:31:::0;;;;;;:54;46758:157:::1;49400:10:::2;49375:14;49392:19:::0;;;:7:::2;:19;::::0;;;;;49426:10;;49422:175:::2;;49461:10;49475:1;49453:19:::0;;;:7:::2;:19;::::0;;;;:23;49491:11:::2;::::0;:44:::2;::::0;-1:-1:-1;;;;;49491:11:0;;::::2;::::0;49528:6;49491:24:::2;:44::i;:::-;49555:30;::::0;;;;;;;49566:10:::2;::::0;49555:30:::2;::::0;;;;;::::2;::::0;;::::2;49422:175;-1:-1:-1::0;;23823:1:0;24785:7;:22;49298:306::o;48137:118::-;48189:7;48216:31;48231:15;;48216:10;;:14;;:31;;;;:::i;:::-;48209:38;;48137:118;;:::o;47281:117::-;-1:-1:-1;;;;;47367:23:0;47340:7;47367:23;;;:14;:23;;;;;;;47281:117::o;21580:148::-;21160:12;:10;:12::i;:::-;21150:6;;-1:-1:-1;;;;;21150:6:0;;;:22;;;21142:67;;;;;-1:-1:-1;;;21142:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21687:1:::1;21671:6:::0;;21650:40:::1;::::0;-1:-1:-1;;;;;21671:6:0;;::::1;::::0;21650:40:::1;::::0;21687:1;;21650:40:::1;21718:1;21701:19:::0;;-1:-1:-1;;21701:19:0::1;::::0;;21580:148::o;46021:25::-;;;;:::o;47574:131::-;47631:7;47658:39;47667:15;47684:12;;47658:8;:39::i;46179:26::-;;;;:::o;46269:57::-;;;;;;;;;;;;;:::o;20938:79::-;20976:7;21003:6;-1:-1:-1;;;;;21003:6:0;20938:79;:::o;25312:157::-;21160:12;:10;:12::i;:::-;21150:6;;-1:-1:-1;;;;;21150:6:0;;;:22;;;21142:67;;;;;-1:-1:-1;;;21142:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25423:17:::1;:38:::0;;-1:-1:-1;;25423:38:0::1;-1:-1:-1::0;;;;;25423:38:0;;;::::1;::::0;;;::::1;::::0;;25312:157::o;48694:372::-;23867:1;24473:7;;:19;;24465:63;;;;;-1:-1:-1;;;24465:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23867:1;24606:18;;48760:10:::1;46677:16;:14;:16::i;:::-;46654:20;:39:::0;46721:26:::1;:24;:26::i;:::-;46704:14;:43:::0;-1:-1:-1;;;;;46762:21:0;::::1;::::0;46758:157:::1;;46819:15;46826:7;46819:6;:15::i;:::-;-1:-1:-1::0;;;;;46800:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;46883:20:::1;::::0;46849:22:::1;:31:::0;;;;;;:54;46758:157:::1;48800:1:::2;48791:6;:10;48783:37;;;::::0;;-1:-1:-1;;;48783:37:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;48845:11;::::0;:23:::2;::::0;48861:6;48845:15:::2;:23::i;:::-;48831:11;:37:::0;48923:10:::2;48908:26;::::0;;;:14:::2;:26;::::0;;;;;:38:::2;::::0;48939:6;48908:30:::2;:38::i;:::-;48894:10;48879:26;::::0;;;:14:::2;:26;::::0;;;;:67;;;;48957:7:::2;::::0;:59:::2;::::0;-1:-1:-1;;;;;48957:7:0;;::::2;::::0;49002:4:::2;49009:6:::0;48957:24:::2;:59::i;:::-;49032:26;::::0;;;;;;;49039:10:::2;::::0;49032:26:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;23823:1:0;24785:7;:22;48694:372::o;46131:27::-;;;;:::o;46053:29::-;;;;:::o;47713:416::-;47760:7;47784:11;;47799:1;47784:16;47780:76;;;-1:-1:-1;47824:20:0;;47817:27;;47780:76;47886:235;47929:177;48094:11;;47929:138;48062:4;47929:106;48024:10;;47929:68;47982:14;;47929:26;:24;:26::i;:68::-;:94;;:106::i;:177::-;47886:20;;;:24;:235::i;45882:27::-;;;-1:-1:-1;;;;;45882:27:0;;:::o;50546:877::-;25230:17;;-1:-1:-1;;;;;25230:17:0;25214:12;:10;:12::i;:::-;-1:-1:-1;;;;;25214:33:0;;25206:78;;;;;-1:-1:-1;;;25206:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50677:1:::1;46677:16;:14;:16::i;:::-;46654:20;:39:::0;46721:26:::1;:24;:26::i;:::-;46704:14;:43:::0;-1:-1:-1;;;;;46762:21:0;::::1;::::0;46758:157:::1;;46819:15;46826:7;46819:6;:15::i;:::-;-1:-1:-1::0;;;;;46800:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;46883:20:::1;::::0;46849:22:::1;:31:::0;;;;;;:54;46758:157:::1;50790:15:::0;50781:24;::::2;50773:94;;;;-1:-1:-1::0;;;50773:94:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50880:11;::::0;:63:::2;::::0;-1:-1:-1;;;;;50880:11:0::2;50909:10;50929:4;50936:6:::0;50880:28:::2;:63::i;:::-;50979:12;;50960:15;:31;50956:318;;51032:15;::::0;51021:27:::2;::::0;:6;;:10:::2;:27::i;:::-;51008:10;:40:::0;50956:318:::2;;;51101:12;::::0;51081:17:::2;::::0;51101:33:::2;::::0;51118:15:::2;51101:16;:33::i;:::-;51081:53;;51149:16;51168:25;51182:10;;51168:9;:13;;:25;;;;:::i;:::-;51246:15;::::0;51149:44;;-1:-1:-1;51221:41:0::2;::::0;:20:::2;:6:::0;51149:44;51221:10:::2;:20::i;:41::-;51208:10;:54:::0;-1:-1:-1;;50956:318:0::2;51303:15;51286:14;:32:::0;;;51364:15:::2;::::0;51344:36:::2;::::0;51303:15;51344:19:::2;:36::i;:::-;51329:12;:51:::0;51396:19:::2;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;25295:1:::1;50546:877:::0;:::o;46089:35::-;;;;:::o;45987:27::-;;;;:::o;21883:244::-;21160:12;:10;:12::i;:::-;21150:6;;-1:-1:-1;;;;;21150:6:0;;;:22;;;21142:67;;;;;-1:-1:-1;;;21142:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21972:22:0;::::1;21964:73;;;;-1:-1:-1::0;;;21964:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22074:6;::::0;;22053:38:::1;::::0;-1:-1:-1;;;;;22053:38:0;;::::1;::::0;22074:6;::::1;::::0;22053:38:::1;::::0;::::1;22102:6;:17:::0;;-1:-1:-1;;22102:17:0::1;-1:-1:-1::0;;;;;22102:17:0;;;::::1;::::0;;;::::1;::::0;;21883:244::o;45916:25::-;;;-1:-1:-1;;;;;45916:25:0;;:::o;14859:136::-;14917:7;14944:43;14948:1;14951;14944:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;14937:50;14859:136;-1:-1:-1;;;14859:136:0:o;15749:471::-;15807:7;16052:6;16048:47;;-1:-1:-1;16082:1:0;16075:8;;16048:47;16119:5;;;16123:1;16119;:5;:1;16143:5;;;;;:10;16135:56;;;;-1:-1:-1;;;16135:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16696:132;16754:7;16781:39;16785:1;16788;16781:39;;;;;;;;;;;;;;;;;:3;:39::i;14395:181::-;14453:7;14485:5;;;14509:6;;;;14501:46;;;;;-1:-1:-1;;;14501:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19492:106;19580:10;19492:106;:::o;49718:694::-;23867:1;24473:7;;:19;;24465:63;;;;;-1:-1:-1;;;24465:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23867:1;24606:18;;49787:10:::1;46677:16;:14;:16::i;:::-;46654:20;:39:::0;46721:26:::1;:24;:26::i;:::-;46704:14;:43:::0;-1:-1:-1;;;;;46762:21:0;::::1;::::0;46758:157:::1;;46819:15;46826:7;46819:6;:15::i;:::-;-1:-1:-1::0;;;;;46800:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;46883:20:::1;::::0;46849:22:::1;:31:::0;;;;;;:54;46758:157:::1;49827:1:::2;49818:6;:10;49810:40;;;::::0;;-1:-1:-1;;;49810:40:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;49906:8;::::0;49883:6;;49906:12;49902:269:::2;;49935:19;49957:29;49982:3;49957:20;49968:8;;49957:6;:10;;:20;;;;:::i;:29::-;49935:51:::0;-1:-1:-1;50015:23:0::2;:6:::0;49935:51;50015:10:::2;:23::i;:::-;50001:37;;50085:11;50071;:25;50061:6;:35;50053:66;;;::::0;;-1:-1:-1;;;50053:66:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;50134:7;::::0;:25:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;-1:-1:-1;;;;;50134:7:0;;::::2;::::0;:12:::2;::::0;:25;;;;;:7:::2;::::0;:25;;;;;;;;:7;;:25;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;49902:269;;50197:11;::::0;:23:::2;::::0;50213:6;50197:15:::2;:23::i;:::-;50183:11;:37:::0;50275:10:::2;50260:26;::::0;;;:14:::2;:26;::::0;;;;;:38:::2;::::0;50291:6;50260:30:::2;:38::i;:::-;50246:10;50231:26;::::0;;;:14:::2;:26;::::0;;;;:67;;;;50309:7:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;50309:7:0;;::::2;::::0;50342:11;50309:20:::2;:45::i;:::-;50370:34;::::0;;;;;;;50380:10:::2;::::0;50370:34:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;23823:1:0;24785:7;:22;-1:-1:-1;49718:694:0:o;9548:177::-;9658:58;;;-1:-1:-1;;;;;9658:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9681:23;9658:58;;;9631:86;;9651:5;;9631:19;:86::i;:::-;9548:177;;;:::o;13047:106::-;13105:7;13136:1;13132;:5;:13;;13144:1;13132:13;;;-1:-1:-1;13140:1:0;;13047:106;-1:-1:-1;13047:106:0:o;9733:205::-;9861:68;;;-1:-1:-1;;;;;9861:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9884:27;9861:68;;;9834:96;;9854:5;;9834:19;:96::i;:::-;9733:205;;;;:::o;15298:192::-;15384:7;15420:12;15412:6;;;;15404:29;;;;-1:-1:-1;;;15404:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;15456:5:0;;;15298:192::o;17324:278::-;17410:7;17445:12;17438:5;17430:28;;;;-1:-1:-1;;;17430:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17469:9;17485:1;17481;:5;;;;;;;17324:278;-1:-1:-1;;;;;17324:278:0:o;11853:761::-;12277:23;12303:69;12331:4;12303:69;;;;;;;;;;;;;;;;;12311:5;-1:-1:-1;;;;;12303:27:0;;;:69;;;;;:::i;:::-;12387:17;;12277:95;;-1:-1:-1;12387:21:0;12383:224;;12529:10;12518:30;;;;;;;;;;;;;;;-1:-1:-1;12518:30:0;12510:85;;;;-1:-1:-1;;;12510:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6529:196;6632:12;6664:53;6687:6;6695:4;6701:1;6704:12;6664:22;:53::i;:::-;6657:60;6529:196;-1:-1:-1;;;;6529:196:0:o;7906:979::-;8036:12;8069:18;8080:6;8069:10;:18::i;:::-;8061:60;;;;;-1:-1:-1;;;8061:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8195:12;8209:23;8236:6;-1:-1:-1;;;;;8236:11:0;8256:8;8267:4;8236:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;8236:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8194:78;;;;8287:7;8283:595;;;8318:10;-1:-1:-1;8311:17:0;;-1:-1:-1;8311:17:0;8283:595;8432:17;;:21;8428:439;;8695:10;8689:17;8756:15;8743:10;8739:2;8735:19;8728:44;8643:148;8831:20;;-1:-1:-1;;;8831:20:0;;;;;;;;;;;;;;;;;8838:12;;8831:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3611:422;3978:20;4017:8;;;3611:422::o
Swarm Source
ipfs://3c8daf1820b796d976370e019195ffbcf712a46bb2a1d366d0e172a0d8a86a9b
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.