Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Laxative
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-16 */ // SPDX-License-Identifier: MIT // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/ ,&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%*,,,,,,,,,,,,,,,,,,,*&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(,..................#&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*,, .%&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*,, .%&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#, .%&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#, .%&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#, ,%&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#,... .............,&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#,.................,&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#,.................,&&&&&&&&&&&&& // &&&&&&&&&&&&&#*,,...... ......,*(#(///////////////#%&&&&&&&&&&&&& // &&&&&&&&&&&&%*,,.. .,*(,,,,,,,,*#&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&/**,,,,..........................,,*/,,,,.,%&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&/****,,,,....................,,,,*/,,...,%&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&#//****,,,,,,,,,,,,,,,,,,,,,,,**/,,,,,,*&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&#(////*****,,,,,,,,,,,,****/*,,,,,,,*&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&%(////**************//,,,,,,,,,,*&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&%/**,,...........,**,..........,&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&#**,. .,**,....... .%&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&/,.. ..**,...... (&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&%*,. ..**.... .%&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&(,,. ..**. /&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&/,.. .,**. .%&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&%(/*,,,,...,,,,,,,*(#%%%%%%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& pragma solidity ^0.6.12; 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; } } 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 ); } 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; } } 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); } } } } contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } 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; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue) ); return true; } 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; } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub( amount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } 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); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub( amount, "ERC20: burn amount exceeds balance" ); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } 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); } function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract AdminContract is Ownable { mapping(address => bool) public governanceContracts; event GovernanceContractAdded(address addr); event GovernanceContractRemoved(address addr); modifier onlyGovernance() { require(governanceContracts[msg.sender], "Isn't governance address"); _; } function addAddress(address addr) public onlyOwner returns (bool success) { if (!governanceContracts[addr]) { governanceContracts[addr] = true; emit GovernanceContractAdded(addr); success = true; } } function removeAddress(address addr) public onlyOwner returns (bool success) { if (governanceContracts[addr]) { governanceContracts[addr] = false; emit GovernanceContractRemoved(addr); success = true; } } } contract PaperToken is ERC20("Paper", "Paper"), AdminContract { uint256 private maxSupplyPaper = 69000 * 1e18; function mintPaper(address _to, uint256 _amount) public virtual onlyGovernance returns (bool) { require( totalSupply().add(_amount) <= maxSupplyPaper, "Emission limit exceeded" ); _mint(_to, _amount); return true; } function maxSupply() public view returns (uint256) { return maxSupplyPaper; } } 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) ); } function safeApprove( IERC20 token, address spender, uint256 value ) internal { 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 ) ); } function _callOptionalReturn(IERC20 token, bytes memory data) private { bytes memory returndata = address(token).functionCall( data, "SafeERC20: low-level call failed" ); if (returndata.length > 0) { // Return data is optional require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } contract Laxative is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; PaperToken public paper; address public paperLP; address public farmContract; address public WETH; address public developers; uint256 public released; event NewRelease(uint256 amount); constructor(PaperToken _paper, address _paperLpToken, address _farmContract, address _WETH, address _developers) public { paper = _paper; paperLP = _paperLpToken; farmContract = _farmContract; WETH = _WETH; developers = _developers; released = 0; } /* - LpBalance PAPER reward Total reward - 9 ETH 100 PAPER 100 PAPER - 18 ETH 200 PAPER; 300 PAPER - 54 ETH 300 PAPER; 600 PAPER - 90 ETH 500 PAPER; 1 100 PAPER - 180 ETH 1 000 PAPER; 2 100 PAPER - 900 ETH 2 000 PAPER; 4 100 PAPER - 1 800 ETH 3 000 PAPER. 7 100 PAPER */ function getBonus(uint256 LpBalance) public pure returns(uint256) { if (LpBalance >= 1800e18) { return 7100e18; } if (LpBalance >= 900e18) { return 4100e18; } if (LpBalance >= 180e18) { return 2100e18; } if (LpBalance >= 90e18) { return 1100e18; } if (LpBalance >= 54e18) { return 600e18; } if (LpBalance >= 18e18) { return 300e18; } if (LpBalance >= 9e18) { return 100e18; } } function getLpBalance() public view returns(uint256 amount) { return IERC20(WETH).balanceOf(paperLP).mul(2); } function release() public returns(uint256 bonus) { bonus = getBonus(getLpBalance()); require(bonus > released, "Nothing to release"); bonus = bonus.sub(released); paper.mintPaper(farmContract, bonus); paper.mintPaper(developers, bonus.div(10)); released = released.add(bonus); emit NewRelease(bonus); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract PaperToken","name":"_paper","type":"address"},{"internalType":"address","name":"_paperLpToken","type":"address"},{"internalType":"address","name":"_farmContract","type":"address"},{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"address","name":"_developers","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NewRelease","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"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"LpBalance","type":"uint256"}],"name":"getBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getLpBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paper","outputs":[{"internalType":"contract PaperToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paperLP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[{"internalType":"uint256","name":"bonus","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610aba380380610aba833981810160405260a081101561003357600080fd5b50805160208201516040830151606084015160809094015192939192909190600061005c61010d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b039788161790915560028054821695871695909517909455600380548516938616939093179092556004805484169185169190911790556005805490921692169190911790556000600655610111565b3390565b61099a806101206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b1461012e57806396132521146101365780639eb0e9651461013e578063ad5c464814610146578063f2fde38b1461014e578063f8c587ac14610174576100b4565b80632bc31ca4146100b95780634aa66b28146100dd5780635aa40eb91461010c578063715018a6146101145780638421403d1461011e57806386d1a69f14610126575b600080fd5b6100c161017c565b604080516001600160a01b039092168252519081900360200190f35b6100fa600480360360208110156100f357600080fd5b503561018b565b60408051918252519081900360200190f35b6100c161026d565b61011c61027c565b005b6100fa610330565b6100fa6103c1565b6100c1610591565b6100fa6105a0565b6100c16105a6565b6100c16105b5565b61011c6004803603602081101561016457600080fd5b50356001600160a01b03166105c4565b6100c16106ce565b6005546001600160a01b031681565b6000686194049f30f720000082106101ae5750690180e44b1e9679700000610268565b6830ca024f987b90000082106101ce575068de42ee1544dd900000610268565b6809c2007651b250000082106101ee57506871d75ab9b920500000610268565b6804e1003b28d9280000821061020e5750683ba1910bf341b00000610268565b6802ed6689e54f180000821061022e5750682086ac351052600000610268565b67f9ccd8a1c5080000821061024d5750681043561a8829300000610268565b677ce66c50e28400008210610268575068056bc75e2d631000005b919050565b6002546001600160a01b031681565b6102846106dd565b6000546001600160a01b039081169116146102e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004805460028054604080516370a0823160e01b81526001600160a01b0392831695810195909552516000946103bc9492909216916370a08231916024808301926020929190829003018186803b15801561038a57600080fd5b505afa15801561039e573d6000803e3d6000fd5b505050506040513d60208110156103b457600080fd5b5051906106e1565b905090565b60006103d36103ce610330565b61018b565b90506006548111610420576040805162461bcd60e51b81526020600482015260126024820152714e6f7468696e6720746f2072656c6561736560701b604482015290519081900360640190fd5b60065461042e908290610743565b60015460035460408051630d1550b160e41b81526001600160a01b03928316600482015260248101859052905193945091169163d1550b10916044808201926020929091908290030181600087803b15801561048957600080fd5b505af115801561049d573d6000803e3d6000fd5b505050506040513d60208110156104b357600080fd5b50506001546005546001600160a01b039182169163d1550b1091166104d984600a610785565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561051f57600080fd5b505af1158015610533573d6000803e3d6000fd5b505050506040513d602081101561054957600080fd5b505060065461055890826107c7565b6006556040805182815290517f2378aaa738741bdd08619449f579e776e250e5b2bc8531d11d5dd2191e4334e99181900360200190a190565b6000546001600160a01b031690565b60065481565b6003546001600160a01b031681565b6004546001600160a01b031681565b6105cc6106dd565b6000546001600160a01b0390811691161461062e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166106735760405162461bcd60e51b815260040180806020018281038252602681526020018061091e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b6000826106f05750600061073d565b828202828482816106fd57fe5b041461073a5760405162461bcd60e51b81526004018080602001828103825260218152602001806109446021913960400191505060405180910390fd5b90505b92915050565b600061073a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610821565b600061073a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108b8565b60008282018381101561073a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081848411156108b05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561087557818101518382015260200161085d565b50505050905090810190601f1680156108a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836109075760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561087557818101518382015260200161085d565b50600083858161091357fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220591e4714a10848f0ab30781d5d59b4943ea09bf3337fd3b6c4414d5b3fbcf1a664736f6c634300060c0033000000000000000000000000ddce093888c8dc636677cd29bc6c68d35cfdac330000000000000000000000003d2c5514344834b35df1587657caf22df74367ae000000000000000000000000078cf5973ae111d2c58ffb4662114d36f0092019000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000098b993abe2d7040b4c6c490fb72ec98bc4359aef
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b1461012e57806396132521146101365780639eb0e9651461013e578063ad5c464814610146578063f2fde38b1461014e578063f8c587ac14610174576100b4565b80632bc31ca4146100b95780634aa66b28146100dd5780635aa40eb91461010c578063715018a6146101145780638421403d1461011e57806386d1a69f14610126575b600080fd5b6100c161017c565b604080516001600160a01b039092168252519081900360200190f35b6100fa600480360360208110156100f357600080fd5b503561018b565b60408051918252519081900360200190f35b6100c161026d565b61011c61027c565b005b6100fa610330565b6100fa6103c1565b6100c1610591565b6100fa6105a0565b6100c16105a6565b6100c16105b5565b61011c6004803603602081101561016457600080fd5b50356001600160a01b03166105c4565b6100c16106ce565b6005546001600160a01b031681565b6000686194049f30f720000082106101ae5750690180e44b1e9679700000610268565b6830ca024f987b90000082106101ce575068de42ee1544dd900000610268565b6809c2007651b250000082106101ee57506871d75ab9b920500000610268565b6804e1003b28d9280000821061020e5750683ba1910bf341b00000610268565b6802ed6689e54f180000821061022e5750682086ac351052600000610268565b67f9ccd8a1c5080000821061024d5750681043561a8829300000610268565b677ce66c50e28400008210610268575068056bc75e2d631000005b919050565b6002546001600160a01b031681565b6102846106dd565b6000546001600160a01b039081169116146102e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004805460028054604080516370a0823160e01b81526001600160a01b0392831695810195909552516000946103bc9492909216916370a08231916024808301926020929190829003018186803b15801561038a57600080fd5b505afa15801561039e573d6000803e3d6000fd5b505050506040513d60208110156103b457600080fd5b5051906106e1565b905090565b60006103d36103ce610330565b61018b565b90506006548111610420576040805162461bcd60e51b81526020600482015260126024820152714e6f7468696e6720746f2072656c6561736560701b604482015290519081900360640190fd5b60065461042e908290610743565b60015460035460408051630d1550b160e41b81526001600160a01b03928316600482015260248101859052905193945091169163d1550b10916044808201926020929091908290030181600087803b15801561048957600080fd5b505af115801561049d573d6000803e3d6000fd5b505050506040513d60208110156104b357600080fd5b50506001546005546001600160a01b039182169163d1550b1091166104d984600a610785565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561051f57600080fd5b505af1158015610533573d6000803e3d6000fd5b505050506040513d602081101561054957600080fd5b505060065461055890826107c7565b6006556040805182815290517f2378aaa738741bdd08619449f579e776e250e5b2bc8531d11d5dd2191e4334e99181900360200190a190565b6000546001600160a01b031690565b60065481565b6003546001600160a01b031681565b6004546001600160a01b031681565b6105cc6106dd565b6000546001600160a01b0390811691161461062e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166106735760405162461bcd60e51b815260040180806020018281038252602681526020018061091e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b6000826106f05750600061073d565b828202828482816106fd57fe5b041461073a5760405162461bcd60e51b81526004018080602001828103825260218152602001806109446021913960400191505060405180910390fd5b90505b92915050565b600061073a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610821565b600061073a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108b8565b60008282018381101561073a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081848411156108b05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561087557818101518382015260200161085d565b50505050905090810190601f1680156108a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836109075760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561087557818101518382015260200161085d565b50600083858161091357fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220591e4714a10848f0ab30781d5d59b4943ea09bf3337fd3b6c4414d5b3fbcf1a664736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ddce093888c8dc636677cd29bc6c68d35cfdac330000000000000000000000003d2c5514344834b35df1587657caf22df74367ae000000000000000000000000078cf5973ae111d2c58ffb4662114d36f0092019000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000098b993abe2d7040b4c6c490fb72ec98bc4359aef
-----Decoded View---------------
Arg [0] : _paper (address): 0xdDce093888C8Dc636677Cd29BC6C68D35cFDAC33
Arg [1] : _paperLpToken (address): 0x3D2c5514344834B35df1587657cAf22dF74367aE
Arg [2] : _farmContract (address): 0x078cF5973AE111D2c58ffB4662114D36F0092019
Arg [3] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [4] : _developers (address): 0x98b993AbE2D7040B4C6c490fB72Ec98Bc4359aef
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000ddce093888c8dc636677cd29bc6c68d35cfdac33
Arg [1] : 0000000000000000000000003d2c5514344834b35df1587657caf22df74367ae
Arg [2] : 000000000000000000000000078cf5973ae111d2c58ffb4662114d36f0092019
Arg [3] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [4] : 00000000000000000000000098b993abe2d7040b4c6c490fb72ec98bc4359aef
Deployed Bytecode Sourcemap
27236:2170:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27459:25;;;:::i;:::-;;;;-1:-1:-1;;;;;27459:25:0;;;;;;;;;;;;;;28282:599;;;;;;;;;;;;;;;;-1:-1:-1;28282:599:0;;:::i;:::-;;;;;;;;;;;;;;;;27370:22;;;:::i;22771:148::-;;;:::i;:::-;;28893:124;;;:::i;29029:374::-;;;:::i;22557:79::-;;;:::i;27491:23::-;;;:::i;27399:27::-;;;:::i;27433:19::-;;;:::i;22927:281::-;;;;;;;;;;;;;;;;-1:-1:-1;22927:281:0;-1:-1:-1;;;;;22927:281:0;;:::i;27340:23::-;;;:::i;27459:25::-;;;-1:-1:-1;;;;;27459:25:0;;:::o;28282:599::-;28339:7;28376;28363:9;:20;28359:67;;-1:-1:-1;28407:7:0;28400:14;;28359:67;28453:6;28440:9;:19;28436:66;;-1:-1:-1;28483:7:0;28476:14;;28436:66;28529:6;28516:9;:19;28512:66;;-1:-1:-1;28559:7:0;28552:14;;28512:66;28605:5;28592:9;:18;28588:65;;-1:-1:-1;28634:7:0;28627:14;;28588:65;28680:5;28667:9;:18;28663:64;;-1:-1:-1;28709:6:0;28702:13;;28663:64;28754:5;28741:9;:18;28737:64;;-1:-1:-1;28783:6:0;28776:13;;28737:64;28828:4;28815:9;:17;28811:63;;-1:-1:-1;28856:6:0;28811:63;28282:599;;;:::o;27370:22::-;;;-1:-1:-1;;;;;27370:22:0;;:::o;22771:148::-;22694:12;:10;:12::i;:::-;22684:6;;-1:-1:-1;;;;;22684:6:0;;;:22;;;22676:67;;;;;-1:-1:-1;;;22676:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22878:1:::1;22862:6:::0;;22841:40:::1;::::0;-1:-1:-1;;;;;22862:6:0;;::::1;::::0;22841:40:::1;::::0;22878:1;;22841:40:::1;22909:1;22892:19:::0;;-1:-1:-1;;;;;;22892:19:0::1;::::0;;22771:148::o;28893:124::-;28978:4;;;29007:1;28994:7;;28971:31;;;-1:-1:-1;;;28971:31:0;;-1:-1:-1;;;;;28994:7:0;;;28971:31;;;;;;;;28937:14;;28971:38;;28978:4;;;;;28971:22;;:31;;;;;;;;;;;;;;28978:4;28971:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28971:31:0;;:35;:38::i;:::-;28964:45;;28893:124;:::o;29029:374::-;29063:13;29097:24;29106:14;:12;:14::i;:::-;29097:8;:24::i;:::-;29089:32;;29148:8;;29140:5;:16;29132:47;;;;;-1:-1:-1;;;29132:47:0;;;;;;;;;;;;-1:-1:-1;;;29132:47:0;;;;;;;;;;;;;;;29208:8;;29198:19;;:5;;:9;:19::i;:::-;29230:5;;29246:12;;29230:36;;;-1:-1:-1;;;29230:36:0;;-1:-1:-1;;;;;29246:12:0;;;29230:36;;;;;;;;;;;;29190:27;;-1:-1:-1;29230:5:0;;;:15;;:36;;;;;;;;;;;;;;;:5;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29277:5:0;;29293:10;;-1:-1:-1;;;;;29277:5:0;;;;:15;;29293:10;29305:13;:5;29315:2;29305:9;:13::i;:::-;29277:42;;;;;;;;;;;;;-1:-1:-1;;;;;29277:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29341:8:0;;:19;;29354:5;29341:12;:19::i;:::-;29330:8;:30;29378:17;;;;;;;;;;;;;;;;;29029:374;:::o;22557:79::-;22595:7;22622:6;-1:-1:-1;;;;;22622:6:0;22557:79;:::o;27491:23::-;;;;:::o;27399:27::-;;;-1:-1:-1;;;;;27399:27:0;;:::o;27433:19::-;;;-1:-1:-1;;;;;27433:19:0;;:::o;22927:281::-;22694:12;:10;:12::i;:::-;22684:6;;-1:-1:-1;;;;;22684:6:0;;;:22;;;22676:67;;;;;-1:-1:-1;;;22676:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23030:22:0;::::1;23008:110;;;;-1:-1:-1::0;;;23008:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23155:6;::::0;;23134:38:::1;::::0;-1:-1:-1;;;;;23134:38:0;;::::1;::::0;23155:6;::::1;::::0;23134:38:::1;::::0;::::1;23183:6;:17:::0;;-1:-1:-1;;;;;;23183:17:0::1;-1:-1:-1::0;;;;;23183:17:0;;;::::1;::::0;;;::::1;::::0;;22927:281::o;27340:23::-;;;-1:-1:-1;;;;;27340:23:0;;:::o;2814:106::-;2902:10;2814:106;:::o;7571:471::-;7629:7;7874:6;7870:47;;-1:-1:-1;7904:1:0;7897:8;;7870:47;7941:5;;;7945:1;7941;:5;:1;7965:5;;;;;:10;7957:56;;;;-1:-1:-1;;;7957:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8033:1;-1:-1:-1;7571:471:0;;;;;:::o;6647:136::-;6705:7;6732:43;6736:1;6739;6732:43;;;;;;;;;;;;;;;;;:3;:43::i;8518:132::-;8576:7;8603:39;8607:1;8610;8603:39;;;;;;;;;;;;;;;;;:3;:39::i;6183:181::-;6241:7;6273:5;;;6297:6;;;;6289:46;;;;;-1:-1:-1;;;6289:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;7086:226;7206:7;7242:12;7234:6;;;;7226:29;;;;-1:-1:-1;;;7226:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7278:5:0;;;7086:226::o;9146:312::-;9266:7;9301:12;9294:5;9286:28;;;;-1:-1:-1;;;9286:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9325:9;9341:1;9337;:5;;;;;;;9146:312;-1:-1:-1;;;;;9146:312:0:o
Swarm Source
ipfs://591e4714a10848f0ab30781d5d59b4943ea09bf3337fd3b6c4414d5b3fbcf1a6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.