Contract 0x198A4a8ECe13dfa29F5b37F5A5A3683a02185757 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x012815a56f31149c48ec117c9e9c769d4826f776bdaf7e266ff63af821ed33310x60c0604034242562021-08-26 18:46:57103 days 21 hrs ago0x78a288a0f8256a79154a1729a7c92c5ec01d4a35 IN  Contract Creation0 AVAX0.3625758225
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BaseIncentivesController

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2021-11-10
*/

// File: contracts/interfaces/IAaveIncentivesController.sol


pragma solidity 0.7.5;

pragma experimental ABIEncoderV2;

// File: contracts/interfaces/IAaveDistributionManager.sol


pragma solidity 0.7.5;



interface IAaveDistributionManager {
  
  event AssetConfigUpdated(address indexed asset, uint256 emission);
  event AssetIndexUpdated(address indexed asset, uint256 index);
  event UserIndexUpdated(address indexed user, address indexed asset, uint256 index);
  event DistributionEndUpdated(uint256 newDistributionEnd);

  /**
  * @dev Sets the end date for the distribution
  * @param distributionEnd The end date timestamp
  **/
  function setDistributionEnd(uint256 distributionEnd) external;

  /**
  * @dev Gets the end date for the distribution
  * @return The end of the distribution
  **/
  function getDistributionEnd() external view returns (uint256);

  /**
  * @dev for backwards compatibility with the previous DistributionManager used
  * @return The end of the distribution
  **/
  function DISTRIBUTION_END() external view returns(uint256);

   /**
   * @dev Returns the data of an user on a distribution
   * @param user Address of the user
   * @param asset The address of the reference asset of the distribution
   * @return The new index
   **/
   function getUserAssetData(address user, address asset) external view returns (uint256);

   /**
   * @dev Returns the configuration of the distribution for a certain asset
   * @param asset The address of the reference asset of the distribution
   * @return The asset index, the emission per second and the last updated timestamp
   **/
   function getAssetData(address asset) external view returns (uint256, uint256, uint256);
}


interface IAaveIncentivesController is IAaveDistributionManager {
  
  event RewardsAccrued(address indexed user, uint256 amount);
  
  event RewardsClaimed(
    address indexed user,
    address indexed to,
    address indexed claimer,
    uint256 amount
  );

  event ClaimerSet(address indexed user, address indexed claimer);

  /**
   * @dev Whitelists an address to claim the rewards on behalf of another address
   * @param user The address of the user
   * @param claimer The address of the claimer
   */
  function setClaimer(address user, address claimer) external;

  /**
   * @dev Returns the whitelisted claimer for a certain address (0x0 if not set)
   * @param user The address of the user
   * @return The claimer address
   */
  function getClaimer(address user) external view returns (address);

  /**
   * @dev Configure assets for a certain rewards emission
   * @param assets The assets to incentivize
   * @param emissionsPerSecond The emission for each asset
   */
  function configureAssets(address[] calldata assets, uint256[] calldata emissionsPerSecond)
    external;


  /**
   * @dev Called by the corresponding asset on any update that affects the rewards distribution
   * @param asset The address of the user
   * @param userBalance The balance of the user of the asset in the lending pool
   * @param totalSupply The total supply of the asset in the lending pool
   **/
  function handleAction(
    address asset,
    uint256 userBalance,
    uint256 totalSupply
  ) external;

  /**
   * @dev Returns the total of rewards of an user, already accrued + not yet accrued
   * @param user The address of the user
   * @return The rewards
   **/
  function getRewardsBalance(address[] calldata assets, address user)
    external
    view
    returns (uint256);

  /**
   * @dev Claims reward for an user, on all the assets of the lending pool, accumulating the pending rewards
   * @param amount Amount of rewards to claim
   * @param to Address that will be receiving the rewards
   * @return Rewards claimed
   **/
  function claimRewards(
    address[] calldata assets,
    uint256 amount,
    address to
  ) external returns (uint256);

  /**
   * @dev Claims reward for an user on behalf, on all the assets of the lending pool, accumulating the pending rewards. The caller must
   * be whitelisted via "allowClaimOnBehalf" function by the RewardsAdmin role manager
   * @param amount Amount of rewards to claim
   * @param user Address to check and claim rewards
   * @param to Address that will be receiving the rewards
   * @return Rewards claimed
   **/
  function claimRewardsOnBehalf(
    address[] calldata assets,
    uint256 amount,
    address user,
    address to
  ) external returns (uint256);

  /**
   * @dev returns the unclaimed rewards of the user
   * @param user the address of the user
   * @return the unclaimed user rewards
   */
  function getUserUnclaimedRewards(address user) external view returns (uint256);

  /**
  * @dev for backward compatibility with previous implementation of the Incentives controller
  */
  function REWARD_TOKEN() external view returns (address);
}

// File: contracts/interfaces/IScaledBalanceToken.sol


pragma solidity 0.7.5;

interface IScaledBalanceToken {
  /**
   * @dev Returns the scaled balance of the user. The scaled balance is the sum of all the
   * updated stored balance divided by the reserve's liquidity index at the moment of the update
   * @param user The user whose balance is calculated
   * @return The scaled balance of the user
   **/
  function scaledBalanceOf(address user) external view returns (uint256);

  /**
   * @dev Returns the scaled balance of the user and the scaled total supply.
   * @param user The address of the user
   * @return The scaled balance of the user
   * @return The scaled balance and the scaled total supply
   **/
  function getScaledUserBalanceAndSupply(address user) external view returns (uint256, uint256);

  /**
   * @dev Returns the scaled total supply of the token. Represents sum(debt/index)
   * @return The scaled total supply
   **/
  function scaledTotalSupply() external view returns (uint256);
}

// File: contracts/incentives/DistributionManager.sol


pragma solidity 0.7.5;





/**
 * @title DistributionManager
 * @notice Accounting contract to manage multiple staking distributions
 * @author Aave
 **/
contract DistributionManager is IAaveDistributionManager {
  using SafeMath for uint256;

  struct AssetData {
    uint104 emissionPerSecond;
    uint104 index;
    uint40 lastUpdateTimestamp;
    mapping(address => uint256) users;
  }

  address public immutable EMISSION_MANAGER;

  uint8 public constant PRECISION = 18;

  mapping(address => AssetData) public assets;

  uint256 internal _distributionEnd;

  modifier onlyEmissionManager() {
    require(msg.sender == EMISSION_MANAGER, 'ONLY_EMISSION_MANAGER');
    _;
  }

  constructor(address emissionManager) {
    EMISSION_MANAGER = emissionManager;
  }

  /// @inheritdoc IAaveDistributionManager
  function setDistributionEnd(uint256 distributionEnd) external override onlyEmissionManager {
    _distributionEnd = distributionEnd;
    emit DistributionEndUpdated(distributionEnd);
  }

  /// @inheritdoc IAaveDistributionManager
  function getDistributionEnd() external view override returns (uint256) {
    return _distributionEnd;
  }

  /// @inheritdoc IAaveDistributionManager
  function DISTRIBUTION_END() external view override returns (uint256) {
    return _distributionEnd;
  }

  /// @inheritdoc IAaveDistributionManager
  function getUserAssetData(address user, address asset) public view override returns (uint256) {
    return assets[asset].users[user];
  }

  /// @inheritdoc IAaveDistributionManager
  function getAssetData(address asset) public view override returns (uint256, uint256, uint256) {
    return (assets[asset].index, assets[asset].emissionPerSecond, assets[asset].lastUpdateTimestamp);
  }

  /**
   * @dev Configure the assets for a specific emission
   * @param assetsConfigInput The array of each asset configuration
   **/
  function _configureAssets(DistributionTypes.AssetConfigInput[] memory assetsConfigInput)
    internal
  {
    for (uint256 i = 0; i < assetsConfigInput.length; i++) {
      AssetData storage assetConfig = assets[assetsConfigInput[i].underlyingAsset];

      _updateAssetStateInternal(
        assetsConfigInput[i].underlyingAsset,
        assetConfig,
        assetsConfigInput[i].totalStaked
      );

      assetConfig.emissionPerSecond = assetsConfigInput[i].emissionPerSecond;

      emit AssetConfigUpdated(
        assetsConfigInput[i].underlyingAsset,
        assetsConfigInput[i].emissionPerSecond
      );
    }
  }

  /**
   * @dev Updates the state of one distribution, mainly rewards index and timestamp
   * @param asset The address of the asset being updated
   * @param assetConfig Storage pointer to the distribution's config
   * @param totalStaked Current total of staked assets for this distribution
   * @return The new distribution index
   **/
  function _updateAssetStateInternal(
    address asset,
    AssetData storage assetConfig,
    uint256 totalStaked
  ) internal returns (uint256) {
    uint256 oldIndex = assetConfig.index;
    uint256 emissionPerSecond = assetConfig.emissionPerSecond;
    uint128 lastUpdateTimestamp = assetConfig.lastUpdateTimestamp;

    if (block.timestamp == lastUpdateTimestamp) {
      return oldIndex;
    }

    uint256 newIndex =
      _getAssetIndex(oldIndex, emissionPerSecond, lastUpdateTimestamp, totalStaked);

    if (newIndex != oldIndex) {
      require(uint104(newIndex) == newIndex, 'Index overflow');
      //optimization: storing one after another saves one SSTORE
      assetConfig.index = uint104(newIndex);
      assetConfig.lastUpdateTimestamp = uint40(block.timestamp);
      emit AssetIndexUpdated(asset, newIndex);
    } else {
      assetConfig.lastUpdateTimestamp = uint40(block.timestamp);
    }

    return newIndex;
  }

  /**
   * @dev Updates the state of an user in a distribution
   * @param user The user's address
   * @param asset The address of the reference asset of the distribution
   * @param stakedByUser Amount of tokens staked by the user in the distribution at the moment
   * @param totalStaked Total tokens staked in the distribution
   * @return The accrued rewards for the user until the moment
   **/
  function _updateUserAssetInternal(
    address user,
    address asset,
    uint256 stakedByUser,
    uint256 totalStaked
  ) internal returns (uint256) {
    AssetData storage assetData = assets[asset];
    uint256 userIndex = assetData.users[user];
    uint256 accruedRewards = 0;

    uint256 newIndex = _updateAssetStateInternal(asset, assetData, totalStaked);

    if (userIndex != newIndex) {
      if (stakedByUser != 0) {
        accruedRewards = _getRewards(stakedByUser, newIndex, userIndex);
      }

      assetData.users[user] = newIndex;
      emit UserIndexUpdated(user, asset, newIndex);
    }

    return accruedRewards;
  }

  /**
   * @dev Used by "frontend" stake contracts to update the data of an user when claiming rewards from there
   * @param user The address of the user
   * @param stakes List of structs of the user data related with his stake
   * @return The accrued rewards for the user until the moment
   **/
  function _claimRewards(address user, DistributionTypes.UserStakeInput[] memory stakes)
    internal
    returns (uint256)
  {
    uint256 accruedRewards = 0;

    for (uint256 i = 0; i < stakes.length; i++) {
      accruedRewards = accruedRewards.add(
        _updateUserAssetInternal(
          user,
          stakes[i].underlyingAsset,
          stakes[i].stakedByUser,
          stakes[i].totalStaked
        )
      );
    }

    return accruedRewards;
  }

  /**
   * @dev Return the accrued rewards for an user over a list of distribution
   * @param user The address of the user
   * @param stakes List of structs of the user data related with his stake
   * @return The accrued rewards for the user until the moment
   **/
  function _getUnclaimedRewards(address user, DistributionTypes.UserStakeInput[] memory stakes)
    internal
    view
    returns (uint256)
  {
    uint256 accruedRewards = 0;

    for (uint256 i = 0; i < stakes.length; i++) {
      AssetData storage assetConfig = assets[stakes[i].underlyingAsset];
      uint256 assetIndex =
        _getAssetIndex(
          assetConfig.index,
          assetConfig.emissionPerSecond,
          assetConfig.lastUpdateTimestamp,
          stakes[i].totalStaked
        );

      accruedRewards = accruedRewards.add(
        _getRewards(stakes[i].stakedByUser, assetIndex, assetConfig.users[user])
      );
    }
    return accruedRewards;
  }

  /**
   * @dev Internal function for the calculation of user's rewards on a distribution
   * @param principalUserBalance Amount staked by the user on a distribution
   * @param reserveIndex Current index of the distribution
   * @param userIndex Index stored for the user, representation his staking moment
   * @return The rewards
   **/
  function _getRewards(
    uint256 principalUserBalance,
    uint256 reserveIndex,
    uint256 userIndex
  ) internal pure returns (uint256) {
    return principalUserBalance.mul(reserveIndex.sub(userIndex)) / 10**uint256(PRECISION);
  }

  /**
   * @dev Calculates the next value of an specific distribution index, with validations
   * @param currentIndex Current index of the distribution
   * @param emissionPerSecond Representing the total rewards distributed per second per asset unit, on the distribution
   * @param lastUpdateTimestamp Last moment this distribution was updated
   * @param totalBalance of tokens considered for the distribution
   * @return The new index.
   **/
  function _getAssetIndex(
    uint256 currentIndex,
    uint256 emissionPerSecond,
    uint128 lastUpdateTimestamp,
    uint256 totalBalance
  ) internal view returns (uint256) {
    uint256 distributionEnd = _distributionEnd;
    if (
      emissionPerSecond == 0 ||
      totalBalance == 0 ||
      lastUpdateTimestamp == block.timestamp ||
      lastUpdateTimestamp >= distributionEnd
    ) {
      return currentIndex;
    }

    uint256 currentTimestamp =
      block.timestamp > distributionEnd ? distributionEnd : block.timestamp;
    uint256 timeDelta = currentTimestamp.sub(lastUpdateTimestamp);
    return
      emissionPerSecond.mul(timeDelta).mul(10**uint256(PRECISION)).div(totalBalance).add(
        currentIndex
      );
  }
}

// File: @aave/aave-stake/contracts/utils/VersionedInitializable.sol


pragma solidity 0.7.5;

/**
 * @title VersionedInitializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 *
 * @author Aave, inspired by the OpenZeppelin Initializable contract
 */
abstract contract VersionedInitializable {
  /**
   * @dev Indicates that the contract has been initialized.
   */
  uint256 internal lastInitializedRevision = 0;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    uint256 revision = getRevision();
    require(revision > lastInitializedRevision, 'Contract instance has already been initialized');

    lastInitializedRevision = revision;

    _;
  }

  /// @dev returns the revision number of the contract.
  /// Needs to be defined in the inherited class as a constant.
  function getRevision() internal pure virtual returns (uint256);

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

// File: contracts/lib/DistributionTypes.sol


pragma solidity 0.7.5;


library DistributionTypes {
  struct AssetConfigInput {
    uint104 emissionPerSecond;
    uint256 totalStaked;
    address underlyingAsset;
  }

  struct UserStakeInput {
    address underlyingAsset;
    uint256 stakedByUser;
    uint256 totalStaked;
  }
}

// File: contracts/lib/SafeMath.sol


pragma solidity ^0.7.5;

/// @title Optimized overflow and underflow safe math operations
/// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost
/// inspired by uniswap V3
library SafeMath {
    /// @notice Returns x + y, reverts if sum overflows uint256
    /// @param x The augend
    /// @param y The addend
    /// @return z The sum of x and y
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x);
    }

    /// @notice Returns x - y, reverts if underflows
    /// @param x The minuend
    /// @param y The subtrahend
    /// @return z The difference of x and y
    function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x - y) <= x);
    }

    /// @notice Returns x * y, reverts if overflows
    /// @param x The multiplicand
    /// @param y The multiplier
    /// @return z The product of x and y
    function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require(x == 0 || (z = x * y) / x == y);
    }

    function div(uint256 x, uint256 y) internal pure returns(uint256) {
        // no need to check for division by zero - solidity already reverts
        return x / y;
    }
}
// File: @aave/aave-stake/contracts/lib/Address.sol


pragma solidity 0.7.5;

/**
 * @dev Collection of functions related to the address type
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
library Address {
  /**
   * @dev Returns true if `account` is a contract.
   *
   * [IMPORTANT]
   * ====
   * It is unsafe to assume that an address for which this function returns
   * false is an externally-owned account (EOA) and not a contract.
   *
   * Among others, `isContract` will return false for the following
   * types of addresses:
   *
   *  - an externally-owned account
   *  - a contract in construction
   *  - an address where a contract will be created
   *  - an address where a contract lived, but was destroyed
   * ====
   */
  function isContract(address account) internal view returns (bool) {
    // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
    // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
    // for accounts without code, i.e. `keccak256('')`
    bytes32 codehash;
    bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      codehash := extcodehash(account)
    }
    return (codehash != accountHash && codehash != 0x0);
  }

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

    // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
    (bool success, ) = recipient.call{value: amount}('');
    require(success, 'Address: unable to send value, recipient may have reverted');
  }
}



// File: @aave/aave-stake/contracts/interfaces/IERC20.sol


pragma solidity 0.7.5;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
interface IERC20 {
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// File: @aave/aave-stake/contracts/lib/SafeERC20.sol



pragma solidity 0.7.5;


/**
 * @title SafeERC20
 * @dev From https://github.com/OpenZeppelin/openzeppelin-contracts
 * Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
  using SafeMath for uint256;
  using Address for address;

  function safeTransfer(
    IERC20 token,
    address to,
    uint256 value
  ) internal {
    callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
  }

  function safeTransferFrom(
    IERC20 token,
    address from,
    address to,
    uint256 value
  ) internal {
    callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
  }

  function safeApprove(
    IERC20 token,
    address spender,
    uint256 value
  ) internal {
    require(
      (value == 0) || (token.allowance(address(this), spender) == 0),
      'SafeERC20: approve from non-zero to non-zero allowance'
    );
    callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
  }

  function callOptionalReturn(IERC20 token, bytes memory data) private {
    require(address(token).isContract(), 'SafeERC20: call to non-contract');

    // solhint-disable-next-line avoid-low-level-calls
    (bool success, bytes memory returndata) = address(token).call(data);
    require(success, 'SafeERC20: low-level call failed');

    if (returndata.length > 0) {
      // Return data is optional
      // solhint-disable-next-line max-line-length
      require(abi.decode(returndata, (bool)), 'SafeERC20: ERC20 operation did not succeed');
    }
  }
}

// File: contracts/incentives/BaseIncentivesController.sol


pragma solidity 0.7.5;



/**
 * @title BaseIncentivesController
 * @notice Distributor contract for ERC20 rewards to the Aave protocol participants
 * @author Aave
 **/
contract BaseIncentivesController is
  IAaveIncentivesController,
  VersionedInitializable,
  DistributionManager
{
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  uint256 public constant REVISION = 1;

  address public immutable override REWARD_TOKEN;
  address internal _rewardsVault;

  mapping(address => uint256) internal _usersUnclaimedRewards;

  // this mapping allows whitelisted addresses to claim on behalf of others
  // useful for contracts that hold tokens to be rewarded but don't have any native logic to claim Liquidity Mining rewards
  mapping(address => address) internal _authorizedClaimers;

  event RewardsVaultUpdated(address indexed vault);
  
  modifier onlyAuthorizedClaimers(address claimer, address user) {
    require(_authorizedClaimers[user] == claimer, 'CLAIMER_UNAUTHORIZED');
    _;
  }

  constructor(IERC20 rewardToken, address emissionManager)
    DistributionManager(emissionManager)
  {
    REWARD_TOKEN = address(rewardToken);
  }

  /**
   * @dev Initialize AaveIncentivesController
   * @param rewardsVault rewards vault to pull funds
   **/
  function initialize(address rewardsVault) external initializer {
    _rewardsVault = rewardsVault;
  }

  /// @inheritdoc IAaveIncentivesController
  function configureAssets(address[] calldata assets, uint256[] calldata emissionsPerSecond)
    external
    override
    onlyEmissionManager
  {
    require(assets.length == emissionsPerSecond.length, 'INVALID_CONFIGURATION');

    DistributionTypes.AssetConfigInput[] memory assetsConfig =
      new DistributionTypes.AssetConfigInput[](assets.length);

    for (uint256 i = 0; i < assets.length; i++) {
      assetsConfig[i].underlyingAsset = assets[i];
      assetsConfig[i].emissionPerSecond = uint104(emissionsPerSecond[i]);

      require(assetsConfig[i].emissionPerSecond == emissionsPerSecond[i], 'INVALID_CONFIGURATION');

      assetsConfig[i].totalStaked = IScaledBalanceToken(assets[i]).scaledTotalSupply();
    }
    _configureAssets(assetsConfig);
  }

  /// @inheritdoc IAaveIncentivesController
  function handleAction(
    address user,
    uint256 totalSupply,
    uint256 userBalance
  ) external override {
    uint256 accruedRewards = _updateUserAssetInternal(user, msg.sender, userBalance, totalSupply);
    if (accruedRewards != 0) {
      _usersUnclaimedRewards[user] = _usersUnclaimedRewards[user].add(accruedRewards);
      emit RewardsAccrued(user, accruedRewards);
    }
  }

  /// @inheritdoc IAaveIncentivesController
  function getRewardsBalance(address[] calldata assets, address user)
    external
    view
    override
    returns (uint256)
  {
    uint256 unclaimedRewards = _usersUnclaimedRewards[user];

    DistributionTypes.UserStakeInput[] memory userState =
      new DistributionTypes.UserStakeInput[](assets.length);
    for (uint256 i = 0; i < assets.length; i++) {
      userState[i].underlyingAsset = assets[i];
      (userState[i].stakedByUser, userState[i].totalStaked) = IScaledBalanceToken(assets[i])
        .getScaledUserBalanceAndSupply(user);
    }
    unclaimedRewards = unclaimedRewards.add(_getUnclaimedRewards(user, userState));
    return unclaimedRewards;
  }

  /// @inheritdoc IAaveIncentivesController
  function claimRewards(
    address[] calldata assets,
    uint256 amount,
    address to
  ) external override returns (uint256) {
    require(to != address(0), 'INVALID_TO_ADDRESS');
    return _claimRewards(assets, amount, msg.sender, msg.sender, to);
  }

  /// @inheritdoc IAaveIncentivesController
  function claimRewardsOnBehalf(
    address[] calldata assets,
    uint256 amount,
    address user,
    address to
  ) external override onlyAuthorizedClaimers(msg.sender, user) returns (uint256) {
    require(user != address(0), 'INVALID_USER_ADDRESS');
    require(to != address(0), 'INVALID_TO_ADDRESS');
    return _claimRewards(assets, amount, msg.sender, user, to);
  }

  /// @inheritdoc IAaveIncentivesController
  function setClaimer(address user, address caller) external override onlyEmissionManager {
    _authorizedClaimers[user] = caller;
    emit ClaimerSet(user, caller);
  }

  /// @inheritdoc IAaveIncentivesController
  function getClaimer(address user) external view override returns (address) {
    return _authorizedClaimers[user];
  }

  /// @inheritdoc IAaveIncentivesController
  function getUserUnclaimedRewards(address _user) external view override returns (uint256) {
    return _usersUnclaimedRewards[_user];
  }

  /**
   * @dev returns the revision of the implementation contract
   */
  function getRevision() internal pure override returns (uint256) {
    return REVISION;
  }

  /**
   * @dev returns the current rewards vault contract
   * @return address
   */
  function getRewardsVault() external view returns (address) {
    return _rewardsVault;
  }

  /**
   * @dev update the rewards vault address, only allowed by the Rewards admin
   * @param rewardsVault The address of the rewards vault
   **/
  function setRewardsVault(address rewardsVault) external onlyEmissionManager {
    _rewardsVault = rewardsVault;
    emit RewardsVaultUpdated(rewardsVault);
  }

  /**
   * @dev Claims reward for an user on behalf, on all the assets of the lending pool, accumulating the pending rewards.
   * @param amount Amount of rewards to claim
   * @param user Address to check and claim rewards
   * @param to Address that will be receiving the rewards
   * @return Rewards claimed
   **/
  function _claimRewards(
    address[] calldata assets,
    uint256 amount,
    address claimer,
    address user,
    address to
  ) internal returns (uint256) {
    if (amount == 0) {
      return 0;
    }
    uint256 unclaimedRewards = _usersUnclaimedRewards[user];

    DistributionTypes.UserStakeInput[] memory userState =
      new DistributionTypes.UserStakeInput[](assets.length);
    for (uint256 i = 0; i < assets.length; i++) {
      userState[i].underlyingAsset = assets[i];
      (userState[i].stakedByUser, userState[i].totalStaked) = IScaledBalanceToken(assets[i])
        .getScaledUserBalanceAndSupply(user);
    }

    uint256 accruedRewards = _claimRewards(user, userState);
    if (accruedRewards != 0) {
      unclaimedRewards = unclaimedRewards.add(accruedRewards);
      emit RewardsAccrued(user, accruedRewards);
    }

    if (unclaimedRewards == 0) {
      return 0;
    }

    uint256 amountToClaim = amount > unclaimedRewards ? unclaimedRewards : amount;
    _usersUnclaimedRewards[user] = unclaimedRewards - amountToClaim; // Safe due to the previous line

    IERC20(REWARD_TOKEN).safeTransferFrom(_rewardsVault, to, amountToClaim);
    emit RewardsClaimed(user, to, claimer, amountToClaim);

    return amountToClaim;
  }
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"address","name":"emissionManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"emission","type":"uint256"}],"name":"AssetConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"AssetIndexUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"claimer","type":"address"}],"name":"ClaimerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDistributionEnd","type":"uint256"}],"name":"DistributionEndUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsAccrued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"}],"name":"RewardsVaultUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"UserIndexUpdated","type":"event"},{"inputs":[],"name":"DISTRIBUTION_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSION_MANAGER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assets","outputs":[{"internalType":"uint104","name":"emissionPerSecond","type":"uint104"},{"internalType":"uint104","name":"index","type":"uint104"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"claimRewardsOnBehalf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"emissionsPerSecond","type":"uint256[]"}],"name":"configureAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getAssetData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getClaimer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDistributionEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getRewardsBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"asset","type":"address"}],"name":"getUserAssetData","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserUnclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"userBalance","type":"uint256"}],"name":"handleAction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardsVault","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"caller","type":"address"}],"name":"setClaimer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"distributionEnd","type":"uint256"}],"name":"setDistributionEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardsVault","type":"address"}],"name":"setRewardsVault","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600080553480156200001557600080fd5b5060405162001d0d38038062001d0d833981016040819052620000389162000058565b6001600160601b0319606091821b811660805291901b1660a052620000af565b600080604083850312156200006b578182fd5b8251620000788162000096565b60208401519092506200008b8162000096565b809150509250929050565b6001600160a01b0381168114620000ac57600080fd5b50565b60805160601c60a05160601c611c1b620000f2600039806109a65280610e15525080610440528061058b5280610a215280610a995280610b2b5250611c1b6000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063919cd40f116100b8578063cc69afec1161007c578063cc69afec1461022e578063dde43cba1461026e578063e23ddec514610276578063f11b81881461027e578063f5bb3e02146102a0578063f5cf673b146102b357610137565b8063919cd40f1461022e57806399248ea714610236578063aaf5eb681461023e578063c4d66de814610253578063cbcbb5071461026657610137565b806339ccbdd3116100ff57806339ccbdd3146101c25780636d34b96e146101d557806374d945ec146101e857806379f171b2146102085780638b599f261461021b57610137565b80631652e7b71461013c578063198fa81e146101675780633111e7b31461018757806331873e2e1461019a5780633373ee4c146101af575b600080fd5b61014f61014a366004611684565b6102c6565b60405161015e93929190611bc1565b60405180910390f35b61017a610175366004611684565b610306565b60405161015e9190611bb8565b61017a6101953660046117bd565b610325565b6101ad6101a83660046116d0565b61036f565b005b61017a6101bd36600461169e565b610404565b6101ad6101d03660046118a4565b610435565b61017a6101e3366004611818565b6104bd565b6101fb6101f6366004611684565b610562565b60405161015e9190611930565b6101ad610216366004611754565b610580565b61017a610229366004611702565b6107e5565b61017a61099e565b6101fb6109a4565b6102466109c8565b60405161015e9190611bd7565b6101ad610261366004611684565b6109cd565b6101fb610a1f565b61017a610a43565b6101fb610a48565b61029161028c366004611684565b610a57565b60405161015e93929190611b8e565b6101ad6102ae366004611684565b610a8e565b6101ad6102c136600461169e565b610b20565b6001600160a01b0316600090815260336020526040902054600160681b81046001600160681b039081169290821691600160d01b900464ffffffffff1690565b6001600160a01b0381166000908152603660205260409020545b919050565b60006001600160a01b0382166103565760405162461bcd60e51b815260040161034d906119cb565b60405180910390fd5b610364858585333387610bbf565b90505b949350505050565b600061037d84338486610ea4565b905080156103fe576001600160a01b0384166000908152603660205260409020546103a89082610f63565b6001600160a01b038516600081815260366020526040908190209290925590517f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a76906103f5908490611bb8565b60405180910390a25b50505050565b6001600160a01b03808216600090815260336020908152604080832093861683526001909301905220545b92915050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461047d5760405162461bcd60e51b815260040161034d90611a9c565b60348190556040517f1cc1849a6602c3e91f2088cadea4381cc5717f2f28584197060ed2ebb434c16f906104b2908390611bb8565b60405180910390a150565b6001600160a01b038083166000908152603760205260408120549091339185911682146104fc5760405162461bcd60e51b815260040161034d90611acb565b6001600160a01b0385166105225760405162461bcd60e51b815260040161034d90611968565b6001600160a01b0384166105485760405162461bcd60e51b815260040161034d906119cb565b610556888888338989610bbf565b98975050505050505050565b6001600160a01b039081166000908152603760205260409020541690565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105c85760405162461bcd60e51b815260040161034d90611a9c565b8281146105e75760405162461bcd60e51b815260040161034d906119f7565b60608367ffffffffffffffff8111801561060057600080fd5b5060405190808252806020026020018201604052801561063a57816020015b6106276115da565b81526020019060019003908161061f5790505b50905060005b848110156107d45785858281811061065457fe5b90506020020160208101906106699190611684565b82828151811061067557fe5b6020026020010151604001906001600160a01b031690816001600160a01b0316815250508383828181106106a557fe5b905060200201358282815181106106b857fe5b60209081029190910101516001600160681b0390911690528383828181106106dc57fe5b905060200201358282815181106106ef57fe5b6020026020010151600001516001600160681b0316146107215760405162461bcd60e51b815260040161034d906119f7565b85858281811061072d57fe5b90506020020160208101906107429190611684565b6001600160a01b031663b1bf962d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561077a57600080fd5b505afa15801561078e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b291906118bc565b8282815181106107be57fe5b6020908102919091018101510152600101610640565b506107de81610f73565b5050505050565b6001600160a01b03811660009081526036602052604081205460608467ffffffffffffffff8111801561081757600080fd5b5060405190808252806020026020018201604052801561085157816020015b61083e6115fa565b8152602001906001900390816108365790505b50905060005b8581101561097d5786868281811061086b57fe5b90506020020160208101906108809190611684565b82828151811061088c57fe5b60209081029190910101516001600160a01b0390911690528686828181106108b057fe5b90506020020160208101906108c59190611684565b6001600160a01b0316630afbcdc9866040518263ffffffff1660e01b81526004016108f09190611930565b604080518083038186803b15801561090757600080fd5b505afa15801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f91906118d4565b83838151811061094b57fe5b602002602001015160200184848151811061096257fe5b60209081029190910101516040019190915252600101610857565b5061099261098b85836110af565b8390610f63565b925050505b9392505050565b60345490565b7f000000000000000000000000000000000000000000000000000000000000000081565b601281565b60006109d76111ad565b905060005481116109fa5760405162461bcd60e51b815260040161034d90611a4e565b600055603580546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600181565b6035546001600160a01b031690565b6033602052600090815260409020546001600160681b0380821691600160681b810490911690600160d01b900464ffffffffff1683565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610ad65760405162461bcd60e51b815260040161034d90611a9c565b603580546001600160a01b0319166001600160a01b0383169081179091556040517f28a48cbce43190d77247f342cf319b1607bff4ef716cf26b76cf7bb71baebaa590600090a250565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b685760405162461bcd60e51b815260040161034d90611a9c565b6001600160a01b0382811660008181526037602052604080822080546001600160a01b0319169486169485179055517f4925eafc82d0c4d67889898eeed64b18488ab19811e61620f387026dec126a289190a35050565b600084610bce57506000610e9a565b6001600160a01b03831660009081526036602052604090205460608767ffffffffffffffff81118015610c0057600080fd5b50604051908082528060200260200182016040528015610c3a57816020015b610c276115fa565b815260200190600190039081610c1f5790505b50905060005b88811015610d6657898982818110610c5457fe5b9050602002016020810190610c699190611684565b828281518110610c7557fe5b60209081029190910101516001600160a01b039091169052898982818110610c9957fe5b9050602002016020810190610cae9190611684565b6001600160a01b0316630afbcdc9876040518263ffffffff1660e01b8152600401610cd99190611930565b604080518083038186803b158015610cf057600080fd5b505afa158015610d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2891906118d4565b838381518110610d3457fe5b6020026020010151602001848481518110610d4b57fe5b60209081029190910101516040019190915252600101610c40565b506000610d7386836111b2565b90508015610dc957610d858382610f63565b9250856001600160a01b03167f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a7682604051610dc09190611bb8565b60405180910390a25b82610dda5760009350505050610e9a565b6000838911610de95788610deb565b835b6001600160a01b0380891660009081526036602052604090208287039055603554919250610e3f917f000000000000000000000000000000000000000000000000000000000000000082169116888461121e565b876001600160a01b0316866001600160a01b0316886001600160a01b03167f5637d7f962248a7f05a7ab69eec6446e31f3d0a299d997f135a65c62806e789184604051610e8c9190611bb8565b60405180910390a493505050505b9695505050505050565b6001600160a01b0380841660009081526033602090815260408083209388168352600184019091528120549091908280610edf888588611276565b9050808314610f57578615610efc57610ef98782856113a6565b91505b6001600160a01b03808a1660008181526001870160205260409081902084905551918a16917fbb123b5c06d5408bbea3c4fef481578175cfb432e3b482c6186f02ed9086585b90610f4e908590611bb8565b60405180910390a35b50979650505050505050565b8082018281101561042f57600080fd5b60005b81518110156110ab57600060336000848481518110610f9157fe5b6020026020010151604001516001600160a01b03166001600160a01b031681526020019081526020016000209050610ff8838381518110610fce57fe5b60200260200101516040015182858581518110610fe757fe5b602002602001015160200151611276565b5082828151811061100557fe5b60209081029190910101515181546cffffffffffffffffffffffffff19166001600160681b03909116178155825183908390811061103f57fe5b6020026020010151604001516001600160a01b03167f87fa03892a0556cb6b8f97e6d533a150d4d55fcbf275fff5fa003fa636bcc7fa84848151811061108157fe5b60200260200101516000015160405161109a9190611b7a565b60405180910390a250600101610f76565b5050565b600080805b83518110156111a5576000603360008684815181106110cf57fe5b602090810291909101810151516001600160a01b0316825281019190915260400160009081208054875191935061114491600160681b82046001600160681b039081169290811691600160d01b90910464ffffffffff16908a908890811061113357fe5b6020026020010151604001516113d5565b905061119961119287858151811061115857fe5b602002602001015160200151838560010160008c6001600160a01b03166001600160a01b03168152602001908152602001600020546113a6565b8590610f63565b935050506001016110b4565b509392505050565b600190565b600080805b83518110156111a55761121461098b868684815181106111d357fe5b6020026020010151600001518785815181106111eb57fe5b60200260200101516020015188868151811061120357fe5b602002602001015160400151610ea4565b91506001016111b7565b6103fe846323b872dd60e01b85858560405160240161123f93929190611944565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611475565b81546000906001600160681b03600160681b82048116919081169064ffffffffff600160d01b90910416428114156112b357829350505050610997565b60006112c1848484896113d5565b905083811461137c5780816001600160681b0316146112f25760405162461bcd60e51b815260040161034d90611a26565b86546cffffffffffffffffffffffffff60681b1916600160681b6001600160681b038316021764ffffffffff60d01b1916600160d01b4264ffffffffff16021787556040516001600160a01b038916907f5777ca300dfe5bead41006fbce4389794dbc0ed8d6cccebfaf94630aa04184bc9061136f908490611bb8565b60405180910390a261139b565b865464ffffffffff60d01b1916600160d01b4264ffffffffff16021787555b979650505050505050565b6000670de0b6b3a76400006113c56113be858561155a565b869061156a565b816113cc57fe5b04949350505050565b6034546000908415806113e6575082155b806113f9575042846001600160801b0316145b8061140d575080846001600160801b031610155b1561141b5785915050610367565b600081421161142a574261142c565b815b90506000611443826001600160801b03881661155a565b90506105568861146f87611469670de0b6b3a76400006114638d8861156a565b9061156a565b9061158e565b90610f63565b611487826001600160a01b03166115a1565b6114a35760405162461bcd60e51b815260040161034d90611b43565b60006060836001600160a01b0316836040516114bf91906118f7565b6000604051808303816000865af19150503d80600081146114fc576040519150601f19603f3d011682016040523d82523d6000602084013e611501565b606091505b5091509150816115235760405162461bcd60e51b815260040161034d90611996565b8051156103fe578080602001905181019061153e9190611884565b6103fe5760405162461bcd60e51b815260040161034d90611af9565b8082038281111561042f57600080fd5b60008215806115855750508181028183828161158257fe5b04145b61042f57600080fd5b600081838161159957fe5b049392505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610367575050151592915050565b604080516060810182526000808252602082018190529181019190915290565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b80356001600160a01b038116811461032057600080fd5b60008083601f84011261164c578182fd5b50813567ffffffffffffffff811115611663578182fd5b602083019150836020808302850101111561167d57600080fd5b9250929050565b600060208284031215611695578081fd5b61099782611624565b600080604083850312156116b0578081fd5b6116b983611624565b91506116c760208401611624565b90509250929050565b6000806000606084860312156116e4578081fd5b6116ed84611624565b95602085013595506040909401359392505050565b600080600060408486031215611716578283fd5b833567ffffffffffffffff81111561172c578384fd5b6117388682870161163b565b909450925061174b905060208501611624565b90509250925092565b60008060008060408587031215611769578081fd5b843567ffffffffffffffff80821115611780578283fd5b61178c8883890161163b565b909650945060208701359150808211156117a4578283fd5b506117b18782880161163b565b95989497509550505050565b600080600080606085870312156117d2578384fd5b843567ffffffffffffffff8111156117e8578485fd5b6117f48782880161163b565b9095509350506020850135915061180d60408601611624565b905092959194509250565b60008060008060006080868803121561182f578081fd5b853567ffffffffffffffff811115611845578182fd5b6118518882890161163b565b9096509450506020860135925061186a60408701611624565b915061187860608701611624565b90509295509295909350565b600060208284031215611895578081fd5b81518015158114610997578182fd5b6000602082840312156118b5578081fd5b5035919050565b6000602082840312156118cd578081fd5b5051919050565b600080604083850312156118e6578182fd5b505080516020909101519092909150565b60008251815b8181101561191757602081860181015185830152016118fd565b818111156119255782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b602080825260149082015273494e56414c49445f555345525f4144445245535360601b604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b602080825260129082015271494e56414c49445f544f5f4144445245535360701b604082015260600190565b60208082526015908201527424a72b20a624a22fa1a7a72324a3aaa920aa24a7a760591b604082015260600190565b6020808252600e908201526d496e646578206f766572666c6f7760901b604082015260600190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526015908201527427a7262cafa2a6a4a9a9a4a7a72fa6a0a720a3a2a960591b604082015260600190565b60208082526014908201527310d3105253515497d5539055551213d49256915160621b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6001600160681b0391909116815260200190565b6001600160681b03938416815291909216602082015264ffffffffff909116604082015260600190565b90815260200190565b9283526020830191909152604082015260600190565b60ff9190911681526020019056fea264697066735822122054f703b516665348a7a5aa1ec6817d530b731d7e234b9bcbdc14a731c01d1d0b64736f6c63430007050033000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c70000000000000000000000005cfcd7e6d055ba4f7b998914336254ade3f69f26

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

000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c70000000000000000000000005cfcd7e6d055ba4f7b998914336254ade3f69f26

-----Decoded View---------------
Arg [0] : rewardToken (address): 0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [1] : emissionManager (address): 0x5cfcd7e6d055ba4f7b998914336254ade3f69f26

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [1] : 0000000000000000000000005cfcd7e6d055ba4f7b998914336254ade3f69f26


Deployed ByteCode Sourcemap

25723:6901:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7697:203;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;30180:138;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;29037:264::-;;;;;;:::i;:::-;;:::i;27850:399::-;;;;;;:::i;:::-;;:::i;:::-;;7508:139;;;;;;:::i;:::-;;:::i;6957:189::-;;;;;;:::i;:::-;;:::i;29352:384::-;;;;;;:::i;:::-;;:::i;30009:120::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;27015:784::-;;;;;;:::i;:::-;;:::i;28300:686::-;;;;;;:::i;:::-;;:::i;7353:105::-;;;:::i;25953:46::-;;;:::i;6568:36::-;;;:::i;:::-;;;;;;;:::i;26860:104::-;;;;;;:::i;:::-;;:::i;6520:41::-;;;:::i;25910:36::-;;;:::i;30589:92::-;;;:::i;6611:43::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;30840:162::-;;;;;;:::i;:::-;;:::i;29787:171::-;;;;;;:::i;:::-;;:::i;7697:203::-;-1:-1:-1;;;;;7806:13:0;7764:7;7806:13;;;:6;:13;;;;;:19;-1:-1:-1;;;7806:19:0;;-1:-1:-1;;;;;7806:19:0;;;;7827:31;;;;-1:-1:-1;;;7860:33:0;;;;;7697:203::o;30180:138::-;-1:-1:-1;;;;;30283:29:0;;30260:7;30283:29;;;:22;:29;;;;;;30180:138;;;;:::o;29037:264::-;29161:7;-1:-1:-1;;;;;29185:16:0;;29177:47;;;;-1:-1:-1;;;29177:47:0;;;;;;;:::i;:::-;;;;;;;;;29238:57;29252:6;;29260;29268:10;29280;29292:2;29238:13;:57::i;:::-;29231:64;;29037:264;;;;;;;:::o;27850:399::-;27973:22;27998:68;28023:4;28029:10;28041:11;28054;27998:24;:68::i;:::-;27973:93;-1:-1:-1;28077:19:0;;28073:171;;-1:-1:-1;;;;;28138:28:0;;;;;;:22;:28;;;;;;:48;;28171:14;28138:32;:48::i;:::-;-1:-1:-1;;;;;28107:28:0;;;;;;:22;:28;;;;;;;:79;;;;28200:36;;;;;;28221:14;;28200:36;:::i;:::-;;;;;;;;28073:171;27850:399;;;;:::o;7508:139::-;-1:-1:-1;;;;;7616:13:0;;;7593:7;7616:13;;;:6;:13;;;;;;;;:25;;;;;:19;;;;:25;;;;7508:139;;;;;:::o;6957:189::-;6747:10;-1:-1:-1;;;;;6761:16:0;6747:30;;6739:64;;;;-1:-1:-1;;;6739:64:0;;;;;;;:::i;:::-;7055:16:::1;:34:::0;;;7101:39:::1;::::0;::::1;::::0;::::1;::::0;7074:15;;7101:39:::1;:::i;:::-;;;;;;;;6957:189:::0;:::o;29352:384::-;-1:-1:-1;;;;;26507:25:0;;;29544:7;26507:25;;;:19;:25;;;;;;29544:7;;29517:10;;29529:4;;26507:25;:36;;26499:69;;;;-1:-1:-1;;;26499:69:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29568:18:0;::::1;29560:51;;;;-1:-1:-1::0;;;29560:51:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;29626:16:0;::::1;29618:47;;;;-1:-1:-1::0;;;29618:47:0::1;;;;;;;:::i;:::-;29679:51;29693:6;;29701;29709:10;29721:4;29727:2;29679:13;:51::i;:::-;29672:58:::0;29352:384;-1:-1:-1;;;;;;;;29352:384:0:o;30009:120::-;-1:-1:-1;;;;;30098:25:0;;;30075:7;30098:25;;;:19;:25;;;;;;;;30009:120::o;27015:784::-;6747:10;-1:-1:-1;;;;;6761:16:0;6747:30;;6739:64;;;;-1:-1:-1;;;6739:64:0;;;;;;;:::i;:::-;27177:42;;::::1;27169:76;;;;-1:-1:-1::0;;;27169:76:0::1;;;;;;;:::i;:::-;27254:56;27361:6:::0;27320:55:::1;::::0;::::1;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;27254:121;;27389:9;27384:373;27404:17:::0;;::::1;27384:373;;;27471:6;;27478:1;27471:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;27437:12;27450:1;27437:15;;;;;;;;;;;;;;:31;;:43;-1:-1:-1::0;;;;;27437:43:0::1;;;-1:-1:-1::0;;;;;27437:43:0::1;;;::::0;::::1;27533:18;;27552:1;27533:21;;;;;;;;;;;;;27489:12;27502:1;27489:15;;;;;;;;;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;27489:66:0;;::::1;::::0;;27611:18;;27630:1;27611:21;;::::1;;;;;;;;;;;27574:12;27587:1;27574:15;;;;;;;;;;;;;;:33;;;-1:-1:-1::0;;;;;27574:58:0::1;;27566:92;;;;-1:-1:-1::0;;;27566:92:0::1;;;;;;;:::i;:::-;27719:6;;27726:1;27719:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;27699:48:0::1;;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27669:12;27682:1;27669:15;;;;;;;;;::::0;;::::1;::::0;;;;;;;:27:::1;:80:::0;27423:3:::1;;27384:373;;;;27763:30;27780:12;27763:16;:30::i;:::-;6810:1;27015:784:::0;;;;:::o;28300:686::-;-1:-1:-1;;;;;28466:28:0;;28420:7;28466:28;;;:22;:28;;;;;;28503:51;28603:6;28564:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;28503:114;;28629:9;28624:242;28644:17;;;28624:242;;;28708:6;;28715:1;28708:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;28677;28687:1;28677:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28677:40:0;;;;;28802:6;;28809:1;28802:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;28782:70:0;;28853:4;28782:76;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;28727:9;28737:1;28727:12;;;;;;;;;;;;;;:25;;28754:9;28764:1;28754:12;;;;;;;;;;;;;;;;;;:24;;28726:132;;;;;28663:3;;28624:242;;;;28891:59;28912:37;28933:4;28939:9;28912:20;:37::i;:::-;28891:16;;:20;:59::i;:::-;28872:78;-1:-1:-1;;;28300:686:0;;;;;;:::o;7353:105::-;7436:16;;7353:105;:::o;25953:46::-;;;:::o;6568:36::-;6602:2;6568:36;:::o;26860:104::-;15782:16;15801:13;:11;:13::i;:::-;15782:32;;15840:23;;15829:8;:34;15821:93;;;;-1:-1:-1;;;15821:93:0;;;;;;;:::i;:::-;15923:23;:34;26930:13:::1;:28:::0;;-1:-1:-1;;;;;;26930:28:0::1;-1:-1:-1::0;;;;;26930:28:0;;;::::1;::::0;;;::::1;::::0;;26860:104::o;6520:41::-;;;:::o;25910:36::-;25945:1;25910:36;:::o;30589:92::-;30662:13;;-1:-1:-1;;;;;30662:13:0;30589:92;:::o;6611:43::-;;;;;;;;;;;;-1:-1:-1;;;;;6611:43:0;;;;-1:-1:-1;;;6611:43:0;;;;;;-1:-1:-1;;;6611:43:0;;;;;:::o;30840:162::-;6747:10;-1:-1:-1;;;;;6761:16:0;6747:30;;6739:64;;;;-1:-1:-1;;;6739:64:0;;;;;;;:::i;:::-;30923:13:::1;:28:::0;;-1:-1:-1;;;;;;30923:28:0::1;-1:-1:-1::0;;;;;30923:28:0;::::1;::::0;;::::1;::::0;;;30963:33:::1;::::0;::::1;::::0;-1:-1:-1;;30963:33:0::1;30840:162:::0;:::o;29787:171::-;6747:10;-1:-1:-1;;;;;6761:16:0;6747:30;;6739:64;;;;-1:-1:-1;;;6739:64:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29882:25:0;;::::1;;::::0;;;:19:::1;:25;::::0;;;;;:34;;-1:-1:-1;;;;;;29882:34:0::1;::::0;;::::1;::::0;;::::1;::::0;;29928:24;::::1;::::0;29882:25;29928:24:::1;29787:171:::0;;:::o;31333:1288::-;31490:7;31510:11;31506:42;;-1:-1:-1;31539:1:0;31532:8;;31506:42;-1:-1:-1;;;;;31581:28:0;;31554:24;31581:28;;;:22;:28;;;;;;31618:51;31718:6;31679:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;31618:114;;31744:9;31739:242;31759:17;;;31739:242;;;31823:6;;31830:1;31823:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;31792;31802:1;31792:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31792:40:0;;;;;31917:6;;31924:1;31917:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;31897:70:0;;31968:4;31897:76;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31842:9;31852:1;31842:12;;;;;;;;;;;;;;:25;;31869:9;31879:1;31869:12;;;;;;;;;;;;;;;;;;:24;;31841:132;;;;;31778:3;;31739:242;;;;31989:22;32014:30;32028:4;32034:9;32014:13;:30::i;:::-;31989:55;-1:-1:-1;32055:19:0;;32051:147;;32104:36;:16;32125:14;32104:20;:36::i;:::-;32085:55;;32169:4;-1:-1:-1;;;;;32154:36:0;;32175:14;32154:36;;;;;;:::i;:::-;;;;;;;;32051:147;32210:21;32206:52;;32249:1;32242:8;;;;;;;32206:52;32266:21;32299:16;32290:6;:25;:53;;32337:6;32290:53;;;32318:16;32290:53;-1:-1:-1;;;;;32350:28:0;;;;;;;:22;:28;;;;;32381:32;;;32350:63;;32493:13;;32266:77;;-1:-1:-1;32455:71:0;;32462:12;32455:37;;;32493:13;32508:2;32266:77;32455:37;:71::i;:::-;32563:7;-1:-1:-1;;;;;32538:48:0;32559:2;-1:-1:-1;;;;;32538:48:0;32553:4;-1:-1:-1;;;;;32538:48:0;;32572:13;32538:48;;;;;;:::i;:::-;;;;;;;;32602:13;-1:-1:-1;;;;31333:1288:0;;;;;;;;;:::o;10420:663::-;-1:-1:-1;;;;;10615:13:0;;;10569:7;10615:13;;;:6;:13;;;;;;;;10655:21;;;;;:15;;;:21;;;;;;10569:7;;10615:13;10569:7;;10737:56;10622:5;10615:13;10781:11;10737:25;:56::i;:::-;10718:75;;10819:8;10806:9;:21;10802:246;;10842:17;;10838:107;;10889:46;10901:12;10915:8;10925:9;10889:11;:46::i;:::-;10872:63;;10838:107;-1:-1:-1;;;;;10955:21:0;;;;;;;:15;;;:21;;;;;;;:32;;;11001:39;;;;;;;;;10979:8;;11001:39;:::i;:::-;;;;;;;;10802:246;-1:-1:-1;11063:14:0;10420:663;-1:-1:-1;;;;;;;10420:663:0:o;17091:113::-;17184:5;;;17179:16;;;;17171:25;;;;;8046:643;8164:9;8159:525;8183:17;:24;8179:1;:28;8159:525;;;8223:29;8255:6;:44;8262:17;8280:1;8262:20;;;;;;;;;;;;;;:36;;;-1:-1:-1;;;;;8255:44:0;-1:-1:-1;;;;;8255:44:0;;;;;;;;;;;;8223:76;;8310:146;8346:17;8364:1;8346:20;;;;;;;;;;;;;;:36;;;8393:11;8415:17;8433:1;8415:20;;;;;;;;;;;;;;:32;;;8310:25;:146::i;:::-;;8499:17;8517:1;8499:20;;;;;;;;;;;;;;;;;;:38;8467:70;;-1:-1:-1;;8467:70:0;-1:-1:-1;;;;;8467:70:0;;;;;;8582:20;;;;8600:1;;8582:20;;;;;;;;;;;;:36;;;-1:-1:-1;;;;;8553:123:0;;8629:17;8647:1;8629:20;;;;;;;;;;;;;;:38;;;8553:123;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;8209:3:0;;8159:525;;;;8046:643;:::o;12155:697::-;12287:7;;;12341:478;12365:6;:13;12361:1;:17;12341:478;;;12394:29;12426:6;:33;12433:6;12440:1;12433:9;;;;;;;;;;;;;;;;;;;:25;-1:-1:-1;;;;;12426:33:0;;;;;;;;;;;-1:-1:-1;12426:33:0;;;12525:17;;12641:9;;12426:33;;-1:-1:-1;12498:175:0;;-1:-1:-1;;;12525:17:0;;-1:-1:-1;;;;;12525:17:0;;;;12555:29;;;;-1:-1:-1;;;12597:31:0;;;;;;12641:9;;12648:1;;12641:9;;;;;;;;;;;;:21;;;12498:14;:175::i;:::-;12468:205;;12701:110;12730:72;12742:6;12749:1;12742:9;;;;;;;;;;;;;;:22;;;12766:10;12778:11;:17;;:23;12796:4;-1:-1:-1;;;;;12778:23:0;-1:-1:-1;;;;;12778:23:0;;;;;;;;;;;;;12730:11;:72::i;:::-;12701:14;;:18;:110::i;:::-;12684:127;-1:-1:-1;;;12380:3:0;;12341:478;;;-1:-1:-1;12832:14:0;12155:697;-1:-1:-1;;;12155:697:0:o;30401:92::-;25945:1;30401:92;:::o;11395:479::-;11510:7;;;11564:275;11588:6;:13;11584:1;:17;11564:275;;;11634:197;11663:159;11700:4;11717:6;11724:1;11717:9;;;;;;;;;;;;;;:25;;;11755:6;11762:1;11755:9;;;;;;;;;;;;;;:22;;;11790:6;11797:1;11790:9;;;;;;;;;;;;;;:21;;;11663:24;:159::i;11634:197::-;11617:214;-1:-1:-1;11603:3:0;;11564:275;;24316:223;24438:95;24457:5;24487:27;;;24516:4;24522:2;24526:5;24464:68;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;24464:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24464:68:0;-1:-1:-1;;;;;;24464:68:0;;;;;;;;;;24438:18;:95::i;9042:963::-;9217:17;;9182:7;;-1:-1:-1;;;;;;;;9217:17:0;;;;;9269:29;;;;9335:31;-1:-1:-1;;;9335:31:0;;;;9379:15;:38;;9375:76;;;9435:8;9428:15;;;;;;;9375:76;9459:16;9485:77;9500:8;9510:17;9529:19;9550:11;9485:14;:77::i;:::-;9459:103;;9587:8;9575;:20;9571:405;;9635:8;9622;-1:-1:-1;;;;;9614:29:0;;9606:56;;;;-1:-1:-1;;;9606:56:0;;;;;;;:::i;:::-;9737:37;;-1:-1:-1;;;;9737:37:0;-1:-1:-1;;;;;;;;9737:37:0;;;;-1:-1:-1;;;;9783:57:0;-1:-1:-1;;;9824:15:0;9783:57;;;;;;9854:34;;-1:-1:-1;;;;;9854:34:0;;;;;;;9737:37;;9854:34;:::i;:::-;;;;;;;;9571:405;;;9911:57;;-1:-1:-1;;;;9911:57:0;-1:-1:-1;;;9952:15:0;9911:57;;;;;;9571:405;9991:8;9042:963;-1:-1:-1;;;;;;;9042:963:0:o;13206:242::-;13341:7;13420:22;13364:53;13389:27;:12;13406:9;13389:16;:27::i;:::-;13364:20;;:24;:53::i;:::-;:78;;;;;;;13206:242;-1:-1:-1;;;;13206:242:0:o;13911:761::-;14125:16;;14083:7;;14160:22;;;:50;;-1:-1:-1;14193:17:0;;14160:50;:99;;;;14244:15;14221:19;-1:-1:-1;;;;;14221:38:0;;14160:99;:148;;;;14293:15;14270:19;-1:-1:-1;;;;;14270:38:0;;;14160:148;14148:204;;;14332:12;14325:19;;;;;14148:204;14360:24;14412:15;14394;:33;:69;;14448:15;14394:69;;;14430:15;14394:69;14360:103;-1:-1:-1;14470:17:0;14490:41;14360:103;-1:-1:-1;;;;;14490:41:0;;:20;:41::i;:::-;14470:61;-1:-1:-1;14552:114:0;14645:12;14552:78;14617:12;14552:60;14589:22;14552:32;:17;14470:61;14552:21;:32::i;:::-;:36;;:60::i;:::-;:64;;:78::i;:::-;:82;;:114::i;24906:567::-;24990:27;24998:5;-1:-1:-1;;;;;24990:25:0;;:27::i;:::-;24982:71;;;;-1:-1:-1;;;24982:71:0;;;;;;;:::i;:::-;25119:12;25133:23;25168:5;-1:-1:-1;;;;;25160:19:0;25180:4;25160:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25118:67;;;;25200:7;25192:52;;;;-1:-1:-1;;;25192:52:0;;;;;;;:::i;:::-;25257:17;;:21;25253:215;;25394:10;25383:30;;;;;;;;;;;;:::i;:::-;25375:85;;;;-1:-1:-1;;;25375:85:0;;;;;;;:::i;17374:113::-;17467:5;;;17462:16;;;;17454:25;;;;;17658:127;17716:9;17746:6;;;:30;;-1:-1:-1;;17761:5:0;;;17775:1;17770;17761:5;17770:1;17756:15;;;;;:20;17746:30;17738:39;;;;;17793:174;17850:7;17958:1;17954;:5;;;;;;;17793:174;-1:-1:-1;;;17793:174:0:o;18764:597::-;18824:4;19271:20;;19115:66;19312:23;;;;;;:42;;-1:-1:-1;;19339:15:0;;;19304:51;-1:-1:-1;;18764:597:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:175:1:-;84:20;;-1:-1:-1;;;;;133:31:1;;123:42;;113:2;;179:1;176;169:12;194:404;;;327:3;320:4;312:6;308:17;304:27;294:2;;352:8;342;335:26;294:2;-1:-1:-1;382:20:1;;425:18;414:30;;411:2;;;464:8;454;447:26;411:2;508:4;500:6;496:17;484:29;;571:3;564:4;556;548:6;544:17;536:6;532:30;528:41;525:50;522:2;;;588:1;585;578:12;522:2;284:314;;;;;:::o;603:198::-;;715:2;703:9;694:7;690:23;686:32;683:2;;;736:6;728;721:22;683:2;764:31;785:9;764:31;:::i;806:274::-;;;935:2;923:9;914:7;910:23;906:32;903:2;;;956:6;948;941:22;903:2;984:31;1005:9;984:31;:::i;:::-;974:41;;1034:40;1070:2;1059:9;1055:18;1034:40;:::i;:::-;1024:50;;893:187;;;;;:::o;1085:334::-;;;;1231:2;1219:9;1210:7;1206:23;1202:32;1199:2;;;1252:6;1244;1237:22;1199:2;1280:31;1301:9;1280:31;:::i;:::-;1270:41;1358:2;1343:18;;1330:32;;-1:-1:-1;1409:2:1;1394:18;;;1381:32;;1189:230;-1:-1:-1;;;1189:230:1:o;1424:539::-;;;;1588:2;1576:9;1567:7;1563:23;1559:32;1556:2;;;1609:6;1601;1594:22;1556:2;1654:9;1641:23;1687:18;1679:6;1676:30;1673:2;;;1724:6;1716;1709:22;1673:2;1768:76;1836:7;1827:6;1816:9;1812:22;1768:76;:::i;:::-;1863:8;;-1:-1:-1;1742:102:1;-1:-1:-1;1917:40:1;;-1:-1:-1;1953:2:1;1938:18;;1917:40;:::i;:::-;1907:50;;1546:417;;;;;:::o;1968:815::-;;;;;2167:2;2155:9;2146:7;2142:23;2138:32;2135:2;;;2188:6;2180;2173:22;2135:2;2233:9;2220:23;2262:18;2303:2;2295:6;2292:14;2289:2;;;2324:6;2316;2309:22;2289:2;2368:76;2436:7;2427:6;2416:9;2412:22;2368:76;:::i;:::-;2463:8;;-1:-1:-1;2342:102:1;-1:-1:-1;2551:2:1;2536:18;;2523:32;;-1:-1:-1;2567:16:1;;;2564:2;;;2601:6;2593;2586:22;2564:2;;2645:78;2715:7;2704:8;2693:9;2689:24;2645:78;:::i;:::-;2125:658;;;;-1:-1:-1;2742:8:1;-1:-1:-1;;;;2125:658:1:o;2788:607::-;;;;;2969:2;2957:9;2948:7;2944:23;2940:32;2937:2;;;2990:6;2982;2975:22;2937:2;3035:9;3022:23;3068:18;3060:6;3057:30;3054:2;;;3105:6;3097;3090:22;3054:2;3149:76;3217:7;3208:6;3197:9;3193:22;3149:76;:::i;:::-;3244:8;;-1:-1:-1;3123:102:1;-1:-1:-1;;3326:2:1;3311:18;;3298:32;;-1:-1:-1;3349:40:1;3385:2;3370:18;;3349:40;:::i;:::-;3339:50;;2927:468;;;;;;;:::o;3400:684::-;;;;;;3598:3;3586:9;3577:7;3573:23;3569:33;3566:2;;;3620:6;3612;3605:22;3566:2;3665:9;3652:23;3698:18;3690:6;3687:30;3684:2;;;3735:6;3727;3720:22;3684:2;3779:76;3847:7;3838:6;3827:9;3823:22;3779:76;:::i;:::-;3874:8;;-1:-1:-1;3753:102:1;-1:-1:-1;;3956:2:1;3941:18;;3928:32;;-1:-1:-1;3979:40:1;4015:2;4000:18;;3979:40;:::i;:::-;3969:50;;4038:40;4074:2;4063:9;4059:18;4038:40;:::i;:::-;4028:50;;3556:528;;;;;;;;:::o;4089:297::-;;4209:2;4197:9;4188:7;4184:23;4180:32;4177:2;;;4230:6;4222;4215:22;4177:2;4267:9;4261:16;4320:5;4313:13;4306:21;4299:5;4296:32;4286:2;;4347:6;4339;4332:22;4391:190;;4503:2;4491:9;4482:7;4478:23;4474:32;4471:2;;;4524:6;4516;4509:22;4471:2;-1:-1:-1;4552:23:1;;4461:120;-1:-1:-1;4461:120:1:o;4586:194::-;;4709:2;4697:9;4688:7;4684:23;4680:32;4677:2;;;4730:6;4722;4715:22;4677:2;-1:-1:-1;4758:16:1;;4667:113;-1:-1:-1;4667:113:1:o;4785:255::-;;;4925:2;4913:9;4904:7;4900:23;4896:32;4893:2;;;4946:6;4938;4931:22;4893:2;-1:-1:-1;;4974:16:1;;5030:2;5015:18;;;5009:25;4974:16;;5009:25;;-1:-1:-1;4883:157:1:o;5045:430::-;;5212:6;5206:13;5237:3;5249:129;5263:6;5260:1;5257:13;5249:129;;;5361:4;5345:14;;;5341:25;;5335:32;5322:11;;;5315:53;5278:12;5249:129;;;5396:6;5393:1;5390:13;5387:2;;;5431:3;5422:6;5417:3;5413:16;5406:29;5387:2;-1:-1:-1;5453:16:1;;;;;5182:293;-1:-1:-1;;5182:293:1:o;5480:203::-;-1:-1:-1;;;;;5644:32:1;;;;5626:51;;5614:2;5599:18;;5581:102::o;5688:375::-;-1:-1:-1;;;;;5946:15:1;;;5928:34;;5998:15;;;;5993:2;5978:18;;5971:43;6045:2;6030:18;;6023:34;;;;5878:2;5863:18;;5845:218::o;6068:344::-;6270:2;6252:21;;;6309:2;6289:18;;;6282:30;-1:-1:-1;;;6343:2:1;6328:18;;6321:50;6403:2;6388:18;;6242:170::o;6417:356::-;6619:2;6601:21;;;6638:18;;;6631:30;6697:34;6692:2;6677:18;;6670:62;6764:2;6749:18;;6591:182::o;6778:342::-;6980:2;6962:21;;;7019:2;6999:18;;;6992:30;-1:-1:-1;;;7053:2:1;7038:18;;7031:48;7111:2;7096:18;;6952:168::o;7125:345::-;7327:2;7309:21;;;7366:2;7346:18;;;7339:30;-1:-1:-1;;;7400:2:1;7385:18;;7378:51;7461:2;7446:18;;7299:171::o;7475:338::-;7677:2;7659:21;;;7716:2;7696:18;;;7689:30;-1:-1:-1;;;7750:2:1;7735:18;;7728:44;7804:2;7789:18;;7649:164::o;7818:410::-;8020:2;8002:21;;;8059:2;8039:18;;;8032:30;8098:34;8093:2;8078:18;;8071:62;-1:-1:-1;;;8164:2:1;8149:18;;8142:44;8218:3;8203:19;;7992:236::o;8233:345::-;8435:2;8417:21;;;8474:2;8454:18;;;8447:30;-1:-1:-1;;;8508:2:1;8493:18;;8486:51;8569:2;8554:18;;8407:171::o;8583:344::-;8785:2;8767:21;;;8824:2;8804:18;;;8797:30;-1:-1:-1;;;8858:2:1;8843:18;;8836:50;8918:2;8903:18;;8757:170::o;8932:406::-;9134:2;9116:21;;;9173:2;9153:18;;;9146:30;9212:34;9207:2;9192:18;;9185:62;-1:-1:-1;;;9278:2:1;9263:18;;9256:40;9328:3;9313:19;;9106:232::o;9343:355::-;9545:2;9527:21;;;9584:2;9564:18;;;9557:30;9623:33;9618:2;9603:18;;9596:61;9689:2;9674:18;;9517:181::o;9703:212::-;-1:-1:-1;;;;;9867:41:1;;;;9849:60;;9837:2;9822:18;;9804:111::o;9920:401::-;-1:-1:-1;;;;;10185:15:1;;;10167:34;;10237:15;;;;10232:2;10217:18;;10210:43;10301:12;10289:25;;;10284:2;10269:18;;10262:53;10108:2;10093:18;;10075:246::o;10326:177::-;10472:25;;;10460:2;10445:18;;10427:76::o;10508:319::-;10710:25;;;10766:2;10751:18;;10744:34;;;;10809:2;10794:18;;10787:34;10698:2;10683:18;;10665:162::o;10832:184::-;11004:4;10992:17;;;;10974:36;;10962:2;10947:18;;10929:87::o

Swarm Source

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