Feature Tip: Add private address tag to any address under My Name Tag !
Rebrand announcement. Flush.lol was rebranded and is now known as Fomo App.
Overview
Max Total Supply
26,239.83 PAPER
Holders
275 (0.00%)
Market
Price
$0.85 @ 0.000222 ETH
Onchain Market Cap
$22,391.06
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
89.002060366526290682 PAPERValue
$75.95 ( ~0.0197315317461484 Eth) [0.3392%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PaperToken
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-23 */ // 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 token", "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 FarmContract is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public paperWethLP; PaperToken public paper; struct Farmer { uint256 amount; uint256 loss; } mapping(address => Farmer) public users; uint256 public debt; event Deposit(address indexed user, uint256 amount); event Harvest(address indexed user, uint256 amount); constructor(PaperToken _paper, IERC20 _paperLpToken) public { paper = _paper; paperWethLP = _paperLpToken; } function deposit(uint256 _amount) public { harvest(); if (paperWethLP.balanceOf(address(this)) > 0) { // (paperBalance + debt) * (totalLP + amount) / totalLP - paperBalance debt = paper .balanceOf(address(this)) .add(debt) .mul(paperWethLP.balanceOf(address(this)).add(_amount)) .div(paperWethLP.balanceOf(address(this))) .sub(paper.balanceOf(address(this))); } else { debt = 0; } paperWethLP.safeTransferFrom( address(msg.sender), address(this), _amount ); users[msg.sender].amount = users[msg.sender].amount.add(_amount); if (paperWethLP.balanceOf(address(this)) > 0) { // (paperBalance + debt) * user.amount / totalLP users[msg.sender].loss = paper .balanceOf(address(this)) .add(debt) .mul(users[msg.sender].amount) .div(paperWethLP.balanceOf(address(this))); } else { users[msg.sender].loss = 0; } } function withdraw(uint256 _amount) public { require( paper.totalSupply() == paper.maxSupply(), "Withdrawals will be available after PAPER max supply is reached" ); require( users[msg.sender].amount >= _amount, "You don't have enough LP tokens" ); require(paperWethLP.balanceOf(address(this)) > 0, "No tokens left"); harvest(); // (paperBlance + debt) * (totalLP - amount) / totalLP - paperBalance debt = paper .balanceOf(address(this)) .add(debt) .mul(paperWethLP.balanceOf(address(this)).sub(_amount)) .div(paperWethLP.balanceOf(address(this))); if (debt > paper.balanceOf(address(this))) { debt = debt.sub(paper.balanceOf(address(this))); } else { debt = 0; } paperWethLP.safeTransfer(address(msg.sender), _amount); if (users[msg.sender].amount > _amount) { users[msg.sender].amount = users[msg.sender].amount.sub(_amount); } else { users[msg.sender].amount = 0; } if (paperWethLP.balanceOf(address(this)) > 0) { // (paperBalance + debt) * user.amount / totalLP users[msg.sender].loss = paper .balanceOf(address(this)) .add(debt) .mul(users[msg.sender].amount) .div(paperWethLP.balanceOf(address(this))); } else { users[msg.sender].loss = 0; } } function harvest() public { if ( !(users[msg.sender].amount > 0 && paperWethLP.balanceOf(address(this)) > 0) ) { return; } // (paperBalance + debt) * user.balance / totalLPbalance uint256 p = paper .balanceOf(address(this)) .add(debt) .mul(users[msg.sender].amount) .div(paperWethLP.balanceOf(address(this))); if (p > users[msg.sender].loss) { uint256 pending = p.sub(users[msg.sender].loss); paper.transfer(msg.sender, pending); debt = debt.add(pending); users[msg.sender].loss = p; } } function getPending(address _user) public view returns (uint256) { if ( users[_user].amount > 0 && paperWethLP.balanceOf(address(this)) > 0 ) { // (paperBalance + debt) * user.balance / totalLPbalance - user.loss return paper .balanceOf(address(this)) .add(debt) .mul(users[_user].amount) .div(paperWethLP.balanceOf(address(this))) .sub(users[_user].loss); } return 0; } function getTotalLP() public view returns (uint256) { return paperWethLP.balanceOf(address(this)); } function getUser(address _user) public view returns (uint256 balance, uint256 loss) { balance = users[_user].amount; loss = users[_user].loss; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"GovernanceContractAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"GovernanceContractRemoved","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAddress","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"governanceContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPaper","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAddress","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052690e9c7f5bd655012000006007553480156200001f57600080fd5b50604080518082018252600b81526a2820a822a9103a37b5b2b760a91b6020808301918252835180850190945260058452642820a822a960d91b908401528151919291620000709160039162000102565b5080516200008690600490602084019062000102565b50506005805460ff19166012179055506000620000a2620000fe565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200019e565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200014557805160ff191683800117855562000175565b8280016001018555821562000175579182015b828111156200017557825182559160200191906001019062000158565b506200018392915062000187565b5090565b5b8082111562000183576000815560010162000188565b61111280620001ae6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a9059cbb11610071578063a9059cbb14610377578063d1550b10146103a3578063d5abeb01146103cf578063dd62ed3e146103d7578063f2fde38b1461040557610121565b806370a08231146102ef578063715018a6146103155780638da5cb5b1461031f57806395d89b4114610343578063a457c2d71461034b57610121565b8063313ce567116100f4578063313ce5671461023357806338eada1c1461025157806339509351146102775780634ba79dfe146102a357806350500a8a146102c957610121565b806306fdde0314610126578063095ea7b3146101a357806318160ddd146101e357806323b872dd146101fd575b600080fd5b61012e61042b565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b0381351690602001356104c1565b604080519115158252519081900360200190f35b6101eb6104de565b60408051918252519081900360200190f35b6101cf6004803603606081101561021357600080fd5b506001600160a01b038135811691602081013590911690604001356104e4565b61023b61056b565b6040805160ff9092168252519081900360200190f35b6101cf6004803603602081101561026757600080fd5b50356001600160a01b0316610574565b6101cf6004803603604081101561028d57600080fd5b506001600160a01b038135169060200135610654565b6101cf600480360360208110156102b957600080fd5b50356001600160a01b03166106a2565b6101cf600480360360208110156102df57600080fd5b50356001600160a01b031661077f565b6101eb6004803603602081101561030557600080fd5b50356001600160a01b0316610794565b61031d6107af565b005b61032761085c565b604080516001600160a01b039092168252519081900360200190f35b61012e610870565b6101cf6004803603604081101561036157600080fd5b506001600160a01b0381351690602001356108d1565b6101cf6004803603604081101561038d57600080fd5b506001600160a01b038135169060200135610939565b6101cf600480360360408110156103b957600080fd5b506001600160a01b03813516906020013561094d565b6101eb610a23565b6101eb600480360360408110156103ed57600080fd5b506001600160a01b0381358116916020013516610a29565b61031d6004803603602081101561041b57600080fd5b50356001600160a01b0316610a54565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b75780601f1061048c576101008083540402835291602001916104b7565b820191906000526020600020905b81548152906001019060200180831161049a57829003601f168201915b5050505050905090565b60006104d56104ce610b5d565b8484610b61565b50600192915050565b60025490565b60006104f1848484610c4d565b610561846104fd610b5d565b61055c85604051806060016040528060288152602001611027602891396001600160a01b038a1660009081526001602052604081209061053b610b5d565b6001600160a01b031681526020810191909152604001600020549190610da8565b610b61565b5060019392505050565b60055460ff1690565b600061057e610b5d565b60055461010090046001600160a01b039081169116146105d3576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff1661064f576001600160a01b038216600081815260066020908152604091829020805460ff19166001179055815192835290517fc8b076565c11e989d811cc9ebc33f3fc9d6a635f402f80ca900c7c126ba887489281900390910190a15060015b919050565b60006104d5610661610b5d565b8461055c8560016000610672610b5d565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e3f565b60006106ac610b5d565b60055461010090046001600160a01b03908116911614610701576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff161561064f576001600160a01b038216600081815260066020908152604091829020805460ff19169055815192835290517f6143afc7a354e1ab1c3f52714297bfe2a0958df8cd9e15f84953a51264bb52bc9281900390910190a1506001919050565b60066020526000908152604090205460ff1681565b6001600160a01b031660009081526020819052604090205490565b6107b7610b5d565b60055461010090046001600160a01b0390811691161461080c576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b75780601f1061048c576101008083540402835291602001916104b7565b60006104d56108de610b5d565b8461055c856040518060600160405280602581526020016110b86025913960016000610908610b5d565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610da8565b60006104d5610946610b5d565b8484610c4d565b3360009081526006602052604081205460ff166109b1576040805162461bcd60e51b815260206004820152601860248201527f49736e277420676f7665726e616e636520616464726573730000000000000000604482015290519081900360640190fd5b6007546109c6836109c06104de565b90610e3f565b1115610a19576040805162461bcd60e51b815260206004820152601760248201527f456d697373696f6e206c696d6974206578636565646564000000000000000000604482015290519081900360640190fd5b6104d58383610ea0565b60075490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a5c610b5d565b60055461010090046001600160a01b03908116911614610ab1576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b038116610af65760405162461bcd60e51b8152600401808060200182810382526026815260200180610fb96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b038316610ba65760405162461bcd60e51b81526004018080602001828103825260248152602001806110946024913960400191505060405180910390fd5b6001600160a01b038216610beb5760405162461bcd60e51b8152600401808060200182810382526022815260200180610fdf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c925760405162461bcd60e51b815260040180806020018281038252602581526020018061106f6025913960400191505060405180910390fd5b6001600160a01b038216610cd75760405162461bcd60e51b8152600401808060200182810382526023815260200180610f966023913960400191505060405180910390fd5b610ce2838383610f90565b610d1f81604051806060016040528060268152602001611001602691396001600160a01b0386166000908152602081905260409020549190610da8565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d4e9082610e3f565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e375760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610dfc578181015183820152602001610de4565b50505050905090810190601f168015610e295780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e99576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610efb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f0760008383610f90565b600254610f149082610e3f565b6002556001600160a01b038216600090815260208190526040902054610f3a9082610e3f565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b2df2108fa51d1f921c1fd5a300738736976ad6385e01177814e91bf507a024064736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a9059cbb11610071578063a9059cbb14610377578063d1550b10146103a3578063d5abeb01146103cf578063dd62ed3e146103d7578063f2fde38b1461040557610121565b806370a08231146102ef578063715018a6146103155780638da5cb5b1461031f57806395d89b4114610343578063a457c2d71461034b57610121565b8063313ce567116100f4578063313ce5671461023357806338eada1c1461025157806339509351146102775780634ba79dfe146102a357806350500a8a146102c957610121565b806306fdde0314610126578063095ea7b3146101a357806318160ddd146101e357806323b872dd146101fd575b600080fd5b61012e61042b565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b0381351690602001356104c1565b604080519115158252519081900360200190f35b6101eb6104de565b60408051918252519081900360200190f35b6101cf6004803603606081101561021357600080fd5b506001600160a01b038135811691602081013590911690604001356104e4565b61023b61056b565b6040805160ff9092168252519081900360200190f35b6101cf6004803603602081101561026757600080fd5b50356001600160a01b0316610574565b6101cf6004803603604081101561028d57600080fd5b506001600160a01b038135169060200135610654565b6101cf600480360360208110156102b957600080fd5b50356001600160a01b03166106a2565b6101cf600480360360208110156102df57600080fd5b50356001600160a01b031661077f565b6101eb6004803603602081101561030557600080fd5b50356001600160a01b0316610794565b61031d6107af565b005b61032761085c565b604080516001600160a01b039092168252519081900360200190f35b61012e610870565b6101cf6004803603604081101561036157600080fd5b506001600160a01b0381351690602001356108d1565b6101cf6004803603604081101561038d57600080fd5b506001600160a01b038135169060200135610939565b6101cf600480360360408110156103b957600080fd5b506001600160a01b03813516906020013561094d565b6101eb610a23565b6101eb600480360360408110156103ed57600080fd5b506001600160a01b0381358116916020013516610a29565b61031d6004803603602081101561041b57600080fd5b50356001600160a01b0316610a54565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b75780601f1061048c576101008083540402835291602001916104b7565b820191906000526020600020905b81548152906001019060200180831161049a57829003601f168201915b5050505050905090565b60006104d56104ce610b5d565b8484610b61565b50600192915050565b60025490565b60006104f1848484610c4d565b610561846104fd610b5d565b61055c85604051806060016040528060288152602001611027602891396001600160a01b038a1660009081526001602052604081209061053b610b5d565b6001600160a01b031681526020810191909152604001600020549190610da8565b610b61565b5060019392505050565b60055460ff1690565b600061057e610b5d565b60055461010090046001600160a01b039081169116146105d3576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff1661064f576001600160a01b038216600081815260066020908152604091829020805460ff19166001179055815192835290517fc8b076565c11e989d811cc9ebc33f3fc9d6a635f402f80ca900c7c126ba887489281900390910190a15060015b919050565b60006104d5610661610b5d565b8461055c8560016000610672610b5d565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e3f565b60006106ac610b5d565b60055461010090046001600160a01b03908116911614610701576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff161561064f576001600160a01b038216600081815260066020908152604091829020805460ff19169055815192835290517f6143afc7a354e1ab1c3f52714297bfe2a0958df8cd9e15f84953a51264bb52bc9281900390910190a1506001919050565b60066020526000908152604090205460ff1681565b6001600160a01b031660009081526020819052604090205490565b6107b7610b5d565b60055461010090046001600160a01b0390811691161461080c576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b75780601f1061048c576101008083540402835291602001916104b7565b60006104d56108de610b5d565b8461055c856040518060600160405280602581526020016110b86025913960016000610908610b5d565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610da8565b60006104d5610946610b5d565b8484610c4d565b3360009081526006602052604081205460ff166109b1576040805162461bcd60e51b815260206004820152601860248201527f49736e277420676f7665726e616e636520616464726573730000000000000000604482015290519081900360640190fd5b6007546109c6836109c06104de565b90610e3f565b1115610a19576040805162461bcd60e51b815260206004820152601760248201527f456d697373696f6e206c696d6974206578636565646564000000000000000000604482015290519081900360640190fd5b6104d58383610ea0565b60075490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a5c610b5d565b60055461010090046001600160a01b03908116911614610ab1576040805162461bcd60e51b8152602060048201819052602482015260008051602061104f833981519152604482015290519081900360640190fd5b6001600160a01b038116610af65760405162461bcd60e51b8152600401808060200182810382526026815260200180610fb96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b038316610ba65760405162461bcd60e51b81526004018080602001828103825260248152602001806110946024913960400191505060405180910390fd5b6001600160a01b038216610beb5760405162461bcd60e51b8152600401808060200182810382526022815260200180610fdf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c925760405162461bcd60e51b815260040180806020018281038252602581526020018061106f6025913960400191505060405180910390fd5b6001600160a01b038216610cd75760405162461bcd60e51b8152600401808060200182810382526023815260200180610f966023913960400191505060405180910390fd5b610ce2838383610f90565b610d1f81604051806060016040528060268152602001611001602691396001600160a01b0386166000908152602081905260409020549190610da8565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d4e9082610e3f565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e375760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610dfc578181015183820152602001610de4565b50505050905090810190601f168015610e295780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e99576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610efb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f0760008383610f90565b600254610f149082610e3f565b6002556001600160a01b038216600090815260208190526040902054610f3a9082610e3f565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b2df2108fa51d1f921c1fd5a300738736976ad6385e01177814e91bf507a024064736f6c634300060c0033
Deployed Bytecode Sourcemap
23979:538:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17718:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18627:194;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;18627:194:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;17995:100;;;:::i;:::-;;;;;;;;;;;;;;;;18829:454;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;18829:454:0;;;;;;;;;;;;;;;;;:::i;17904:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23417:261;;;;;;;;;;;;;;;;-1:-1:-1;23417:261:0;-1:-1:-1;;;;;23417:261:0;;:::i;19291:288::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;19291:288:0;;;;;;;;:::i;23686:286::-;;;;;;;;;;;;;;;;-1:-1:-1;23686:286:0;-1:-1:-1;;;;;23686:286:0;;:::i;23120:51::-;;;;;;;;;;;;;;;;-1:-1:-1;23120:51:0;-1:-1:-1;;;;;23120:51:0;;:::i;18103:119::-;;;;;;;;;;;;;;;;-1:-1:-1;18103:119:0;-1:-1:-1;;;;;18103:119:0;;:::i;22635:148::-;;;:::i;:::-;;22421:79;;;:::i;:::-;;;;-1:-1:-1;;;;;22421:79:0;;;;;;;;;;;;;;17809:87;;;:::i;19587:388::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;19587:388:0;;;;;;;;:::i;18230:200::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;18230:200:0;;;;;;;;:::i;24108:307::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24108:307:0;;;;;;;;:::i;24423:91::-;;;:::i;18438:181::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;18438:181:0;;;;;;;;;;:::i;22791:281::-;;;;;;;;;;;;;;;;-1:-1:-1;22791:281:0;-1:-1:-1;;;;;22791:281:0;;:::i;17718:83::-;17788:5;17781:12;;;;;;;;-1:-1:-1;;17781:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17755:13;;17781:12;;17788:5;;17781:12;;17788:5;17781:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17718:83;:::o;18627:194::-;18730:4;18752:39;18761:12;:10;:12::i;:::-;18775:7;18784:6;18752:8;:39::i;:::-;-1:-1:-1;18809:4:0;18627:194;;;;:::o;17995:100::-;18075:12;;17995:100;:::o;18829:454::-;18969:4;18986:36;18996:6;19004:9;19015:6;18986:9;:36::i;:::-;19033:220;19056:6;19077:12;:10;:12::i;:::-;19104:138;19160:6;19104:138;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19104:19:0;;;;;;:11;:19;;;;;;19124:12;:10;:12::i;:::-;-1:-1:-1;;;;;19104:33:0;;;;;;;;;;;;-1:-1:-1;19104:33:0;;;:138;:37;:138::i;:::-;19033:8;:220::i;:::-;-1:-1:-1;19271:4:0;18829:454;;;;;:::o;17904:83::-;17970:9;;;;17904:83;:::o;23417:261::-;23477:12;22558;:10;:12::i;:::-;22548:6;;;;;-1:-1:-1;;;;;22548:6:0;;;:22;;;22540:67;;;;;-1:-1:-1;;;22540:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22540:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23507:25:0;::::1;;::::0;;;:19:::1;:25;::::0;;;;;::::1;;23502:169;;-1:-1:-1::0;;;;;23549:25:0;::::1;;::::0;;;:19:::1;:25;::::0;;;;;;;;:32;;-1:-1:-1;;23549:32:0::1;23577:4;23549:32;::::0;;23601:29;;;;;;;::::1;::::0;;;;;;;;::::1;-1:-1:-1::0;23655:4:0::1;23502:169;23417:261:::0;;;:::o;19291:288::-;19394:4;19416:133;19439:12;:10;:12::i;:::-;19466:7;19488:50;19527:10;19488:11;:25;19500:12;:10;:12::i;:::-;-1:-1:-1;;;;;19488:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;19488:25:0;;;:34;;;;;;;;;;;:38;:50::i;23686:286::-;23764:12;22558;:10;:12::i;:::-;22548:6;;;;;-1:-1:-1;;;;;22548:6:0;;;:22;;;22540:67;;;;;-1:-1:-1;;;22540:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22540:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23798:25:0;::::1;;::::0;;;:19:::1;:25;::::0;;;;;::::1;;23794:171;;;-1:-1:-1::0;;;;;23840:25:0;::::1;23868:5;23840:25:::0;;;:19:::1;:25;::::0;;;;;;;;:33;;-1:-1:-1;;23840:33:0::1;::::0;;23893:31;;;;;;;::::1;::::0;;;;;;;;::::1;-1:-1:-1::0;23949:4:0::1;23686:286:::0;;;:::o;23120:51::-;;;;;;;;;;;;;;;:::o;18103:119::-;-1:-1:-1;;;;;18196:18:0;18169:7;18196:18;;;;;;;;;;;;18103:119::o;22635:148::-;22558:12;:10;:12::i;:::-;22548:6;;;;;-1:-1:-1;;;;;22548:6:0;;;:22;;;22540:67;;;;;-1:-1:-1;;;22540:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22540:67:0;;;;;;;;;;;;;;;22726:6:::1;::::0;22705:40:::1;::::0;22742:1:::1;::::0;22726:6:::1;::::0;::::1;-1:-1:-1::0;;;;;22726:6:0::1;::::0;22705:40:::1;::::0;22742:1;;22705:40:::1;22756:6;:19:::0;;-1:-1:-1;;;;;;22756:19:0::1;::::0;;22635:148::o;22421:79::-;22486:6;;;;;-1:-1:-1;;;;;22486:6:0;;22421:79::o;17809:87::-;17881:7;17874:14;;;;;;;;-1:-1:-1;;17874:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17848:13;;17874:14;;17881:7;;17874:14;;17881:7;17874:14;;;;;;;;;;;;;;;;;;;;;;;;19587:388;19695:4;19717:228;19740:12;:10;:12::i;:::-;19767:7;19789:145;19846:15;19789:145;;;;;;;;;;;;;;;;;:11;:25;19801:12;:10;:12::i;:::-;-1:-1:-1;;;;;19789:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;19789:25:0;;;:34;;;;;;;;;;;:145;:38;:145::i;18230:200::-;18336:4;18358:42;18368:12;:10;:12::i;:::-;18382:9;18393:6;18358:9;:42::i;24108:307::-;23349:10;24216:4;23329:31;;;:19;:31;;;;;;;;23321:68;;;;;-1:-1:-1;;;23321:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24290:14:::1;;24260:26;24278:7;24260:13;:11;:13::i;:::-;:17:::0;::::1;:26::i;:::-;:44;;24238:117;;;::::0;;-1:-1:-1;;;24238:117:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;24366:19;24372:3;24377:7;24366:5;:19::i;24423:91::-:0;24492:14;;24423:91;:::o;18438:181::-;-1:-1:-1;;;;;18584:18:0;;;18552:7;18584:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;18438:181::o;22791:281::-;22558:12;:10;:12::i;:::-;22548:6;;;;;-1:-1:-1;;;;;22548:6:0;;;:22;;;22540:67;;;;;-1:-1:-1;;;22540:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22540:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22894:22:0;::::1;22872:110;;;;-1:-1:-1::0;;;22872:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23019:6;::::0;22998:38:::1;::::0;-1:-1:-1;;;;;22998:38:0;;::::1;::::0;23019:6:::1;::::0;::::1;;::::0;22998:38:::1;::::0;;;::::1;23047:6;:17:::0;;-1:-1:-1;;;;;23047:17:0;;::::1;;;-1:-1:-1::0;;;;;;23047:17:0;;::::1;::::0;;;::::1;::::0;;22791:281::o;2814:106::-;2902:10;2814:106;:::o;21450:380::-;-1:-1:-1;;;;;21586:19:0;;21578:68;;;;-1:-1:-1;;;21578:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21665:21:0;;21657:68;;;;-1:-1:-1;;;21657:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21738:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21790:32;;;;;;;;;;;;;;;;;21450:380;;;:::o;19983:610::-;-1:-1:-1;;;;;20123:20:0;;20115:70;;;;-1:-1:-1;;;20115:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20204:23:0;;20196:71;;;;-1:-1:-1;;;20196:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20280:47;20301:6;20309:9;20320:6;20280:20;:47::i;:::-;20360:108;20396:6;20360:108;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20360:17:0;;:9;:17;;;;;;;;;;;;:108;:21;:108::i;:::-;-1:-1:-1;;;;;20340:17:0;;;:9;:17;;;;;;;;;;;:128;;;;20502:20;;;;;;;:32;;20527:6;20502:24;:32::i;:::-;-1:-1:-1;;;;;20479:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;20550:35;;;;;;;20479:20;;20550:35;;;;;;;;;;;;;19983:610;;;:::o;7066:226::-;7186:7;7222:12;7214:6;;;;7206:29;;;;-1:-1:-1;;;7206:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7258:5:0;;;7066:226::o;6163:181::-;6221:7;6253:5;;;6277:6;;;;6269:46;;;;;-1:-1:-1;;;6269:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6335:1;6163:181;-1:-1:-1;;;6163:181:0:o;20601:378::-;-1:-1:-1;;;;;20685:21:0;;20677:65;;;;;-1:-1:-1;;;20677:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20755:49;20784:1;20788:7;20797:6;20755:20;:49::i;:::-;20832:12;;:24;;20849:6;20832:16;:24::i;:::-;20817:12;:39;-1:-1:-1;;;;;20888:18:0;;:9;:18;;;;;;;;;;;:30;;20911:6;20888:22;:30::i;:::-;-1:-1:-1;;;;;20867:18:0;;:9;:18;;;;;;;;;;;:51;;;;20934:37;;;;;;;20867:18;;:9;;20934:37;;;;;;;;;;20601:378;;:::o;21936:125::-;;;;:::o
Swarm Source
ipfs://b2df2108fa51d1f921c1fd5a300738736976ad6385e01177814e91bf507a0240
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.