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/RewardsSteward.solmain2.61 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/forge-std/src/Vm.sol116.95 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/access/Ownable.sol3.1 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol4.45 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol192 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol181 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol2.78 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol9.44 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/Address.sol6.03 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/Context.sol963 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/Errors.sol896 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol870 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/access-control/OwnableWithGuardian.sol1.41 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/access-control/interfaces/IWithGuardian.sol861 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/utils/ChainHelpers.sol7.46 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/utils/Rescuable.sol1.11 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/utils/RescuableBase.sol1.04 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/utils/interfaces/IRescuable.sol936 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/contracts/utils/interfaces/IRescuableBase.sol1.3 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/dependencies/chainlink/AggregatorInterface.sol1.16 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/dependencies/openzeppelin/contracts/IERC20.sol2.57 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IACLManager.sol5.46 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IAToken.sol5.46 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IAaveIncentivesController.sol842 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IAaveOracle.sol2.39 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IDefaultInterestRateStrategyV2.sol6.1 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IInitializableAToken.sol2.04 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IPool.sol37.09 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IPoolAddressesProvider.sol8.21 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IPoolConfigurator.sol22.45 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IPoolDataProvider.sol9.49 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IPriceOracleGetter.sol848 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IReserveInterestRateStrategy.sol1.12 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/interfaces/IScaledBalanceToken.sol2.74 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/protocol/libraries/helpers/Errors.sol10.66 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol864 B
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/protocol/libraries/types/DataTypes.sol9.4 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/rewards/interfaces/IRewardsController.sol9.23 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/rewards/interfaces/IRewardsDistributor.sol6.72 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/rewards/interfaces/ITransferStrategyBase.sol1.3 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/rewards/libraries/RewardsDataTypes.sol1.67 KB
- lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/contracts/treasury/ICollector.sol6.61 KB
- lib/aave-helpers/lib/aave-address-book/src/AaveV2.sol52.48 KB
- lib/aave-helpers/lib/aave-address-book/src/AaveV3.sol2.06 KB
- lib/aave-helpers/lib/aave-address-book/src/AaveV3Ethereum.sol47.23 KB
- lib/aave-helpers/lib/aave-address-book/src/GovernanceV3.sol856 B
- lib/aave-helpers/lib/aave-address-book/src/GovernanceV3Ethereum.sol3.64 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/Errors.sol9.37 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IBaseReceiverPortal.sol766 B
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IDataWarehouse.sol4 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IExecutor.sol1.51 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IGovernanceCore.sol19.76 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IGovernancePowerStrategy.sol1.02 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IPayloadsControllerCore.sol7.83 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IVotingMachineWithProofs.sol14.85 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IVotingPortal.sol3.29 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/IVotingStrategy.sol1.82 KB
- lib/aave-helpers/lib/aave-address-book/src/governance-v3/PayloadsControllerUtils.sol841 B
- lib/aave-helpers/src/CollectorUtils.sol7.3 KB
- lib/aave-helpers/src/interfaces/IChainlinkAggregator.sol683 B
- lib/aave-helpers/src/swaps/AaveSwapper.sol4.75 KB
- lib/aave-helpers/src/swaps/interfaces/IAaveSwapper.sol3.81 KB
- lib/aave-helpers/src/swaps/interfaces/IExpectedOutCalculator.sol381 B
- lib/aave-helpers/src/swaps/interfaces/IMilkman.sol1.47 KB
- src/finance/interfaces/IRewardsSteward.sol1.93 KB
lib/aave-helpers/lib/aave-address-book/src/governance-v3/IPayloadsControllerCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {PayloadsControllerUtils} from './PayloadsControllerUtils.sol';
interface IPayloadsControllerCore {
/// @notice Enum indicating the possible payload states
enum PayloadState {
None, // state 0 left as empty
Created,
Queued,
Executed,
Cancelled,
Expired
}
/**
* @notice holds configuration of the executor
* @param executor address of the executor
* @param delay time in seconds between queuing and execution
*/
struct ExecutorConfig {
address executor;
uint40 delay;
}
/**
* @notice Object containing the information necessary to set a new executor
* @param accessLevel level of access that the executor will be assigned to
* @param executorConfig object containing the configurations for the accessLevel specified
*/
struct UpdateExecutorInput {
PayloadsControllerUtils.AccessControl accessLevel;
ExecutorConfig executorConfig;
}
/**
* @notice Object containing the information necessary to define a payload action
* @param target address of the contract that needs to be executed
* @param withDelegateCall boolean indicating if execution needs to be delegated
* @param accessLevel access level of the executor needed for the execution
* @param value value amount that needs to be sent to the executeTransaction method
* @param signature method signature that will be executed
* @param callData data needed for the execution of the signature
*/
struct ExecutionAction {
address target;
bool withDelegateCall;
PayloadsControllerUtils.AccessControl accessLevel;
uint256 value;
string signature;
bytes callData;
}
/**
* @notice Object containing a payload information
* @param creator address of the createPayload method caller
* @param maximumAccessLevelRequired min level needed to be able to execute all actions
* @param state indicates the current state of the payload
* @param createdAt time indicating when payload has been created. In seconds // max is: 1.099511628×10¹² (ie 34'865 years)
* @param queuedAt time indicating when payload has been queued. In seconds // max is: 1.099511628×10¹² (ie 34'865 years)
* @param executedAt time indicating when a payload has been executed. In seconds // max is: 1.099511628×10¹² (ie 34'865 years)
* @param cancelledAt time indicating when the payload has been cancelled. In seconds
* @param expirationTime time indicating when the Payload will expire
* @param delay time in seconds that a payload must remain queued before execution
* @param gracePeriod time in seconds that a payload has to be executed
* @param actions array of actions to be executed
*/
struct Payload {
address creator;
PayloadsControllerUtils.AccessControl maximumAccessLevelRequired;
PayloadState state;
uint40 createdAt;
uint40 queuedAt;
uint40 executedAt;
uint40 cancelledAt;
uint40 expirationTime;
uint40 delay;
uint40 gracePeriod;
ExecutionAction[] actions;
}
/**
* @notice Event emitted when an executor has been set for a determined access level
* @param accessLevel level of access that the executor will be set to
* @param executor address that will be set for the determined access level
* @param delay time in seconds between queuing and execution
*/
event ExecutorSet(
PayloadsControllerUtils.AccessControl indexed accessLevel,
address indexed executor,
uint40 delay
);
/**
* @notice Event emitted when a payload has been created
* @param payloadId id of the payload created
* @param creator address pertaining to the caller of the method createPayload
* @param actions array of the actions conforming the payload
* @param maximumAccessLevelRequired maximum level of the access control
*/
event PayloadCreated(
uint40 indexed payloadId,
address indexed creator,
ExecutionAction[] actions,
PayloadsControllerUtils.AccessControl indexed maximumAccessLevelRequired
);
/**
* @notice emitted when a cross chain message gets received
* @param originSender address that sent the message on the origin chain
* @param originChainId id of the chain where the message originated
* @param delivered flag indicating if message has been delivered
* @param message bytes containing the necessary information to queue the bridged payload id
* @param reason bytes with the revert information
*/
event PayloadExecutionMessageReceived(
address indexed originSender,
uint256 indexed originChainId,
bool indexed delivered,
bytes message,
bytes reason
);
/**
* @notice Event emitted when a payload has been executed
* @param payloadId id of the payload being enqueued
*/
event PayloadExecuted(uint40 payloadId);
/**
* @notice Event emitted when a payload has been queued
* @param payloadId id of the payload being enqueued
*/
event PayloadQueued(uint40 payloadId);
/**
* @notice Event emitted when cancelling a payload
* @param payloadId id of the cancelled payload
*/
event PayloadCancelled(uint40 payloadId);
/**
* @notice get the expiration delay of a payload
* @return expiration delay in seconds
*/
function EXPIRATION_DELAY() external view returns (uint40);
/**
* @notice get the maximum time in seconds that a proposal must spend being queued
* @return max delay in seconds
*/
function MAX_EXECUTION_DELAY() external view returns (uint40);
/**
* @notice get the minimum time in seconds that a proposal must spend being queued
* @return min delay in seconds
*/
function MIN_EXECUTION_DELAY() external view returns (uint40);
/**
* @notice time in seconds where the proposal can be executed (from executionTime) before it expires
* @return grace period in seconds
*/
function GRACE_PERIOD() external view returns (uint40);
/**
* @notice get a previously created payload object
* @param payloadId id of the payload to retrieve
* @return payload information
*/
function getPayloadById(uint40 payloadId) external view returns (Payload memory);
/**
* @notice get the current state of a payload
* @param payloadId id of the payload to retrieve the state from
* @return payload state
*/
function getPayloadState(uint40 payloadId) external view returns (PayloadState);
/**
* @notice get the total count of payloads created
* @return number of payloads
*/
function getPayloadsCount() external view returns (uint40);
/**
* @notice method that will create a Payload object for every action sent
* @param actions array of actions which this proposal payload will contain
* @return id of the created payload
*/
function createPayload(ExecutionAction[] calldata actions) external returns (uint40);
/**
* @notice method to execute a payload
* @param payloadId id of the payload that needs to be executed
*/
function executePayload(uint40 payloadId) external payable;
/**
* @notice method to cancel a payload
* @param payloadId id of the payload that needs to be canceled
*/
function cancelPayload(uint40 payloadId) external;
/**
* @notice method to add executors and its configuration
* @param executors array of UpdateExecutorInput objects
*/
function updateExecutors(UpdateExecutorInput[] calldata executors) external;
/**
* @notice method to get the executor configuration assigned to the specified level
* @param accessControl level of which we want to get the executor configuration from
* @return executor configuration
*/
function getExecutorSettingsByAccessControl(
PayloadsControllerUtils.AccessControl accessControl
) external view returns (ExecutorConfig memory);
}
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.