Contract 0x01AF26b74409d10e15b102621EDd29c326ba1c55

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0e74f5b0af05263ff0241024243926082b4bea07c31b3b1078a0b8114e944eb3Approve102878792022-04-21 22:26:4034 days 3 hrs ago0xba4a0c0a80d0f54c19490fb80f26750d5820f5e6 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000350702979 ETH
0x147a8a7397aec53d3e430894385dd8fc39b6f44a9e959b55378bf02a1a6cad03Transfer99908492022-04-17 21:40:1338 days 4 hrs ago0xbb00f2e53888e60974110d68f1060e5eaab34790 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000155774802 ETH
0xd21123dc3b4d17d931d4b81c3195bd72b243b5c6e5c03d68dda6bcb6cd828776Transfer99907892022-04-17 21:37:5138 days 4 hrs ago0xbb00f2e53888e60974110d68f1060e5eaab34790 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000185586194 ETH
0xb3bfcfdf30e88d601a9d73416af1d1dbea7bf19291cc173dc42fd79f561beffeApprove85665832022-03-25 10:12:0861 days 15 hrs ago0x1162f324d80ad5e37e23b3d363c89abfc6f31339 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000216896512 ETH
0xd7172ea89dec37ccd738a72d1095c164fd553f7770e69243eb8c36a0d4dd932eApprove85665122022-03-25 10:11:5461 days 15 hrs ago0x1162f324d80ad5e37e23b3d363c89abfc6f31339 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000216899321 ETH
0x743ca4b2db9a4256ae1b597e45ef0001a5fbf4ac8eb1226ce9301f4467363019Transfer85047002022-03-24 15:39:1262 days 10 hrs ago0x5928e093728b53a5ec97c6f06cdcebc23e896dc0 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000193773928 ETH
0xb2fa2bc8f6444df7cd72caf5a0d3ea9c21c9ae04810077de7365ffa7ac3383b8Transfer85043882022-03-24 15:36:2662 days 10 hrs ago0x5928e093728b53a5ec97c6f06cdcebc23e896dc0 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.0001932534 ETH
0xba75d50d2063d18d24528cb4f5a82034e407b670029a61f37e6fdbe1a756527fTransfer85035472022-03-24 15:26:4862 days 10 hrs ago0x5928e093728b53a5ec97c6f06cdcebc23e896dc0 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000187363797 ETH
0x1f5bcfea2c514592ceff36684626dc6830b7e158f09a4f328ea9101488969cf4Approve46880292022-01-16 6:17:46129 days 19 hrs ago0x63a81a3c1e970246974d3a3d3a060fe0d599545d IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001218482673 ETH
0x6ba34d45122df5edd9d968c2255d1532b1fcbea13f0957f2b70e519a2121066aApprove42314012022-01-01 11:52:24144 days 14 hrs ago0x5fefdb8e576bda70f63e8e8edaac7426c67c6b5a IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000796182284 ETH
0x5bf6450043f60f3c2714eea095077b8260771a6c79515c762ba117c33fa03898Approve41903732021-12-30 21:22:35146 days 4 hrs ago0x2dfddc72b4a0b6027282539ed22e6239268c1cfb IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000971389733 ETH
0x5143e340dd8492bc2f7c8c148a0bb0d6418fa23b8c6580a521b77bc9ee050c71Approve37773812021-12-12 8:00:09164 days 18 hrs ago0x3b77a86a2becdf67a246afcc30f60b7319ce2a1f IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000646054359 ETH
0x875b85109cf5ce442b43b3ded8be8658eb04078f93d6098ec9d4563cf8fdc6a7Approve34968222021-12-01 20:47:42175 days 5 hrs ago0x7da64ba376697a73380289f60dab556e3cc1d632 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001146923702 ETH
0xbe86fc870bc38cd83ff8d544cfa685e4cf9fbcf69aa7a6a44bfd36e83dde71e0Approve34417422021-11-29 19:54:19177 days 6 hrs ago0x464fd6b8e4dde4352117940a07d7cc93269a77bb IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001042356657 ETH
0x33457ee102e17f5e0031399b9db851b486dd45e56a45d319cf3be09e60472252Approve32609712021-11-23 5:02:57183 days 20 hrs ago0x167539702b5501aadd9b0b85e53532fd57cc71a9 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001119024047 ETH
0xfa25b7f5c3802618c53b0956d80bb71c03fd08aa0c9caad740bfb36d36b36c3cApprove31393392021-11-19 4:28:54187 days 21 hrs ago0x833ffdabf9953fa33873987440006a4ea8c0d19e IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001282267003 ETH
0x42eea1383e2dd1911162d3ee9bfa78e01ab2b0c050ff6cb404966d1405b34d41Approve28463722021-11-05 10:48:44201 days 15 hrs ago0x0d18a2085992be0bbcbe912d36d0125e4d1101bd IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.001241635231 ETH
0x808ccc55227a489b6e2e4a2d08bd6e79afd1fc39fa4424820e5555b2de0d4c14Approve25803302021-10-26 19:50:34211 days 6 hrs ago0x78cf7ef0c16a861a8e70b63470f225cd6074648f IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000995823637 ETH
0x4dc5d9b6cc8506a1c9bfcf5fd8f95296f80e5b208c57548d0a69ef264adaccc4Approve24902922021-10-24 7:29:07213 days 18 hrs ago0xa910e547525c38ecee641cfc6a50fa9df0b029d4 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000621565859 ETH
0x14bbfea30dde9506c8188977def397cad47eeac270e900b9b6fa8576dc9bcd5bApprove24727282021-10-23 13:39:05214 days 12 hrs ago0x2afa70ab8b5f36753d2f3e26576dff0d91254a44 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000660523777 ETH
0xbf96ab0d0ac9ba9a437b1d91ab516953e0fad3aa58cd6ec1f09d2f4a961eeb1aApprove24588232021-10-22 21:34:55215 days 4 hrs ago0x9a676356ba8b876c986b3537eee395b488f05a4d IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000727753357 ETH
0x5840ae3c49d01ba3f639e62019faa28eec04fe44dc9cc58d9ddffa73489a5ad3Approve24470182021-10-22 11:10:39215 days 14 hrs ago0x2389b28518c89c3b65989b6959a16a3940b03446 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000712100909 ETH
0x9d531ee57d023531e76d1fb76ba6cff838dcf28049a0b1eed2fb4ebb43d58cf5Approve23865532021-10-20 4:51:42217 days 21 hrs ago0xd53c9fedcc95187307908d659846a443cb1e7350 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000687416512 ETH
0x09a51e14faf83afe16d154a9de82e3c50cb02a5e8127669bc887c2efe8c2cfbfApprove23769162021-10-19 20:11:14218 days 5 hrs ago0x6d84264a7bd2cffa4a117ba2350403b3a9866949 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000695571826 ETH
0xc08c31026cb3d9c507209ed79127ad43cca2144c98526687ed1d29a449a46366Approve23755012021-10-19 19:19:09218 days 6 hrs ago0x9534272cc683de6eac0ea0c2c7c092159df4ebf0 IN  0x01af26b74409d10e15b102621edd29c326ba1c550 ETH0.000695582806 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0xf623db550a01b3c256ec285edc2552ff016e2e4be63b3c13e5baca58f6c1a97c122506492022-05-16 18:53:239 days 7 hrs ago 0x730725b0c9c62893e1237ef9200f9a40f9237c2d 0x01af26b74409d10e15b102621edd29c326ba1c550 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0x83ea41a6f1f64da665757458e860fda6b4d9e0390b12267fbeb7b959eb93e1ff122506272022-05-16 18:53:239 days 7 hrs ago 0x7af730e7c7498553bc9c0924e4634bd979ae7757 0x01af26b74409d10e15b102621edd29c326ba1c550 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x321f653eed006ad1c29d174e17d96351bde226490 ETH
0xea14dd5dffb915d019bf386763ee075e92f956f718d715d7009590773a6a946b122505872022-05-16 18:52:179 days 7 hrs ago 0xe627d308fcabb7c88ae00b769ec0a55cf84d83e7 0x01af26b74409d10e15b102621edd29c326ba1c550 ETH
0x3f1ea539c3283e9eb8b0ecb7382897999a4e38d4ee32b30138d35ccc56184274122271292022-05-16 13:58:029 days 12 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0x3f1ea539c3283e9eb8b0ecb7382897999a4e38d4ee32b30138d35ccc56184274122271292022-05-16 13:58:029 days 12 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0x3f1ea539c3283e9eb8b0ecb7382897999a4e38d4ee32b30138d35ccc56184274122271292022-05-16 13:58:029 days 12 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0x3f1ea539c3283e9eb8b0ecb7382897999a4e38d4ee32b30138d35ccc56184274122271292022-05-16 13:58:029 days 12 hrs ago 0x01af26b74409d10e15b102621edd29c326ba1c55 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

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)

File 1 of 4 : StakedGlp.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "../libraries/math/SafeMath.sol";
import "../core/interfaces/IGlpManager.sol";

import "./interfaces/IRewardTracker.sol";

contract StakedGlp {
    using SafeMath for uint256;

    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 _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);
    }
}

File 2 of 4 : 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 3 of 4 : IGlpManager.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IGlpManager {
    function cooldownDuration() external 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);
}

File 4 of 4 : IRewardTracker.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"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":[],"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":"stakedGlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"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"}]

608060405234801561001057600080fd5b50604051610a61380380610a618339818101604052608081101561003357600080fd5b50805160208201516040830151606090930151600080546001600160a01b039485166001600160a01b03199182161790915560018054938516938216939093179092556002805494841694831694909417909355600380549290931691161790556109be806100a36000396000f3fe608060405234801561001057600080fd5b50600436106100835760003560e01c8063095ea7b31461008857806323b872dd146100c857806355b6ed5c146100fe57806378a207ee1461013e578063a9059cbb14610162578063af394d001461018e578063dd62ed3e14610196578063e1c363b7146101c4578063fa6db1bc146101cc575b600080fd5b6100b46004803603604081101561009e57600080fd5b506001600160a01b0381351690602001356101d4565b604080519115158252519081900360200190f35b6100b4600480360360608110156100de57600080fd5b506001600160a01b038135811691602081013590911690604001356101ea565b61012c6004803603604081101561011457600080fd5b506001600160a01b0381358116916020013516610258565b60408051918252519081900360200190f35b610146610275565b604080516001600160a01b039092168252519081900360200190f35b6100b46004803603604081101561017857600080fd5b506001600160a01b038135169060200135610284565b610146610291565b61012c600480360360408110156101ac57600080fd5b506001600160a01b03813581169160200135166102a0565b6101466102cb565b6101466102da565b60006101e13384846102e9565b50600192915050565b600080610235836040518060600160405280602c8152602001610932602c91396001600160a01b038816600090815260046020908152604080832033845290915290205491906103d5565b90506102428533836102e9565b61024d85858561046c565b506001949350505050565b600460209081526000928352604080842090915290825290205481565b6000546001600160a01b031681565b60006101e133848461046c565b6002546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b6003546001600160a01b031681565b6001546001600160a01b031681565b6001600160a01b03831661032e5760405162461bcd60e51b81526004018080602001828103825260288152602001806108bd6028913960400191505060405180910390fd5b6001600160a01b0382166103735760405162461bcd60e51b81526004018080602001828103825260268152602001806108e56026913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156104645760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610429578181015183820152602001610411565b50505050905090810190601f1680156104565780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0383166104b15760405162461bcd60e51b81526004018080602001828103825260298152602001806108946029913960400191505060405180910390fd5b6001600160a01b0382166104f65760405162461bcd60e51b815260040180806020018281038252602781526020018061090b6027913960400191505060405180910390fd5b426105f7600160009054906101000a90046001600160a01b03166001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561054a57600080fd5b505af115801561055e573d6000803e3d6000fd5b505050506040513d602081101561057457600080fd5b505160015460408051638b770e1160e01b81526001600160a01b03898116600483015291519190921691638b770e119160248083019260209291908290030181600087803b1580156105c557600080fd5b505af11580156105d9573d6000803e3d6000fd5b505050506040513d60208110156105ef57600080fd5b505190610834565b11156106345760405162461bcd60e51b815260040180806020018281038252602b81526020018061095e602b913960400191505060405180910390fd5b6002546003546040805163098bf59d60e01b81526001600160a01b038781166004830181905293811660248301526044820186905260648201939093529051919092169163098bf59d91608480830192600092919082900301818387803b15801561069e57600080fd5b505af11580156106b2573d6000803e3d6000fd5b5050600354600080546040805163098bf59d60e01b81526001600160a01b038a8116600483018190529381166024830152604482018990526064820193909352905191909316945063098bf59d935060848084019382900301818387803b15801561071c57600080fd5b505af1158015610730573d6000803e3d6000fd5b50506003546000805460408051631e42d69b60e21b81526001600160a01b038a811660048301528981166024830152928316604482015260648101889052905191909316945063790b5a6c935060848084019382900301818387803b15801561079857600080fd5b505af11580156107ac573d6000803e3d6000fd5b505060025460035460408051631e42d69b60e21b81526001600160a01b03888116600483018190526024830152928316604482015260648101879052905191909216935063790b5a6c9250608480830192600092919082900301818387803b15801561081757600080fd5b505af115801561082b573d6000803e3d6000fd5b50505050505050565b60008282018381101561088c576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe5374616b6564476c703a207472616e736665722066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b6564476c703a20617070726f766520746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220746f20746865207a65726f20616464726573735374616b6564476c703a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655374616b6564476c703a20636f6f6c646f776e206475726174696f6e206e6f742079657420706173736564a26469706673582212207252e72ecd672144493b2aa6f50006d105d631f31e01a3b47c9b6134b0a44d0a64736f6c634300060c00330000000000000000000000004277f8f2c384827b5273592ff7cebd9f2c1ac258000000000000000000000000321f653eed006ad1c29d174e17d96351bde226490000000000000000000000001addd80e6039594ee970e5872d247bf0414c89030000000000000000000000004e971a87900b931ff39d1aad67697f49835400b6

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


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.