-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from aave/feat/light-deployments
Enable light deployment of the protocol
- Loading branch information
Showing
181 changed files
with
20,088 additions
and
1,948 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.6.12; | ||
|
||
import {ILendingPool} from './ILendingPool.sol'; | ||
import {IAaveIncentivesController} from './IAaveIncentivesController.sol'; | ||
|
||
/** | ||
* @title IInitializableAToken | ||
* @notice Interface for the initialize function on AToken | ||
* @author Aave | ||
**/ | ||
interface IInitializableAToken { | ||
/** | ||
* @dev Emitted when an aToken is initialized | ||
* @param underlyingAsset The address of the underlying asset | ||
* @param pool The address of the associated lending pool | ||
* @param treasury The address of the treasury | ||
* @param incentivesController The address of the incentives controller for this aToken | ||
* @param aTokenDecimals the decimals of the underlying | ||
* @param aTokenName the name of the aToken | ||
* @param aTokenSymbol the symbol of the aToken | ||
* @param params A set of encoded parameters for additional initialization | ||
**/ | ||
event Initialized( | ||
address indexed underlyingAsset, | ||
address indexed pool, | ||
address treasury, | ||
address incentivesController, | ||
uint8 aTokenDecimals, | ||
string aTokenName, | ||
string aTokenSymbol, | ||
bytes params | ||
); | ||
|
||
/** | ||
* @dev Initializes the aToken | ||
* @param pool The address of the lending pool where this aToken will be used | ||
* @param treasury The address of the Aave treasury, receiving the fees on this aToken | ||
* @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH) | ||
* @param incentivesController The smart contract managing potential incentives distribution | ||
* @param aTokenDecimals The decimals of the aToken, same as the underlying asset's | ||
* @param aTokenName The name of the aToken | ||
* @param aTokenSymbol The symbol of the aToken | ||
*/ | ||
function initialize( | ||
ILendingPool pool, | ||
address treasury, | ||
address underlyingAsset, | ||
IAaveIncentivesController incentivesController, | ||
uint8 aTokenDecimals, | ||
string calldata aTokenName, | ||
string calldata aTokenSymbol, | ||
bytes calldata params | ||
) 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,51 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.6.12; | ||
|
||
import {ILendingPool} from './ILendingPool.sol'; | ||
import {IAaveIncentivesController} from './IAaveIncentivesController.sol'; | ||
|
||
/** | ||
* @title IInitializableDebtToken | ||
* @notice Interface for the initialize function common between debt tokens | ||
* @author Aave | ||
**/ | ||
interface IInitializableDebtToken { | ||
/** | ||
* @dev Emitted when a debt token is initialized | ||
* @param underlyingAsset The address of the underlying asset | ||
* @param pool The address of the associated lending pool | ||
* @param incentivesController The address of the incentives controller for this aToken | ||
* @param debtTokenDecimals the decimals of the debt token | ||
* @param debtTokenName the name of the debt token | ||
* @param debtTokenSymbol the symbol of the debt token | ||
* @param params A set of encoded parameters for additional initialization | ||
**/ | ||
event Initialized( | ||
address indexed underlyingAsset, | ||
address indexed pool, | ||
address incentivesController, | ||
uint8 debtTokenDecimals, | ||
string debtTokenName, | ||
string debtTokenSymbol, | ||
bytes params | ||
); | ||
|
||
/** | ||
* @dev Initializes the debt token. | ||
* @param pool The address of the lending pool where this aToken will be used | ||
* @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH) | ||
* @param incentivesController The smart contract managing potential incentives distribution | ||
* @param debtTokenDecimals The decimals of the debtToken, same as the underlying asset's | ||
* @param debtTokenName The name of the token | ||
* @param debtTokenSymbol The symbol of the token | ||
*/ | ||
function initialize( | ||
ILendingPool pool, | ||
address underlyingAsset, | ||
IAaveIncentivesController incentivesController, | ||
uint8 debtTokenDecimals, | ||
string memory debtTokenName, | ||
string memory debtTokenSymbol, | ||
bytes calldata params | ||
) external; | ||
} |
Oops, something went wrong.