-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the develop branch to the master branch, preparation to v1.1.0-rc1
This update for the `master` branch contains the following set of changes: - [Improvement] Inverse logic for forwarding execution of messages (#50) - [Improvement] Add interfaces versions getter to external modules contracts (#51), closes #25 - [Improvement] Add AAVE interest earning (#52) - [Other] Bump package and contracts interfaces version prior to 1.1.0-rc1 (#53)
- Loading branch information
Showing
22 changed files
with
805 additions
and
33 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,8 @@ | ||
pragma solidity 0.7.5; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface IAToken is IERC20 { | ||
// solhint-disable-next-line func-name-mixedcase | ||
function UNDERLYING_ASSET_ADDRESS() external returns (address); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pragma solidity 0.7.5; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface ILendingPool { | ||
function deposit( | ||
address asset, | ||
uint256 amount, | ||
address onBehalfOf, | ||
uint16 referralCode | ||
) external; | ||
|
||
function withdraw( | ||
address asset, | ||
uint256 amount, | ||
address to | ||
) external returns (uint256); | ||
|
||
function borrow( | ||
address asset, | ||
uint256 amount, | ||
uint256 interestRateMode, | ||
uint16 referralCode, | ||
address onBehalfOf | ||
) external returns (uint256); | ||
|
||
function repay( | ||
address asset, | ||
uint256 amount, | ||
uint256 rateMode, | ||
address onBehalfOf | ||
) external returns (uint256); | ||
|
||
// workaround to omit usage of abicoder v2 | ||
// see real signature at https://github.com/aave/protocol-v2/blob/master/contracts/protocol/libraries/types/DataTypes.sol | ||
function getReserveData(address asset) external returns (address[12] memory); | ||
} |
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,7 @@ | ||
pragma solidity 0.7.5; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface IMintableERC20 is IERC20 { | ||
function mint(uint256 value) external; | ||
} |
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,11 @@ | ||
pragma solidity 0.7.5; | ||
|
||
import "../upgradeable_contracts/modules/interest/AAVEInterestERC20.sol"; | ||
|
||
contract AAVEInterestERC20Mock is AAVEInterestERC20 { | ||
constructor(address _omnibridge, address _owner) AAVEInterestERC20(_omnibridge, _owner) {} | ||
|
||
function lendingPool() public pure override returns (ILendingPool) { | ||
return ILendingPool(0xDe4e2b5D55D2eE0F95b6D96C1BF86b45364e45B0); | ||
} | ||
} |
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
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
Oops, something went wrong.