ETH Price: $2,542.70 (-3.95%)
Gas: 1 Gwei

Contract

0x6B4e67E4BEDcEDd428f448abf3C055AF4bCa9678
 
Transaction Hash
Method
Block
From
To
Remove Stake184988712023-11-04 13:08:59281 days ago1699103339IN
0x6B4e67E4...F4bCa9678
0 ETH0.001491218.12421549
Remove Stake184988402023-11-04 13:02:47281 days ago1699102967IN
0x6B4e67E4...F4bCa9678
0 ETH0.0018466222.44730996
Claim Rewards184988042023-11-04 12:55:35281 days ago1699102535IN
0x6B4e67E4...F4bCa9678
0 ETH0.0020500127.79902011
Claim Rewards184987652023-11-04 12:47:35281 days ago1699102055IN
0x6B4e67E4...F4bCa9678
0 ETH0.0021453723.69430874
Claim Rewards184119272023-10-23 8:57:59293 days ago1698051479IN
0x6B4e67E4...F4bCa9678
0 ETH0.001759.9407037
Remove Stake184119242023-10-23 8:57:11293 days ago1698051431IN
0x6B4e67E4...F4bCa9678
0 ETH0.000804269.77645483
Remove Stake183719442023-10-17 18:41:11299 days ago1697568071IN
0x6B4e67E4...F4bCa9678
0 ETH0.0009809511.92433975
Claim Rewards183719402023-10-17 18:40:23299 days ago1697568023IN
0x6B4e67E4...F4bCa9678
0 ETH0.0015970511.25922533
Claim Rewards183061302023-10-08 13:42:35308 days ago1696772555IN
0x6B4e67E4...F4bCa9678
0 ETH0.000712359.65987196
Remove Stake181832222023-09-21 9:00:35325 days ago1695286835IN
0x6B4e67E4...F4bCa9678
0 ETH0.0009385911.40940925
Claim Rewards181777632023-09-20 14:41:47326 days ago1695220907IN
0x6B4e67E4...F4bCa9678
0 ETH0.0014822820.10037064
Claim Rewards181777562023-09-20 14:40:23326 days ago1695220823IN
0x6B4e67E4...F4bCa9678
0 ETH0.003910122.21095287
Remove Stake181552762023-09-17 10:50:23329 days ago1694947823IN
0x6B4e67E4...F4bCa9678
0 ETH0.000710448.63606203
Remove Stake181466892023-09-16 5:37:47330 days ago1694842667IN
0x6B4e67E4...F4bCa9678
0 ETH0.000675848.21546916
Claim Rewards181466042023-09-16 5:20:47330 days ago1694841647IN
0x6B4e67E4...F4bCa9678
0 ETH0.001394559.8315952
Remove Stake181466012023-09-16 5:20:11330 days ago1694841611IN
0x6B4e67E4...F4bCa9678
0 ETH0.0008483710.31272779
Claim Rewards181286702023-09-13 16:48:35333 days ago1694623715IN
0x6B4e67E4...F4bCa9678
0 ETH0.0009728310.74430063
Claim Rewards181212272023-09-12 15:45:35334 days ago1694533535IN
0x6B4e67E4...F4bCa9678
0 ETH0.00433424.61885104
Remove Stake181152172023-09-11 19:32:23335 days ago1694460743IN
0x6B4e67E4...F4bCa9678
0 ETH0.0026884232.68003991
Remove Stake180971672023-09-09 6:51:11337 days ago1694242271IN
0x6B4e67E4...F4bCa9678
0 ETH0.000765049.29976252
Claim Rewards180971632023-09-09 6:50:23337 days ago1694242223IN
0x6B4e67E4...F4bCa9678
0 ETH0.0006729.112676
Claim Rewards180971592023-09-09 6:49:35337 days ago1694242175IN
0x6B4e67E4...F4bCa9678
0 ETH0.001441289.0678847
Claim Rewards180576792023-09-03 18:13:23343 days ago1693764803IN
0x6B4e67E4...F4bCa9678
0 ETH0.0018890210.73071591
Claim Rewards180323672023-08-31 5:08:11346 days ago1693458491IN
0x6B4e67E4...F4bCa9678
0 ETH0.0014585716.10993517
Add Stake180306432023-08-30 23:19:59347 days ago1693437599IN
0x6B4e67E4...F4bCa9678
0 ETH0.0017933715.78657084
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShibariumDAO2Staking

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : Staking.sol
/**

 ______     __  __     __     ______     ______     ______     __     __  __     __    __    
/\  ___\   /\ \_\ \   /\ \   /\  == \   /\  __ \   /\  == \   /\ \   /\ \/\ \   /\ "-./  \   
\ \___  \  \ \  __ \  \ \ \  \ \  __<   \ \  __ \  \ \  __<   \ \ \  \ \ \_\ \  \ \ \-./\ \  
 \/\_____\  \ \_\ \_\  \ \_\  \ \_____\  \ \_\ \_\  \ \_\ \_\  \ \_\  \ \_____\  \ \_\ \ \_\ 
  \/_____/   \/_/\/_/   \/_/   \/_____/   \/_/\/_/   \/_/ /_/   \/_/   \/_____/   \/_/  \/_/                                                                                              
 _____     ______     ______                                                                 
/\  __-.  /\  __ \   /\  __ \                                                                
\ \ \/\ \ \ \  __ \  \ \ \/\ \                                                               
 \ \____-  \ \_\ \_\  \ \_____\                                                              
  \/____/   \/_/\/_/   \/_____/                                                              


    Website: https://shibariumdao.io
    Telegram: https://t.me/ShibariumDAO

**/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract ShibariumDAO2Staking is ReentrancyGuard, Ownable {
    struct Stake {
        uint256 amount;
        uint256 startTime;
        uint256 claimedAmountShib;
        uint256 claimedAmountBone;
        bool withdrawn;
    }

    mapping(address => Stake[]) public stakes;

    mapping(address => uint256) public claimedNumber;
    uint256 constant CLAIM_FEE_NUMERATOR = 50;
    uint256 constant CLAIM_FEE_DENOMINATOR = 10000;

    IERC20 public immutable SHIBDAO;
    IERC20 public immutable SHIB;
    IERC20 public immutable BONE;

    uint256 public constant SHIBDAO_SUPPLY_FREE = 500_000_000 ether; // 1/2 of total supply
    uint256 public SHIB_REWARD_AMOUNT;
    uint256 public BONE_REWARD_AMOUNT;

    uint256 public constant LOCK_TIME = 30 days;

    event StakeAdded(address staker, uint256 amount, uint256 lockTime);
    event StakeRemoved(address staker, uint256 amount, uint256 lockTime);
    event RewardsClaimed(
        address staker,
        uint256 shibAmount,
        uint256 boneAmount
    );

    constructor(
        address _shibdao,
        address _shib,
        address _bone
    ) ReentrancyGuard() Ownable() {
        SHIBDAO = IERC20(_shibdao);
        SHIB = IERC20(_shib);
        BONE = IERC20(_bone);
    }

    function addStake(uint256 amount) external nonReentrant {
        bool success = SHIBDAO.transferFrom(msg.sender, address(this), amount);
        require(success, "Transfer failed");

        stakes[msg.sender].push(Stake(amount, block.timestamp, 0, 0, false));
        emit StakeAdded(msg.sender, amount, block.timestamp);
    }

    function removeStake(uint256 index) external nonReentrant {
        Stake storage stake = stakes[msg.sender][index];

        require(stake.startTime + LOCK_TIME <= block.timestamp, "Stake locked");
        require(!stake.withdrawn, "Stake already withdrawn");

        bool success = SHIBDAO.transfer(msg.sender, stake.amount);
        require(success, "Transfer failed");

        stake.withdrawn = true;

        emit StakeRemoved(msg.sender, stake.amount, block.timestamp);
    }

    function claimRewards(uint256 index) external nonReentrant {
        Stake storage stake = stakes[msg.sender][index];

        (uint256 amountShib, uint256 amountBone) = getRewards(
            msg.sender,
            index
        );
        stake.claimedAmountShib += amountShib;
        stake.claimedAmountBone += amountBone;

        uint256 claimFeeNumerator = getClaimFee(msg.sender);

        uint256 amountShibFee = (amountShib * claimFeeNumerator) /
            CLAIM_FEE_DENOMINATOR;
        uint256 amountBoneFee = (amountBone * claimFeeNumerator) /
            CLAIM_FEE_DENOMINATOR;

        bool shibSuccess = SHIB.transfer(
            msg.sender,
            amountShib - amountShibFee
        );
        require(shibSuccess, "Transfer failed");
        bool boneSuccess = BONE.transfer(
            msg.sender,
            amountBone - amountBoneFee
        );
        require(boneSuccess, "Transfer failed");

        claimedNumber[msg.sender] += 1;

        emit RewardsClaimed(msg.sender, amountShib, amountBone);
    }

    function getClaimFee(address claimant) public view returns (uint256) {
        uint256 baseFee = claimedNumber[claimant] * CLAIM_FEE_NUMERATOR;
        if (baseFee > 600) {
            return 600;
        } else {
            return baseFee;
        }
    }

    function getRewards(
        address staker,
        uint256 index
    ) public view returns (uint256, uint256) {
        Stake storage stake = stakes[staker][index];
        uint256 shibAmountTotal = (SHIB_REWARD_AMOUNT * stake.amount) /
            SHIBDAO_SUPPLY_FREE;
        uint256 boneAmountTotal = (BONE_REWARD_AMOUNT * stake.amount) /
            SHIBDAO_SUPPLY_FREE;

        uint256 timeElapsed = block.timestamp - stake.startTime;
        if (timeElapsed > LOCK_TIME) timeElapsed = LOCK_TIME;

        uint256 shibAmount = (shibAmountTotal * timeElapsed) / LOCK_TIME;
        uint256 boneAmount = (boneAmountTotal * timeElapsed) / LOCK_TIME;

        uint256 shibAmountToClaim = shibAmount - stake.claimedAmountShib;
        uint256 boneAmountToClaim = boneAmount - stake.claimedAmountBone;

        return (shibAmountToClaim, boneAmountToClaim);
    }

    function getStakes(
        address user
    ) external view returns (Stake[] memory userStakes) {
        return stakes[user];
    }

    function setRewards(
        uint256 shibAmount,
        uint256 boneAmount
    ) external onlyOwner {
        SHIB_REWARD_AMOUNT = shibAmount;
        BONE_REWARD_AMOUNT = boneAmount;
    }

    function unstickTokens(address token, uint256 amount) external onlyOwner {
        if (token == address(0)) {
            payable(msg.sender).transfer(amount);
        } else {
            IERC20(token).transfer(msg.sender, amount);
        }
    }
}

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev 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);
}

File 5 of 5 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_shibdao","type":"address"},{"internalType":"address","name":"_shib","type":"address"},{"internalType":"address","name":"_bone","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"shibAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boneAmount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"StakeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"StakeRemoved","type":"event"},{"inputs":[],"name":"BONE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONE_REWARD_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIB","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIBDAO","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIBDAO_SUPPLY_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIB_REWARD_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimant","type":"address"}],"name":"getClaimFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getStakes","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"claimedAmountShib","type":"uint256"},{"internalType":"uint256","name":"claimedAmountBone","type":"uint256"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"internalType":"struct ShibariumDAO2Staking.Stake[]","name":"userStakes","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shibAmount","type":"uint256"},{"internalType":"uint256","name":"boneAmount","type":"uint256"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"claimedAmountShib","type":"uint256"},{"internalType":"uint256","name":"claimedAmountBone","type":"uint256"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstickTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405234801561001057600080fd5b50604051620011d6380380620011d6833981016040819052610031916100ca565b600160005561003f3361005c565b6001600160a01b0392831660805290821660a0521660c05261010d565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146100c557600080fd5b919050565b6000806000606084860312156100df57600080fd5b6100e8846100ae565b92506100f6602085016100ae565b9150610104604085016100ae565b90509250925092565b60805160a05160c05161107d620001596000396000818161029001526104e60152600081816102d701526104130152600081816101680152818161096c0152610b87015261107d6000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063939624ab116100ad578063e24b85e711610071578063e24b85e7146102d2578063e519e1b1146102f9578063e7694bc61461030c578063eb4f16b51461031f578063f2fde38b1461033257600080fd5b8063939624ab1461025c5780639c1ba8841461026f578063a5933b7214610278578063c36596a61461028b578063e0a83087146102b257600080fd5b8063654e51e7116100f4578063654e51e7146101e8578063715018a6146101fb5780637387f44d146102035780637ba6f4581461022b5780638da5cb5b1461024b57600080fd5b80630962ef7914610131578063413d9c3a146101465780634a29d01d1461016357806354ec30f1146101a2578063584b62a1146101ab575b600080fd5b61014461013f366004610e5e565b610345565b005b61015062278d0081565b6040519081526020015b60405180910390f35b61018a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015a565b61015060055481565b6101be6101b9366004610e93565b61061f565b6040805195865260208601949094529284019190915260608301521515608082015260a00161015a565b6101446101f6366004610ebd565b610670565b610144610683565b610216610211366004610e93565b610697565b6040805192835260208301919091520161015a565b61023e610239366004610edf565b6107c5565b60405161015a9190610f01565b6001546001600160a01b031661018a565b61014461026a366004610e5e565b61086b565b61015060045481565b610144610286366004610e93565b610a5e565b61018a7f000000000000000000000000000000000000000000000000000000000000000081565b6101506102c0366004610edf565b60036020526000908152604090205481565b61018a7f000000000000000000000000000000000000000000000000000000000000000081565b6101506b019d971e4fe8401e7400000081565b61015061031a366004610edf565b610b17565b61014461032d366004610e5e565b610b5a565b610144610340366004610edf565b610ce3565b61034d610d59565b33600090815260026020526040812080548390811061036e5761036e610f71565b9060005260206000209060050201905060008061038b3385610697565b91509150818360020160008282546103a39190610f9d565b92505081905550808360030160008282546103be9190610f9d565b90915550600090506103cf33610b17565b905060006127106103e08386610fb0565b6103ea9190610fc7565b905060006127106103fb8486610fb0565b6104059190610fc7565b905060006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb33610443868a610fe9565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190610ffc565b9050806104da5760405162461bcd60e51b81526004016104d19061101e565b60405180910390fd5b60006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb33610516868a610fe9565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610ffc565b9050806105a45760405162461bcd60e51b81526004016104d19061101e565b3360009081526003602052604081208054600192906105c4908490610f9d565b909155505060408051338152602081018990529081018790527fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259060600160405180910390a1505050505050505061061c6001600055565b50565b6002602052816000526040600020818154811061063b57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919060ff1685565b610678610db2565b600491909155600555565b61068b610db2565b6106956000610e0c565b565b6001600160a01b0382166000908152600260205260408120805482918291859081106106c5576106c5610f71565b9060005260206000209060050201905060006b019d971e4fe8401e7400000082600001546004546106f69190610fb0565b6107009190610fc7565b905060006b019d971e4fe8401e7400000083600001546005546107239190610fb0565b61072d9190610fc7565b905060008360010154426107419190610fe9565b905062278d00811115610754575062278d005b600062278d006107648386610fb0565b61076e9190610fc7565b9050600062278d006107808486610fb0565b61078a9190610fc7565b9050600086600201548361079e9190610fe9565b905060008760030154836107b29190610fe9565b919c919b50909950505050505050505050565b6001600160a01b0381166000908152600260209081526040808320805482518185028101850190935280835260609492939192909184015b828210156108605760008481526020908190206040805160a081018252600586029092018054835260018082015484860152600282015492840192909252600381015460608401526004015460ff161515608083015290835290920191016107fd565b505050509050919050565b610873610d59565b33600090815260026020526040812080548390811061089457610894610f71565b906000526020600020906005020190504262278d0082600101546108b89190610f9d565b11156108f55760405162461bcd60e51b815260206004820152600c60248201526b14dd185ad9481b1bd8dad95960a21b60448201526064016104d1565b600481015460ff161561094a5760405162461bcd60e51b815260206004820152601760248201527f5374616b6520616c72656164792077697468647261776e00000000000000000060448201526064016104d1565b805460405163a9059cbb60e01b815233600482015260248101919091526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e19190610ffc565b905080610a005760405162461bcd60e51b81526004016104d19061101e565b60048201805460ff19166001179055815460408051338152602081019290925242908201527fdcca95406ac9554449be02d88dcdf9c877f96e4c02bdad4bd5cadefc98a20e3d9060600160405180910390a1505061061c6001600055565b610a66610db2565b6001600160a01b038216610aa657604051339082156108fc029083906000818181858888f19350505050158015610aa1573d6000803e3d6000fd5b505050565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610ffc565b6001600160a01b0381166000908152600360205260408120548190610b3e90603290610fb0565b9050610258811115610b54575061025892915050565b92915050565b610b62610d59565b6040516323b872dd60e01b8152336004820152306024820152604481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfc9190610ffc565b905080610c1b5760405162461bcd60e51b81526004016104d19061101e565b336000818152600260208181526040808420815160a0810183528881524281850181815282850188815260608085018a8152608086018b8152875460018082018a55988d529b8a902096516005909c029096019a8b559251958a0195909555519688019690965594516003870155516004909501805460ff19169515159590951790945580519485529084018690528301527f270d6dd254edd1d985c81cf7861b8f28fb06b6d719df04d90464034d43412440910160405180910390a15061061c6001600055565b610ceb610db2565b6001600160a01b038116610d505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d1565b61061c81610e0c565b600260005403610dab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d1565b6002600055565b6001546001600160a01b031633146106955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610e7057600080fd5b5035919050565b80356001600160a01b0381168114610e8e57600080fd5b919050565b60008060408385031215610ea657600080fd5b610eaf83610e77565b946020939093013593505050565b60008060408385031215610ed057600080fd5b50508035926020909101359150565b600060208284031215610ef157600080fd5b610efa82610e77565b9392505050565b602080825282518282018190526000919060409081850190868401855b82811015610f6457815180518552868101518786015285810151868601526060808201519086015260809081015115159085015260a09093019290850190600101610f1e565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b5457610b54610f87565b8082028115828204841417610b5457610b54610f87565b600082610fe457634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b5457610b54610f87565b60006020828403121561100e57600080fd5b81518015158114610efa57600080fd5b6020808252600f908201526e151c985b9cd9995c8819985a5b1959608a1b60408201526060019056fea26469706673582212205bf031b26eeea8f89debd97f3c972948e516b923a133592c85e19304b34c305e64736f6c63430008130033000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a800000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063939624ab116100ad578063e24b85e711610071578063e24b85e7146102d2578063e519e1b1146102f9578063e7694bc61461030c578063eb4f16b51461031f578063f2fde38b1461033257600080fd5b8063939624ab1461025c5780639c1ba8841461026f578063a5933b7214610278578063c36596a61461028b578063e0a83087146102b257600080fd5b8063654e51e7116100f4578063654e51e7146101e8578063715018a6146101fb5780637387f44d146102035780637ba6f4581461022b5780638da5cb5b1461024b57600080fd5b80630962ef7914610131578063413d9c3a146101465780634a29d01d1461016357806354ec30f1146101a2578063584b62a1146101ab575b600080fd5b61014461013f366004610e5e565b610345565b005b61015062278d0081565b6040519081526020015b60405180910390f35b61018a7f000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a881565b6040516001600160a01b03909116815260200161015a565b61015060055481565b6101be6101b9366004610e93565b61061f565b6040805195865260208601949094529284019190915260608301521515608082015260a00161015a565b6101446101f6366004610ebd565b610670565b610144610683565b610216610211366004610e93565b610697565b6040805192835260208301919091520161015a565b61023e610239366004610edf565b6107c5565b60405161015a9190610f01565b6001546001600160a01b031661018a565b61014461026a366004610e5e565b61086b565b61015060045481565b610144610286366004610e93565b610a5e565b61018a7f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d981565b6101506102c0366004610edf565b60036020526000908152604090205481565b61018a7f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce81565b6101506b019d971e4fe8401e7400000081565b61015061031a366004610edf565b610b17565b61014461032d366004610e5e565b610b5a565b610144610340366004610edf565b610ce3565b61034d610d59565b33600090815260026020526040812080548390811061036e5761036e610f71565b9060005260206000209060050201905060008061038b3385610697565b91509150818360020160008282546103a39190610f9d565b92505081905550808360030160008282546103be9190610f9d565b90915550600090506103cf33610b17565b905060006127106103e08386610fb0565b6103ea9190610fc7565b905060006127106103fb8486610fb0565b6104059190610fc7565b905060006001600160a01b037f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce1663a9059cbb33610443868a610fe9565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190610ffc565b9050806104da5760405162461bcd60e51b81526004016104d19061101e565b60405180910390fd5b60006001600160a01b037f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d91663a9059cbb33610516868a610fe9565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610ffc565b9050806105a45760405162461bcd60e51b81526004016104d19061101e565b3360009081526003602052604081208054600192906105c4908490610f9d565b909155505060408051338152602081018990529081018790527fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259060600160405180910390a1505050505050505061061c6001600055565b50565b6002602052816000526040600020818154811061063b57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919060ff1685565b610678610db2565b600491909155600555565b61068b610db2565b6106956000610e0c565b565b6001600160a01b0382166000908152600260205260408120805482918291859081106106c5576106c5610f71565b9060005260206000209060050201905060006b019d971e4fe8401e7400000082600001546004546106f69190610fb0565b6107009190610fc7565b905060006b019d971e4fe8401e7400000083600001546005546107239190610fb0565b61072d9190610fc7565b905060008360010154426107419190610fe9565b905062278d00811115610754575062278d005b600062278d006107648386610fb0565b61076e9190610fc7565b9050600062278d006107808486610fb0565b61078a9190610fc7565b9050600086600201548361079e9190610fe9565b905060008760030154836107b29190610fe9565b919c919b50909950505050505050505050565b6001600160a01b0381166000908152600260209081526040808320805482518185028101850190935280835260609492939192909184015b828210156108605760008481526020908190206040805160a081018252600586029092018054835260018082015484860152600282015492840192909252600381015460608401526004015460ff161515608083015290835290920191016107fd565b505050509050919050565b610873610d59565b33600090815260026020526040812080548390811061089457610894610f71565b906000526020600020906005020190504262278d0082600101546108b89190610f9d565b11156108f55760405162461bcd60e51b815260206004820152600c60248201526b14dd185ad9481b1bd8dad95960a21b60448201526064016104d1565b600481015460ff161561094a5760405162461bcd60e51b815260206004820152601760248201527f5374616b6520616c72656164792077697468647261776e00000000000000000060448201526064016104d1565b805460405163a9059cbb60e01b815233600482015260248101919091526000907f000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a86001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e19190610ffc565b905080610a005760405162461bcd60e51b81526004016104d19061101e565b60048201805460ff19166001179055815460408051338152602081019290925242908201527fdcca95406ac9554449be02d88dcdf9c877f96e4c02bdad4bd5cadefc98a20e3d9060600160405180910390a1505061061c6001600055565b610a66610db2565b6001600160a01b038216610aa657604051339082156108fc029083906000818181858888f19350505050158015610aa1573d6000803e3d6000fd5b505050565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610ffc565b6001600160a01b0381166000908152600360205260408120548190610b3e90603290610fb0565b9050610258811115610b54575061025892915050565b92915050565b610b62610d59565b6040516323b872dd60e01b8152336004820152306024820152604481018290526000907f000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a86001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfc9190610ffc565b905080610c1b5760405162461bcd60e51b81526004016104d19061101e565b336000818152600260208181526040808420815160a0810183528881524281850181815282850188815260608085018a8152608086018b8152875460018082018a55988d529b8a902096516005909c029096019a8b559251958a0195909555519688019690965594516003870155516004909501805460ff19169515159590951790945580519485529084018690528301527f270d6dd254edd1d985c81cf7861b8f28fb06b6d719df04d90464034d43412440910160405180910390a15061061c6001600055565b610ceb610db2565b6001600160a01b038116610d505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d1565b61061c81610e0c565b600260005403610dab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d1565b6002600055565b6001546001600160a01b031633146106955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610e7057600080fd5b5035919050565b80356001600160a01b0381168114610e8e57600080fd5b919050565b60008060408385031215610ea657600080fd5b610eaf83610e77565b946020939093013593505050565b60008060408385031215610ed057600080fd5b50508035926020909101359150565b600060208284031215610ef157600080fd5b610efa82610e77565b9392505050565b602080825282518282018190526000919060409081850190868401855b82811015610f6457815180518552868101518786015285810151868601526060808201519086015260809081015115159085015260a09093019290850190600101610f1e565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b5457610b54610f87565b8082028115828204841417610b5457610b54610f87565b600082610fe457634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b5457610b54610f87565b60006020828403121561100e57600080fd5b81518015158114610efa57600080fd5b6020808252600f908201526e151c985b9cd9995c8819985a5b1959608a1b60408201526060019056fea26469706673582212205bf031b26eeea8f89debd97f3c972948e516b923a133592c85e19304b34c305e64736f6c63430008130033

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

000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a800000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9

-----Decoded View---------------
Arg [0] : _shibdao (address): 0xB197a6Fdd8AB825332eDEbA1AB5C4D1Bf97fb9A8
Arg [1] : _shib (address): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
Arg [2] : _bone (address): 0x9813037ee2218799597d83D4a5B6F3b6778218d9

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b197a6fdd8ab825332edeba1ab5c4d1bf97fb9a8
Arg [1] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Arg [2] : 0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9


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  ]

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.