Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 108 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 17360705 | 30 days ago | IN | 0 ETH | 0.00000086 | ||||
Approve | 16909904 | 47 days ago | IN | 0 ETH | 0.0000068 | ||||
Approve | 16452702 | 65 days ago | IN | 0 ETH | 0.00000533 | ||||
Approve | 15216055 | 109 days ago | IN | 0 ETH | 0.00000572 | ||||
Approve | 15169591 | 110 days ago | IN | 0 ETH | 0.00001017 | ||||
Approve | 14893254 | 120 days ago | IN | 0 ETH | 0.00000804 | ||||
Approve | 14795836 | 123 days ago | IN | 0 ETH | 0.00000057 | ||||
Approve | 14685145 | 127 days ago | IN | 0 ETH | 0.00000236 | ||||
Approve | 14279541 | 141 days ago | IN | 0 ETH | 0.0000026 | ||||
Approve | 14279469 | 141 days ago | IN | 0 ETH | 0.00000275 | ||||
Approve | 14133863 | 146 days ago | IN | 0 ETH | 0.00001147 | ||||
Approve | 14094628 | 148 days ago | IN | 0 ETH | 0.00000222 | ||||
Approve | 14052609 | 149 days ago | IN | 0 ETH | 0.00000915 | ||||
Approve | 13855646 | 156 days ago | IN | 0 ETH | 0.00000599 | ||||
Approve | 13802678 | 158 days ago | IN | 0 ETH | 0.00000057 | ||||
Approve | 13802601 | 158 days ago | IN | 0 ETH | 0.00000184 | ||||
Approve | 13772262 | 159 days ago | IN | 0 ETH | 0.00000919 | ||||
Approve | 13601388 | 165 days ago | IN | 0 ETH | 0.00000184 | ||||
Approve | 13511640 | 168 days ago | IN | 0 ETH | 0.00001015 | ||||
Approve | 13249981 | 177 days ago | IN | 0 ETH | 0.00000492 | ||||
Approve | 13245781 | 177 days ago | IN | 0 ETH | 0.00000571 | ||||
Approve | 13196057 | 179 days ago | IN | 0 ETH | 0.00000553 | ||||
Approve | 13192039 | 179 days ago | IN | 0 ETH | 0.00000792 | ||||
Approve | 13187407 | 180 days ago | IN | 0 ETH | 0.00000553 | ||||
Approve | 13080192 | 183 days ago | IN | 0 ETH | 0.00001338 |
Loading...
Loading
Contract Name:
StakedQlp
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
// 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; }
// 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); }
// 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); }
// 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; } }
// 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); }
// 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); }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.