Skip to content
Verified contractPartialMIT

RewardsSteward

Address0x2c7f01a1322ce99eeb331d6eb73aff400f11c5cb
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.22

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.22+commit.4fc1097e
Language
solidity
Optimization
Yes, 200 runs
EVM version
shanghai
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,126,905
Creation transaction
0x7f9011c44c…f31c41a716

65 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/finance/interfaces/IRewardsSteward.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IRewardsController} from "aave-v3-origin/contracts/rewards/interfaces/IRewardsController.sol";

/**
 * @title IRewardsSteward
 * @author Aave/TokenLogic
 * @notice Defines the behaviour of a IRewardsSteward
 */
interface IRewardsSteward {
  /// @dev Provided address cannot be the zero-address
  error InvalidZeroAddress();

  /// @dev Emitted when a token reward is claimed for a given list of assets
  /// @param reward The token awarded
  /// @param amount The amount of token awarded
  event ClaimedReward(address reward, uint256 amount);

  /// @dev Emitted when all rewards are claimed for a given list of assets
  /// @param rewards The list of tokens awarded
  /// @param amounts The amounts of tokens awarded
  event ClaimedRewards(address[] rewards, uint256[] amounts);

  /// @notice Claims all pending rewards on behalf of the Collector for a list of assets
  /// @param assets List of assets to claim rewards for
  function claimAllRewards(address[] calldata assets) external;

  /// @notice Claims an amount of pending rewards for a specific token on behalf of the Collector for a list of assets
  /// @param assets List of assets to claim rewards for
  /// @param amount The amount of rewards to claim
  /// @param reward The token awarded
  function claimRewards(address[] calldata assets, uint256 amount, address reward) external;

  /// @notice Rescues the specified token back to the Collector
  /// @param token The address of the ERC20 token to rescue
  function rescueToken(address token) external;

  /// @notice Rescues ETH from the contract back to the Collector
  function rescueEth() external;

  /// @notice Returns instance of Aave V3 Collector
  function COLLECTOR() external view returns (address);

  /// @notice Returns instance of RewardsController
  function REWARDS_CONTROLLER() external view returns (IRewardsController);
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "shanghai",
  "remappings": [
    "aave-address-book/=lib/aave-helpers/lib/aave-address-book/src/",
    "aave-helpers/=lib/aave-helpers/",
    "aave-v3-origin-tests/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/tests/",
    "aave-v3-origin/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/",
    "ds-test/=lib/aave-helpers/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/aave-helpers/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/",
    "solidity-utils/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/",
    "@openzeppelin/contracts-upgradeable/=lib/aave-helpers/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/aave-helpers/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
    "halmos-cheatcodes/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.