ETH Price: $2,518.58 (+3.17%)

Contract

0xd63AB25495840093Ef9DC8eAA2aA24a8fD8eF31C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Reward155364332022-09-15 2:43:08719 days ago1663209788IN
0xd63AB254...8fD8eF31C
0 ETH0.001911712.0251613
Claim Reward155295322022-09-13 22:45:11720 days ago1663109111IN
0xd63AB254...8fD8eF31C
0 ETH0.0021033719.1479073
Claim Reward155231642022-09-12 21:31:45721 days ago1663018305IN
0xd63AB254...8fD8eF31C
0 ETH0.0020804119.32124728
Claim Reward155204622022-09-12 10:48:57721 days ago1662979737IN
0xd63AB254...8fD8eF31C
0 ETH0.000803067.45823779
Claim Reward155164132022-09-11 18:50:18722 days ago1662922218IN
0xd63AB254...8fD8eF31C
0 ETH0.0018932513.34452389
Claim Reward155117202022-09-11 0:08:48723 days ago1662854928IN
0xd63AB254...8fD8eF31C
0 ETH0.0016002212.82490784
Claim Reward155081662022-09-10 9:56:26723 days ago1662803786IN
0xd63AB254...8fD8eF31C
0 ETH0.000760796.0973592
Claim Reward155051732022-09-09 22:03:36724 days ago1662761016IN
0xd63AB254...8fD8eF31C
0 ETH0.0023687918.98455432
Claim Reward155030942022-09-09 13:54:06724 days ago1662731646IN
0xd63AB254...8fD8eF31C
0 ETH0.0030290128.13106217
Claim Reward155015892022-09-09 7:55:17724 days ago1662710117IN
0xd63AB254...8fD8eF31C
0 ETH0.0013928312.93558584
Claim Reward155015862022-09-09 7:54:39724 days ago1662710079IN
0xd63AB254...8fD8eF31C
0 ETH0.0015511412.43154615
Claim Reward155015082022-09-09 7:36:50724 days ago1662709010IN
0xd63AB254...8fD8eF31C
0 ETH0.0020072218.64153606
Claim Reward155003672022-09-09 3:01:49725 days ago1662692509IN
0xd63AB254...8fD8eF31C
0 ETH0.0011918311.06877273
Claim Reward154781972022-09-05 13:48:39728 days ago1662385719IN
0xd63AB254...8fD8eF31C
0 ETH0.0022954718.39693843
Claim Reward154727252022-09-04 16:43:56729 days ago1662309836IN
0xd63AB254...8fD8eF31C
0 ETH0.000941278.7418021
Claim Reward154723042022-09-04 15:04:48729 days ago1662303888IN
0xd63AB254...8fD8eF31C
0 ETH0.000353779.39578857
Claim Reward154723012022-09-04 15:03:51729 days ago1662303831IN
0xd63AB254...8fD8eF31C
0 ETH0.000991149.20497712
Claim Reward154700292022-09-04 6:16:43730 days ago1662272203IN
0xd63AB254...8fD8eF31C
0 ETH0.001085328.83998526
Claim Reward154674722022-09-03 20:29:00730 days ago1662236940IN
0xd63AB254...8fD8eF31C
0 ETH0.001123037.91568162
Claim Reward154672132022-09-03 19:30:59730 days ago1662233459IN
0xd63AB254...8fD8eF31C
0 ETH0.000828137.69102164
Claim Reward154660642022-09-03 15:08:29730 days ago1662217709IN
0xd63AB254...8fD8eF31C
0 ETH0.0012202911.33309864
Claim Reward154651862022-09-03 11:44:05730 days ago1662205445IN
0xd63AB254...8fD8eF31C
0 ETH0.000929967.45314989
Claim Reward154647082022-09-03 9:59:34730 days ago1662199174IN
0xd63AB254...8fD8eF31C
0 ETH0.000722546.5776475
Claim Reward154631422022-09-03 3:57:37731 days ago1662177457IN
0xd63AB254...8fD8eF31C
0 ETH0.0018728817.39391613
Claim Reward154625222022-09-03 1:27:20731 days ago1662168440IN
0xd63AB254...8fD8eF31C
0 ETH0.001009369.37413947
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
150320572022-06-27 2:23:10799 days ago1656296590  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SMOLNftRewards

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : SMOLNftRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import './interfaces/ISMOLNftRewards.sol';
import './interfaces/ISmoltingInu.sol';

contract SMOLNftRewards is ISMOLNftRewards, Ownable {
  struct Reward {
    uint256 totalExcluded; // excluded reward
    uint256 totalRealised;
    uint256 lastClaim; // used for boosting logic
  }

  struct Share {
    uint256 amount;
    uint256 stakedTime;
  }

  IERC721 shareholderNFT;
  ISmoltingInu smol = ISmoltingInu(0x2bf6267c4997548d8de56087E5d48bDCCb877E77);
  uint256 public totalStakedUsers;
  uint256 public totalSharesDeposited; // will only be actual deposited tokens without handling any reflections or otherwise

  // amount of shares a user has
  mapping(address => Share) shares;
  // reward information per user
  mapping(address => Reward) public rewards;

  uint256 public totalRewards;
  uint256 public totalDistributed;
  uint256 public rewardsPerShare;

  uint256 private constant ACC_FACTOR = 10**36;

  event ClaimReward(address user);
  event DistributeReward(address indexed user);
  event DepositRewards(address indexed user, uint256 amountTokens);

  modifier onlyToken() {
    require(msg.sender == address(shareholderNFT), 'must be token contract');
    _;
  }

  constructor(address _shareholderNFT) {
    shareholderNFT = IERC721(_shareholderNFT);
  }

  function setShare(address shareholder, uint256 newBalance)
    external
    onlyToken
  {
    // _addShares and _removeShares takes the amount to add or remove respectively,
    // so we should handle the diff from the new balance when passing in the amounts
    // to these functions
    if (shares[shareholder].amount > newBalance) {
      _removeShares(shareholder, shares[shareholder].amount - newBalance);
    } else if (shares[shareholder].amount < newBalance) {
      _addShares(shareholder, newBalance - shares[shareholder].amount);
    }
  }

  function _addShares(address shareholder, uint256 amount) private {
    if (shares[shareholder].amount > 0) {
      _distributeReward(shareholder);
    }

    uint256 sharesBefore = shares[shareholder].amount;

    totalSharesDeposited += amount;
    shares[shareholder].amount += amount;
    shares[shareholder].stakedTime = block.timestamp;
    if (sharesBefore == 0 && shares[shareholder].amount > 0) {
      totalStakedUsers++;
    }
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
  }

  function _removeShares(address shareholder, uint256 amount) private {
    require(
      shares[shareholder].amount > 0 &&
        (amount == 0 || amount <= shares[shareholder].amount),
      'you can only unstake if you have some staked'
    );
    _distributeReward(shareholder);

    uint256 removeAmount = amount == 0 ? shares[shareholder].amount : amount;

    totalSharesDeposited -= removeAmount;
    shares[shareholder].amount -= removeAmount;
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
  }

  function depositRewards(uint256 _amount) external override onlyOwner {
    require(
      totalSharesDeposited > 0,
      'must be shares deposited to be rewarded rewards'
    );

    totalRewards += _amount;
    rewardsPerShare += (ACC_FACTOR * _amount) / totalSharesDeposited;
    smol.gameMint(address(this), _amount);
    emit DepositRewards(msg.sender, _amount);
  }

  function _distributeReward(address shareholder) internal {
    if (shares[shareholder].amount == 0) {
      return;
    }

    uint256 amount = getUnpaid(shareholder);

    rewards[shareholder].totalRealised += amount;
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
    rewards[shareholder].lastClaim = block.timestamp;

    if (amount > 0) {
      totalDistributed += amount;
      smol.transfer(shareholder, amount);
      emit DistributeReward(shareholder);
    }
  }

  function claimReward() external override {
    _distributeReward(msg.sender);
    emit ClaimReward(msg.sender);
  }

  // returns the unpaid rewards
  function getUnpaid(address shareholder) public view returns (uint256) {
    if (shares[shareholder].amount == 0) {
      return 0;
    }

    uint256 earnedRewards = getCumulativeRewards(shares[shareholder].amount);
    uint256 rewardsExcluded = rewards[shareholder].totalExcluded;
    if (earnedRewards <= rewardsExcluded) {
      return 0;
    }

    return earnedRewards - rewardsExcluded;
  }

  function getCumulativeRewards(uint256 share) internal view returns (uint256) {
    return (share * rewardsPerShare) / ACC_FACTOR;
  }

  function getShares(address user) external view override returns (uint256) {
    return shares[user].amount;
  }

  function getShareholderNFT() external view returns (address) {
    return address(shareholderNFT);
  }

  function getSmolToken() external view returns (address) {
    return address(smol);
  }

  function setShareholderNFT(address _nft) external onlyOwner {
    shareholderNFT = IERC721(_nft);
  }

  function setSmolToken(address _token) external onlyOwner {
    smol = ISmoltingInu(_token);
  }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 4 of 9 : ISMOLNftRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ISMOLNftRewards {
  function claimReward() external;

  function depositRewards(uint256 _amount) external;

  function getShares(address wallet) external view returns (uint256);
}

File 5 of 9 : ISmoltingInu.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/interfaces/IERC20.sol';

/**
 * @dev SmoltingInu token interface
 */

interface ISmoltingInu is IERC20 {
  function gameMint(address _user, uint256 _amount) external;

  function gameBurn(address _user, uint256 _amount) external;

  function addPlayThrough(address _user, uint256 _amountWagered) external;
}

File 6 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 8 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 9 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_shareholderNFT","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"}],"name":"DepositRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"DistributeReward","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":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getShareholderNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSmolToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"}],"name":"getUnpaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"totalExcluded","type":"uint256"},{"internalType":"uint256","name":"totalRealised","type":"uint256"},{"internalType":"uint256","name":"lastClaim","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nft","type":"address"}],"name":"setShareholderNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setSmolToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSharesDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600280546001600160a01b031916732bf6267c4997548d8de56087e5d48bdccb877e7717905534801561003657600080fd5b50604051610e42380380610e42833981016040819052610055916100d3565b61005e33610083565b600180546001600160a01b0319166001600160a01b0392909216919091179055610103565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e557600080fd5b81516001600160a01b03811681146100fc57600080fd5b9392505050565b610d30806101126000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638bdf67f2116100a2578063e262391811610071578063e262391814610230578063efca2eed14610243578063f04da65b1461024c578063f2fde38b14610275578063f81ca2581461028857600080fd5b80638bdf67f2146101fb5780638da5cb5b1461020e578063b88a802f1461021f578063c7e1d0b11461022757600080fd5b80633c6e6789116100e95780633c6e6789146101bb5780635b00cfcb146101c4578063715018a6146101d757806380bb4055146101df57806389d96917146101e857600080fd5b80630700037d1461011b578063097046041461016a5780630e15561a1461018f57806314b6ca96146101a6575b600080fd5b61014a610129366004610bc6565b60066020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060015b60405180910390f35b6001546001600160a01b03165b6040516001600160a01b039091168152602001610161565b61019860075481565b604051908152602001610161565b6101b96101b4366004610be8565b610299565b005b61019860045481565b6101b96101d2366004610bc6565b610392565b6101b96103de565b61019860035481565b6101986101f6366004610bc6565b610414565b6101b9610209366004610c12565b61049a565b6000546001600160a01b0316610177565b6101b961061d565b61019860095481565b6101b961023e366004610bc6565b61065b565b61019860085481565b61019861025a366004610bc6565b6001600160a01b031660009081526005602052604090205490565b6101b9610283366004610bc6565b6106a7565b6002546001600160a01b0316610177565b6001546001600160a01b031633146102f15760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081899481d1bdad95b8818dbdb9d1c9858dd60521b60448201526064015b60405180910390fd5b6001600160a01b038216600090815260056020526040902054811015610344576001600160a01b03821660009081526005602052604090205461034090839061033b908490610c41565b610742565b5050565b6001600160a01b038216600090815260056020526040902054811115610340576001600160a01b03821660009081526005602052604090205461034090839061038d9084610c41565b6108a4565b6000546001600160a01b031633146103bc5760405162461bcd60e51b81526004016102e890610c58565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104085760405162461bcd60e51b81526004016102e890610c58565b61041260006109aa565b565b6001600160a01b03811660009081526005602052604081205461043957506000919050565b6001600160a01b03821660009081526005602052604081205461045b906109fa565b6001600160a01b038416600090815260066020526040902054909150808211610488575060009392505050565b6104928183610c41565b949350505050565b6000546001600160a01b031633146104c45760405162461bcd60e51b81526004016102e890610c58565b60006004541161052e5760405162461bcd60e51b815260206004820152602f60248201527f6d75737420626520736861726573206465706f736974656420746f206265207260448201526e65776172646564207265776172647360881b60648201526084016102e8565b80600760008282546105409190610c8d565b9091555050600454610561826ec097ce7bc90715b34b9f1000000000610ca5565b61056b9190610cc4565b6009600082825461057c9190610c8d565b9091555050600254604051634eb9029960e01b8152306004820152602481018390526001600160a01b0390911690634eb9029990604401600060405180830381600087803b1580156105cd57600080fd5b505af11580156105e1573d6000803e3d6000fd5b50506040518381523392507fb9ad861b752f80117b35bea6dec99933d8a5ae360f2839ee8784b750d5613409915060200160405180910390a250565b61062633610a2a565b6040513381527f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e89060200160405180910390a1565b6000546001600160a01b031633146106855760405162461bcd60e51b81526004016102e890610c58565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106d15760405162461bcd60e51b81526004016102e890610c58565b6001600160a01b0381166107365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e8565b61073f816109aa565b50565b6001600160a01b03821660009081526005602052604090205415801590610789575080158061078957506001600160a01b0382166000908152600560205260409020548111155b6107ea5760405162461bcd60e51b815260206004820152602c60248201527f796f752063616e206f6e6c7920756e7374616b6520696620796f75206861766560448201526b081cdbdb59481cdd185ad95960a21b60648201526084016102e8565b6107f382610a2a565b60008115610801578161081b565b6001600160a01b0383166000908152600560205260409020545b9050806004600082825461082f9190610c41565b90915550506001600160a01b0383166000908152600560205260408120805483929061085c908490610c41565b90915550506001600160a01b038316600090815260056020526040902054610883906109fa565b6001600160a01b039093166000908152600660205260409020929092555050565b6001600160a01b038216600090815260056020526040902054156108cb576108cb82610a2a565b6001600160a01b03821660009081526005602052604081205460048054919284926108f7908490610c8d565b90915550506001600160a01b03831660009081526005602052604081208054849290610924908490610c8d565b90915550506001600160a01b0383166000908152600560205260409020426001909101558015801561096d57506001600160a01b03831660009081526005602052604090205415155b15610988576003805490600061098283610ce6565b91905055505b6001600160a01b038316600090815260056020526040902054610883906109fa565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006ec097ce7bc90715b34b9f100000000060095483610a1a9190610ca5565b610a249190610cc4565b92915050565b6001600160a01b038116600090815260056020526040902054610a4a5750565b6000610a5582610414565b6001600160a01b038316600090815260066020526040812060010180549293508392909190610a85908490610c8d565b90915550506001600160a01b038216600090815260056020526040902054610aac906109fa565b6001600160a01b0383166000908152600660205260409020908155426002909101558015610340578060086000828254610ae69190610c8d565b909155505060025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b158015610b3957600080fd5b505af1158015610b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b719190610d01565b506040516001600160a01b038316907f12aec06443e8d0b9713948f69d526f256f435e4d689c9d5215a1387d4230597d90600090a25050565b80356001600160a01b0381168114610bc157600080fd5b919050565b600060208284031215610bd857600080fd5b610be182610baa565b9392505050565b60008060408385031215610bfb57600080fd5b610c0483610baa565b946020939093013593505050565b600060208284031215610c2457600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610c5357610c53610c2b565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610ca057610ca0610c2b565b500190565b6000816000190483118215151615610cbf57610cbf610c2b565b500290565b600082610ce157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415610cfa57610cfa610c2b565b5060010190565b600060208284031215610d1357600080fd5b81518015158114610be157600080fdfea164736f6c6343000809000a0000000000000000000000002969c8309ba789a8ddba80f6bfa74accc1d4419b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638bdf67f2116100a2578063e262391811610071578063e262391814610230578063efca2eed14610243578063f04da65b1461024c578063f2fde38b14610275578063f81ca2581461028857600080fd5b80638bdf67f2146101fb5780638da5cb5b1461020e578063b88a802f1461021f578063c7e1d0b11461022757600080fd5b80633c6e6789116100e95780633c6e6789146101bb5780635b00cfcb146101c4578063715018a6146101d757806380bb4055146101df57806389d96917146101e857600080fd5b80630700037d1461011b578063097046041461016a5780630e15561a1461018f57806314b6ca96146101a6575b600080fd5b61014a610129366004610bc6565b60066020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060015b60405180910390f35b6001546001600160a01b03165b6040516001600160a01b039091168152602001610161565b61019860075481565b604051908152602001610161565b6101b96101b4366004610be8565b610299565b005b61019860045481565b6101b96101d2366004610bc6565b610392565b6101b96103de565b61019860035481565b6101986101f6366004610bc6565b610414565b6101b9610209366004610c12565b61049a565b6000546001600160a01b0316610177565b6101b961061d565b61019860095481565b6101b961023e366004610bc6565b61065b565b61019860085481565b61019861025a366004610bc6565b6001600160a01b031660009081526005602052604090205490565b6101b9610283366004610bc6565b6106a7565b6002546001600160a01b0316610177565b6001546001600160a01b031633146102f15760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081899481d1bdad95b8818dbdb9d1c9858dd60521b60448201526064015b60405180910390fd5b6001600160a01b038216600090815260056020526040902054811015610344576001600160a01b03821660009081526005602052604090205461034090839061033b908490610c41565b610742565b5050565b6001600160a01b038216600090815260056020526040902054811115610340576001600160a01b03821660009081526005602052604090205461034090839061038d9084610c41565b6108a4565b6000546001600160a01b031633146103bc5760405162461bcd60e51b81526004016102e890610c58565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104085760405162461bcd60e51b81526004016102e890610c58565b61041260006109aa565b565b6001600160a01b03811660009081526005602052604081205461043957506000919050565b6001600160a01b03821660009081526005602052604081205461045b906109fa565b6001600160a01b038416600090815260066020526040902054909150808211610488575060009392505050565b6104928183610c41565b949350505050565b6000546001600160a01b031633146104c45760405162461bcd60e51b81526004016102e890610c58565b60006004541161052e5760405162461bcd60e51b815260206004820152602f60248201527f6d75737420626520736861726573206465706f736974656420746f206265207260448201526e65776172646564207265776172647360881b60648201526084016102e8565b80600760008282546105409190610c8d565b9091555050600454610561826ec097ce7bc90715b34b9f1000000000610ca5565b61056b9190610cc4565b6009600082825461057c9190610c8d565b9091555050600254604051634eb9029960e01b8152306004820152602481018390526001600160a01b0390911690634eb9029990604401600060405180830381600087803b1580156105cd57600080fd5b505af11580156105e1573d6000803e3d6000fd5b50506040518381523392507fb9ad861b752f80117b35bea6dec99933d8a5ae360f2839ee8784b750d5613409915060200160405180910390a250565b61062633610a2a565b6040513381527f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e89060200160405180910390a1565b6000546001600160a01b031633146106855760405162461bcd60e51b81526004016102e890610c58565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106d15760405162461bcd60e51b81526004016102e890610c58565b6001600160a01b0381166107365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e8565b61073f816109aa565b50565b6001600160a01b03821660009081526005602052604090205415801590610789575080158061078957506001600160a01b0382166000908152600560205260409020548111155b6107ea5760405162461bcd60e51b815260206004820152602c60248201527f796f752063616e206f6e6c7920756e7374616b6520696620796f75206861766560448201526b081cdbdb59481cdd185ad95960a21b60648201526084016102e8565b6107f382610a2a565b60008115610801578161081b565b6001600160a01b0383166000908152600560205260409020545b9050806004600082825461082f9190610c41565b90915550506001600160a01b0383166000908152600560205260408120805483929061085c908490610c41565b90915550506001600160a01b038316600090815260056020526040902054610883906109fa565b6001600160a01b039093166000908152600660205260409020929092555050565b6001600160a01b038216600090815260056020526040902054156108cb576108cb82610a2a565b6001600160a01b03821660009081526005602052604081205460048054919284926108f7908490610c8d565b90915550506001600160a01b03831660009081526005602052604081208054849290610924908490610c8d565b90915550506001600160a01b0383166000908152600560205260409020426001909101558015801561096d57506001600160a01b03831660009081526005602052604090205415155b15610988576003805490600061098283610ce6565b91905055505b6001600160a01b038316600090815260056020526040902054610883906109fa565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006ec097ce7bc90715b34b9f100000000060095483610a1a9190610ca5565b610a249190610cc4565b92915050565b6001600160a01b038116600090815260056020526040902054610a4a5750565b6000610a5582610414565b6001600160a01b038316600090815260066020526040812060010180549293508392909190610a85908490610c8d565b90915550506001600160a01b038216600090815260056020526040902054610aac906109fa565b6001600160a01b0383166000908152600660205260409020908155426002909101558015610340578060086000828254610ae69190610c8d565b909155505060025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b158015610b3957600080fd5b505af1158015610b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b719190610d01565b506040516001600160a01b038316907f12aec06443e8d0b9713948f69d526f256f435e4d689c9d5215a1387d4230597d90600090a25050565b80356001600160a01b0381168114610bc157600080fd5b919050565b600060208284031215610bd857600080fd5b610be182610baa565b9392505050565b60008060408385031215610bfb57600080fd5b610c0483610baa565b946020939093013593505050565b600060208284031215610c2457600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610c5357610c53610c2b565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610ca057610ca0610c2b565b500190565b6000816000190483118215151615610cbf57610cbf610c2b565b500290565b600082610ce157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415610cfa57610cfa610c2b565b5060010190565b600060208284031215610d1357600080fd5b81518015158114610be157600080fdfea164736f6c6343000809000a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000002969c8309ba789a8ddba80f6bfa74accc1d4419b

-----Decoded View---------------
Arg [0] : _shareholderNFT (address): 0x2969c8309bA789A8DDBA80F6Bfa74Accc1D4419b

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002969c8309ba789a8ddba80f6bfa74accc1d4419b


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.