More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,854 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 12176680 | 1276 days ago | IN | 0 ETH | 0.01575208 | ||||
Deposit | 12176677 | 1276 days ago | IN | 0 ETH | 0.00631274 | ||||
Deposit | 12176677 | 1276 days ago | IN | 0 ETH | 0.01714631 | ||||
Withdraw | 12170355 | 1277 days ago | IN | 0 ETH | 0.0146383 | ||||
Withdraw | 12170294 | 1277 days ago | IN | 0 ETH | 0.01689987 | ||||
Withdraw | 12118456 | 1285 days ago | IN | 0 ETH | 0.02020648 | ||||
Withdraw | 12115514 | 1286 days ago | IN | 0 ETH | 0.02692511 | ||||
Deposit | 12045740 | 1296 days ago | IN | 0 ETH | 0.0268508 | ||||
Withdraw | 11996978 | 1304 days ago | IN | 0 ETH | 0.01587377 | ||||
Withdraw | 11968511 | 1308 days ago | IN | 0 ETH | 0.02300805 | ||||
Withdraw | 11960724 | 1310 days ago | IN | 0 ETH | 0.02090547 | ||||
Withdraw | 11960657 | 1310 days ago | IN | 0 ETH | 0.01498072 | ||||
Withdraw | 11928787 | 1315 days ago | IN | 0 ETH | 0.01997464 | ||||
Withdraw | 11928751 | 1315 days ago | IN | 0 ETH | 0.01714776 | ||||
Withdraw | 11928724 | 1315 days ago | IN | 0 ETH | 0.02204269 | ||||
Withdraw | 11922244 | 1316 days ago | IN | 0 ETH | 0.02221043 | ||||
Withdraw | 11921834 | 1316 days ago | IN | 0 ETH | 0.02668326 | ||||
Deposit | 11903330 | 1318 days ago | IN | 0 ETH | 0.01536744 | ||||
Deposit | 11901000 | 1319 days ago | IN | 0 ETH | 0.01713306 | ||||
Withdraw | 11873445 | 1323 days ago | IN | 0 ETH | 0.02296938 | ||||
Withdraw | 11839364 | 1328 days ago | IN | 0 ETH | 0.02263456 | ||||
Withdraw | 11838146 | 1328 days ago | IN | 0 ETH | 0.01794575 | ||||
Withdraw | 11835084 | 1329 days ago | IN | 0 ETH | 0.01812896 | ||||
Deposit | 11834905 | 1329 days ago | IN | 0 ETH | 0.02026476 | ||||
Deposit | 11831098 | 1330 days ago | IN | 0 ETH | 0.02110912 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
VoltsChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-08 */ /* website: volts.finance __ __ __ __ / | / | / | / | $$ | $$ | ______ $$ | _$$ |_ _______ $$ | $$ |/ \ $$ |/ $$ | / | $$ \ /$$//$$$$$$ |$$ |$$$$$$/ /$$$$$$$/ $$ /$$/ $$ | $$ |$$ | $$ | __$$ \ $$ $$/ $$ \__$$ |$$ | $$ |/ |$$$$$$ | $$$/ $$ $$/ $$ | $$ $$// $$/ $/ $$$$$$/ $$/ $$$$/ $$$$$$$/ improved version of CHARGED */ pragma solidity ^0.6.12; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } /** * @dev Contract module 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 { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the chef contract) */ 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; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership}. * * This module is used through inheritance. It will make available the modifier * `onlyMinter`, which can be applied to your functions to restrict their use to * the minter. */ contract Mintable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the chef contract) */ address private _minter; event MintershipTransferred(address indexed previousMinter, address indexed newMinter); /** * @dev Initializes the contract setting the deployer as the initial minter. */ constructor () internal { address msgSender = _msgSender(); _minter = msgSender; emit MintershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current minter. */ function minter() public view returns (address) { return _minter; } /** * @dev Throws if called by any account other than the minter. */ modifier onlyMinter() { require(_minter == _msgSender(), "Mintable: caller is not the minter"); _; } /** * @dev Transfers mintership of the contract to a new account (`newMinter`). * Can only be called by the current minter. */ function transferMintership(address newMinter) public virtual onlyMinter { require(newMinter != address(0), "Mintable: new minter is the zero address"); emit MintershipTransferred(_minter, newMinter); _minter = newMinter; } } /** * @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; uint256 private _burnedSupply; uint256 private _burnRate; 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, uint8 decimals, uint256 burnrate, uint256 initSupply) public { _name = name; _symbol = symbol; _decimals = decimals; _burnRate = burnrate; _totalSupply = 0; _mint(msg.sender, initSupply*(10**uint256(_decimals))); _burnedSupply = 0; } /** * @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 Returns the amount of burned tokens. */ function burnedSupply() public view returns (uint256) { return _burnedSupply; } /** * @dev Returns the burnrate. */ function burnRate() public view returns (uint256) { return _burnRate; } /** * @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-transfer}. * * Requirements: * * - `account` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function burn(uint256 amount) public virtual returns (bool) { _burn(_msgSender(), 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"); uint256 amount_burn = amount.mul(_burnRate).div(100); uint256 amount_send = amount.sub(amount_burn); require(amount == amount_send + amount_burn, "Burn value invalid"); _burn(sender, amount_burn); amount = amount_send; _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. * * HINT: This function is 'internal' and therefore can only be called from another * function inside this contract! */ 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); _burnedSupply = _burnedSupply.add(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {burnRate} to a value other than the initial one. */ function _setupBurnrate(uint8 burnrate_) internal virtual { _burnRate = burnrate_; } /** * @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 { } } // VoltsToken with Governance. // ERC20 (name, symbol, decimals, burnrate, initSupply) contract VoltsToken is ERC20("Volts.Finance", "VOLTS", 18, 0, 1600), Ownable, Mintable { function mint(address _to, uint256 _amount) external onlyMinter { _mint(_to, _amount); } function setupBurnrate(uint8 burnrate_) external onlyOwner { _setupBurnrate(burnrate_); } } contract VoltsChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of // claimable CHARGED by a user is: // // pending reward = (user.amount * pool.accVoltsPerLPShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accVoltsPerLPShare` (and `lastRewardedBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IERC20 lpTokenContract; // Address of LP token contract. string name; // Name of the pool/pair. uint256 allocPoints; // Allocation points from the pool. uint256 lastRewardedBlock; // Last block number where CHARGW distribution occured. uint256 accVoltsPerLPShare; // Accumulated Volts per share. uint256 lpTokenHolding; // Amount of LP token hold by this pool } // Info of Volts minting struct MintInfo { uint256 VoltsPerBlock; // Amount of minted Volts each block. uint256 mintStartBlock; // Minting of this amount starts here. } // The Volts token contract VoltsToken public Volts; address public devaddr; // devmint cant be changed! uint256 public devmint; // Info of each pool. PoolInfo[] public poolInfo; // Info of Volts minting block span. MintInfo[] public mintInfo; // Info of each user that stakes LP tokens. mapping (uint256 => mapping (address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoints = 0; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); constructor( VoltsToken _Volts, address _devaddr, uint256 _devmint, uint256 _VoltsPerBlock, uint256 _mintStartBlock ) public { Volts = _Volts; devaddr = _devaddr; devmint = _devmint; mintInfo.push(MintInfo({ VoltsPerBlock: _VoltsPerBlock, mintStartBlock: _mintStartBlock })); } // Get current mint per block function currentMint() public view returns (uint256){ for(uint256 i = 0; i < mintInfo.length-1; i++){ if(mintInfo[i].mintStartBlock <= block.number && mintInfo[i+1].mintStartBlock > block.number){ return i; } } if(block.number < mintInfo[0].mintStartBlock) { return 99999; } return mintInfo.length-1; } // Amount of block spans for minting different amounts of Volts function mintLength() external view returns (uint256) { return mintInfo.length; } // Return if farming already started or not function farmingActive() external view returns (bool){ return block.number >= mintInfo[0].mintStartBlock; } // Add a new block and mint amount to the mintInfo list. Can only be called by the owner. // Only possible to change for blocks not already mined. function addMint(uint256 _block, uint256 _amount) external onlyOwner { require(_block > block.number + 10, "_block is already mined or too close on getting mined."); mintInfo.push(MintInfo({ VoltsPerBlock: _amount, mintStartBlock: _block })); } // Update the fiven blockspans startblock and mint amount. Can only be called by the owner. // Only possible to change for blocks not already mined. function setMint(uint256 _mid, uint256 _block, uint256 _amount) external onlyOwner { require(_block > block.number + 10, "_block is already mined or too close on getting mined."); require(mintInfo[_mid].mintStartBlock > block.number + 10, "mintStartBlock is already mined or too close on getting mined."); mintInfo[_mid].VoltsPerBlock = _amount; mintInfo[_mid].mintStartBlock = _block; uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { // Only true if first span isn't reached yet if(poolInfo[pid].lastRewardedBlock > mintInfo[_mid].mintStartBlock){ poolInfo[pid].lastRewardedBlock = _block-1; } } } // Deletes a given blockspan for minting. You can't delete first one. Can only be called by the owner. // Only possible to change for blocks not already mined. function deleteMint(uint256 _mid) external onlyOwner { require(_mid != 0, "You can't delete the first blockspan!"); require(_mid < mintInfo.length, "_mid is invalid!"); require(mintInfo[_mid].mintStartBlock > block.number + 10, "_block is already mined or too close on getting mined."); for(uint256 i = _mid; i < mintInfo.length - 1; i++){ mintInfo[i] = mintInfo[i+1]; } mintInfo.pop(); } // Amount of pairs available for farming function poolLength() external view returns (uint256) { return poolInfo.length; } // Add a new LP contract to the pool. Can only be called by the owner. // !!! DO NOT add the same LP token more than once. Rewards will be messed up if you do !!! function addLP(string memory _name, uint256 _allocPoints, IERC20 _lpTokenContract, bool _withUpdate) external onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardedBlock = block.number > mintInfo[0].mintStartBlock ? block.number : mintInfo[0].mintStartBlock-1; totalAllocPoints = totalAllocPoints.add(_allocPoints); poolInfo.push(PoolInfo({ lpTokenContract: _lpTokenContract, name: _name, allocPoints: _allocPoints, lastRewardedBlock: lastRewardedBlock, accVoltsPerLPShare: 0, lpTokenHolding: 0 })); } // Update the given pools allocation points. Can only be called by the owner. function setLP(uint256 _pid, string memory _name, uint256 _allocPoints, bool _withUpdate) external onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoints = totalAllocPoints.sub(poolInfo[_pid].allocPoints).add(_allocPoints); poolInfo[_pid].name = _name; poolInfo[_pid].allocPoints = _allocPoints; } // Return reward over the given span from _from block to _to block. function getVoltsAmountInRange(uint256 _from, uint256 _to) public view returns (uint256) { if(_from < mintInfo[0].mintStartBlock){ _from = mintInfo[0].mintStartBlock-1; } if(_from >= _to) { return 0; } uint256 reward = 0; uint256 startIsIn = 0; bool startSet = false; uint256 endIsIn = 0; bool endSet = false; // If mintInfo.length-1 = 0 (as only one blockspan exists) startIsIn=endIsIn=0 by init. for( uint256 span = 0; span < mintInfo.length-1; span++) { if(_from+1 >= mintInfo[span].mintStartBlock && _from+1 < mintInfo[span+1].mintStartBlock) { startIsIn = span; startSet = true; }else if(!startSet){ startIsIn = mintInfo.length-1; } if(_to >= mintInfo[span].mintStartBlock && _to < mintInfo[span+1].mintStartBlock) { endIsIn = span; endSet = true; }else if(!endSet){ endIsIn = mintInfo.length-1; } } if(startIsIn == endIsIn) { return (_to.sub(_from)).mul(mintInfo[startIsIn].VoltsPerBlock); }else { // If mintInfo.length-1 = 0 (as only one blockspan exists) 'else' will never get used for(uint256 span = 0; span < mintInfo.length-1; span++) { if(startIsIn == endIsIn) { reward += (_to.sub(_from)).mul(mintInfo[startIsIn].VoltsPerBlock); return reward; }else { reward += (mintInfo[startIsIn+1].mintStartBlock-1).sub(_from).mul(mintInfo[startIsIn].VoltsPerBlock); _from = mintInfo[startIsIn+1].mintStartBlock-1; startIsIn ++; } } if(startIsIn == endIsIn) { reward += (_to.sub(_from)).mul(mintInfo[startIsIn].VoltsPerBlock); return reward; } } return reward; } // View function to see pending Volts on frontend. function pendingVolts(uint256 _pid, address _user) external returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accVoltsPerLPShare = pool.accVoltsPerLPShare; // Users LP tokens who is connected to the site uint256 lpSupply = pool.lpTokenContract.balanceOf(address(this)); pool.lpTokenHolding = lpSupply; if (block.number > pool.lastRewardedBlock && lpSupply > 0) { uint256 VoltsReward = getVoltsAmountInRange(pool.lastRewardedBlock, block.number).mul(pool.allocPoints).mul(1e18).div(totalAllocPoints); accVoltsPerLPShare = accVoltsPerLPShare.add(VoltsReward.div(lpSupply)); } return user.amount.mul(accVoltsPerLPShare).div(1e18).sub(user.rewardDebt); } // Update reward vairables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardedBlock) { return; } uint256 lpSupply = pool.lpTokenContract.balanceOf(address(this)); pool.lpTokenHolding = lpSupply; if (lpSupply == 0) { pool.lastRewardedBlock = block.number; return; } uint256 VoltsReward = getVoltsAmountInRange(pool.lastRewardedBlock, block.number).mul(pool.allocPoints).mul(1e18).div(totalAllocPoints); Volts.mint(devaddr, VoltsReward.mul(devmint).div(1e18).div(100)); Volts.mint(address(this), VoltsReward.div(1e18)); pool.accVoltsPerLPShare = pool.accVoltsPerLPShare.add(VoltsReward.div(lpSupply)); pool.lastRewardedBlock = block.number; } // Deposit LP tokens to Chef for Volts allocation. // Also used to claim the users pending Volts tokens (_amount = 0) function deposit(uint256 _pid, uint256 _amount) external { require(!Address.isContract(address(msg.sender)), "Please use your individual account."); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accVoltsPerLPShare).div(1e18).sub(user.rewardDebt); safeVoltsTransfer(msg.sender, pending); } pool.lpTokenContract.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(pool.accVoltsPerLPShare).div(1e18); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from Chef. // Also used to claim the users pending Volts tokens function withdraw(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accVoltsPerLPShare).div(1e18).sub(user.rewardDebt); safeVoltsTransfer(msg.sender, pending); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accVoltsPerLPShare).div(1e18); pool.lpTokenContract.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpTokenContract.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } // Safe Volts transfer function, just in case if rounding error causes pool to not have enough tokens. function safeVoltsTransfer(address _to, uint256 _amount) internal returns (bool) { uint256 VoltsBal = Volts.balanceOf(address(this)); if (_amount > VoltsBal) { return Volts.transfer(_to, VoltsBal); } else { return Volts.transfer(_to, _amount); } } // Update dev address by the previous dev. function changeDevaddr(address _devaddr) external { require(msg.sender == devaddr, "Sender isnt dev!"); devaddr = _devaddr; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract VoltsToken","name":"_Volts","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_devmint","type":"uint256"},{"internalType":"uint256","name":"_VoltsPerBlock","type":"uint256"},{"internalType":"uint256","name":"_mintStartBlock","type":"uint256"}],"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"}],"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"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"Volts","outputs":[{"internalType":"contract VoltsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"contract IERC20","name":"_lpTokenContract","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"addLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"changeDevaddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mid","type":"uint256"}],"name":"deleteMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devmint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farmingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getVoltsAmountInRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintInfo","outputs":[{"internalType":"uint256","name":"VoltsPerBlock","type":"uint256"},{"internalType":"uint256","name":"mintStartBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pendingVolts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpTokenContract","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"allocPoints","type":"uint256"},{"internalType":"uint256","name":"lastRewardedBlock","type":"uint256"},{"internalType":"uint256","name":"accVoltsPerLPShare","type":"uint256"},{"internalType":"uint256","name":"lpTokenHolding","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":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mid","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoints","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":"_pid","type":"uint256"}],"name":"updatePool","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":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060075534801561001557600080fd5b5060405161261c38038061261c833981810160405260a081101561003857600080fd5b508051602082015160408301516060840151608090940151929391929091906000610061610157565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039687166001600160a01b031991821617825560028054969097169516949094178555600392909255604080518082019091529081526020810191825260058054938401815560005251919092027f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db081019190915590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db19091015561015b565b3390565b6124b28061016a6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806388637435116100f9578063cd97433611610097578063e41462d311610071578063e41462d31461055c578063e42907db14610564578063ed8c7cb814610618578063f2fde38b1461063b576101a9565b8063cd97433614610505578063d49e77cd14610531578063e2bbb15814610539576101a9565b806393f1a40b116100d357806393f1a40b146104ac578063aa30298c146104d8578063ab55212a146104e0578063b501eaf5146104fd576101a9565b806388637435146103c55780638ce0519b146104815780638da5cb5b146104a4576101a9565b806344f3800811610166578063630b5ba111610140578063630b5ba11461037357806365ca17831461037b578063715018a6146103a15780637bed3bc2146103a9576101a9565b806344f380081461031057806351eb05a6146103395780635312ea8e14610356576101a9565b806303ede3f7146101ae578063081e3eda146101d25780631526fe27146101ec5780631fa36cbe146102ad578063441a3e70146102b5578063443aa533146102da575b600080fd5b6101b6610661565b604080516001600160a01b039092168252519081900360200190f35b6101da610670565b60408051918252519081900360200190f35b6102096004803603602081101561020257600080fd5b5035610677565b60405180876001600160a01b0316815260200180602001868152602001858152602001848152602001838152602001828103825287818151815260200191508051906020019080838360005b8381101561026d578181015183820152602001610255565b50505050905090810190601f16801561029a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b6101da610753565b6102d8600480360360408110156102cb57600080fd5b5080359060200135610759565b005b6102f7600480360360208110156102f057600080fd5b50356108b5565b6040805192835260208301919091528051918290030190f35b6102d86004803603606081101561032657600080fd5b50803590602081013590604001356108e0565b6102d86004803603602081101561034f57600080fd5b5035610aa6565b6102d86004803603602081101561036c57600080fd5b5035610cec565b6102d8610d84565b6102d86004803603602081101561039157600080fd5b50356001600160a01b0316610da7565b6102d8610e1b565b6103b1610ebd565b604080519115158252519081900360200190f35b6102d8600480360360808110156103db57600080fd5b8101906020810181356401000000008111156103f657600080fd5b82018360208201111561040857600080fd5b8035906020019184600183028401116401000000008311171561042a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505082359350505060208101356001600160a01b031690604001351515610ee7565b6102d86004803603604081101561049757600080fd5b50803590602001356110a3565b6101b66111b5565b6102f7600480360360408110156104c257600080fd5b50803590602001356001600160a01b03166111c4565b6101da6111e8565b6102d8600480360360208110156104f657600080fd5b50356111ee565b6101da6113b7565b6101da6004803603604081101561051b57600080fd5b50803590602001356001600160a01b0316611468565b6101b66115bd565b6102d86004803603604081101561054f57600080fd5b50803590602001356115cc565b6101da61171d565b6102d86004803603608081101561057a57600080fd5b8135919081019060408101602082013564010000000081111561059c57600080fd5b8201836020820111156105ae57600080fd5b803590602001918460018302840111640100000000831117156105d057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050823593505050602001351515611723565b6101da6004803603604081101561062e57600080fd5b5080359060200135611828565b6102d86004803603602081101561065157600080fd5b50356001600160a01b0316611ae4565b6001546001600160a01b031681565b6004545b90565b6004818154811061068457fe5b600091825260209182902060069091020180546001808301805460408051601f60026000199685161561010002969096019093169490940491820187900487028401870190528083526001600160a01b0390931695509293909291908301828280156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b5050505050908060020154908060030154908060040154908060050154905086565b60075481565b60006004838154811061076857fe5b60009182526020808320868452600680835260408086203387529093529190932080549290910290920192508311156107dd576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6107e684610aa6565b6000610823826001015461081d670de0b6b3a764000061081787600401548760000154611bdc90919063ffffffff16565b90611c3c565b90611c7e565b905061082f3382611cc0565b50815461083c9085611c7e565b808355600484015461085c91670de0b6b3a7640000916108179190611bdc565b60018301558254610877906001600160a01b03163386611e27565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600581815481106108c257fe5b60009182526020909120600290910201805460019091015490915082565b6108e8611e7e565b6000546001600160a01b03908116911614610938576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b43600a0182116109795760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b43600a016005848154811061098a57fe5b906000526020600020906002020160010154116109d85760405162461bcd60e51b815260040180806020018281038252603e8152602001806123f0603e913960400191505060405180910390fd5b80600584815481106109e657fe5b9060005260206000209060020201600001819055508160058481548110610a0957fe5b60009182526020822060016002909202010191909155600454905b81811015610a9f5760058581548110610a3957fe5b90600052602060002090600202016001015460048281548110610a5857fe5b9060005260206000209060060201600301541115610a97576001840360048281548110610a8157fe5b9060005260206000209060060201600301819055505b600101610a24565b5050505050565b600060048281548110610ab557fe5b9060005260206000209060060201905080600301544311610ad65750610ce9565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b2057600080fd5b505afa158015610b34573d6000803e3d6000fd5b505050506040513d6020811015610b4a57600080fd5b505160058301819055905080610b67575043600390910155610ce9565b6000610b97600754610817670de0b6b3a7640000610b918760020154610b91896003015443611828565b90611bdc565b6001546002546003549293506001600160a01b03918216926340c10f199290911690610bd79060649061081790670de0b6b3a76400009082908990611bdc565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030610c5b84670de0b6b3a7640000611c3c565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ca157600080fd5b505af1158015610cb5573d6000803e3d6000fd5b50505050610cda610ccf8383611c3c90919063ffffffff16565b600485015490611e82565b60048401555050436003909101555b50565b600060048281548110610cfb57fe5b60009182526020808320858452600680835260408086203380885294529094208054949093020180549094509192610d3d926001600160a01b03169190611e27565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b60045460005b81811015610da357610d9b81610aa6565b600101610d8a565b5050565b6002546001600160a01b03163314610df9576040805162461bcd60e51b815260206004820152601060248201526f53656e6465722069736e74206465762160801b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610e23611e7e565b6000546001600160a01b03908116911614610e73576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006005600081548110610ecd57fe5b906000526020600020906002020160010154431015905090565b610eef611e7e565b6000546001600160a01b03908116911614610f3f576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b8015610f4d57610f4d610d84565b60006005600081548110610f5d57fe5b9060005260206000209060020201600101544311610f9d5760016005600081548110610f8557fe5b90600052602060002090600202016001015403610f9f565b435b600754909150610faf9085611e82565b6007556040805160c0810182526001600160a01b03858116825260208083018981529383018890526060830185905260006080840181905260a0840181905260048054600181018255915283517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600690920291820180546001600160a01b031916919094161783559351805193949293611071937f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c0192919091019061229c565b5060408201518160020155606082015181600301556080820151816004015560a0820151816005015550505050505050565b6110ab611e7e565b6000546001600160a01b039081169116146110fb576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b43600a01821161113c5760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b60408051808201909152908152602081019182526005805460018101825560009190915290517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db060029092029182015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db190910155565b6000546001600160a01b031690565b60066020908152600092835260408084209091529082529020805460019091015482565b60055490565b6111f6611e7e565b6000546001600160a01b03908116911614611246576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b806112825760405162461bcd60e51b81526004018080602001828103825260258152602001806124586025913960400191505060405180910390fd5b60055481106112cb576040805162461bcd60e51b815260206004820152601060248201526f5f6d696420697320696e76616c69642160801b604482015290519081900360640190fd5b43600a01600582815481106112dc57fe5b9060005260206000209060020201600101541161132a5760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b805b6005546000190181101561138a576005816001018154811061134a57fe5b90600052602060002090600202016005828154811061136557fe5b600091825260209091208254600290920201908155600191820154908201550161132c565b50600580548061139657fe5b60008281526020812060026000199093019283020181815560010155905550565b6000805b6005546000190181101561142b5743600582815481106113d757fe5b906000526020600020906002020160010154111580156114175750436005826001018154811061140357fe5b906000526020600020906002020160010154115b15611423579050610674565b6001016113bb565b50600560008154811061143a57fe5b90600052602060002090600202016001015443101561145d57506201869f610674565b506005546000190190565b6000806004848154811061147857fe5b60009182526020808320878452600680835260408086206001600160a01b038a8116885290855281872095909202909201600481810154825485516370a0823160e01b81523093810193909352945192985095969493909216926370a082319260248082019391829003018186803b1580156114f357600080fd5b505afa158015611507573d6000803e3d6000fd5b505050506040513d602081101561151d57600080fd5b50516005850181905560038501549091504311801561153c5750600081115b1561158557600061156b600754610817670de0b6b3a7640000610b918960020154610b918b6003015443611828565b905061158161157a8284611c3c565b8490611e82565b9250505b6115b0836001015461081d670de0b6b3a7640000610817868860000154611bdc90919063ffffffff16565b9450505050505b92915050565b6002546001600160a01b031681565b6115d533611edc565b156116115760405162461bcd60e51b81526004018080602001828103825260238152602001806123566023913960400191505060405180910390fd5b60006004838154811061162057fe5b6000918252602080832086845260068083526040808620338752909352919093209102909101915061165184610aa6565b805415611698576000611689826001015461081d670de0b6b3a764000061081787600401548760000154611bdc90919063ffffffff16565b90506116953382611cc0565b50505b81546116af906001600160a01b0316333086611f18565b80546116bb9084611e82565b80825560048301546116db91670de0b6b3a7640000916108179190611bdc565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b60035481565b61172b611e7e565b6000546001600160a01b0390811691161461177b576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b801561178957611789610d84565b6117c6826117c06004878154811061179d57fe5b906000526020600020906006020160020154600754611c7e90919063ffffffff16565b90611e82565b60078190555082600485815481106117da57fe5b906000526020600020906006020160010190805190602001906117fe92919061229c565b50816004858154811061180d57fe5b90600052602060002090600602016002018190555050505050565b6000600560008154811061183857fe5b906000526020600020906002020160010154831015611877576001600560008154811061186157fe5b9060005260206000209060020201600101540392505b818310611886575060006115b7565b6000806000806000805b6005546000190181101561198857600581815481106118ab57fe5b90600052602060002090600202016001015489600101101580156118f25750600581600101815481106118da57fe5b90600052602060002090600202016001015489600101105b156119035780945060019350611912565b83611912576005546000190194505b6005818154811061191f57fe5b906000526020600020906002020160010154881015801561196057506005816001018154811061194b57fe5b90600052602060002090600202016001015488105b156119715780925060019150611980565b81611980576005546000190192505b600101611890565b50818414156119c8576119bc600585815481106119a157fe5b6000918252602090912060029091020154610b91898b611c7e565b955050505050506115b7565b60005b60055460001901811015611ab05782851415611a1c57611a0c600586815481106119f157fe5b6000918252602090912060029091020154610b918a8c611c7e565b90950195506115b7945050505050565b611a7560058681548110611a2c57fe5b906000526020600020906002020160000154610b918b600160058a60010181548110611a5457fe5b90600052602060002090600202016001015403611c7e90919063ffffffff16565b86019550600160058660010181548110611a8b57fe5b90600052602060002090600202016001015403985084806001019550506001016119cb565b5081841415611ad857611ac9600585815481106119a157fe5b90940194506115b79350505050565b50929695505050505050565b611aec611e7e565b6000546001600160a01b03908116911614611b3c576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b6001600160a01b038116611b815760405162461bcd60e51b81526004018080602001828103825260268152602001806123306026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082611beb575060006115b7565b82820282848281611bf857fe5b0414611c355760405162461bcd60e51b81526004018080602001828103825260218152602001806123af6021913960400191505060405180910390fd5b9392505050565b6000611c3583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f78565b6000611c3583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061201a565b600154604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611d1057600080fd5b505afa158015611d24573d6000803e3d6000fd5b505050506040513d6020811015611d3a57600080fd5b5051905080831115611dd1576001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611d9c57600080fd5b505af1158015611db0573d6000803e3d6000fd5b505050506040513d6020811015611dc657600080fd5b505191506115b79050565b6001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611d9c57600080fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e79908490612074565b505050565b3390565b600082820183811015611c35576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611f1057508115155b949350505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f72908590612074565b50505050565b600081836120045760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fc9578181015183820152602001611fb1565b50505050905090810190601f168015611ff65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161201057fe5b0495945050505050565b6000818484111561206c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611fc9578181015183820152602001611fb1565b505050900390565b60606120c9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121259092919063ffffffff16565b805190915015611e79578080602001905160208110156120e857600080fd5b5051611e795760405162461bcd60e51b815260040180806020018281038252602a81526020018061242e602a913960400191505060405180910390fd5b6060611f108484600085606061213a85611edc565b61218b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106121ca5780518252601f1990920191602091820191016121ab565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461222c576040519150601f19603f3d011682016040523d82523d6000602084013e612231565b606091505b50915091508115612245579150611f109050565b8051156122555780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611fc9578181015183820152602001611fb1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106122dd57805160ff191683800117855561230a565b8280016001018555821561230a579182015b8281111561230a5782518255916020019190600101906122ef565b5061231692915061231a565b5090565b5b80821115612316576000815560010161231b56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373506c656173652075736520796f757220696e646976696475616c206163636f756e742e5f626c6f636b20697320616c7265616479206d696e6564206f7220746f6f20636c6f7365206f6e2067657474696e67206d696e65642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726d696e745374617274426c6f636b20697320616c7265616479206d696e6564206f7220746f6f20636c6f7365206f6e2067657474696e67206d696e65642e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564596f752063616e27742064656c6574652074686520666972737420626c6f636b7370616e21a2646970667358221220f95a40be72387df93f2d437bb5bc4a55cff8445c16d7f2542c468307bf09a14264736f6c634300060c003300000000000000000000000014d1c83df4decee9deb14ee851f109f0101a663100000000000000000000000029c61d957239aeaefbe815ba3e7dc983f7ab98660000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000ab47a8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806388637435116100f9578063cd97433611610097578063e41462d311610071578063e41462d31461055c578063e42907db14610564578063ed8c7cb814610618578063f2fde38b1461063b576101a9565b8063cd97433614610505578063d49e77cd14610531578063e2bbb15814610539576101a9565b806393f1a40b116100d357806393f1a40b146104ac578063aa30298c146104d8578063ab55212a146104e0578063b501eaf5146104fd576101a9565b806388637435146103c55780638ce0519b146104815780638da5cb5b146104a4576101a9565b806344f3800811610166578063630b5ba111610140578063630b5ba11461037357806365ca17831461037b578063715018a6146103a15780637bed3bc2146103a9576101a9565b806344f380081461031057806351eb05a6146103395780635312ea8e14610356576101a9565b806303ede3f7146101ae578063081e3eda146101d25780631526fe27146101ec5780631fa36cbe146102ad578063441a3e70146102b5578063443aa533146102da575b600080fd5b6101b6610661565b604080516001600160a01b039092168252519081900360200190f35b6101da610670565b60408051918252519081900360200190f35b6102096004803603602081101561020257600080fd5b5035610677565b60405180876001600160a01b0316815260200180602001868152602001858152602001848152602001838152602001828103825287818151815260200191508051906020019080838360005b8381101561026d578181015183820152602001610255565b50505050905090810190601f16801561029a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b6101da610753565b6102d8600480360360408110156102cb57600080fd5b5080359060200135610759565b005b6102f7600480360360208110156102f057600080fd5b50356108b5565b6040805192835260208301919091528051918290030190f35b6102d86004803603606081101561032657600080fd5b50803590602081013590604001356108e0565b6102d86004803603602081101561034f57600080fd5b5035610aa6565b6102d86004803603602081101561036c57600080fd5b5035610cec565b6102d8610d84565b6102d86004803603602081101561039157600080fd5b50356001600160a01b0316610da7565b6102d8610e1b565b6103b1610ebd565b604080519115158252519081900360200190f35b6102d8600480360360808110156103db57600080fd5b8101906020810181356401000000008111156103f657600080fd5b82018360208201111561040857600080fd5b8035906020019184600183028401116401000000008311171561042a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505082359350505060208101356001600160a01b031690604001351515610ee7565b6102d86004803603604081101561049757600080fd5b50803590602001356110a3565b6101b66111b5565b6102f7600480360360408110156104c257600080fd5b50803590602001356001600160a01b03166111c4565b6101da6111e8565b6102d8600480360360208110156104f657600080fd5b50356111ee565b6101da6113b7565b6101da6004803603604081101561051b57600080fd5b50803590602001356001600160a01b0316611468565b6101b66115bd565b6102d86004803603604081101561054f57600080fd5b50803590602001356115cc565b6101da61171d565b6102d86004803603608081101561057a57600080fd5b8135919081019060408101602082013564010000000081111561059c57600080fd5b8201836020820111156105ae57600080fd5b803590602001918460018302840111640100000000831117156105d057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050823593505050602001351515611723565b6101da6004803603604081101561062e57600080fd5b5080359060200135611828565b6102d86004803603602081101561065157600080fd5b50356001600160a01b0316611ae4565b6001546001600160a01b031681565b6004545b90565b6004818154811061068457fe5b600091825260209182902060069091020180546001808301805460408051601f60026000199685161561010002969096019093169490940491820187900487028401870190528083526001600160a01b0390931695509293909291908301828280156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b5050505050908060020154908060030154908060040154908060050154905086565b60075481565b60006004838154811061076857fe5b60009182526020808320868452600680835260408086203387529093529190932080549290910290920192508311156107dd576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6107e684610aa6565b6000610823826001015461081d670de0b6b3a764000061081787600401548760000154611bdc90919063ffffffff16565b90611c3c565b90611c7e565b905061082f3382611cc0565b50815461083c9085611c7e565b808355600484015461085c91670de0b6b3a7640000916108179190611bdc565b60018301558254610877906001600160a01b03163386611e27565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600581815481106108c257fe5b60009182526020909120600290910201805460019091015490915082565b6108e8611e7e565b6000546001600160a01b03908116911614610938576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b43600a0182116109795760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b43600a016005848154811061098a57fe5b906000526020600020906002020160010154116109d85760405162461bcd60e51b815260040180806020018281038252603e8152602001806123f0603e913960400191505060405180910390fd5b80600584815481106109e657fe5b9060005260206000209060020201600001819055508160058481548110610a0957fe5b60009182526020822060016002909202010191909155600454905b81811015610a9f5760058581548110610a3957fe5b90600052602060002090600202016001015460048281548110610a5857fe5b9060005260206000209060060201600301541115610a97576001840360048281548110610a8157fe5b9060005260206000209060060201600301819055505b600101610a24565b5050505050565b600060048281548110610ab557fe5b9060005260206000209060060201905080600301544311610ad65750610ce9565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b2057600080fd5b505afa158015610b34573d6000803e3d6000fd5b505050506040513d6020811015610b4a57600080fd5b505160058301819055905080610b67575043600390910155610ce9565b6000610b97600754610817670de0b6b3a7640000610b918760020154610b91896003015443611828565b90611bdc565b6001546002546003549293506001600160a01b03918216926340c10f199290911690610bd79060649061081790670de0b6b3a76400009082908990611bdc565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030610c5b84670de0b6b3a7640000611c3c565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ca157600080fd5b505af1158015610cb5573d6000803e3d6000fd5b50505050610cda610ccf8383611c3c90919063ffffffff16565b600485015490611e82565b60048401555050436003909101555b50565b600060048281548110610cfb57fe5b60009182526020808320858452600680835260408086203380885294529094208054949093020180549094509192610d3d926001600160a01b03169190611e27565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b60045460005b81811015610da357610d9b81610aa6565b600101610d8a565b5050565b6002546001600160a01b03163314610df9576040805162461bcd60e51b815260206004820152601060248201526f53656e6465722069736e74206465762160801b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610e23611e7e565b6000546001600160a01b03908116911614610e73576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006005600081548110610ecd57fe5b906000526020600020906002020160010154431015905090565b610eef611e7e565b6000546001600160a01b03908116911614610f3f576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b8015610f4d57610f4d610d84565b60006005600081548110610f5d57fe5b9060005260206000209060020201600101544311610f9d5760016005600081548110610f8557fe5b90600052602060002090600202016001015403610f9f565b435b600754909150610faf9085611e82565b6007556040805160c0810182526001600160a01b03858116825260208083018981529383018890526060830185905260006080840181905260a0840181905260048054600181018255915283517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600690920291820180546001600160a01b031916919094161783559351805193949293611071937f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c0192919091019061229c565b5060408201518160020155606082015181600301556080820151816004015560a0820151816005015550505050505050565b6110ab611e7e565b6000546001600160a01b039081169116146110fb576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b43600a01821161113c5760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b60408051808201909152908152602081019182526005805460018101825560009190915290517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db060029092029182015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db190910155565b6000546001600160a01b031690565b60066020908152600092835260408084209091529082529020805460019091015482565b60055490565b6111f6611e7e565b6000546001600160a01b03908116911614611246576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b806112825760405162461bcd60e51b81526004018080602001828103825260258152602001806124586025913960400191505060405180910390fd5b60055481106112cb576040805162461bcd60e51b815260206004820152601060248201526f5f6d696420697320696e76616c69642160801b604482015290519081900360640190fd5b43600a01600582815481106112dc57fe5b9060005260206000209060020201600101541161132a5760405162461bcd60e51b81526004018080602001828103825260368152602001806123796036913960400191505060405180910390fd5b805b6005546000190181101561138a576005816001018154811061134a57fe5b90600052602060002090600202016005828154811061136557fe5b600091825260209091208254600290920201908155600191820154908201550161132c565b50600580548061139657fe5b60008281526020812060026000199093019283020181815560010155905550565b6000805b6005546000190181101561142b5743600582815481106113d757fe5b906000526020600020906002020160010154111580156114175750436005826001018154811061140357fe5b906000526020600020906002020160010154115b15611423579050610674565b6001016113bb565b50600560008154811061143a57fe5b90600052602060002090600202016001015443101561145d57506201869f610674565b506005546000190190565b6000806004848154811061147857fe5b60009182526020808320878452600680835260408086206001600160a01b038a8116885290855281872095909202909201600481810154825485516370a0823160e01b81523093810193909352945192985095969493909216926370a082319260248082019391829003018186803b1580156114f357600080fd5b505afa158015611507573d6000803e3d6000fd5b505050506040513d602081101561151d57600080fd5b50516005850181905560038501549091504311801561153c5750600081115b1561158557600061156b600754610817670de0b6b3a7640000610b918960020154610b918b6003015443611828565b905061158161157a8284611c3c565b8490611e82565b9250505b6115b0836001015461081d670de0b6b3a7640000610817868860000154611bdc90919063ffffffff16565b9450505050505b92915050565b6002546001600160a01b031681565b6115d533611edc565b156116115760405162461bcd60e51b81526004018080602001828103825260238152602001806123566023913960400191505060405180910390fd5b60006004838154811061162057fe5b6000918252602080832086845260068083526040808620338752909352919093209102909101915061165184610aa6565b805415611698576000611689826001015461081d670de0b6b3a764000061081787600401548760000154611bdc90919063ffffffff16565b90506116953382611cc0565b50505b81546116af906001600160a01b0316333086611f18565b80546116bb9084611e82565b80825560048301546116db91670de0b6b3a7640000916108179190611bdc565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b60035481565b61172b611e7e565b6000546001600160a01b0390811691161461177b576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b801561178957611789610d84565b6117c6826117c06004878154811061179d57fe5b906000526020600020906006020160020154600754611c7e90919063ffffffff16565b90611e82565b60078190555082600485815481106117da57fe5b906000526020600020906006020160010190805190602001906117fe92919061229c565b50816004858154811061180d57fe5b90600052602060002090600602016002018190555050505050565b6000600560008154811061183857fe5b906000526020600020906002020160010154831015611877576001600560008154811061186157fe5b9060005260206000209060020201600101540392505b818310611886575060006115b7565b6000806000806000805b6005546000190181101561198857600581815481106118ab57fe5b90600052602060002090600202016001015489600101101580156118f25750600581600101815481106118da57fe5b90600052602060002090600202016001015489600101105b156119035780945060019350611912565b83611912576005546000190194505b6005818154811061191f57fe5b906000526020600020906002020160010154881015801561196057506005816001018154811061194b57fe5b90600052602060002090600202016001015488105b156119715780925060019150611980565b81611980576005546000190192505b600101611890565b50818414156119c8576119bc600585815481106119a157fe5b6000918252602090912060029091020154610b91898b611c7e565b955050505050506115b7565b60005b60055460001901811015611ab05782851415611a1c57611a0c600586815481106119f157fe5b6000918252602090912060029091020154610b918a8c611c7e565b90950195506115b7945050505050565b611a7560058681548110611a2c57fe5b906000526020600020906002020160000154610b918b600160058a60010181548110611a5457fe5b90600052602060002090600202016001015403611c7e90919063ffffffff16565b86019550600160058660010181548110611a8b57fe5b90600052602060002090600202016001015403985084806001019550506001016119cb565b5081841415611ad857611ac9600585815481106119a157fe5b90940194506115b79350505050565b50929695505050505050565b611aec611e7e565b6000546001600160a01b03908116911614611b3c576040805162461bcd60e51b815260206004820181905260248201526000805160206123d0833981519152604482015290519081900360640190fd5b6001600160a01b038116611b815760405162461bcd60e51b81526004018080602001828103825260268152602001806123306026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082611beb575060006115b7565b82820282848281611bf857fe5b0414611c355760405162461bcd60e51b81526004018080602001828103825260218152602001806123af6021913960400191505060405180910390fd5b9392505050565b6000611c3583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f78565b6000611c3583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061201a565b600154604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611d1057600080fd5b505afa158015611d24573d6000803e3d6000fd5b505050506040513d6020811015611d3a57600080fd5b5051905080831115611dd1576001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611d9c57600080fd5b505af1158015611db0573d6000803e3d6000fd5b505050506040513d6020811015611dc657600080fd5b505191506115b79050565b6001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611d9c57600080fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e79908490612074565b505050565b3390565b600082820183811015611c35576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611f1057508115155b949350505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f72908590612074565b50505050565b600081836120045760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fc9578181015183820152602001611fb1565b50505050905090810190601f168015611ff65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161201057fe5b0495945050505050565b6000818484111561206c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611fc9578181015183820152602001611fb1565b505050900390565b60606120c9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121259092919063ffffffff16565b805190915015611e79578080602001905160208110156120e857600080fd5b5051611e795760405162461bcd60e51b815260040180806020018281038252602a81526020018061242e602a913960400191505060405180910390fd5b6060611f108484600085606061213a85611edc565b61218b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106121ca5780518252601f1990920191602091820191016121ab565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461222c576040519150601f19603f3d011682016040523d82523d6000602084013e612231565b606091505b50915091508115612245579150611f109050565b8051156122555780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611fc9578181015183820152602001611fb1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106122dd57805160ff191683800117855561230a565b8280016001018555821561230a579182015b8281111561230a5782518255916020019190600101906122ef565b5061231692915061231a565b5090565b5b80821115612316576000815560010161231b56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373506c656173652075736520796f757220696e646976696475616c206163636f756e742e5f626c6f636b20697320616c7265616479206d696e6564206f7220746f6f20636c6f7365206f6e2067657474696e67206d696e65642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726d696e745374617274426c6f636b20697320616c7265616479206d696e6564206f7220746f6f20636c6f7365206f6e2067657474696e67206d696e65642e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564596f752063616e27742064656c6574652074686520666972737420626c6f636b7370616e21a2646970667358221220f95a40be72387df93f2d437bb5bc4a55cff8445c16d7f2542c468307bf09a14264736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000014d1c83df4decee9deb14ee851f109f0101a663100000000000000000000000029c61d957239aeaefbe815ba3e7dc983f7ab98660000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000ab47a8
-----Decoded View---------------
Arg [0] : _Volts (address): 0x14D1C83DF4dECEE9dEB14eE851f109f0101A6631
Arg [1] : _devaddr (address): 0x29C61d957239AEAefBE815ba3E7dC983f7AB9866
Arg [2] : _devmint (uint256): 5
Arg [3] : _VoltsPerBlock (uint256): 10000000000000000
Arg [4] : _mintStartBlock (uint256): 11225000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000014d1c83df4decee9deb14ee851f109f0101a6631
Arg [1] : 00000000000000000000000029c61d957239aeaefbe815ba3e7dc983f7ab9866
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000ab47a8
Deployed Bytecode Sourcemap
36290:14136:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37946:23;;;:::i;:::-;;;;-1:-1:-1;;;;;37946:23:0;;;;;;;;;;;;;;42023:95;;;:::i;:::-;;;;;;;;;;;;;;;;38102:26;;;;;;;;;;;;;;;;-1:-1:-1;38102:26:0;;:::i;:::-;;;;;-1:-1:-1;;;;;38102:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38426:35;;;:::i;48679:669::-;;;;;;;;;;;;;;;;-1:-1:-1;48679:669:0;;;;;;;:::i;:::-;;38177:26;;;;;;;;;;;;;;;;-1:-1:-1;38177:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;40575:752;;;;;;;;;;;;;;;;-1:-1:-1;40575:752:0;;;;;;;;;;;;:::i;46833:834::-;;;;;;;;;;;;;;;;-1:-1:-1;46833:834:0;;:::i;49419:366::-;;;;;;;;;;;;;;;;-1:-1:-1;49419:366:0;;:::i;46577:180::-;;;:::i;50275:148::-;;;;;;;;;;;;;;;;-1:-1:-1;50275:148:0;-1:-1:-1;;;;;50275:148:0;;:::i;21212:::-;;;:::i;39812:121::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;42303:669;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42303:669:0;;-1:-1:-1;;42303:669:0;;;-1:-1:-1;;;42303:669:0;;;;-1:-1:-1;;;;;42303:669:0;;;;;;;;:::i;40102:302::-;;;;;;;;;;;;;;;;-1:-1:-1;40102:302:0;;;;;;;:::i;20570:79::-;;;:::i;38265:66::-;;;;;;;;;;;;;;;;-1:-1:-1;38265:66:0;;;;;;-1:-1:-1;;;;;38265:66:0;;:::i;39655:95::-;;;:::i;41509:460::-;;;;;;;;;;;;;;;;-1:-1:-1;41509:460:0;;:::i;39170:408::-;;;:::i;45667:827::-;;;;;;;;;;;;;;;;-1:-1:-1;45667:827:0;;;;;;-1:-1:-1;;;;;45667:827:0;;:::i;37982:22::-;;;:::i;47803:772::-;;;;;;;;;;;;;;;;-1:-1:-1;47803:772:0;;;;;;;:::i;38044:22::-;;;:::i;43063:374::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43063:374:0;;-1:-1:-1;;43063:374:0;;;-1:-1:-1;;;43063:374:0;;;;;;:::i;43518:2085::-;;;;;;;;;;;;;;;;-1:-1:-1;43518:2085:0;;;;;;;:::i;21515:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21515:244:0;-1:-1:-1;;;;;21515:244:0;;:::i;37946:23::-;;;-1:-1:-1;;;;;37946:23:0;;:::o;42023:95::-;42095:8;:15;42023:95;;:::o;38102:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38102:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38102:26:0;;;;-1:-1:-1;38102:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;38426:35::-;;;;:::o;48679:669::-;48748:21;48772:8;48781:4;48772:14;;;;;;;;;;;;;;;;48821;;;48772;48821;;;;;;;48836:10;48821:26;;;;;;;;;48866:11;;48772:14;;;;;;;;-1:-1:-1;;;48866:22:0;48858:53;;;;;-1:-1:-1;;;48858:53:0;;;;;;;;;;;;-1:-1:-1;;;48858:53:0;;;;;;;;;;;;;;;48922:16;48933:4;48922:10;:16::i;:::-;48949:15;48967:71;49022:4;:15;;;48967:50;49012:4;48967:40;48983:4;:23;;;48967:4;:11;;;:15;;:40;;;;:::i;:::-;:44;;:50::i;:::-;:54;;:71::i;:::-;48949:89;;49049:38;49067:10;49079:7;49049:17;:38::i;:::-;-1:-1:-1;49112:11:0;;:24;;49128:7;49112:15;:24::i;:::-;49098:38;;;49181:23;;;;49165:50;;49210:4;;49165:40;;49098:38;49165:15;:40::i;:50::-;49147:15;;;:68;49226:20;;:63;;-1:-1:-1;;;;;49226:20:0;49268:10;49281:7;49226:33;:63::i;:::-;49305:35;;;;;;;;49326:4;;49314:10;;49305:35;;;;;;;;;48679:669;;;;;:::o;38177:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38177:26:0;:::o;40575:752::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;40686:12:::1;40701:2;40686:17;40677:6;:26;40669:93;;;;-1:-1:-1::0;;;40669:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40813:12;40828:2;40813:17;40781:8;40790:4;40781:14;;;;;;;;;;;;;;;;;;:29;;;:49;40773:124;;;;-1:-1:-1::0;;;40773:124:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40939:7;40908:8;40917:4;40908:14;;;;;;;;;;;;;;;;;;:28;;:38;;;;40989:6;40957:8;40966:4;40957:14;;;;;;;;;::::0;;;::::1;::::0;;:29:::1;:14;::::0;;::::1;;:29;:38:::0;;;;41023:8:::1;:15:::0;;41049:271:::1;41077:6;41071:3;:12;41049:271;;;41202:8;41211:4;41202:14;;;;;;;;;;;;;;;;;;:29;;;41168:8;41177:3;41168:13;;;;;;;;;;;;;;;;;;:31;;;:63;41165:144;;;41292:1;41285:6;:8;41251;41260:3;41251:13;;;;;;;;;;;;;;;;;;:31;;:42;;;;41165:144;41085:5;;41049:271;;;;20852:1;40575:752:::0;;;:::o;46833:834::-;46885:21;46909:8;46918:4;46909:14;;;;;;;;;;;;;;;;;;46885:38;;46954:4;:22;;;46938:12;:38;46934:77;;46993:7;;;46934:77;47040:20;;:45;;;-1:-1:-1;;;47040:45:0;;47079:4;47040:45;;;;;;47021:16;;-1:-1:-1;;;;;47040:20:0;;:30;;:45;;;;;;;;;;;;;;:20;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47040:45:0;47096:19;;;:30;;;47040:45;-1:-1:-1;47141:13:0;47137:104;;-1:-1:-1;47196:12:0;47171:22;;;;:37;47223:7;;47137:104;47251:19;47273:113;47369:16;;47273:91;47359:4;47273:81;47337:4;:16;;;47273:59;47295:4;:22;;;47319:12;47273:21;:59::i;:::-;:63;;:81::i;:113::-;47397:5;;47408:7;;47433;;47251:135;;-1:-1:-1;;;;;;47397:5:0;;;;:10;;47408:7;;;;47417:43;;47456:3;;47417:34;;47446:4;;47417:34;;47251:135;;47417:15;:24::i;:43::-;47397:64;;;;;;;;;;;;;-1:-1:-1;;;;;47397:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47472:5:0;;-1:-1:-1;;;;;47472:5:0;;-1:-1:-1;47472:10:0;;-1:-1:-1;47491:4:0;47498:21;:11;47514:4;47498:15;:21::i;:::-;47472:48;;;;;;;;;;;;;-1:-1:-1;;;;;47472:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47557:54;47585:25;47601:8;47585:11;:15;;:25;;;;:::i;:::-;47557:23;;;;;:27;:54::i;:::-;47531:23;;;:80;-1:-1:-1;;47647:12:0;47622:22;;;;:37;46833:834;;:::o;49419:366::-;49480:21;49504:8;49513:4;49504:14;;;;;;;;;;;;;;;;49553;;;49504;49553;;;;;;;49568:10;49553:26;;;;;;;;49645:11;;49504:14;;;;;49590:20;;49504:14;;-1:-1:-1;49553:26:0;;49590:67;;-1:-1:-1;;;;;49590:20:0;;49568:10;49590:33;:67::i;:::-;49709:11;;49673:48;;;;;;;49703:4;;49691:10;;49673:48;;;;;;;;;49746:1;49732:15;;;49758;;;;:19;-1:-1:-1;;49419:366:0:o;46577:180::-;46639:8;:15;46622:14;46665:85;46693:6;46687:3;:12;46665:85;;;46723:15;46734:3;46723:10;:15::i;:::-;46701:5;;46665:85;;;;46577:180;:::o;50275:148::-;50358:7;;-1:-1:-1;;;;;50358:7:0;50344:10;:21;50336:50;;;;;-1:-1:-1;;;50336:50:0;;;;;;;;;;;;-1:-1:-1;;;50336:50:0;;;;;;;;;;;;;;;50397:7;:18;;-1:-1:-1;;;;;;50397:18:0;-1:-1:-1;;;;;50397:18:0;;;;;;;;;;50275:148::o;21212:::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;21319:1:::1;21303:6:::0;;21282:40:::1;::::0;-1:-1:-1;;;;;21303:6:0;;::::1;::::0;21282:40:::1;::::0;21319:1;;21282:40:::1;21350:1;21333:19:::0;;-1:-1:-1;;;;;;21333:19:0::1;::::0;;21212:148::o;39812:121::-;39860:4;39899:8;39908:1;39899:11;;;;;;;;;;;;;;;;;;:26;;;39883:12;:42;;39876:49;;39812:121;:::o;42303:669::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;42438:11:::1;42434:61;;;42466:17;:15;:17::i;:::-;42505:25;42548:8;42557:1;42548:11;;;;;;;;;;;;;;;;;;:26;;;42533:12;:41;:87;;42619:1;42592:8;42601:1;42592:11;;;;;;;;;;;;;;;;;;:26;;;:28;42533:87;;;42577:12;42533:87;42650:16;::::0;42505:115;;-1:-1:-1;42650:34:0::1;::::0;42671:12;42650:20:::1;:34::i;:::-;42631:16;:53:::0;42709:254:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;42709:254:0;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;-1:-1:-1;42709:254:0;;;;;;;;;;;;42695:8:::1;:269:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;42695:269:0::1;::::0;;;::::1;;::::0;;;;;;42709:254;;42695:269;;::::1;::::0;;;;;;;::::1;::::0;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20852:1;42303:669:::0;;;;:::o;40102:302::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;40199:12:::1;40214:2;40199:17;40190:6;:26;40182:93;;;;-1:-1:-1::0;;;40182:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40300:95;::::0;;;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;;40286:8:::1;:110:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;40286:110:0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;40102:302::o;20570:79::-;20608:7;20635:6;-1:-1:-1;;;;;20635:6:0;20570:79;:::o;38265:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;39655:95::-;39727:8;:15;39655:95;:::o;41509:460::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;41581:9;41573:59:::1;;;;-1:-1:-1::0;;;41573:59:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41658:8;:15:::0;41651:22;::::1;41643:51;;;::::0;;-1:-1:-1;;;41643:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;41643:51:0;;;;;;;;;;;;;::::1;;41745:12;41760:2;41745:17;41713:8;41722:4;41713:14;;;;;;;;;;;;;;;;;;:29;;;:49;41705:116;;;;-1:-1:-1::0;;;41705:116:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41848:4:::0;41832:105:::1;41858:8;:15:::0;-1:-1:-1;;41858:19:0;41854:23;::::1;41832:105;;;41912:8;41921:1;41923;41921:3;41912:13;;;;;;;;;;;;;;;;;;41898:8;41907:1;41898:11;;;;;;;;;::::0;;;::::1;::::0;;;:27;;:11:::1;::::0;;::::1;;:27:::0;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;41879:3:::1;41832:105;;;;41947:8;:14;;;;;;;;::::0;;;::::1;::::0;;::::1;-1:-1:-1::0;;41947:14:0;;;;;::::1;;::::0;;;::::1;;::::0;;;-1:-1:-1;41509:460:0:o;39170:408::-;39214:7;;39233:208;39256:8;:15;-1:-1:-1;;39256:17:0;39252:21;;39233:208;;;39327:12;39297:8;39306:1;39297:11;;;;;;;;;;;;;;;;;;:26;;;:42;;:89;;;;;39374:12;39343:8;39352:1;39354;39352:3;39343:13;;;;;;;;;;;;;;;;;;:28;;;:43;39297:89;39294:136;;;39413:1;-1:-1:-1;39406:8:0;;39294:136;39275:3;;39233:208;;;;39469:8;39478:1;39469:11;;;;;;;;;;;;;;;;;;:26;;;39454:12;:41;39451:85;;;-1:-1:-1;39519:5:0;39512:12;;39451:85;-1:-1:-1;39553:8:0;:15;-1:-1:-1;;39553:17:0;39170:408;:::o;45667:827::-;45736:7;45756:21;45780:8;45789:4;45780:14;;;;;;;;;;;;;;;;45829;;;45780;45829;;;;;;;-1:-1:-1;;;;;45829:21:0;;;;;;;;;;;45780:14;;;;;;;45890:23;;;;;46000:20;;:45;;-1:-1:-1;;;46000:45:0;;46039:4;46000:45;;;;;;;;;45780:14;;-1:-1:-1;45829:21:0;;45780:14;46000:20;;;;;:30;;:45;;;;;;;;;;;:20;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46000:45:0;46056:19;;;:30;;;46116:22;;;;46000:45;;-1:-1:-1;46101:12:0;:37;:53;;;;;46153:1;46142:8;:12;46101:53;46097:306;;;46171:19;46193:113;46289:16;;46193:91;46279:4;46193:81;46257:4;:16;;;46193:59;46215:4;:22;;;46239:12;46193:21;:59::i;:113::-;46171:135;-1:-1:-1;46342:49:0;46365:25;46171:135;46381:8;46365:15;:25::i;:::-;46342:18;;:22;:49::i;:::-;46321:70;;46097:306;;46420:66;46470:4;:15;;;46420:45;46460:4;46420:35;46436:18;46420:4;:11;;;:15;;:35;;;;:::i;:66::-;46413:73;;;;;;45667:827;;;;;:::o;37982:22::-;;;-1:-1:-1;;;;;37982:22:0;;:::o;47803:772::-;47880:39;47907:10;47880:18;:39::i;:::-;47879:40;47871:88;;;;-1:-1:-1;;;47871:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47970:21;47994:8;48003:4;47994:14;;;;;;;;;;;;;;;;48043;;;47994;48043;;;;;;;48058:10;48043:26;;;;;;;;;47994:14;;;;;;-1:-1:-1;48080:16:0;48052:4;48080:10;:16::i;:::-;48111:11;;:15;48107:190;;48143:15;48161:71;48216:4;:15;;;48161:50;48206:4;48161:40;48177:4;:23;;;48161:4;:11;;;:15;;:40;;;;:::i;:71::-;48143:89;;48247:38;48265:10;48277:7;48247:17;:38::i;:::-;;48107:190;;48307:20;;:82;;-1:-1:-1;;;;;48307:20:0;48353:10;48374:4;48381:7;48307:37;:82::i;:::-;48414:11;;:24;;48430:7;48414:15;:24::i;:::-;48400:38;;;48483:23;;;;48467:50;;48512:4;;48467:40;;48400:38;48467:15;:40::i;:50::-;48449:15;;;:68;48533:34;;;;;;;;48553:4;;48541:10;;48533:34;;;;;;;;;47803:772;;;;:::o;38044:22::-;;;;:::o;43063:374::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;43187:11:::1;43183:61;;;43215:17;:15;:17::i;:::-;43273:66;43326:12;43273:48;43294:8;43303:4;43294:14;;;;;;;;;;;;;;;;;;:26;;;43273:16;;:20;;:48;;;;:::i;:::-;:52:::0;::::1;:66::i;:::-;43254:16;:85;;;;43372:5;43350:8;43359:4;43350:14;;;;;;;;;;;;;;;;;;:19;;:27;;;;;;;;;;;;:::i;:::-;;43417:12;43388:8;43397:4;43388:14;;;;;;;;;;;;;;;;;;:26;;:41;;;;43063:374:::0;;;;:::o;43518:2085::-;43598:7;43629:8;43638:1;43629:11;;;;;;;;;;;;;;;;;;:26;;;43621:5;:34;43618:101;;;43706:1;43679:8;43688:1;43679:11;;;;;;;;;;;;;;;;;;:26;;;:28;43671:36;;43618:101;43741:3;43732:5;:12;43729:52;;-1:-1:-1;43768:1:0;43761:8;;43729:52;43791:14;43820:17;43852:13;43884:15;43914:11;44046:12;44041:595;44071:8;:15;-1:-1:-1;;44071:17:0;44064:24;;44041:595;;;44127:8;44136:4;44127:14;;;;;;;;;;;;;;;;;;:29;;;44116:5;44122:1;44116:7;:40;;:85;;;;;44170:8;44179:4;44184:1;44179:6;44170:16;;;;;;;;;;;;;;;;;;:31;;;44160:5;44166:1;44160:7;:41;44116:85;44113:257;;;44234:4;44222:16;;44268:4;44257:15;;44113:257;;;44297:8;44293:77;;44337:8;:15;-1:-1:-1;;44337:17:0;;-1:-1:-1;44293:77:0;44394:8;44403:4;44394:14;;;;;;;;;;;;;;;;;;:29;;;44387:3;:36;;:77;;;;;44433:8;44442:4;44447:1;44442:6;44433:16;;;;;;;;;;;;;;;;;;:31;;;44427:3;:37;44387:77;44384:241;;;44495:4;44485:14;;44527:4;44518:13;;44384:241;;;44556:6;44552:73;;44592:8;:15;-1:-1:-1;;44592:17:0;;-1:-1:-1;44552:73:0;44090:6;;44041:595;;;;44662:7;44649:9;:20;44646:926;;;44693:55;44714:8;44723:9;44714:19;;;;;;;;;;;;;;;;;;;;;:33;44694:14;:3;44702:5;44694:7;:14::i;44693:55::-;44686:62;;;;;;;;;44646:926;44883:12;44879:511;44908:8;:15;-1:-1:-1;;44908:17:0;44901:24;;44879:511;;;44970:7;44957:9;:20;44954:421;;;45012:55;45033:8;45042:9;45033:19;;;;;;;;;;;;;;;;;;;;;:33;45013:14;:3;45021:5;45013:7;:14::i;45012:55::-;45002:65;;;;-1:-1:-1;45090:13:0;;-1:-1:-1;;;;;45090:13:0;44954:421;45161:90;45217:8;45226:9;45217:19;;;;;;;;;;;;;;;;;;:33;;;45161:51;45206:5;45199:1;45162:8;45171:9;45181:1;45171:11;45162:21;;;;;;;;;;;;;;;;;;:36;;;:38;45161:44;;:51;;;;:::i;:90::-;45151:100;;;;45319:1;45282:8;45291:9;45301:1;45291:11;45282:21;;;;;;;;;;;;;;;;;;:36;;;:38;45274:46;;45343:12;;;;;;;44927:6;;44879:511;;;;45420:7;45407:9;:20;45404:157;;;45458:55;45479:8;45488:9;45479:19;;;;;;;45458:55;45448:65;;;;-1:-1:-1;45532:13:0;;-1:-1:-1;;;;45532:13:0;45404:157;-1:-1:-1;45589:6:0;;43518:2085;-1:-1:-1;;;;;;43518:2085:0:o;21515:244::-;20792:12;:10;:12::i;:::-;20782:6;;-1:-1:-1;;;;;20782:6:0;;;:22;;;20774:67;;;;;-1:-1:-1;;;20774:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20774:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;21604:22:0;::::1;21596:73;;;;-1:-1:-1::0;;;21596:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21706:6;::::0;;21685:38:::1;::::0;-1:-1:-1;;;;;21685:38:0;;::::1;::::0;21706:6;::::1;::::0;21685:38:::1;::::0;::::1;21734:6;:17:::0;;-1:-1:-1;;;;;;21734:17:0::1;-1:-1:-1::0;;;;;21734:17:0;;;::::1;::::0;;;::::1;::::0;;21515:244::o;6351:471::-;6409:7;6654:6;6650:47;;-1:-1:-1;6684:1:0;6677:8;;6650:47;6721:5;;;6725:1;6721;:5;:1;6745:5;;;;;:10;6737:56;;;;-1:-1:-1;;;6737:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6813:1;6351:471;-1:-1:-1;;;6351:471:0:o;7298:132::-;7356:7;7383:39;7387:1;7390;7383:39;;;;;;;;;;;;;;;;;:3;:39::i;5461:136::-;5519:7;5546:43;5550:1;5553;5546:43;;;;;;;;;;;;;;;;;:3;:43::i;49901:314::-;50012:5;;:30;;;-1:-1:-1;;;50012:30:0;;50036:4;50012:30;;;;;;49976:4;;;;-1:-1:-1;;;;;50012:5:0;;;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50012:30:0;;-1:-1:-1;50057:18:0;;;50053:155;;;50099:5;;:29;;;-1:-1:-1;;;50099:29:0;;-1:-1:-1;;;;;50099:29:0;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50099:29:0;;-1:-1:-1;50092:36:0;;-1:-1:-1;50092:36:0;50053:155;50168:5;;:28;;;-1:-1:-1;;;50168:28:0;;-1:-1:-1;;;;;50168:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;16175:177;16285:58;;;-1:-1:-1;;;;;16285:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16285:58:0;-1:-1:-1;;;16285:58:0;;;16258:86;;16278:5;;16258:19;:86::i;:::-;16175:177;;;:::o;1090:106::-;1178:10;1090:106;:::o;4997:181::-;5055:7;5087:5;;;5111:6;;;;5103:46;;;;;-1:-1:-1;;;5103:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;10138:619;10198:4;10666:20;;10509:66;10706:23;;;;;;:42;;-1:-1:-1;10733:15:0;;;10706:42;10698:51;10138:619;-1:-1:-1;;;;10138:619:0:o;16360:205::-;16488:68;;;-1:-1:-1;;;;;16488:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16488:68:0;-1:-1:-1;;;16488:68:0;;;16461:96;;16481:5;;16461:19;:96::i;:::-;16360:205;;;;:::o;7926:278::-;8012:7;8047:12;8040:5;8032:28;;;;-1:-1:-1;;;8032:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8071:9;8087:1;8083;:5;;;;;;;7926:278;-1:-1:-1;;;;;7926:278:0:o;5900:192::-;5986:7;6022:12;6014:6;;;;6006:29;;;;-1:-1:-1;;;6006:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6058:5:0;;;5900:192::o;18480:761::-;18904:23;18930:69;18958:4;18930:69;;;;;;;;;;;;;;;;;18938:5;-1:-1:-1;;;;;18930:27:0;;;:69;;;;;:::i;:::-;19014:17;;18904:95;;-1:-1:-1;19014:21:0;19010:224;;19156:10;19145:30;;;;;;;;;;;;;;;-1:-1:-1;19145:30:0;19137:85;;;;-1:-1:-1;;;19137:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13253:196;13356:12;13388:53;13411:6;13419:4;13425:1;13428:12;14760;14793:18;14804:6;14793:10;:18::i;:::-;14785:60;;;;;-1:-1:-1;;;14785:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14919:12;14933:23;14960:6;-1:-1:-1;;;;;14960:11:0;14980:8;14991:4;14960:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14960:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14918:78;;;;15011:7;15007:595;;;15042:10;-1:-1:-1;15035:17:0;;-1:-1:-1;15035:17:0;15007:595;15156:17;;:21;15152:439;;15419:10;15413:17;15480:15;15467:10;15463:2;15459:19;15452:44;15367:148;15555:20;;-1:-1:-1;;;15555:20:0;;;;;;;;;;;;;;;;;15562:12;;15555:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;
Swarm Source
ipfs://f95a40be72387df93f2d437bb5bc4a55cff8445c16d7f2542c468307bf09a142
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.