ETH Price: $3,129.16 (+0.96%)

Contract

0x973ae30Cb49986E1D3BdCAB4d40B96fEA5baBE84

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve141338632024-07-11 12:17:0635 hrs ago1720700226IN
0x973ae30C...EA5baBE84
0 ETH0.000011470.24877521
Approve140946282024-07-10 3:22:132 days ago1720581733IN
0x973ae30C...EA5baBE84
0 ETH0.000002220.0483
Approve140526092024-07-08 16:06:434 days ago1720454803IN
0x973ae30C...EA5baBE84
0 ETH0.000009150.19844843
Approve138556462024-07-01 17:32:4711 days ago1719855167IN
0x973ae30C...EA5baBE84
0 ETH0.000005990.13
Approve138026782024-06-29 21:08:2613 days ago1719695306IN
0x973ae30C...EA5baBE84
0 ETH0.000000570.04
Approve138026012024-06-29 21:04:3413 days ago1719695074IN
0x973ae30C...EA5baBE84
0 ETH0.000001840.04
Approve137722622024-06-28 19:38:4614 days ago1719603526IN
0x973ae30C...EA5baBE84
0 ETH0.000009190.19925778
Approve136013882024-06-22 20:33:4120 days ago1719088421IN
0x973ae30C...EA5baBE84
0 ETH0.000001840.04
Approve135116402024-06-19 17:23:5623 days ago1718817836IN
0x973ae30C...EA5baBE84
0 ETH0.000010150.22
Approve132499812024-06-10 14:10:1932 days ago1718028619IN
0x973ae30C...EA5baBE84
0 ETH0.000004920.34
Approve132457812024-06-10 10:39:2132 days ago1718015961IN
0x973ae30C...EA5baBE84
0 ETH0.000005710.21860469
Approve131960572024-06-08 16:59:0434 days ago1717865944IN
0x973ae30C...EA5baBE84
0 ETH0.000005530.12
Approve131920392024-06-08 13:37:1734 days ago1717853837IN
0x973ae30C...EA5baBE84
0 ETH0.000007920.1717
Approve131874072024-06-08 9:44:4234 days ago1717839882IN
0x973ae30C...EA5baBE84
0 ETH0.000005530.12
Approve130801922024-06-04 15:49:4638 days ago1717516186IN
0x973ae30C...EA5baBE84
0 ETH0.000013380.29
Approve130207232024-06-02 13:58:5840 days ago1717336738IN
0x973ae30C...EA5baBE84
0 ETH0.000005110.111
Approve129341052024-05-30 13:01:5743 days ago1717074117IN
0x973ae30C...EA5baBE84
0 ETH0.00000390.27
Approve128820872024-05-28 17:23:0445 days ago1716916984IN
0x973ae30C...EA5baBE84
0 ETH0.000011890.258
Approve128218532024-05-26 14:48:5247 days ago1716734932IN
0x973ae30C...EA5baBE84
0 ETH0.000008490.184
Approve127403462024-05-23 18:38:2350 days ago1716489503IN
0x973ae30C...EA5baBE84
0 ETH0.00000950.206
Approve127305692024-05-23 10:22:1050 days ago1716459730IN
0x973ae30C...EA5baBE84
0 ETH0.000005720.124
Approve126855312024-05-21 20:37:5452 days ago1716323874IN
0x973ae30C...EA5baBE84
0 ETH0.000008210.178
Approve126839622024-05-21 19:18:5952 days ago1716319139IN
0x973ae30C...EA5baBE84
0 ETH0.000003470.24
Approve126695432024-05-21 7:13:3452 days ago1716275614IN
0x973ae30C...EA5baBE84
0 ETH0.000007220.15655
Approve125958552024-05-18 17:27:2355 days ago1716053243IN
0x973ae30C...EA5baBE84
0 ETH0.000002450.0533
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
StakedQlp

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 7 : StakedQlp.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.6.12;

import "../libraries/math/SafeMath.sol";
import "../libraries/token/IERC20.sol";

import "../core/interfaces/IQlpManager.sol";

import "./interfaces/IRewardTracker.sol";

contract StakedQlp {
    using SafeMath for uint256;

    string public constant name = "StakedQlp";
    string public constant symbol = "sQLP";
    uint8 public constant decimals = 18;

    address public qlp;
    IQlpManager public qlpManager;
    address public feeQlpTracker;

    mapping (address => mapping (address => uint256)) public allowances;

    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor(
        address _qlp,
        IQlpManager _qlpManager,
        address _feeQlpTracker
    ) public {
        qlp = _qlp;
        qlpManager = _qlpManager;
        feeQlpTracker = _feeQlpTracker;
    }

    function allowance(address _owner, address _spender) external view returns (uint256) {
        return allowances[_owner][_spender];
    }

    function approve(address _spender, uint256 _amount) external returns (bool) {
        _approve(msg.sender, _spender, _amount);
        return true;
    }

    function transfer(address _recipient, uint256 _amount) external returns (bool) {
        _transfer(msg.sender, _recipient, _amount);
        return true;
    }

    function transferFrom(address _sender, address _recipient, uint256 _amount) external returns (bool) {
        uint256 nextAllowance = allowances[_sender][msg.sender].sub(_amount, "StakedQlp: transfer amount exceeds allowance");
        _approve(_sender, msg.sender, nextAllowance);
        _transfer(_sender, _recipient, _amount);
        return true;
    }

    function balanceOf(address _account) external view returns (uint256) {
        return IRewardTracker(feeQlpTracker).depositBalances(_account, qlp);
    }

    function totalSupply() external view returns (uint256) {
        return IERC20(feeQlpTracker).totalSupply();
    }

    function _approve(address _owner, address _spender, uint256 _amount) private {
        require(_owner != address(0), "StakedQlp: approve from the zero address");
        require(_spender != address(0), "StakedQlp: approve to the zero address");

        allowances[_owner][_spender] = _amount;

        emit Approval(_owner, _spender, _amount);
    }

    function _transfer(address _sender, address _recipient, uint256 _amount) private {
        require(_sender != address(0), "StakedQlp: transfer from the zero address");
        require(_recipient != address(0), "StakedQlp: transfer to the zero address");

        require(
            qlpManager.lastAddedAt(_sender).add(qlpManager.cooldownDuration()) <= block.timestamp,
            "StakedQlp: cooldown duration not yet passed"
        );
        IRewardTracker(feeQlpTracker).unstakeForAccount(_sender, qlp, _amount, _sender);
        IRewardTracker(feeQlpTracker).stakeForAccount(_sender, _recipient, qlp, _amount);
    }


}

File 2 of 7 : IQlpManager.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./IVault.sol";

interface IQlpManager {
    function qlp() external view returns (address);
    function usdq() external view returns (address);
    function vault() external view returns (IVault);
    function cooldownDuration() external returns (uint256);
    function getAumInUsdq(bool maximise) external view returns (uint256);
    function lastAddedAt(address _account) external returns (uint256);
    function addLiquidity(address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp) external returns (uint256);
    function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp) external returns (uint256);
    function removeLiquidity(address _tokenOut, uint256 _qlpAmount, uint256 _minOut, address _receiver) external returns (uint256);
    function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _qlpAmount, uint256 _minOut, address _receiver) external returns (uint256);
    function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) external;
    function setCooldownDuration(uint256 _cooldownDuration) external;
}

File 3 of 7 : IVault.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./IVaultUtils.sol";

interface IVault {
    function isInitialized() external view returns (bool);
    function isSwapEnabled() external view returns (bool);
    function isLeverageEnabled() external view returns (bool);

    function setVaultUtils(IVaultUtils _vaultUtils) external;
    function setError(uint256 _errorCode, string calldata _error) external;

    function router() external view returns (address);
    function usdq() external view returns (address);
    function gov() external view returns (address);
    function vaultUtils() external view returns (IVaultUtils);

    function whitelistedTokenCount() external view returns (uint256);
    function maxLeverage() external view returns (uint256);

    function minProfitTime() external view returns (uint256);
    function hasDynamicFees() external view returns (bool);
    function fundingInterval() external view returns (uint256);
    function totalTokenWeights() external view returns (uint256);
    function getTargetUsdqAmount(address _token) external view returns (uint256);

    function inManagerMode() external view returns (bool);
    function inPrivateLiquidationMode() external view returns (bool);

    function maxGasPrice() external view returns (uint256);

    function approvedRouters(address _account, address _router) external view returns (bool);
    function isLiquidator(address _account) external view returns (bool);
    function isManager(address _account) external view returns (bool);

    function minProfitBasisPoints(address _token) external view returns (uint256);
    function tokenBalances(address _token) external view returns (uint256);
    function lastFundingTimes(address _token) external view returns (uint256);

    function setMaxLeverage(uint256 _maxLeverage) external;
    function setInManagerMode(bool _inManagerMode) external;
    function setManager(address _manager, bool _isManager) external;
    function setIsSwapEnabled(bool _isSwapEnabled) external;
    function setIsLeverageEnabled(bool _isLeverageEnabled) external;
    function setMaxGasPrice(uint256 _maxGasPrice) external;
    function setUsdqAmount(address _token, uint256 _amount) external;
    function setBufferAmount(address _token, uint256 _amount) external;
    function setMaxGlobalShortSize(address _token, uint256 _amount) external;
    function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) external;
    function setLiquidator(address _liquidator, bool _isActive) external;

    function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) external;

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external;

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _redemptionBps,
        uint256 _minProfitBps,
        uint256 _maxUsdqAmount,
        bool _isStable,
        bool _isShortable
    ) external;

    function setPriceFeed(address _priceFeed) external;
    function withdrawFees(address _token, address _receiver) external returns (uint256);

    function directPoolDeposit(address _token) external;
    function buyUSDQ(address _token, address _receiver) external returns (uint256);
    function sellUSDQ(address _token, address _receiver) external returns (uint256);
    function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) external;
    function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256);

    function priceFeed() external view returns (address);
    function fundingRateFactor() external view returns (uint256);
    function stableFundingRateFactor() external view returns (uint256);
    function cumulativeFundingRates(address _token) external view returns (uint256);
    function getNextFundingRate(address _token) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdqDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);

    function liquidationFeeUsd() external view returns (uint256);
    function taxBasisPoints() external view returns (uint256);
    function stableTaxBasisPoints() external view returns (uint256);
    function mintBurnFeeBasisPoints() external view returns (uint256);
    function swapFeeBasisPoints() external view returns (uint256);
    function stableSwapFeeBasisPoints() external view returns (uint256);
    function marginFeeBasisPoints() external view returns (uint256);

    function allWhitelistedTokensLength() external view returns (uint256);
    function allWhitelistedTokens(uint256) external view returns (address);
    function whitelistedTokens(address _token) external view returns (bool);
    function stableTokens(address _token) external view returns (bool);
    function shortableTokens(address _token) external view returns (bool);
    function feeReserves(address _token) external view returns (uint256);
    function globalShortSizes(address _token) external view returns (uint256);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function maxGlobalShortSizes(address _token) external view returns (uint256);
    function tokenDecimals(address _token) external view returns (uint256);
    function tokenWeights(address _token) external view returns (uint256);
    function guaranteedUsd(address _token) external view returns (uint256);
    function poolAmounts(address _token) external view returns (uint256);
    function bufferAmounts(address _token) external view returns (uint256);
    function reservedAmounts(address _token) external view returns (uint256);
    function usdqAmounts(address _token) external view returns (uint256);
    function maxUsdqAmounts(address _token) external view returns (uint256);
    function getRedemptionAmount(address _token, uint256 _usdqAmount) external view returns (uint256);
    function getMaxPrice(address _token) external view returns (uint256);
    function getMinPrice(address _token) external view returns (uint256);

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256);
    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256);
}

File 4 of 7 : IVaultUtils.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IVaultUtils {
    function updateCumulativeFundingRate(address _collateralToken, address _indexToken) external returns (bool);
    function validateIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external view;
    function validateDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external view;
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256);
    function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) external view returns (uint256);
    function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) external view returns (uint256);
    function getBuyUsdqFeeBasisPoints(address _token, uint256 _usdqAmount) external view returns (uint256);
    function getSellUsdqFeeBasisPoints(address _token, uint256 _usdqAmount) external view returns (uint256);
    function getSwapFeeBasisPoints(address _tokenIn, address _tokenOut, uint256 _usdqAmount) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdqDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);
    function getMaxAmountIn(
        address _tokenIn,
        address _tokenOut
    ) external view returns (uint256);
}

File 5 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 7 of 7 : IRewardTracker.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.6.12;

interface IRewardTracker {
    function depositBalances(address _account, address _depositToken) external view returns (uint256);
    function stakedAmounts(address _account) external view returns (uint256);
    function updateRewards(address _rewardToken) external;
    function stake(address _depositToken, uint256 _amount) external;
    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;
    function unstake(address _depositToken, uint256 _amount) external;
    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;
    function tokensPerInterval(address _rewardToken) external view returns (uint256);
    function claim(address _rewardToken, address _receiver) external returns (uint256);
    function claimForAccount(address _account, address _rewardToken, address _receiver) external returns (uint256);
    function claimAll(address _receiver) external returns (address[] memory,uint256[] memory);
    function claimAllForAccount(address _account, address _receiver) external returns (address[] memory,uint256[] memory);
    function claimable(address _account, address _rewardToken) external view returns (uint256);
    function claimableAll(address _account) external view  returns (address[] memory,uint256[] memory);
    function averageStakedAmounts(address _account) external view returns (uint256);
    function cumulativeRewards(address _account, address _rewardToken) external view returns (uint256);
    function hasCumulativeRewards(address _account) external view returns (bool);
    function getAllRewardTokens() external view returns (address[] memory);
    function rewardTokens(address _rewardToken) external view returns (bool);
    function allTokens(address _rewardToken) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_qlp","type":"address"},{"internalType":"contract IQlpManager","name":"_qlpManager","type":"address"},{"internalType":"address","name":"_feeQlpTracker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeQlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qlp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qlpManager","outputs":[{"internalType":"contract IQlpManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610b59380380610b598339818101604052606081101561003357600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b0319918216179091556001805494841694821694909417909355600280549290911691909216179055610aca8061008f6000396000f3fe608060405234801561001057600080fd5b50600436106100af5760003560e01c806306fdde03146100b4578063095ea7b31461013157806318160ddd1461017157806323b872dd1461018b578063250e4f51146101c1578063313ce567146101e55780635242abb91461020357806355b6ed5c1461020b57806370a082311461023957806395d89b411461025f578063a9059cbb14610267578063dd62ed3e14610293578063e26aaefa146102c1575b600080fd5b6100bc6102c9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f65781810151838201526020016100de565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61015d6004803603604081101561014757600080fd5b506001600160a01b0381351690602001356102ee565b604080519115158252519081900360200190f35b610179610304565b60408051918252519081900360200190f35b61015d600480360360608110156101a157600080fd5b506001600160a01b0381358116916020810135909116906040013561037a565b6101c96103e8565b604080516001600160a01b039092168252519081900360200190f35b6101ed6103f7565b6040805160ff9092168252519081900360200190f35b6101c96103fc565b6101796004803603604081101561022157600080fd5b506001600160a01b038135811691602001351661040b565b6101796004803603602081101561024f57600080fd5b50356001600160a01b0316610428565b6100bc6104b6565b61015d6004803603604081101561027d57600080fd5b506001600160a01b0381351690602001356104d6565b610179600480360360408110156102a957600080fd5b506001600160a01b03813581169160200135166104e3565b6101c961050e565b6040518060400160405280600981526020016805374616b6564516c760bc1b81525081565b60006102fb33848461051d565b50600192915050565b600254604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561034957600080fd5b505afa15801561035d573d6000803e3d6000fd5b505050506040513d602081101561037357600080fd5b5051905090565b6000806103c5836040518060600160405280602c8152602001610a43602c91396001600160a01b03881660009081526003602090815260408083203384529091529020549190610609565b90506103d285338361051d565b6103dd8585856106a0565b506001949350505050565b6001546001600160a01b031681565b601281565b6002546001600160a01b031681565b600360209081526000928352604080842090915290825290205481565b6002546000805460408051637aeceb1f60e11b81526001600160a01b038681166004830152928316602482015290519293919091169163f5d9d63e91604480820192602092909190829003018186803b15801561048457600080fd5b505afa158015610498573d6000803e3d6000fd5b505050506040513d60208110156104ae57600080fd5b505192915050565b60405180604001604052806004815260200163073514c560e41b81525081565b60006102fb3384846106a0565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b031681565b6001600160a01b0383166105625760405162461bcd60e51b8152600401808060200182810382526028815260200180610a1b6028913960400191505060405180910390fd5b6001600160a01b0382166105a75760405162461bcd60e51b8152600401808060200182810382526026815260200180610a986026913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156106985760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561065d578181015183820152602001610645565b50505050905090810190601f16801561068a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0383166106e55760405162461bcd60e51b8152600401808060200182810382526029815260200180610a6f6029913960400191505060405180910390fd5b6001600160a01b03821661072a5760405162461bcd60e51b81526004018080602001828103825260278152602001806109f46027913960400191505060405180910390fd5b4261082b600160009054906101000a90046001600160a01b03166001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b505050506040513d60208110156107a857600080fd5b505160015460408051638b770e1160e01b81526001600160a01b03898116600483015291519190921691638b770e119160248083019260209291908290030181600087803b1580156107f957600080fd5b505af115801561080d573d6000803e3d6000fd5b505050506040513d602081101561082357600080fd5b505190610969565b11156108685760405162461bcd60e51b815260040180806020018281038252602b8152602001806109c9602b913960400191505060405180910390fd5b600254600080546040805163098bf59d60e01b81526001600160a01b038881166004830181905293811660248301526044820187905260648201939093529051919093169263098bf59d92608480830193919282900301818387803b1580156108d057600080fd5b505af11580156108e4573d6000803e3d6000fd5b50506002546000805460408051631e42d69b60e21b81526001600160a01b038a811660048301528981166024830152928316604482015260648101889052905191909316945063790b5a6c935060848084019382900301818387803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b50505050505050565b6000828201838110156109c1576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe5374616b6564516c703a20636f6f6c646f776e206475726174696f6e206e6f7420796574207061737365645374616b6564516c703a207472616e7366657220746f20746865207a65726f20616464726573735374616b6564516c703a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b6564516c703a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655374616b6564516c703a207472616e736665722066726f6d20746865207a65726f20616464726573735374616b6564516c703a20617070726f766520746f20746865207a65726f2061646472657373a164736f6c634300060c000a000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe54000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100af5760003560e01c806306fdde03146100b4578063095ea7b31461013157806318160ddd1461017157806323b872dd1461018b578063250e4f51146101c1578063313ce567146101e55780635242abb91461020357806355b6ed5c1461020b57806370a082311461023957806395d89b411461025f578063a9059cbb14610267578063dd62ed3e14610293578063e26aaefa146102c1575b600080fd5b6100bc6102c9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f65781810151838201526020016100de565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61015d6004803603604081101561014757600080fd5b506001600160a01b0381351690602001356102ee565b604080519115158252519081900360200190f35b610179610304565b60408051918252519081900360200190f35b61015d600480360360608110156101a157600080fd5b506001600160a01b0381358116916020810135909116906040013561037a565b6101c96103e8565b604080516001600160a01b039092168252519081900360200190f35b6101ed6103f7565b6040805160ff9092168252519081900360200190f35b6101c96103fc565b6101796004803603604081101561022157600080fd5b506001600160a01b038135811691602001351661040b565b6101796004803603602081101561024f57600080fd5b50356001600160a01b0316610428565b6100bc6104b6565b61015d6004803603604081101561027d57600080fd5b506001600160a01b0381351690602001356104d6565b610179600480360360408110156102a957600080fd5b506001600160a01b03813581169160200135166104e3565b6101c961050e565b6040518060400160405280600981526020016805374616b6564516c760bc1b81525081565b60006102fb33848461051d565b50600192915050565b600254604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561034957600080fd5b505afa15801561035d573d6000803e3d6000fd5b505050506040513d602081101561037357600080fd5b5051905090565b6000806103c5836040518060600160405280602c8152602001610a43602c91396001600160a01b03881660009081526003602090815260408083203384529091529020549190610609565b90506103d285338361051d565b6103dd8585856106a0565b506001949350505050565b6001546001600160a01b031681565b601281565b6002546001600160a01b031681565b600360209081526000928352604080842090915290825290205481565b6002546000805460408051637aeceb1f60e11b81526001600160a01b038681166004830152928316602482015290519293919091169163f5d9d63e91604480820192602092909190829003018186803b15801561048457600080fd5b505afa158015610498573d6000803e3d6000fd5b505050506040513d60208110156104ae57600080fd5b505192915050565b60405180604001604052806004815260200163073514c560e41b81525081565b60006102fb3384846106a0565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b031681565b6001600160a01b0383166105625760405162461bcd60e51b8152600401808060200182810382526028815260200180610a1b6028913960400191505060405180910390fd5b6001600160a01b0382166105a75760405162461bcd60e51b8152600401808060200182810382526026815260200180610a986026913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156106985760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561065d578181015183820152602001610645565b50505050905090810190601f16801561068a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0383166106e55760405162461bcd60e51b8152600401808060200182810382526029815260200180610a6f6029913960400191505060405180910390fd5b6001600160a01b03821661072a5760405162461bcd60e51b81526004018080602001828103825260278152602001806109f46027913960400191505060405180910390fd5b4261082b600160009054906101000a90046001600160a01b03166001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b505050506040513d60208110156107a857600080fd5b505160015460408051638b770e1160e01b81526001600160a01b03898116600483015291519190921691638b770e119160248083019260209291908290030181600087803b1580156107f957600080fd5b505af115801561080d573d6000803e3d6000fd5b505050506040513d602081101561082357600080fd5b505190610969565b11156108685760405162461bcd60e51b815260040180806020018281038252602b8152602001806109c9602b913960400191505060405180910390fd5b600254600080546040805163098bf59d60e01b81526001600160a01b038881166004830181905293811660248301526044820187905260648201939093529051919093169263098bf59d92608480830193919282900301818387803b1580156108d057600080fd5b505af11580156108e4573d6000803e3d6000fd5b50506002546000805460408051631e42d69b60e21b81526001600160a01b038a811660048301528981166024830152928316604482015260648101889052905191909316945063790b5a6c935060848084019382900301818387803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b50505050505050565b6000828201838110156109c1576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe5374616b6564516c703a20636f6f6c646f776e206475726174696f6e206e6f7420796574207061737365645374616b6564516c703a207472616e7366657220746f20746865207a65726f20616464726573735374616b6564516c703a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b6564516c703a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655374616b6564516c703a207472616e736665722066726f6d20746865207a65726f20616464726573735374616b6564516c703a20617070726f766520746f20746865207a65726f2061646472657373a164736f6c634300060c000a

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

000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe54000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131

-----Decoded View---------------
Arg [0] : _qlp (address): 0xC8E48fD037D1C4232F294b635E74d33A0573265a
Arg [1] : _qlpManager (address): 0x87BcD3914eD3dcd5886BA1c0f0DA25150b56fE54
Arg [2] : _feeQlpTracker (address): 0xd3Ee28CB8ed02a5641DFA02624dF399b01f1e131

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a
Arg [1] : 00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe54
Arg [2] : 000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131


Block Transaction Gas Used Reward
view all blocks sequenced

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.