POL Price: $0.296136 (-7.20%)
Gas: 30 GWei
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake680744132025-02-18 12:44:213 hrs ago1739882661IN
0x918B5c4A...F2f5Eb087
0 POL0.0036142330.03051888
Unstake680369432025-02-17 14:27:5525 hrs ago1739802475IN
0x918B5c4A...F2f5Eb087
0 POL0.0066516656.05509621
Harvest680260182025-02-17 8:00:2332 hrs ago1739779223IN
0x918B5c4A...F2f5Eb087
0 POL0.0036414330.00000067
Harvest679954322025-02-16 13:45:152 days ago1739713515IN
0x918B5c4A...F2f5Eb087
0 POL0.0045964126.00000498
Harvest679251922025-02-14 19:50:503 days ago1739562650IN
0x918B5c4A...F2f5Eb087
0 POL0.0016394130.00989671
Harvest679250892025-02-14 19:47:123 days ago1739562432IN
0x918B5c4A...F2f5Eb087
0 POL0.0029690130.00979173
Stake679212412025-02-14 17:30:513 days ago1739554251IN
0x918B5c4A...F2f5Eb087
0 POL0.0060402851.20882775
Trigger Unstake678912242025-02-13 23:24:384 days ago1739489078IN
0x918B5c4A...F2f5Eb087
0 POL0.004362150
Trigger Unstake678794892025-02-13 16:19:015 days ago1739463541IN
0x918B5c4A...F2f5Eb087
0 POL0.0030779735.2809114
Harvest678794322025-02-13 16:16:595 days ago1739463419IN
0x918B5c4A...F2f5Eb087
0 POL0.0089201835.31334934
Unstake678587152025-02-13 3:36:365 days ago1739417796IN
0x918B5c4A...F2f5Eb087
0 POL0.0061370445.19614319
Stake678339372025-02-12 12:09:406 days ago1739362180IN
0x918B5c4A...F2f5Eb087
0 POL0.0028670430
Harvest678339152025-02-12 12:08:526 days ago1739362132IN
0x918B5c4A...F2f5Eb087
0 POL0.0031138530
Stake678073422025-02-11 19:05:406 days ago1739300740IN
0x918B5c4A...F2f5Eb087
0 POL0.0036108630.0025281
Stake677706772025-02-10 19:53:217 days ago1739217201IN
0x918B5c4A...F2f5Eb087
0 POL0.0040286234.87627874
Stake677581932025-02-10 11:47:008 days ago1739188020IN
0x918B5c4A...F2f5Eb087
0 POL0.0035984931.13531418
Trigger Unstake676917132025-02-08 16:57:299 days ago1739033849IN
0x918B5c4A...F2f5Eb087
0 POL0.0035142740.28187498
Harvest676876862025-02-08 14:28:5310 days ago1739024933IN
0x918B5c4A...F2f5Eb087
0 POL0.0045834444.36638318
Stake676833122025-02-08 11:45:4010 days ago1739015140IN
0x918B5c4A...F2f5Eb087
0 POL0.0048721929.16576254
Stake675289392025-02-04 13:22:1014 days ago1738675330IN
0x918B5c4A...F2f5Eb087
0 POL0.01290353111.64544735
Trigger Unstake675262162025-02-04 11:45:1214 days ago1738669512IN
0x918B5c4A...F2f5Eb087
0 POL0.003105235.59305723
Harvest675261912025-02-04 11:44:1814 days ago1738669458IN
0x918B5c4A...F2f5Eb087
0 POL0.0036521137.46641982
Stake674981902025-02-03 18:40:4614 days ago1738608046IN
0x918B5c4A...F2f5Eb087
0 POL0.01348834110.31785841
Harvest673723852025-01-31 15:07:1818 days ago1738336038IN
0x918B5c4A...F2f5Eb087
0 POL0.006487958.40490874
Harvest673636372025-01-31 9:49:4518 days ago1738316985IN
0x918B5c4A...F2f5Eb087
0 POL0.0036997530.00000011
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RadarStakingLogic

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
london EvmVersion
File 1 of 8 : RadarStakingLogic.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.17;

// Author: @mizi

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/iRadarStakingLogic.sol";
import "./interfaces/iRadarToken.sol";
import "./interfaces/iRadarStake.sol";

contract RadarStakingLogic is iRadarStakingLogic, Ownable, ReentrancyGuard {

    constructor(address rewarderAddr, address radarTokenContractAddr, address radarStakeContractAddr) {
        require(address(rewarderAddr) != address(0), "RadarStakingLogic: Rewarder address not set");
        require(address(radarTokenContractAddr) != address(0), "RadarStakingLogic: Token contract not set");
        require(address(radarStakeContractAddr) != address(0), "RadarStakingLogic: Staking contract not set");

        rewarderAddress = rewarderAddr;
        radarTokenContract = iRadarToken(radarTokenContractAddr);
        radarStakeContract = iRadarStake(radarStakeContractAddr);
    }

    /** EVENTS */
    event TokensStaked(address indexed owner, uint256 amount);
    event TokensHarvested(address indexed owner, uint256 amount, bool restake);
    event TokensUnstaked(address indexed owner, uint256 amount);
    event TokensUnstakingTriggered(address indexed owner);

    /** PUBLIC VARS */
    // interface of our ERC20 RADAR token
    iRadarToken public radarTokenContract;
    // interface of the staking contract (stateful)
    iRadarStake public radarStakeContract;
    // the address which holds the reward tokens, which get paid out to users when they harvest their rewards
    address public rewarderAddress;
    // minimum amount to stake (aka. subscription for the DappRadar PRO subscription)
    uint256 public stakeForDappRadarPro = 30_000 ether;

    /** PUBLIC */
    // this contract needs to have permission to move RADAR for the _msgSender() before this function can be called
    // allow amount == 0 so we can reset the staking timers without having to add tokens to the stake
    function stake(uint256 amount) external nonReentrant {
        iRadarStake.Stake memory myStake = radarStakeContract.getStake(_msgSender());
        require(myStake.totalStaked + amount >= stakeForDappRadarPro, "RadarStakingLogic: You cannot stake less than the minimum");

        // check if the user owns the amount of tokens he wants to stake
        require(radarTokenContract.balanceOf(_msgSender()) >= amount, "RadarStakingLogic: Not enough tokens to stake");
        // check if this contract is allowed to move users RADAR to the staking contract
        require(radarTokenContract.allowance(_msgSender(), address(this)) >= amount, "RadarStakingLogic: This contact is not allowed to move the amount of tokens you want to stake");

        // move tokens from the user to the staking contract
        radarTokenContract.transferFrom(_msgSender(), address(radarStakeContract), amount);
        
        // calculate rewards in case the user already has a stake and now adds to it
        uint256 tokenReward = calculateReward(_msgSender());
        // move additional tokens to the staking contract so it can later pay out the already accrued and restaked rewards
        if (tokenReward > 0) {
            radarTokenContract.transferFrom(rewarderAddress, address(radarStakeContract), tokenReward);
            emit TokensHarvested(_msgSender(), tokenReward, true);
        }

        // add to stake, which updates totals and resets timestamps
        radarStakeContract.addToStake(amount + tokenReward, _msgSender());
        emit TokensStaked(_msgSender(), amount + tokenReward);
    }

    // there is no cooldown when harvesting token rewards.
    function harvest(bool restake) public nonReentrant {
        iRadarStake.Stake memory myStake = radarStakeContract.getStake(_msgSender());
        require(myStake.totalStaked > 0, "RadarStakingLogic: You don't have tokens staked");
        uint256 tokenReward = calculateReward(_msgSender());
        require(tokenReward > 0, "RadarStakingLogic: No reward to harvest");
        
        emit TokensHarvested(_msgSender(), tokenReward, restake);

        if (restake) {
            // move additional tokens to the staking contract so it can later pay out the already accrued and restaked rewards
            radarTokenContract.transferFrom(rewarderAddress, address(radarStakeContract), tokenReward);

            // stake again to reset the clock and add the reward to the existing stake
            radarStakeContract.addToStake(tokenReward, _msgSender());
            emit TokensStaked(_msgSender(), tokenReward);
        } else {
            // stake again to reset the timestamps and cooldown
            radarStakeContract.addToStake(0, _msgSender());
            // decided to not trigger this event because it does not add value
            // emit TokensStaked(_msgSender(), 0);

            // pay out the rewards, keep the original stake, reset the clock
            radarTokenContract.transferFrom(rewarderAddress, _msgSender(), tokenReward);
        }
    }

    // trigger the cooldown so you can later on call unstake() to unstake your tokens
    function triggerUnstake() external nonReentrant {
        iRadarStake.Stake memory myStake = radarStakeContract.getStake(_msgSender());
        require(myStake.totalStaked > 0, "RadarStakingLogic: You have no stake yet");
        require(myStake.cooldownTriggeredAtTimestamp == 0, "RadarStakingLogic: Cooldown already triggered");

        radarStakeContract.triggerUnstake(_msgSender());

        emit TokensUnstakingTriggered(_msgSender());
    }

    // unstake your tokens + rewards after the cooldown has passed
    function unstake(uint256 amount) external nonReentrant {
        require(amount > 0, "RadarStakingLogic: Amount cannot be lower than 0");
        iRadarStake.Stake memory myStake = radarStakeContract.getStake(_msgSender());

        require(myStake.cooldownTriggeredAtTimestamp > 0, "RadarStakingLogic: Cooldown not yet triggered");
        require(block.timestamp >= myStake.cooldownTriggeredAtTimestamp + myStake.cooldownSeconds, "RadarStakingLogic: Can't unstake during the cooldown period");
        
        require(myStake.totalStaked >= amount, "RadarStakingLogic: Amount you want to unstake exceeds your staked amount");
        require((myStake.totalStaked - amount >= stakeForDappRadarPro) || (myStake.totalStaked - amount == 0), "RadarStakingLogic: Either unstake all or keep more than the minimum stake required");
        
        // calculate rewards
        uint256 tokenReward = calculateReward(_msgSender());

        // unstake & reset cooldown
        radarStakeContract.removeFromStake(amount, _msgSender());

        if (tokenReward > 0) {
            // transfer the rewards from the rewarderAddress to the user aka. pay the rewards
            radarTokenContract.transferFrom(rewarderAddress, _msgSender(), tokenReward);
            emit TokensHarvested(_msgSender(), tokenReward, false);
        }

        // transfer the stake from the radarStakeContract
        radarTokenContract.transferFrom(address(radarStakeContract), _msgSender(), amount);
        emit TokensUnstaked(_msgSender(), amount);
    }

    // calculate the total rewards a user has already earned.
    function calculateReward(address addr) public view returns(uint256 reward) {
        require(addr != address(0), "RadarStakingLogic: Cannot use the null address");

        iRadarStake.Stake memory myStake = radarStakeContract.getStake(addr);
        uint256 totalStaked = myStake.totalStaked;

        // return 0 if the user has no stake
        if (totalStaked <= 0 ) return 0;

        // calculate the timestamp when the cooldown is over
        uint256 endOfCooldownTimestamp = myStake.cooldownTriggeredAtTimestamp + myStake.cooldownSeconds;

        iRadarStake.Apr[] memory allAprs = radarStakeContract.getAllAprs();
        for (uint256 i = 0; i < allAprs.length; i++) {
            iRadarStake.Apr memory currentApr = allAprs[i];

            // jump over APRs, which are in the past for this user/address
            if (currentApr.endTime > 0 && currentApr.endTime < myStake.lastStakedTimestamp) continue;

            uint256 startTime = (myStake.lastStakedTimestamp > currentApr.startTime) ? myStake.lastStakedTimestamp : currentApr.startTime;
            uint256 endTime = (currentApr.endTime < block.timestamp)? currentApr.endTime : block.timestamp;

            // use current timestamp if the APR is still active (aka. has no endTime yet)
            if (endTime <= 0) endTime = block.timestamp;
            
            // once the cooldown is triggered, accumulate rewards only until that time
            if (myStake.cooldownTriggeredAtTimestamp > 0) {
                // accumulate only until the cooldown is over - user can reset it by unstaking or staking again
                if (endTime > endOfCooldownTimestamp) endTime = endOfCooldownTimestamp;
            }

            // protect against subtraction errors
            if (endTime <= startTime) continue;

            uint256 secondsWithCurrentApr = endTime - startTime;
            uint256 daysPassed = secondsWithCurrentApr/1 days;

            // calculate compounding rewards (per day)
            uint256 compoundingReward = calculateCompoundingReward(totalStaked, currentApr.apr, daysPassed);
            
            // compound the rewards for each APR period
            reward += compoundingReward;
            totalStaked += compoundingReward;
        }

        return reward;
    }

    // calculate compounding interest without running into floating point issues
    function calculateCompoundingReward(uint256 principal, uint256 aprToUse, uint256 daysPassed) private pure returns(uint256 compoundingReward) {
        for (uint256 i = 0; i < daysPassed; i++) {
            compoundingReward += (principal + compoundingReward) * aprToUse/10_000/365;
        }
    }
    
    /** ONLY OWNER */
    // allow to change the minimum amount to stake & keep staked to keep the PRO subscription
    function setStakeForDappRadarPro(uint256 number) external onlyOwner {
        require(number > 0, "RadarStakingLogic: Amount must be above 0");
        stakeForDappRadarPro = number;
    }

    // set the address from which all RADAR rewards are paid
    function setRewarderAddress(address addr) external onlyOwner {
        require(address(addr) != address(0), "RadarStakingLogic: Rewarder address not set");
        rewarderAddress = addr;
    }

    // if someone sends ETH to this contract by accident we want to be able to send it back to them
    function withdraw() external onlyOwner {
        uint256 totalAmount = address(this).balance;

        bool sent;
        (sent, ) = owner().call{value: totalAmount}("");
        require(sent, "RadarStakingLogic: Failed to send funds");
    }
}

File 2 of 8 : iRadarToken.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface iRadarToken is IERC20 {

}

File 3 of 8 : iRadarStakingLogic.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.17;

interface iRadarStakingLogic {
   
}

File 4 of 8 : iRadarStake.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.17;

interface iRadarStake {

    // store lock meta data
    struct Stake {
        uint256 totalStaked;
        uint256 lastStakedTimestamp;
        uint256 cooldownSeconds;
        uint256 cooldownTriggeredAtTimestamp;
    }

    struct Apr {
        uint256 startTime;
        uint256 endTime;
        uint256 apr; // e.g. 300 => 3%
    }

    function getAllAprs() external view returns(Apr[] memory);
    function getStake(address addr) external view returns (Stake memory);

    function addToStake(uint256 amount, address addr) external; // onlyStakingLogicContract
    function triggerUnstake(address addr) external; // onlyStakingLogicContract
    function removeFromStake(uint256 amount, address addr) external; // onlyStakingLogicContract
}

File 5 of 8 : 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 6 of 8 : 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 7 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"rewarderAddr","type":"address"},{"internalType":"address","name":"radarTokenContractAddr","type":"address"},{"internalType":"address","name":"radarStakeContractAddr","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":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"restake","type":"bool"}],"name":"TokensHarvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensUnstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"TokensUnstakingTriggered","type":"event"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"restake","type":"bool"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"radarStakeContract","outputs":[{"internalType":"contract iRadarStake","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"radarTokenContract","outputs":[{"internalType":"contract iRadarToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewarderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setRewarderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"setStakeForDappRadarPro","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeForDappRadarPro","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405269065a4da25d3016c000006005553480156200001f57600080fd5b50604051620020db380380620020db833981016040819052620000429162000247565b6200004d33620001da565b600180556001600160a01b038316620000c15760405162461bcd60e51b815260206004820152602b60248201527f52616461725374616b696e674c6f6769633a205265776172646572206164647260448201526a195cdcc81b9bdd081cd95d60aa1b60648201526084015b60405180910390fd5b6001600160a01b0382166200012b5760405162461bcd60e51b815260206004820152602960248201527f52616461725374616b696e674c6f6769633a20546f6b656e20636f6e747261636044820152681d081b9bdd081cd95d60ba1b6064820152608401620000b8565b6001600160a01b038116620001975760405162461bcd60e51b815260206004820152602b60248201527f52616461725374616b696e674c6f6769633a205374616b696e6720636f6e747260448201526a1858dd081b9bdd081cd95d60aa1b6064820152608401620000b8565b600480546001600160a01b039485166001600160a01b03199182161790915560028054938516938216939093179092556003805491909316911617905562000291565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200024257600080fd5b919050565b6000806000606084860312156200025d57600080fd5b62000268846200022a565b925062000278602085016200022a565b915062000288604085016200022a565b90509250925092565b611e3a80620002a16000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063b821457011610097578063dba4587711610066578063dba45877146101c7578063e0e2b2b3146101da578063f2fde38b146101ed578063f84c6d1a1461020057600080fd5b8063b821457014610186578063d82e396214610199578063d89e9c8c146101ac578063d8edfdcd146101b457600080fd5b806370a1903d116100d357806370a1903d14610133578063715018a6146101465780638da5cb5b1461014e578063a694fc3a1461017357600080fd5b80632e17de78146100fa5780633ccfd60b1461010f5780634bd2798c14610117575b600080fd5b61010d610108366004611b06565b610213565b005b61010d6107e9565b61012060055481565b6040519081526020015b60405180910390f35b61010d610141366004611b2d565b6108d2565b61010d610d3a565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161012a565b61010d610181366004611b06565b610d4e565b61010d610194366004611b06565b6112df565b6101206101a7366004611b51565b611362565b61010d61163a565b60035461015b906001600160a01b031681565b60025461015b906001600160a01b031681565b60045461015b906001600160a01b031681565b61010d6101fb366004611b51565b6118ab565b61010d61020e366004611b51565b61193b565b60026001540361026a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806102e25760405162461bcd60e51b815260206004820152603060248201527f52616461725374616b696e674c6f6769633a20416d6f756e742063616e6e6f7460448201527f206265206c6f776572207468616e2030000000000000000000000000000000006064820152608401610261565b6003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa15801561033b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035f9190611bea565b905060008160600151116103db5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a20436f6f6c646f776e206e6f742060448201527f79657420747269676765726564000000000000000000000000000000000000006064820152608401610261565b806040015181606001516103ef9190611c66565b4210156104645760405162461bcd60e51b815260206004820152603b60248201527f52616461725374616b696e674c6f6769633a2043616e277420756e7374616b6560448201527f20647572696e672074686520636f6f6c646f776e20706572696f6400000000006064820152608401610261565b80518211156105015760405162461bcd60e51b815260206004820152604860248201527f52616461725374616b696e674c6f6769633a20416d6f756e7420796f7520776160448201527f6e7420746f20756e7374616b65206578636565647320796f7572207374616b6560648201527f6420616d6f756e74000000000000000000000000000000000000000000000000608482015260a401610261565b6005548151610511908490611c7f565b10158061052857508051610526908390611c7f565b155b6105c05760405162461bcd60e51b815260206004820152605260248201527f52616461725374616b696e674c6f6769633a2045697468657220756e7374616b60448201527f6520616c6c206f72206b656570206d6f7265207468616e20746865206d696e6960648201527f6d756d207374616b652072657175697265640000000000000000000000000000608482015260a401610261565b60006105cb33611362565b6003549091506001600160a01b03166327c2ad4c84336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b505050506000811115610717576002546004546001600160a01b03918216916323b872dd9116336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af11580156106b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106db9190611c92565b506040805182815260006020820152815133927f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93928290030190a25b6002546003546001600160a01b03918216916323b872dd9116336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018690526064016020604051808303816000875af1158015610785573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a99190611c92565b5060405183815233907f9845e367b683334e5c0b12d7b81721ac518e649376fa65e3d68324e8f34f2679906020015b60405180910390a250506001805550565b6107f16119ee565b4760006108066000546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610850576040519150601f19603f3d011682016040523d82523d6000602084013e610855565b606091505b505080915050806108ce5760405162461bcd60e51b815260206004820152602760248201527f52616461725374616b696e674c6f6769633a204661696c656420746f2073656e60448201527f642066756e6473000000000000000000000000000000000000000000000000006064820152608401610261565b5050565b6002600154036109245760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa158015610982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a69190611bea565b8051909150610a1d5760405162461bcd60e51b815260206004820152602f60248201527f52616461725374616b696e674c6f6769633a20596f7520646f6e27742068617660448201527f6520746f6b656e73207374616b656400000000000000000000000000000000006064820152608401610261565b6000610a2833611362565b905060008111610aa05760405162461bcd60e51b815260206004820152602760248201527f52616461725374616b696e674c6f6769633a204e6f2072657761726420746f2060448201527f68617276657374000000000000000000000000000000000000000000000000006064820152608401610261565b60408051828152841515602082015233917f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93910160405180910390a28215610c2a57600254600480546003546040516323b872dd60e01b81526001600160a01b03928316938101939093528116602483015260448201849052909116906323b872dd906064016020604051808303816000875af1158015610b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b699190611c92565b506003546001600160a01b031663cfe2284a82336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b50505050610be33390565b6001600160a01b03167fb539ca1e5c8d398ddf1c41c30166f33404941683be4683319b57669a93dad4ef82604051610c1d91815260200190565b60405180910390a2610d31565b6003546001600160a01b031663cfe2284a6000336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610c8557600080fd5b505af1158015610c99573d6000803e3d6000fd5b50506002546004546001600160a01b0391821693506323b872dd925016336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611c92565b505b50506001805550565b610d426119ee565b610d4c6000611a48565b565b600260015403610da05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa158015610dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e229190611bea565b9050600554828260000151610e379190611c66565b1015610eab5760405162461bcd60e51b815260206004820152603960248201527f52616461725374616b696e674c6f6769633a20596f752063616e6e6f7420737460448201527f616b65206c657373207468616e20746865206d696e696d756d000000000000006064820152608401610261565b60025482906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f279190611caf565b1015610f9b5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a204e6f7420656e6f75676820746f60448201527f6b656e7320746f207374616b65000000000000000000000000000000000000006064820152608401610261565b60025482906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610ff9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101d9190611caf565b10156110b75760405162461bcd60e51b815260206004820152605d60248201527f52616461725374616b696e674c6f6769633a205468697320636f6e746163742060448201527f6973206e6f7420616c6c6f77656420746f206d6f76652074686520616d6f756e60648201527f74206f6620746f6b656e7320796f752077616e7420746f207374616b65000000608482015260a401610261565b6002546001600160a01b03166323b872dd3360035460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018590526064016020604051808303816000875af1158015611120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111449190611c92565b50600061115033611362565b9050801561121b57600254600480546003546040516323b872dd60e01b81526001600160a01b03928316938101939093528116602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156111bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111df9190611c92565b506040805182815260016020820152815133927f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93928290030190a25b6003546001600160a01b031663cfe2284a6112368386611c66565b336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561127e57600080fd5b505af1158015611292573d6000803e3d6000fd5b5050505061129d3390565b6001600160a01b03167fb539ca1e5c8d398ddf1c41c30166f33404941683be4683319b57669a93dad4ef6112d18386611c66565b6040519081526020016107d8565b6112e76119ee565b6000811161135d5760405162461bcd60e51b815260206004820152602960248201527f52616461725374616b696e674c6f6769633a20416d6f756e74206d757374206260448201527f652061626f7665203000000000000000000000000000000000000000000000006064820152608401610261565b600555565b60006001600160a01b0382166113e05760405162461bcd60e51b815260206004820152602e60248201527f52616461725374616b696e674c6f6769633a2043616e6e6f742075736520746860448201527f65206e756c6c20616464726573730000000000000000000000000000000000006064820152608401610261565b6003546040517f7a7664600000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526000921690637a76646090602401608060405180830381865afa158015611444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114689190611bea565b80519091508061147c575060009392505050565b6000826040015183606001516114929190611c66565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316631f1d74036040518163ffffffff1660e01b8152600401600060405180830381865afa1580156114e9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115119190810190611cc8565b905060005b815181101561163057600082828151811061153357611533611d9c565b6020026020010151905060008160200151118015611558575085602001518160200151105b15611563575061161e565b6000816000015187602001511161157b578151611581565b86602001515b9050600042836020015110611596574261159c565b82602001515b9050600081116115a95750425b6060880151156115be57858111156115be5750845b8181116115cd5750505061161e565b60006115d98383611c7f565b905060006115ea6201518083611db2565b905060006115fd8a876040015184611aa5565b9050611609818d611c66565b9b50611615818b611c66565b99505050505050505b8061162881611dd4565b915050611516565b5050505050919050565b60026001540361168c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e9190611bea565b80519091506117855760405162461bcd60e51b815260206004820152602860248201527f52616461725374616b696e674c6f6769633a20596f752068617665206e6f207360448201527f74616b65207965740000000000000000000000000000000000000000000000006064820152608401610261565b6060810151156117fd5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a20436f6f6c646f776e20616c726560448201527f61647920747269676765726564000000000000000000000000000000000000006064820152608401610261565b6003546001600160a01b031663f94090c8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561185057600080fd5b505af1158015611864573d6000803e3d6000fd5b5050505061186f3390565b6001600160a01b03167f63e208105ed666890ddc9a3396b086585f9ae3edb14a0633fa3f3b8bbdacc37660405160405180910390a25060018055565b6118b36119ee565b6001600160a01b03811661192f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610261565b61193881611a48565b50565b6119436119ee565b6001600160a01b0381166119bf5760405162461bcd60e51b815260206004820152602b60248201527f52616461725374616b696e674c6f6769633a205265776172646572206164647260448201527f657373206e6f74207365740000000000000000000000000000000000000000006064820152608401610261565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610261565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000805b82811015611afe5761016d61271085611ac28589611c66565b611acc9190611ded565b611ad69190611db2565b611ae09190611db2565b611aea9083611c66565b915080611af681611dd4565b915050611aa9565b509392505050565b600060208284031215611b1857600080fd5b5035919050565b801515811461193857600080fd5b600060208284031215611b3f57600080fd5b8135611b4a81611b1f565b9392505050565b600060208284031215611b6357600080fd5b81356001600160a01b0381168114611b4a57600080fd5b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715611bb357611bb3611b7a565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611be257611be2611b7a565b604052919050565b600060808284031215611bfc57600080fd5b6040516080810181811067ffffffffffffffff82111715611c1f57611c1f611b7a565b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115611c7957611c79611c50565b92915050565b81810381811115611c7957611c79611c50565b600060208284031215611ca457600080fd5b8151611b4a81611b1f565b600060208284031215611cc157600080fd5b5051919050565b60006020808385031215611cdb57600080fd5b825167ffffffffffffffff80821115611cf357600080fd5b818501915085601f830112611d0757600080fd5b815181811115611d1957611d19611b7a565b611d27848260051b01611bb9565b81815284810192506060918202840185019188831115611d4657600080fd5b938501935b82851015611d905780858a031215611d635760008081fd5b611d6b611b90565b8551815286860151878201526040808701519082015284529384019392850192611d4b565b50979650505050505050565b634e487b7160e01b600052603260045260246000fd5b600082611dcf57634e487b7160e01b600052601260045260246000fd5b500490565b600060018201611de657611de6611c50565b5060010190565b8082028115828204841417611c7957611c79611c5056fea264697066735822122053a7e751abfb04b936db862f0e59c971e976a9ea60f9bf48c149a22c5833d25464736f6c63430008110033000000000000000000000000a4961150fd7fb67c19f8ba7344180c2941128a83000000000000000000000000dcb72ae4d5dc6ae274461d57e65db8d50d0a33ad00000000000000000000000023097285fab23cb6ba67cc550fcee4ed6f685ea4

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063b821457011610097578063dba4587711610066578063dba45877146101c7578063e0e2b2b3146101da578063f2fde38b146101ed578063f84c6d1a1461020057600080fd5b8063b821457014610186578063d82e396214610199578063d89e9c8c146101ac578063d8edfdcd146101b457600080fd5b806370a1903d116100d357806370a1903d14610133578063715018a6146101465780638da5cb5b1461014e578063a694fc3a1461017357600080fd5b80632e17de78146100fa5780633ccfd60b1461010f5780634bd2798c14610117575b600080fd5b61010d610108366004611b06565b610213565b005b61010d6107e9565b61012060055481565b6040519081526020015b60405180910390f35b61010d610141366004611b2d565b6108d2565b61010d610d3a565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161012a565b61010d610181366004611b06565b610d4e565b61010d610194366004611b06565b6112df565b6101206101a7366004611b51565b611362565b61010d61163a565b60035461015b906001600160a01b031681565b60025461015b906001600160a01b031681565b60045461015b906001600160a01b031681565b61010d6101fb366004611b51565b6118ab565b61010d61020e366004611b51565b61193b565b60026001540361026a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806102e25760405162461bcd60e51b815260206004820152603060248201527f52616461725374616b696e674c6f6769633a20416d6f756e742063616e6e6f7460448201527f206265206c6f776572207468616e2030000000000000000000000000000000006064820152608401610261565b6003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa15801561033b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035f9190611bea565b905060008160600151116103db5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a20436f6f6c646f776e206e6f742060448201527f79657420747269676765726564000000000000000000000000000000000000006064820152608401610261565b806040015181606001516103ef9190611c66565b4210156104645760405162461bcd60e51b815260206004820152603b60248201527f52616461725374616b696e674c6f6769633a2043616e277420756e7374616b6560448201527f20647572696e672074686520636f6f6c646f776e20706572696f6400000000006064820152608401610261565b80518211156105015760405162461bcd60e51b815260206004820152604860248201527f52616461725374616b696e674c6f6769633a20416d6f756e7420796f7520776160448201527f6e7420746f20756e7374616b65206578636565647320796f7572207374616b6560648201527f6420616d6f756e74000000000000000000000000000000000000000000000000608482015260a401610261565b6005548151610511908490611c7f565b10158061052857508051610526908390611c7f565b155b6105c05760405162461bcd60e51b815260206004820152605260248201527f52616461725374616b696e674c6f6769633a2045697468657220756e7374616b60448201527f6520616c6c206f72206b656570206d6f7265207468616e20746865206d696e6960648201527f6d756d207374616b652072657175697265640000000000000000000000000000608482015260a401610261565b60006105cb33611362565b6003549091506001600160a01b03166327c2ad4c84336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b505050506000811115610717576002546004546001600160a01b03918216916323b872dd9116336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af11580156106b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106db9190611c92565b506040805182815260006020820152815133927f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93928290030190a25b6002546003546001600160a01b03918216916323b872dd9116336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018690526064016020604051808303816000875af1158015610785573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a99190611c92565b5060405183815233907f9845e367b683334e5c0b12d7b81721ac518e649376fa65e3d68324e8f34f2679906020015b60405180910390a250506001805550565b6107f16119ee565b4760006108066000546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610850576040519150601f19603f3d011682016040523d82523d6000602084013e610855565b606091505b505080915050806108ce5760405162461bcd60e51b815260206004820152602760248201527f52616461725374616b696e674c6f6769633a204661696c656420746f2073656e60448201527f642066756e6473000000000000000000000000000000000000000000000000006064820152608401610261565b5050565b6002600154036109245760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa158015610982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a69190611bea565b8051909150610a1d5760405162461bcd60e51b815260206004820152602f60248201527f52616461725374616b696e674c6f6769633a20596f7520646f6e27742068617660448201527f6520746f6b656e73207374616b656400000000000000000000000000000000006064820152608401610261565b6000610a2833611362565b905060008111610aa05760405162461bcd60e51b815260206004820152602760248201527f52616461725374616b696e674c6f6769633a204e6f2072657761726420746f2060448201527f68617276657374000000000000000000000000000000000000000000000000006064820152608401610261565b60408051828152841515602082015233917f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93910160405180910390a28215610c2a57600254600480546003546040516323b872dd60e01b81526001600160a01b03928316938101939093528116602483015260448201849052909116906323b872dd906064016020604051808303816000875af1158015610b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b699190611c92565b506003546001600160a01b031663cfe2284a82336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b50505050610be33390565b6001600160a01b03167fb539ca1e5c8d398ddf1c41c30166f33404941683be4683319b57669a93dad4ef82604051610c1d91815260200190565b60405180910390a2610d31565b6003546001600160a01b031663cfe2284a6000336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b158015610c8557600080fd5b505af1158015610c99573d6000803e3d6000fd5b50506002546004546001600160a01b0391821693506323b872dd925016336040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611c92565b505b50506001805550565b610d426119ee565b610d4c6000611a48565b565b600260015403610da05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa158015610dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e229190611bea565b9050600554828260000151610e379190611c66565b1015610eab5760405162461bcd60e51b815260206004820152603960248201527f52616461725374616b696e674c6f6769633a20596f752063616e6e6f7420737460448201527f616b65206c657373207468616e20746865206d696e696d756d000000000000006064820152608401610261565b60025482906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f279190611caf565b1015610f9b5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a204e6f7420656e6f75676820746f60448201527f6b656e7320746f207374616b65000000000000000000000000000000000000006064820152608401610261565b60025482906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610ff9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101d9190611caf565b10156110b75760405162461bcd60e51b815260206004820152605d60248201527f52616461725374616b696e674c6f6769633a205468697320636f6e746163742060448201527f6973206e6f7420616c6c6f77656420746f206d6f76652074686520616d6f756e60648201527f74206f6620746f6b656e7320796f752077616e7420746f207374616b65000000608482015260a401610261565b6002546001600160a01b03166323b872dd3360035460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018590526064016020604051808303816000875af1158015611120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111449190611c92565b50600061115033611362565b9050801561121b57600254600480546003546040516323b872dd60e01b81526001600160a01b03928316938101939093528116602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156111bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111df9190611c92565b506040805182815260016020820152815133927f16e25d90e06ce41c7a4180cfae7b236a84658fc22f21c2a1af2156706728eb93928290030190a25b6003546001600160a01b031663cfe2284a6112368386611c66565b336040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b15801561127e57600080fd5b505af1158015611292573d6000803e3d6000fd5b5050505061129d3390565b6001600160a01b03167fb539ca1e5c8d398ddf1c41c30166f33404941683be4683319b57669a93dad4ef6112d18386611c66565b6040519081526020016107d8565b6112e76119ee565b6000811161135d5760405162461bcd60e51b815260206004820152602960248201527f52616461725374616b696e674c6f6769633a20416d6f756e74206d757374206260448201527f652061626f7665203000000000000000000000000000000000000000000000006064820152608401610261565b600555565b60006001600160a01b0382166113e05760405162461bcd60e51b815260206004820152602e60248201527f52616461725374616b696e674c6f6769633a2043616e6e6f742075736520746860448201527f65206e756c6c20616464726573730000000000000000000000000000000000006064820152608401610261565b6003546040517f7a7664600000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526000921690637a76646090602401608060405180830381865afa158015611444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114689190611bea565b80519091508061147c575060009392505050565b6000826040015183606001516114929190611c66565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316631f1d74036040518163ffffffff1660e01b8152600401600060405180830381865afa1580156114e9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115119190810190611cc8565b905060005b815181101561163057600082828151811061153357611533611d9c565b6020026020010151905060008160200151118015611558575085602001518160200151105b15611563575061161e565b6000816000015187602001511161157b578151611581565b86602001515b9050600042836020015110611596574261159c565b82602001515b9050600081116115a95750425b6060880151156115be57858111156115be5750845b8181116115cd5750505061161e565b60006115d98383611c7f565b905060006115ea6201518083611db2565b905060006115fd8a876040015184611aa5565b9050611609818d611c66565b9b50611615818b611c66565b99505050505050505b8061162881611dd4565b915050611516565b5050505050919050565b60026001540361168c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610261565b60026001556003546000906001600160a01b0316637a766460336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401608060405180830381865afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e9190611bea565b80519091506117855760405162461bcd60e51b815260206004820152602860248201527f52616461725374616b696e674c6f6769633a20596f752068617665206e6f207360448201527f74616b65207965740000000000000000000000000000000000000000000000006064820152608401610261565b6060810151156117fd5760405162461bcd60e51b815260206004820152602d60248201527f52616461725374616b696e674c6f6769633a20436f6f6c646f776e20616c726560448201527f61647920747269676765726564000000000000000000000000000000000000006064820152608401610261565b6003546001600160a01b031663f94090c8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561185057600080fd5b505af1158015611864573d6000803e3d6000fd5b5050505061186f3390565b6001600160a01b03167f63e208105ed666890ddc9a3396b086585f9ae3edb14a0633fa3f3b8bbdacc37660405160405180910390a25060018055565b6118b36119ee565b6001600160a01b03811661192f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610261565b61193881611a48565b50565b6119436119ee565b6001600160a01b0381166119bf5760405162461bcd60e51b815260206004820152602b60248201527f52616461725374616b696e674c6f6769633a205265776172646572206164647260448201527f657373206e6f74207365740000000000000000000000000000000000000000006064820152608401610261565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610261565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000805b82811015611afe5761016d61271085611ac28589611c66565b611acc9190611ded565b611ad69190611db2565b611ae09190611db2565b611aea9083611c66565b915080611af681611dd4565b915050611aa9565b509392505050565b600060208284031215611b1857600080fd5b5035919050565b801515811461193857600080fd5b600060208284031215611b3f57600080fd5b8135611b4a81611b1f565b9392505050565b600060208284031215611b6357600080fd5b81356001600160a01b0381168114611b4a57600080fd5b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715611bb357611bb3611b7a565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611be257611be2611b7a565b604052919050565b600060808284031215611bfc57600080fd5b6040516080810181811067ffffffffffffffff82111715611c1f57611c1f611b7a565b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115611c7957611c79611c50565b92915050565b81810381811115611c7957611c79611c50565b600060208284031215611ca457600080fd5b8151611b4a81611b1f565b600060208284031215611cc157600080fd5b5051919050565b60006020808385031215611cdb57600080fd5b825167ffffffffffffffff80821115611cf357600080fd5b818501915085601f830112611d0757600080fd5b815181811115611d1957611d19611b7a565b611d27848260051b01611bb9565b81815284810192506060918202840185019188831115611d4657600080fd5b938501935b82851015611d905780858a031215611d635760008081fd5b611d6b611b90565b8551815286860151878201526040808701519082015284529384019392850192611d4b565b50979650505050505050565b634e487b7160e01b600052603260045260246000fd5b600082611dcf57634e487b7160e01b600052601260045260246000fd5b500490565b600060018201611de657611de6611c50565b5060010190565b8082028115828204841417611c7957611c79611c5056fea264697066735822122053a7e751abfb04b936db862f0e59c971e976a9ea60f9bf48c149a22c5833d25464736f6c63430008110033

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

000000000000000000000000a4961150fd7fb67c19f8ba7344180c2941128a83000000000000000000000000dcb72ae4d5dc6ae274461d57e65db8d50d0a33ad00000000000000000000000023097285fab23cb6ba67cc550fcee4ed6f685ea4

-----Decoded View---------------
Arg [0] : rewarderAddr (address): 0xa4961150fd7FB67C19F8ba7344180C2941128A83
Arg [1] : radarTokenContractAddr (address): 0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD
Arg [2] : radarStakeContractAddr (address): 0x23097285FAb23CB6BA67CC550fcEe4ED6F685eA4

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4961150fd7fb67c19f8ba7344180c2941128a83
Arg [1] : 000000000000000000000000dcb72ae4d5dc6ae274461d57e65db8d50d0a33ad
Arg [2] : 00000000000000000000000023097285fab23cb6ba67cc550fcee4ed6f685ea4


Block Transaction 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
[ 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.