-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use mock incentives controller instead of none
- Loading branch information
Showing
9 changed files
with
114 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.8.6; | ||
|
||
import {IAaveIncentivesController} from './../../interfaces/IAaveIncentivesController.sol'; | ||
|
||
import 'hardhat/console.sol'; | ||
|
||
contract MockIncentivesController is IAaveIncentivesController { | ||
function getAssetData(address asset) | ||
external | ||
view | ||
override | ||
returns ( | ||
uint256, | ||
uint256, | ||
uint256 | ||
) | ||
{ | ||
return (0, 0, 0); | ||
} | ||
|
||
function setClaimer(address user, address claimer) external override {} | ||
|
||
function getClaimer(address user) external view override returns (address) { | ||
return address(1); | ||
} | ||
|
||
function configureAssets(address[] calldata assets, uint256[] calldata emissionsPerSecond) | ||
external | ||
override | ||
{} | ||
|
||
function handleAction( | ||
address asset, | ||
uint256 userBalance, | ||
uint256 totalSupply | ||
) external override {} | ||
|
||
function getRewardsBalance(address[] calldata assets, address user) | ||
external | ||
view | ||
override | ||
returns (uint256) | ||
{ | ||
return 0; | ||
} | ||
|
||
function claimRewards( | ||
address[] calldata assets, | ||
uint256 amount, | ||
address user | ||
) external view override returns (uint256) { | ||
return 0; | ||
} | ||
|
||
function claimRewardsOnBehalf( | ||
address[] calldata assets, | ||
uint256 amount, | ||
address user, | ||
address to | ||
) external view override returns (uint256) { | ||
return 0; | ||
} | ||
|
||
function getUserUnclaimedRewards(address user) external view override returns (uint256) { | ||
return 0; | ||
} | ||
|
||
function getUserAssetData(address user, address asset) external view override returns (uint256) { | ||
return 0; | ||
} | ||
|
||
function REWARD_TOKEN() external view override returns (address) { | ||
return address(0); | ||
} | ||
|
||
function PRECISION() external view override returns (uint8) { | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters