ETH Price: $1,967.42 (+0.90%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit215378792025-01-02 16:07:35405 days ago1735834055IN
Sorra: Staking Contract
0 ETH0.0032273514.85734908
Deposit215372582025-01-02 14:03:23405 days ago1735826603IN
Sorra: Staking Contract
0 ETH0.0032792116.61951486
Deposit215292172025-01-01 11:08:11406 days ago1735729691IN
Sorra: Staking Contract
0 ETH0.001532968.61516097
Deposit215290502025-01-01 10:34:47406 days ago1735727687IN
Sorra: Staking Contract
0 ETH0.001914810.76177739
Deposit215141892024-12-30 8:46:59408 days ago1735548419IN
Sorra: Staking Contract
0 ETH0.000969334.46239644
Deposit215134462024-12-30 6:16:59409 days ago1735539419IN
Sorra: Staking Contract
0 ETH0.000719223.93633707
Deposit215074842024-12-29 10:18:47409 days ago1735467527IN
Sorra: Staking Contract
0 ETH0.00095154.28606746
Deposit215073502024-12-29 9:51:47409 days ago1735465907IN
Sorra: Staking Contract
0 ETH0.000626663.42977804
Deposit214938582024-12-27 12:41:11411 days ago1735303271IN
Sorra: Staking Contract
0 ETH0.001513886.96928768
Deposit214779742024-12-25 7:24:11414 days ago1735111451IN
Sorra: Staking Contract
0 ETH0.001080584.97483012
Deposit214760602024-12-25 0:59:47414 days ago1735088387IN
Sorra: Staking Contract
0 ETH0.000975344.39347914
Deposit214748672024-12-24 20:59:11414 days ago1735073951IN
Sorra: Staking Contract
0 ETH0.000937274.31481279
Deposit214712102024-12-24 8:42:47414 days ago1735029767IN
Sorra: Staking Contract
0 ETH0.001344096.18831425
Deposit214616802024-12-23 0:42:23416 days ago1734914543IN
Sorra: Staking Contract
0 ETH0.000962844.43249582
Deposit214579202024-12-22 12:04:47416 days ago1734869087IN
Sorra: Staking Contract
0 ETH0.002088669.61531029
Deposit214578712024-12-22 11:54:59416 days ago1734868499IN
Sorra: Staking Contract
0 ETH0.001635177.52804547
Deposit214578632024-12-22 11:53:11416 days ago1734868391IN
Sorra: Staking Contract
0 ETH0.001072716.58907408
Deposit214542962024-12-21 23:56:23417 days ago1734825383IN
Sorra: Staking Contract
0 ETH0.001542017.09874842
Deposit214527612024-12-21 18:46:11417 days ago1734806771IN
Sorra: Staking Contract
0 ETH0.001633619.18083653
Deposit214521322024-12-21 16:38:59417 days ago1734799139IN
Sorra: Staking Contract
0 ETH0.00219089.8685287
Deposit214520702024-12-21 16:26:35417 days ago1734798395IN
Sorra: Staking Contract
0 ETH0.001604117.2257673
Deposit214511332024-12-21 13:18:35417 days ago1734787115IN
Sorra: Staking Contract
0 ETH0.001935818.91263733
Deposit214509532024-12-21 12:42:11417 days ago1734784931IN
Sorra: Staking Contract
0 ETH0.0026376212.14247063
Deposit214504372024-12-21 10:58:35417 days ago1734778715IN
Sorra: Staking Contract
0 ETH0.001629197.50050886
Deposit214501382024-12-21 9:58:47417 days ago1734775127IN
Sorra: Staking Contract
0 ETH0.001759919.89191544
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
sorraStaking

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import './interfaces/IPoolExtension.sol';

contract sorraStaking is Context, Ownable, ReentrancyGuard {
  using SafeERC20 for IERC20;

  uint256 constant PRECISION_FACTOR = 1e18;
  uint256 constant MULTIPLIER = 10 ** 36;
  address public rewardToken;
  uint256 public totalParticipants;
  uint256 public totalDeposits;

  IPoolExtension public vaultExtension;

  struct VestingTier {
    uint256 period;     // Duration in seconds
    uint256 rewardBps;  // Reward percentage in basis points (1% = 100)
  }
  
  // Define tiers
  VestingTier[3] public vestingTiers;

  struct Deposit {
    uint256 amount;
    uint256 depositTime;
    uint8 tier;
    uint256 rewardBps;
  }

  struct Position {
    Deposit[] deposits;
    uint256 totalAmount;
  }


  mapping(address => Position) public positions;
  mapping(address => uint256) public userRewardsDistributed;


  uint256 public totalRewardsDistributed;

  bool public depositingEnabled = true;

  uint256 public constant MAX_DEPOSITS_PER_USER = 5;

  uint256 public MAX_POOL_CAP = 10000000 * 1e18;

  event Depositx(address indexed user, uint256 amount);
  event Withdraw(address indexed user, uint256 amount);
  event RewardDistributed(
    address indexed user,
    uint256 amount
  );
  event DepositingStatusChanged(bool enabled);
  event RewardBpsUpdated(uint8 tier, uint256 oldBps, uint256 newBps);
  event ExtensionCallSuccess(address account);
  event ExtensionCallFailed(address account, bytes reason);
  event PoolCapUpdated(uint256 oldCap, uint256 newCap);

  constructor(address _rewardToken) Ownable(msg.sender) {
    require(_rewardToken != address(0), "Zero address");
    IERC20 token = IERC20(_rewardToken);
    require(token.totalSupply() > 0, "Invalid token");
    
    rewardToken = _rewardToken;
    
    // Initialize tiers in constructor with days
    vestingTiers[0].period = 14 days;    // Back to 14 days
    vestingTiers[0].rewardBps = 500;     // 5% APY
    
    vestingTiers[1].period = 30 days;    // Back to 30 days
    vestingTiers[1].rewardBps = 2000;    // 20% APY
    
    vestingTiers[2].period = 60 days;    // Back to 60 days
    vestingTiers[2].rewardBps = 4000;    // 40% APY
  }

  modifier depositsEnabled() {
    require(depositingEnabled, "Deposits are disabled");
    _;
  }

  function setDepositingEnabled(bool _enabled) external onlyOwner {
    depositingEnabled = _enabled;
    emit DepositingStatusChanged(_enabled);
  }
  
function deposit(uint256 _amount, uint8 _tier) external nonReentrant depositsEnabled {
    require(_amount > 0, "Amount must be greater than 0");
    require(_tier < vestingTiers.length, "Invalid tier");
    require(totalDeposits + _amount <= MAX_POOL_CAP, "Pool cap reached");
    
    IERC20(rewardToken).safeTransferFrom(_msgSender(), address(this), _amount);
    _updatePosition(_msgSender(), _amount, false, _tier);
}

function withdraw(uint256 _amount) external nonReentrant {
    require(_amount > 0, "Amount must be greater than 0");
    Position storage position = positions[_msgSender()];
    require(_amount <= position.totalAmount, "Insufficient balance");
    
    uint256 withdrawableAmount = 0;
    for(uint256 i = 0; i < position.deposits.length; i++) {
        Deposit memory dep = position.deposits[i];
        if(block.timestamp > dep.depositTime + vestingTiers[dep.tier].period) {
            withdrawableAmount += dep.amount;
        }
    }
    require(withdrawableAmount >= _amount, "Lock period not finished");
    
    uint256 rewardAmount = getPendingRewards(_msgSender());
    
    _updatePosition(_msgSender(), _amount, true, position.deposits[0].tier);
    
    if (rewardAmount > 0) {
        userRewardsDistributed[_msgSender()] += rewardAmount;
        totalRewardsDistributed += rewardAmount;
        IERC20(rewardToken).safeTransfer(_msgSender(), _amount + rewardAmount);
        emit RewardDistributed(_msgSender(), rewardAmount);
    } else {
        IERC20(rewardToken).safeTransfer(_msgSender(), _amount);
    }
}

  function _updatePosition(
    address account,
    uint256 amount,
    bool isWithdraw,
    uint8 tier
  ) internal {
    if (address(vaultExtension) != address(0)) {
      try vaultExtension.setShare(account, amount, isWithdraw) {
        emit ExtensionCallSuccess(account);
      } catch (bytes memory reason) {
        emit ExtensionCallFailed(account, reason);
      }
    }
    if (isWithdraw) {
      _decreasePosition(account, amount);
      emit Withdraw(account, amount);
    } else {
      _increasePosition(account, amount, tier);
      emit Depositx(account, amount);
    }
  }

function _increasePosition(address wallet, uint256 amount, uint8 tier) private {
    require(wallet != address(0), "Zero address");
    Position storage position = positions[wallet];
    
    // Create new deposit instead of merging
    require(position.deposits.length < MAX_DEPOSITS_PER_USER, "Too many deposits");
    position.deposits.push(Deposit({
        amount: amount,
        depositTime: block.timestamp,
        tier: tier,
        rewardBps: vestingTiers[tier].rewardBps
    }));
    
    position.totalAmount += amount;
    totalDeposits += amount;
    
    if (position.totalAmount == amount) {
        totalParticipants++;
    }
}

function _decreasePosition(address wallet, uint256 amount) private {
    Position storage position = positions[wallet];
    require(position.totalAmount >= amount, "Insufficient balance");
    
    uint256 remaining = amount;
    // Process deposits from oldest to newest
    for (uint256 i = 0; i < position.deposits.length;) {
        Deposit storage dep = position.deposits[i];
        if (block.timestamp > dep.depositTime + vestingTiers[dep.tier].period) {
            uint256 withdrawAmount = remaining > dep.amount ? dep.amount : remaining;
            remaining -= withdrawAmount;
            dep.amount -= withdrawAmount;
            position.totalAmount -= withdrawAmount;
            
            if (dep.amount == 0) {
                // Move the last element to current position
                uint256 lastIndex = position.deposits.length - 1;
                if (i != lastIndex) {
                    position.deposits[i] = position.deposits[lastIndex];
                }
                position.deposits.pop();
                // Don't increment i since we need to check the swapped element
            } else {
                i++;
            }
        } else {
            i++;
        }
    }
    
    require(remaining == 0, "Lock period not finished for requested amount");
    
    if (position.totalAmount == 0) {
        totalParticipants--;
    }
    totalDeposits -= amount;
}

function getPendingRewards(address wallet) public view returns (uint256) {
    if (positions[wallet].totalAmount == 0) {
        return 0;
    }
    return _calculateRewards(positions[wallet].totalAmount, wallet);
}

  function _calculateRewards(uint256 /* unusedParam */, address wallet) internal view returns (uint256) {
    Position storage pos = positions[wallet];  // Use storage instead of memory
    uint256 length = pos.deposits.length;     // Cache array length
    if (length == 0) return 0;

    uint256 totalRewards = 0;
    uint256 currentTime = block.timestamp;    // Cache timestamp
    
    for (uint256 i = 0; i < length; i++) {
        Deposit storage dep = pos.deposits[i]; // Direct storage access
        uint256 timeElapsed = currentTime - dep.depositTime;
        uint256 vestingTime = vestingTiers[dep.tier].period;

        if (timeElapsed >= vestingTime) {
            uint256 rewardAmount = (dep.amount * dep.rewardBps) / 10000;
            totalRewards += rewardAmount;
        }
    }

    return totalRewards;
  }

  function setVaultExtension(IPoolExtension _extension) external onlyOwner {
    vaultExtension = _extension;
  }

  function emergencyWithdraw(uint256 _amount) external onlyOwner {
    require(_amount > 0 || _amount == 0, "Invalid amount");
    IERC20 _token = IERC20(rewardToken);
    uint256 withdrawAmount = _amount == 0 ? _token.balanceOf(address(this)) : _amount;
    require(withdrawAmount > 0, "Nothing to withdraw");
    _token.safeTransfer(_msgSender(), withdrawAmount);
  }

  function setTierReward(uint8 _tier, uint256 _newRewardBps) external onlyOwner {
    require(_tier < vestingTiers.length, "Invalid tier");
    require(_newRewardBps <= 10000, "Reward too high"); // Max 100%
    
    uint256 oldBps = vestingTiers[_tier].rewardBps;
    vestingTiers[_tier].rewardBps = _newRewardBps;
    
    emit RewardBpsUpdated(_tier, oldBps, _newRewardBps);
  }

  function getUserDeposits(address _user) external view returns (Deposit[] memory) {
    return positions[_user].deposits;
  }

  function getRemainingPoolSpace() external view returns (uint256) {
    if (totalDeposits >= MAX_POOL_CAP) return 0;
    return MAX_POOL_CAP - totalDeposits;
  }

  function setPoolCap(uint256 _newCap) external onlyOwner {
    require(_newCap >= totalDeposits, "New cap below current deposits");
    uint256 oldCap = MAX_POOL_CAP;
    MAX_POOL_CAP = _newCap;
    emit PoolCapUpdated(oldCap, _newCap);
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 4 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 5 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)

pragma solidity ^0.8.20;

import {Errors} from "./Errors.sol";

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert Errors.FailedCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 10 of 13 : Errors.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

File 13 of 13 : IPoolExtension.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IPoolExtension {
  function setShare(
    address wallet,
    uint256 balanceChange,
    bool isRemoving
  ) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"DepositingStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Depositx","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes","name":"reason","type":"bytes"}],"name":"ExtensionCallFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"ExtensionCallSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"PoolCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"tier","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"oldBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBps","type":"uint256"}],"name":"RewardBpsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_DEPOSITS_PER_USER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_POOL_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint8","name":"_tier","type":"uint8"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingPoolSpace","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserDeposits","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"depositTime","type":"uint256"},{"internalType":"uint8","name":"tier","type":"uint8"},{"internalType":"uint256","name":"rewardBps","type":"uint256"}],"internalType":"struct sorraStaking.Deposit[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"positions","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setDepositingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCap","type":"uint256"}],"name":"setPoolCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"uint256","name":"_newRewardBps","type":"uint256"}],"name":"setTierReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPoolExtension","name":"_extension","type":"address"}],"name":"setVaultExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardsDistributed","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":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultExtension","outputs":[{"internalType":"contract IPoolExtension","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingTiers","outputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"rewardBps","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600f805460ff191660011790556a084595161401484a0000006010553480156200002d57600080fd5b5060405162001a9338038062001a93833981016040819052620000509162000218565b33806200007857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200008381620001c8565b50600180556001600160a01b038116620000cf5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b60448201526064016200006f565b60008190506000816001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013b91906200024a565b116200017a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064016200006f565b50600280546001600160a01b0319166001600160a01b0392909216919091179055621275006006556101f460075562278d006008556107d0600955624f1a00600a55610fa0600b5562000264565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200022b57600080fd5b81516001600160a01b03811681146200024357600080fd5b9392505050565b6000602082840312156200025d57600080fd5b5051919050565b61181f80620002746000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80637d882097116100c3578063e2668fa11161007c578063e2668fa1146102df578063e3594653146102f2578063ee17254614610312578063f2fde38b1461031b578063f6ed20171461032e578063f7c618c11461034157600080fd5b80637d882097146102985780638d057ade146102a15780638da5cb5b146102aa5780639dc1fb27146102bb578063a26dbf26146102c3578063d835f535146102cc57600080fd5b806359440b431161011557806359440b431461020f578063654cfdff1461023a5780636c578d461461024d578063715018a61461026057806371f43f9a146102685780637bea04191461028557600080fd5b80632a5bf6d21461015d5780632e1a7d4d14610186578063305fffd61461019b5780634ab421c2146101b15780635312ea8e146101d957806355f57510146101ec575b600080fd5b61017061016b36600461156f565b610354565b60405161017d9190611593565b60405180910390f35b6101996101943660046115fa565b6103ee565b005b6101a36106bc565b60405190815260200161017d565b6101c46101bf3660046115fa565b6106e4565b6040805192835260208301919091520161017d565b6101996101e73660046115fa565b610706565b6101a36101fa36600461156f565b600c6020526000908152604090206001015481565b600554610222906001600160a01b031681565b6040516001600160a01b03909116815260200161017d565b610199610248366004611629565b61083b565b61019961025b366004611655565b6109a3565b6101996109f2565b600f546102759060ff1681565b604051901515815260200161017d565b610199610293366004611677565b610a06565b6101a360045481565b6101a360105481565b6000546001600160a01b0316610222565b6101a3600581565b6101a360035481565b6101996102da3660046115fa565b610b1e565b6101996102ed36600461156f565b610bbd565b6101a361030036600461156f565b600d6020526000908152604090205481565b6101a3600e5481565b61019961032936600461156f565b610be7565b6101a361033c36600461156f565b610c22565b600254610222906001600160a01b031681565b6001600160a01b0381166000908152600c60209081526040808320805482518185028101850190935280835260609492939192909184015b828210156103e357600084815260209081902060408051608081018252600486029092018054835260018082015484860152600282015460ff1692840192909252600301546060830152908352909201910161038c565b505050509050919050565b6103f6610c78565b6000811161044b5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b336000908152600c6020526040902060018101548211156104a55760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610442565b6000805b82548110156105605760008360000182815481106104c9576104c96116a1565b600091825260209182902060408051608081018252600490930290910180548352600181015493830193909352600283015460ff1690820181905260039283015460608301529092506006918110610523576105236116a1565b6002020154602082015161053791906116cd565b42111561054d57805161054a90846116cd565b92505b5080610558816116e0565b9150506104a9565b50828110156105b15760405162461bcd60e51b815260206004820152601860248201527f4c6f636b20706572696f64206e6f742066696e697368656400000000000000006044820152606401610442565b60006105bc33610c22565b90506105f733856001866000016000815481106105db576105db6116a1565b600091825260209091206002600490920201015460ff16610ca2565b801561069657336000908152600d60205260408120805483929061061c9084906116cd565b9250508190555080600e600082825461063591906116cd565b9091555061065c90503361064983876116cd565b6002546001600160a01b03169190610e77565b60405181815233907fe34918ff1c7084970068b53fd71ad6d8b04e9f15d3886cbf006443e6cdc52ea69060200160405180910390a26106ad565b6106ad336002546001600160a01b03169086610e77565b5050506106b960018055565b50565b6000601054600454106106cf5750600090565b6004546010546106df91906116f9565b905090565b600681600381106106f457600080fd5b60020201805460019091015490915082565b61070e610ed6565b600081118061071b575080155b6107585760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610442565b6002546001600160a01b03166000821561077257826107da565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061170c565b9050600081116108225760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610442565b6108366001600160a01b0383163383610e77565b505050565b610843610c78565b600f5460ff1661088d5760405162461bcd60e51b815260206004820152601560248201527411195c1bdcda5d1cc8185c9948191a5cd8589b1959605a1b6044820152606401610442565b600082116108dd5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610442565b60038160ff161061091f5760405162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103a34b2b960a11b6044820152606401610442565b6010548260045461093091906116cd565b11156109715760405162461bcd60e51b815260206004820152601060248201526f141bdbdb0818d85c081c995858da195960821b6044820152606401610442565b610989336002546001600160a01b0316903085610f03565b6109963383600084610ca2565b61099f60018055565b5050565b6109ab610ed6565b600f805460ff19168215159081179091556040519081527f368f9f0055e2aa810c531338a91e5687f076336f12d0017b526f73eea97994cb9060200160405180910390a150565b6109fa610ed6565b610a046000610f3c565b565b610a0e610ed6565b60038260ff1610610a505760405162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103a34b2b960a11b6044820152606401610442565b612710811115610a945760405162461bcd60e51b815260206004820152600f60248201526e0a4caeec2e4c840e8dede40d0d2ced608b1b6044820152606401610442565b600060068360ff1660038110610aac57610aac6116a1565b600202016001015490508160068460ff1660038110610acd57610acd6116a1565b60020201600101556040805160ff85168152602081018390529081018390527f01d2db31dcb2528bedcd6b4925e47ecae54f6890c29b30f921f7eb7cea54557b9060600160405180910390a1505050565b610b26610ed6565b600454811015610b785760405162461bcd60e51b815260206004820152601e60248201527f4e6577206361702062656c6f772063757272656e74206465706f7369747300006044820152606401610442565b601080549082905560408051828152602081018490527fd4be4689c233a59277deb16410670de69ae25d9fef77627cc9233a04b3bcf575910160405180910390a15050565b610bc5610ed6565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610bef610ed6565b6001600160a01b038116610c1957604051631e4fbdf760e01b815260006004820152602401610442565b6106b981610f3c565b6001600160a01b0381166000908152600c60205260408120600101548103610c4c57506000919050565b6001600160a01b0382166000908152600c6020526040902060010154610c729083610f8c565b92915050565b600260015403610c9b57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b6005546001600160a01b031615610dca576005546040516329cc05cf60e01b81526001600160a01b038681166004830152602482018690528415156044830152909116906329cc05cf90606401600060405180830381600087803b158015610d0957600080fd5b505af1925050508015610d1a575060015b610d8d573d808015610d48576040519150601f19603f3d011682016040523d82523d6000602084013e610d4d565b606091505b507f9bf7715078b4616151007783c9da39b38c95eba4d74d6d56decab3099e2cc84e8582604051610d7f929190611725565b60405180910390a150610dca565b6040516001600160a01b03851681527f085229f3d01e1512bb4136d2298e6a85714d865fed22da12cb082606ddea7b619060200160405180910390a15b8115610e2257610dda8484611082565b836001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436484604051610e1591815260200190565b60405180910390a2610e71565b610e2d84848361135a565b836001600160a01b03167f83fea5d434d45766f76b6a58033193584b40fe932c14316d5a155ad748e8556584604051610e6891815260200190565b60405180910390a25b50505050565b6040516001600160a01b0383811660248301526044820183905261083691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506114e9565b6000546001600160a01b03163314610a045760405163118cdaa760e01b8152336004820152602401610442565b6040516001600160a01b038481166024830152838116604483015260648201839052610e719186918216906323b872dd90608401610ea4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600c602052604081208054808303610fb857600092505050610c72565b600042815b83811015611076576000856000018281548110610fdc57610fdc6116a1565b906000526020600020906004020190506000816001015484610ffe91906116f9565b600283015490915060009060069060ff166003811061101f5761101f6116a1565b60020201549050808210611060576000612710846003015485600001546110469190611783565b611050919061179a565b905061105c81886116cd565b9650505b505050808061106e906116e0565b915050610fbd565b50909695505050505050565b6001600160a01b0382166000908152600c6020526040902060018101548211156110e55760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610442565b8160005b82548110156112b6576000836000018281548110611109576111096116a1565b60009182526020909120600490910201600281015490915060069060ff1660038110611137576111376116a1565b6002020154600182015461114b91906116cd565b4211156112a257805460009084116111635783611166565b81545b905061117281856116f9565b93508082600001600082825461118891906116f9565b92505081905550808560010160008282546111a391906116f9565b9091555050815460000361128e5784546000906111c2906001906116f9565b9050808414611246578560000181815481106111e0576111e06116a1565b9060005260206000209060040201866000018581548110611203576112036116a1565b60009182526020909120825460049092020190815560018083015490820155600280830154908201805460ff191660ff9092169190911790556003918201549101555b8554869080611257576112576117bc565b6000828152602081206004600019909301928302018181556001810182905560028101805460ff191690556003015590555061129c565b82611298816116e0565b9350505b506112b0565b816112ac816116e0565b9250505b506110e9565b50801561131b5760405162461bcd60e51b815260206004820152602d60248201527f4c6f636b20706572696f64206e6f742066696e697368656420666f722072657160448201526c1d595cdd195908185b5bdd5b9d609a1b6064820152608401610442565b816001015460000361133d5760038054906000611337836117d2565b91905055505b826004600082825461134f91906116f9565b909155505050505050565b6001600160a01b03831661139f5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610442565b6001600160a01b0383166000908152600c6020526040902080546005116113fc5760405162461bcd60e51b8152602060048201526011602482015270546f6f206d616e79206465706f7369747360781b6044820152606401610442565b8060000160405180608001604052808581526020014281526020018460ff16815260200160068560ff1660038110611436576114366116a1565b600160029182029290920182015490925283548082018555600094855260208086208551600490930201918255840151818301556040840151928101805460ff90941660ff1990941693909317909255606090920151600390910155820180548592906114a49084906116cd565b9250508190555082600460008282546114bd91906116cd565b90915550506001810154839003610e7157600380549060006114de836116e0565b919050555050505050565b600080602060008451602086016000885af18061150c576040513d6000823e3d81fd5b50506000513d91508115611524578060011415611531565b6001600160a01b0384163b155b15610e7157604051635274afe760e01b81526001600160a01b0385166004820152602401610442565b6001600160a01b03811681146106b957600080fd5b60006020828403121561158157600080fd5b813561158c8161155a565b9392505050565b602080825282518282018190526000919060409081850190868401855b828110156115ed5781518051855286810151878601528581015160ff168686015260609081015190850152608090930192908501906001016115b0565b5091979650505050505050565b60006020828403121561160c57600080fd5b5035919050565b803560ff8116811461162457600080fd5b919050565b6000806040838503121561163c57600080fd5b8235915061164c60208401611613565b90509250929050565b60006020828403121561166757600080fd5b8135801515811461158c57600080fd5b6000806040838503121561168a57600080fd5b61169383611613565b946020939093013593505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c7257610c726116b7565b6000600182016116f2576116f26116b7565b5060010190565b81810381811115610c7257610c726116b7565b60006020828403121561171e57600080fd5b5051919050565b60018060a01b038316815260006020604081840152835180604085015260005b8181101561176157858101830151858201606001528201611745565b506000606082860101526060601f19601f830116850101925050509392505050565b8082028115828204841417610c7257610c726116b7565b6000826117b757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603160045260246000fd5b6000816117e1576117e16116b7565b50600019019056fea2646970667358221220c1b7c083d71ac8d025628cb6f8772d78d954d38b4252675331ff3410ed2272d664736f6c63430008140033000000000000000000000000e021baa5b70c62a9ab2468490d3f8ce0afdd88df

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80637d882097116100c3578063e2668fa11161007c578063e2668fa1146102df578063e3594653146102f2578063ee17254614610312578063f2fde38b1461031b578063f6ed20171461032e578063f7c618c11461034157600080fd5b80637d882097146102985780638d057ade146102a15780638da5cb5b146102aa5780639dc1fb27146102bb578063a26dbf26146102c3578063d835f535146102cc57600080fd5b806359440b431161011557806359440b431461020f578063654cfdff1461023a5780636c578d461461024d578063715018a61461026057806371f43f9a146102685780637bea04191461028557600080fd5b80632a5bf6d21461015d5780632e1a7d4d14610186578063305fffd61461019b5780634ab421c2146101b15780635312ea8e146101d957806355f57510146101ec575b600080fd5b61017061016b36600461156f565b610354565b60405161017d9190611593565b60405180910390f35b6101996101943660046115fa565b6103ee565b005b6101a36106bc565b60405190815260200161017d565b6101c46101bf3660046115fa565b6106e4565b6040805192835260208301919091520161017d565b6101996101e73660046115fa565b610706565b6101a36101fa36600461156f565b600c6020526000908152604090206001015481565b600554610222906001600160a01b031681565b6040516001600160a01b03909116815260200161017d565b610199610248366004611629565b61083b565b61019961025b366004611655565b6109a3565b6101996109f2565b600f546102759060ff1681565b604051901515815260200161017d565b610199610293366004611677565b610a06565b6101a360045481565b6101a360105481565b6000546001600160a01b0316610222565b6101a3600581565b6101a360035481565b6101996102da3660046115fa565b610b1e565b6101996102ed36600461156f565b610bbd565b6101a361030036600461156f565b600d6020526000908152604090205481565b6101a3600e5481565b61019961032936600461156f565b610be7565b6101a361033c36600461156f565b610c22565b600254610222906001600160a01b031681565b6001600160a01b0381166000908152600c60209081526040808320805482518185028101850190935280835260609492939192909184015b828210156103e357600084815260209081902060408051608081018252600486029092018054835260018082015484860152600282015460ff1692840192909252600301546060830152908352909201910161038c565b505050509050919050565b6103f6610c78565b6000811161044b5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b336000908152600c6020526040902060018101548211156104a55760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610442565b6000805b82548110156105605760008360000182815481106104c9576104c96116a1565b600091825260209182902060408051608081018252600490930290910180548352600181015493830193909352600283015460ff1690820181905260039283015460608301529092506006918110610523576105236116a1565b6002020154602082015161053791906116cd565b42111561054d57805161054a90846116cd565b92505b5080610558816116e0565b9150506104a9565b50828110156105b15760405162461bcd60e51b815260206004820152601860248201527f4c6f636b20706572696f64206e6f742066696e697368656400000000000000006044820152606401610442565b60006105bc33610c22565b90506105f733856001866000016000815481106105db576105db6116a1565b600091825260209091206002600490920201015460ff16610ca2565b801561069657336000908152600d60205260408120805483929061061c9084906116cd565b9250508190555080600e600082825461063591906116cd565b9091555061065c90503361064983876116cd565b6002546001600160a01b03169190610e77565b60405181815233907fe34918ff1c7084970068b53fd71ad6d8b04e9f15d3886cbf006443e6cdc52ea69060200160405180910390a26106ad565b6106ad336002546001600160a01b03169086610e77565b5050506106b960018055565b50565b6000601054600454106106cf5750600090565b6004546010546106df91906116f9565b905090565b600681600381106106f457600080fd5b60020201805460019091015490915082565b61070e610ed6565b600081118061071b575080155b6107585760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610442565b6002546001600160a01b03166000821561077257826107da565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061170c565b9050600081116108225760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610442565b6108366001600160a01b0383163383610e77565b505050565b610843610c78565b600f5460ff1661088d5760405162461bcd60e51b815260206004820152601560248201527411195c1bdcda5d1cc8185c9948191a5cd8589b1959605a1b6044820152606401610442565b600082116108dd5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610442565b60038160ff161061091f5760405162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103a34b2b960a11b6044820152606401610442565b6010548260045461093091906116cd565b11156109715760405162461bcd60e51b815260206004820152601060248201526f141bdbdb0818d85c081c995858da195960821b6044820152606401610442565b610989336002546001600160a01b0316903085610f03565b6109963383600084610ca2565b61099f60018055565b5050565b6109ab610ed6565b600f805460ff19168215159081179091556040519081527f368f9f0055e2aa810c531338a91e5687f076336f12d0017b526f73eea97994cb9060200160405180910390a150565b6109fa610ed6565b610a046000610f3c565b565b610a0e610ed6565b60038260ff1610610a505760405162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103a34b2b960a11b6044820152606401610442565b612710811115610a945760405162461bcd60e51b815260206004820152600f60248201526e0a4caeec2e4c840e8dede40d0d2ced608b1b6044820152606401610442565b600060068360ff1660038110610aac57610aac6116a1565b600202016001015490508160068460ff1660038110610acd57610acd6116a1565b60020201600101556040805160ff85168152602081018390529081018390527f01d2db31dcb2528bedcd6b4925e47ecae54f6890c29b30f921f7eb7cea54557b9060600160405180910390a1505050565b610b26610ed6565b600454811015610b785760405162461bcd60e51b815260206004820152601e60248201527f4e6577206361702062656c6f772063757272656e74206465706f7369747300006044820152606401610442565b601080549082905560408051828152602081018490527fd4be4689c233a59277deb16410670de69ae25d9fef77627cc9233a04b3bcf575910160405180910390a15050565b610bc5610ed6565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610bef610ed6565b6001600160a01b038116610c1957604051631e4fbdf760e01b815260006004820152602401610442565b6106b981610f3c565b6001600160a01b0381166000908152600c60205260408120600101548103610c4c57506000919050565b6001600160a01b0382166000908152600c6020526040902060010154610c729083610f8c565b92915050565b600260015403610c9b57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b6005546001600160a01b031615610dca576005546040516329cc05cf60e01b81526001600160a01b038681166004830152602482018690528415156044830152909116906329cc05cf90606401600060405180830381600087803b158015610d0957600080fd5b505af1925050508015610d1a575060015b610d8d573d808015610d48576040519150601f19603f3d011682016040523d82523d6000602084013e610d4d565b606091505b507f9bf7715078b4616151007783c9da39b38c95eba4d74d6d56decab3099e2cc84e8582604051610d7f929190611725565b60405180910390a150610dca565b6040516001600160a01b03851681527f085229f3d01e1512bb4136d2298e6a85714d865fed22da12cb082606ddea7b619060200160405180910390a15b8115610e2257610dda8484611082565b836001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436484604051610e1591815260200190565b60405180910390a2610e71565b610e2d84848361135a565b836001600160a01b03167f83fea5d434d45766f76b6a58033193584b40fe932c14316d5a155ad748e8556584604051610e6891815260200190565b60405180910390a25b50505050565b6040516001600160a01b0383811660248301526044820183905261083691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506114e9565b6000546001600160a01b03163314610a045760405163118cdaa760e01b8152336004820152602401610442565b6040516001600160a01b038481166024830152838116604483015260648201839052610e719186918216906323b872dd90608401610ea4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600c602052604081208054808303610fb857600092505050610c72565b600042815b83811015611076576000856000018281548110610fdc57610fdc6116a1565b906000526020600020906004020190506000816001015484610ffe91906116f9565b600283015490915060009060069060ff166003811061101f5761101f6116a1565b60020201549050808210611060576000612710846003015485600001546110469190611783565b611050919061179a565b905061105c81886116cd565b9650505b505050808061106e906116e0565b915050610fbd565b50909695505050505050565b6001600160a01b0382166000908152600c6020526040902060018101548211156110e55760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610442565b8160005b82548110156112b6576000836000018281548110611109576111096116a1565b60009182526020909120600490910201600281015490915060069060ff1660038110611137576111376116a1565b6002020154600182015461114b91906116cd565b4211156112a257805460009084116111635783611166565b81545b905061117281856116f9565b93508082600001600082825461118891906116f9565b92505081905550808560010160008282546111a391906116f9565b9091555050815460000361128e5784546000906111c2906001906116f9565b9050808414611246578560000181815481106111e0576111e06116a1565b9060005260206000209060040201866000018581548110611203576112036116a1565b60009182526020909120825460049092020190815560018083015490820155600280830154908201805460ff191660ff9092169190911790556003918201549101555b8554869080611257576112576117bc565b6000828152602081206004600019909301928302018181556001810182905560028101805460ff191690556003015590555061129c565b82611298816116e0565b9350505b506112b0565b816112ac816116e0565b9250505b506110e9565b50801561131b5760405162461bcd60e51b815260206004820152602d60248201527f4c6f636b20706572696f64206e6f742066696e697368656420666f722072657160448201526c1d595cdd195908185b5bdd5b9d609a1b6064820152608401610442565b816001015460000361133d5760038054906000611337836117d2565b91905055505b826004600082825461134f91906116f9565b909155505050505050565b6001600160a01b03831661139f5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610442565b6001600160a01b0383166000908152600c6020526040902080546005116113fc5760405162461bcd60e51b8152602060048201526011602482015270546f6f206d616e79206465706f7369747360781b6044820152606401610442565b8060000160405180608001604052808581526020014281526020018460ff16815260200160068560ff1660038110611436576114366116a1565b600160029182029290920182015490925283548082018555600094855260208086208551600490930201918255840151818301556040840151928101805460ff90941660ff1990941693909317909255606090920151600390910155820180548592906114a49084906116cd565b9250508190555082600460008282546114bd91906116cd565b90915550506001810154839003610e7157600380549060006114de836116e0565b919050555050505050565b600080602060008451602086016000885af18061150c576040513d6000823e3d81fd5b50506000513d91508115611524578060011415611531565b6001600160a01b0384163b155b15610e7157604051635274afe760e01b81526001600160a01b0385166004820152602401610442565b6001600160a01b03811681146106b957600080fd5b60006020828403121561158157600080fd5b813561158c8161155a565b9392505050565b602080825282518282018190526000919060409081850190868401855b828110156115ed5781518051855286810151878601528581015160ff168686015260609081015190850152608090930192908501906001016115b0565b5091979650505050505050565b60006020828403121561160c57600080fd5b5035919050565b803560ff8116811461162457600080fd5b919050565b6000806040838503121561163c57600080fd5b8235915061164c60208401611613565b90509250929050565b60006020828403121561166757600080fd5b8135801515811461158c57600080fd5b6000806040838503121561168a57600080fd5b61169383611613565b946020939093013593505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c7257610c726116b7565b6000600182016116f2576116f26116b7565b5060010190565b81810381811115610c7257610c726116b7565b60006020828403121561171e57600080fd5b5051919050565b60018060a01b038316815260006020604081840152835180604085015260005b8181101561176157858101830151858201606001528201611745565b506000606082860101526060601f19601f830116850101925050509392505050565b8082028115828204841417610c7257610c726116b7565b6000826117b757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603160045260246000fd5b6000816117e1576117e16116b7565b50600019019056fea2646970667358221220c1b7c083d71ac8d025628cb6f8772d78d954d38b4252675331ff3410ed2272d664736f6c63430008140033

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

000000000000000000000000e021baa5b70c62a9ab2468490d3f8ce0afdd88df

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xE021bAa5b70C62A9ab2468490D3f8ce0AfDd88dF

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e021baa5b70c62a9ab2468490d3f8ce0afdd88df


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.