More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 36,426 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 329063844 | 16 hrs ago | IN | 0 ETH | 0.00001871 | ||||
Approve | 328968540 | 23 hrs ago | IN | 0 ETH | 0.00000031 | ||||
Approve | 328781911 | 36 hrs ago | IN | 0 ETH | 0.0000003 | ||||
Approve | 328781480 | 36 hrs ago | IN | 0 ETH | 0.00000028 | ||||
Approve | 328667861 | 44 hrs ago | IN | 0 ETH | 0.00000028 | ||||
Approve | 328612171 | 47 hrs ago | IN | 0 ETH | 0.0000005 | ||||
Approve | 328569582 | 2 days ago | IN | 0 ETH | 0.00000048 | ||||
Approve | 328551426 | 2 days ago | IN | 0 ETH | 0.00000051 | ||||
Approve | 328467545 | 2 days ago | IN | 0 ETH | 0.00000048 | ||||
Approve | 328453326 | 2 days ago | IN | 0 ETH | 0.00000047 | ||||
Approve | 328431786 | 2 days ago | IN | 0 ETH | 0.00000048 | ||||
Approve | 328415361 | 2 days ago | IN | 0 ETH | 0.00000026 | ||||
Approve | 328380279 | 2 days ago | IN | 0 ETH | 0.00000026 | ||||
Approve | 328135097 | 3 days ago | IN | 0 ETH | 0.00000026 | ||||
Approve | 328004258 | 3 days ago | IN | 0 ETH | 0.00000031 | ||||
Approve | 327947303 | 3 days ago | IN | 0 ETH | 0.00000049 | ||||
Approve | 327916296 | 4 days ago | IN | 0 ETH | 0.00000049 | ||||
Approve | 327789117 | 4 days ago | IN | 0 ETH | 0.0000008 | ||||
Approve | 327714336 | 4 days ago | IN | 0 ETH | 0.00000144 | ||||
Approve | 327651592 | 4 days ago | IN | 0 ETH | 0.00000105 | ||||
Approve | 327564066 | 5 days ago | IN | 0 ETH | 0.00000071 | ||||
Approve | 327461866 | 5 days ago | IN | 0 ETH | 0.00000027 | ||||
Approve | 327396683 | 5 days ago | IN | 0 ETH | 0.00000102 | ||||
Approve | 327375999 | 5 days ago | IN | 0 ETH | 0.00000527 | ||||
Approve | 327358075 | 5 days ago | IN | 0 ETH | 0.0000023 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
72085994 | 763 days ago | 0 ETH | ||||
72085994 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH | ||||
72085135 | 763 days ago | 0 ETH |
Loading...
Loading
Contract Name:
StakedGlp
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: MIT pragma solidity 0.6.12; import "../libraries/math/SafeMath.sol"; import "../libraries/token/IERC20.sol"; import "../core/interfaces/IGlpManager.sol"; import "./interfaces/IRewardTracker.sol"; import "./interfaces/IRewardTracker.sol"; // provide a way to transfer staked GLP tokens by unstaking from the sender // and staking for the receiver // tests in RewardRouterV2.js contract StakedGlp { using SafeMath for uint256; string public constant name = "StakedGlp"; string public constant symbol = "sGLP"; uint8 public constant decimals = 18; address public glp; IGlpManager public glpManager; address public stakedGlpTracker; address public feeGlpTracker; mapping (address => mapping (address => uint256)) public allowances; event Approval(address indexed owner, address indexed spender, uint256 value); constructor( address _glp, IGlpManager _glpManager, address _stakedGlpTracker, address _feeGlpTracker ) public { glp = _glp; glpManager = _glpManager; stakedGlpTracker = _stakedGlpTracker; feeGlpTracker = _feeGlpTracker; } 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, "StakedGlp: 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(feeGlpTracker).depositBalances(_account, glp); } function totalSupply() external view returns (uint256) { return IERC20(stakedGlpTracker).totalSupply(); } function _approve(address _owner, address _spender, uint256 _amount) private { require(_owner != address(0), "StakedGlp: approve from the zero address"); require(_spender != address(0), "StakedGlp: 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), "StakedGlp: transfer from the zero address"); require(_recipient != address(0), "StakedGlp: transfer to the zero address"); require( glpManager.lastAddedAt(_sender).add(glpManager.cooldownDuration()) <= block.timestamp, "StakedGlp: cooldown duration not yet passed" ); IRewardTracker(stakedGlpTracker).unstakeForAccount(_sender, feeGlpTracker, _amount, _sender); IRewardTracker(feeGlpTracker).unstakeForAccount(_sender, glp, _amount, _sender); IRewardTracker(feeGlpTracker).stakeForAccount(_sender, _recipient, glp, _amount); IRewardTracker(stakedGlpTracker).stakeForAccount(_recipient, _recipient, feeGlpTracker, _amount); } }
// 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: MIT 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() 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() external view returns (uint256); function claim(address _receiver) external returns (uint256); function claimForAccount(address _account, address _receiver) external returns (uint256); function claimable(address _account) external view returns (uint256); function averageStakedAmounts(address _account) external view returns (uint256); function cumulativeRewards(address _account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IGlpManager { function usdg() external view returns (address); function cooldownDuration() external returns (uint256); function getAumInUsdg(bool maximise) external view returns (uint256); function lastAddedAt(address _account) external returns (uint256); function addLiquidity(address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) external returns (uint256); function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) external returns (uint256); function removeLiquidity(address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) external returns (uint256); function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) external returns (uint256); function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) external; function setCooldownDuration(uint256 _cooldownDuration) external; }
{ "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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_glp","type":"address"},{"internalType":"contract IGlpManager","name":"_glpManager","type":"address"},{"internalType":"address","name":"_stakedGlpTracker","type":"address"},{"internalType":"address","name":"_feeGlpTracker","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":"feeGlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glpManager","outputs":[{"internalType":"contract IGlpManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedGlpTracker","outputs":[{"internalType":"address","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
608060405234801561001057600080fd5b50604051610cb7380380610cb78339818101604052608081101561003357600080fd5b50805160208201516040830151606090930151600080546001600160a01b039485166001600160a01b0319918216179091556001805493851693821693909317909255600280549484169483169490941790935560038054929093169116179055610c14806100a36000396000f3fe608060405234801561001057600080fd5b50600436106100ba5760003560e01c806306fdde03146100bf578063095ea7b31461013c57806318160ddd1461017c57806323b872dd14610196578063313ce567146101cc57806355b6ed5c146101ea57806370a082311461021857806378a207ee1461023e57806395d89b4114610262578063a9059cbb1461026a578063af394d0014610296578063dd62ed3e1461029e578063e1c363b7146102cc578063fa6db1bc146102d4575b600080fd5b6100c76102dc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101015781810151838201526020016100e9565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101686004803603604081101561015257600080fd5b506001600160a01b038135169060200135610301565b604080519115158252519081900360200190f35b610184610317565b60408051918252519081900360200190f35b610168600480360360608110156101ac57600080fd5b506001600160a01b0381358116916020810135909116906040013561038d565b6101d46103fb565b6040805160ff9092168252519081900360200190f35b6101846004803603604081101561020057600080fd5b506001600160a01b0381358116916020013516610400565b6101846004803603602081101561022e57600080fd5b50356001600160a01b031661041d565b6102466104ab565b604080516001600160a01b039092168252519081900360200190f35b6100c76104ba565b6101686004803603604081101561028057600080fd5b506001600160a01b0381351690602001356104da565b6102466104e7565b610184600480360360408110156102b457600080fd5b506001600160a01b03813581169160200135166104f6565b610246610521565b610246610530565b6040518060400160405280600981526020016805374616b6564476c760bc1b81525081565b600061030e33848461053f565b50600192915050565b600254604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b5051905090565b6000806103d8836040518060600160405280602c8152602001610b88602c91396001600160a01b0388166000908152600460209081526040808320338452909152902054919061062b565b90506103e585338361053f565b6103f08585856106c2565b506001949350505050565b601281565b600460209081526000928352604080842090915290825290205481565b6003546000805460408051637aeceb1f60e11b81526001600160a01b038681166004830152928316602482015290519293919091169163f5d9d63e91604480820192602092909190829003018186803b15801561047957600080fd5b505afa15801561048d573d6000803e3d6000fd5b505050506040513d60208110156104a357600080fd5b505192915050565b6000546001600160a01b031681565b60405180604001604052806004815260200163073474c560e41b81525081565b600061030e3384846106c2565b6002546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b6003546001600160a01b031681565b6001546001600160a01b031681565b6001600160a01b0383166105845760405162461bcd60e51b8152600401808060200182810382526028815260200180610b136028913960400191505060405180910390fd5b6001600160a01b0382166105c95760405162461bcd60e51b8152600401808060200182810382526026815260200180610b3b6026913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156106ba5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561067f578181015183820152602001610667565b50505050905090810190601f1680156106ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0383166107075760405162461bcd60e51b8152600401808060200182810382526029815260200180610aea6029913960400191505060405180910390fd5b6001600160a01b03821661074c5760405162461bcd60e51b8152600401808060200182810382526027815260200180610b616027913960400191505060405180910390fd5b4261084d600160009054906101000a90046001600160a01b03166001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b505050506040513d60208110156107ca57600080fd5b505160015460408051638b770e1160e01b81526001600160a01b03898116600483015291519190921691638b770e119160248083019260209291908290030181600087803b15801561081b57600080fd5b505af115801561082f573d6000803e3d6000fd5b505050506040513d602081101561084557600080fd5b505190610a8a565b111561088a5760405162461bcd60e51b815260040180806020018281038252602b815260200180610bb4602b913960400191505060405180910390fd5b6002546003546040805163098bf59d60e01b81526001600160a01b038781166004830181905293811660248301526044820186905260648201939093529051919092169163098bf59d91608480830192600092919082900301818387803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b5050600354600080546040805163098bf59d60e01b81526001600160a01b038a8116600483018190529381166024830152604482018990526064820193909352905191909316945063098bf59d935060848084019382900301818387803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b50506003546000805460408051631e42d69b60e21b81526001600160a01b038a811660048301528981166024830152928316604482015260648101889052905191909316945063790b5a6c935060848084019382900301818387803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b505060025460035460408051631e42d69b60e21b81526001600160a01b03888116600483018190526024830152928316604482015260648101879052905191909216935063790b5a6c9250608480830192600092919082900301818387803b158015610a6d57600080fd5b505af1158015610a81573d6000803e3d6000fd5b50505050505050565b600082820183811015610ae2576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe5374616b6564476c703a207472616e736665722066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f766520746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655374616b6564476c703a20636f6f6c646f776e206475726174696f6e206e6f742079657420706173736564a264697066735822122047b4461b62a1bb11057586538b5571495faff061849edf7be86da7a011ada1c464736f6c634300060c00330000000000000000000000004277f8f2c384827b5273592ff7cebd9f2c1ac258000000000000000000000000321f653eed006ad1c29d174e17d96351bde226490000000000000000000000001addd80e6039594ee970e5872d247bf0414c89030000000000000000000000004e971a87900b931ff39d1aad67697f49835400b6
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ba5760003560e01c806306fdde03146100bf578063095ea7b31461013c57806318160ddd1461017c57806323b872dd14610196578063313ce567146101cc57806355b6ed5c146101ea57806370a082311461021857806378a207ee1461023e57806395d89b4114610262578063a9059cbb1461026a578063af394d0014610296578063dd62ed3e1461029e578063e1c363b7146102cc578063fa6db1bc146102d4575b600080fd5b6100c76102dc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101015781810151838201526020016100e9565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101686004803603604081101561015257600080fd5b506001600160a01b038135169060200135610301565b604080519115158252519081900360200190f35b610184610317565b60408051918252519081900360200190f35b610168600480360360608110156101ac57600080fd5b506001600160a01b0381358116916020810135909116906040013561038d565b6101d46103fb565b6040805160ff9092168252519081900360200190f35b6101846004803603604081101561020057600080fd5b506001600160a01b0381358116916020013516610400565b6101846004803603602081101561022e57600080fd5b50356001600160a01b031661041d565b6102466104ab565b604080516001600160a01b039092168252519081900360200190f35b6100c76104ba565b6101686004803603604081101561028057600080fd5b506001600160a01b0381351690602001356104da565b6102466104e7565b610184600480360360408110156102b457600080fd5b506001600160a01b03813581169160200135166104f6565b610246610521565b610246610530565b6040518060400160405280600981526020016805374616b6564476c760bc1b81525081565b600061030e33848461053f565b50600192915050565b600254604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b5051905090565b6000806103d8836040518060600160405280602c8152602001610b88602c91396001600160a01b0388166000908152600460209081526040808320338452909152902054919061062b565b90506103e585338361053f565b6103f08585856106c2565b506001949350505050565b601281565b600460209081526000928352604080842090915290825290205481565b6003546000805460408051637aeceb1f60e11b81526001600160a01b038681166004830152928316602482015290519293919091169163f5d9d63e91604480820192602092909190829003018186803b15801561047957600080fd5b505afa15801561048d573d6000803e3d6000fd5b505050506040513d60208110156104a357600080fd5b505192915050565b6000546001600160a01b031681565b60405180604001604052806004815260200163073474c560e41b81525081565b600061030e3384846106c2565b6002546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b6003546001600160a01b031681565b6001546001600160a01b031681565b6001600160a01b0383166105845760405162461bcd60e51b8152600401808060200182810382526028815260200180610b136028913960400191505060405180910390fd5b6001600160a01b0382166105c95760405162461bcd60e51b8152600401808060200182810382526026815260200180610b3b6026913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156106ba5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561067f578181015183820152602001610667565b50505050905090810190601f1680156106ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0383166107075760405162461bcd60e51b8152600401808060200182810382526029815260200180610aea6029913960400191505060405180910390fd5b6001600160a01b03821661074c5760405162461bcd60e51b8152600401808060200182810382526027815260200180610b616027913960400191505060405180910390fd5b4261084d600160009054906101000a90046001600160a01b03166001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b505050506040513d60208110156107ca57600080fd5b505160015460408051638b770e1160e01b81526001600160a01b03898116600483015291519190921691638b770e119160248083019260209291908290030181600087803b15801561081b57600080fd5b505af115801561082f573d6000803e3d6000fd5b505050506040513d602081101561084557600080fd5b505190610a8a565b111561088a5760405162461bcd60e51b815260040180806020018281038252602b815260200180610bb4602b913960400191505060405180910390fd5b6002546003546040805163098bf59d60e01b81526001600160a01b038781166004830181905293811660248301526044820186905260648201939093529051919092169163098bf59d91608480830192600092919082900301818387803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b5050600354600080546040805163098bf59d60e01b81526001600160a01b038a8116600483018190529381166024830152604482018990526064820193909352905191909316945063098bf59d935060848084019382900301818387803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b50506003546000805460408051631e42d69b60e21b81526001600160a01b038a811660048301528981166024830152928316604482015260648101889052905191909316945063790b5a6c935060848084019382900301818387803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b505060025460035460408051631e42d69b60e21b81526001600160a01b03888116600483018190526024830152928316604482015260648101879052905191909216935063790b5a6c9250608480830192600092919082900301818387803b158015610a6d57600080fd5b505af1158015610a81573d6000803e3d6000fd5b50505050505050565b600082820183811015610ae2576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe5374616b6564476c703a207472616e736665722066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f766520746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655374616b6564476c703a20636f6f6c646f776e206475726174696f6e206e6f742079657420706173736564a264697066735822122047b4461b62a1bb11057586538b5571495faff061849edf7be86da7a011ada1c464736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004277f8f2c384827b5273592ff7cebd9f2c1ac258000000000000000000000000321f653eed006ad1c29d174e17d96351bde226490000000000000000000000001addd80e6039594ee970e5872d247bf0414c89030000000000000000000000004e971a87900b931ff39d1aad67697f49835400b6
-----Decoded View---------------
Arg [0] : _glp (address): 0x4277f8F2c384827B5273592FF7CeBd9f2C1ac258
Arg [1] : _glpManager (address): 0x321F653eED006AD1C29D174e17d96351BDe22649
Arg [2] : _stakedGlpTracker (address): 0x1aDDD80E6039594eE970E5872D247bf0414C8903
Arg [3] : _feeGlpTracker (address): 0x4e971a87900b931fF39d1Aad67697F49835400b6
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004277f8f2c384827b5273592ff7cebd9f2c1ac258
Arg [1] : 000000000000000000000000321f653eed006ad1c29d174e17d96351bde22649
Arg [2] : 0000000000000000000000001addd80e6039594ee970e5872d247bf0414c8903
Arg [3] : 0000000000000000000000004e971a87900b931ff39d1aad67697f49835400b6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.