Skip to content

Commit

Permalink
feat: add generic executor (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Jan 26, 2023
1 parent 2fca32a commit 8f5f9d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 84 deletions.
82 changes: 0 additions & 82 deletions src/interfaces/IERC20.sol

This file was deleted.

9 changes: 9 additions & 0 deletions src/interfaces/IProposalGenericExecutor.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
* @dev Generic proposal interface allowing execution via MockExecutor
*/
interface IProposalGenericExecutor {
function execute() external;
}
4 changes: 2 additions & 2 deletions src/v3-listing-engine/GenericV3ListingEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.12;

import {IPoolConfigurator, IAaveOracle, ConfiguratorInputTypes} from 'aave-address-book/AaveV3.sol';
import {IERC20} from '../interfaces/IERC20.sol';
import {IERC20Metadata} from 'solidity-utils/contracts/oz-common/interfaces/IERC20Metadata.sol';
import {IChainlinkAggregator} from '../interfaces/IChainlinkAggregator.sol';
import {IGenericV3ListingEngine} from './IGenericV3ListingEngine.sol';

Expand Down Expand Up @@ -94,7 +94,7 @@ contract GenericV3ListingEngine is IGenericV3ListingEngine {
ConfiguratorInputTypes.InitReserveInput[]
memory initReserveInputs = new ConfiguratorInputTypes.InitReserveInput[](ids.length);
for (uint256 i = 0; i < ids.length; i++) {
uint8 decimals = IERC20(ids[i]).decimals();
uint8 decimals = IERC20Metadata(ids[i]).decimals();
require(decimals > 0, 'INVALID_ASSET_DECIMALS');
require(basics[i].rateStrategy != address(0), 'ONLY_NONZERO_RATE_STRATEGY');

Expand Down

0 comments on commit 8f5f9d3

Please sign in to comment.