mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added initialized events
This commit is contained in:
parent
bc1a237f34
commit
03dc5370ee
|
@ -10,6 +10,28 @@ import {IAaveIncentivesController} from './IAaveIncentivesController.sol';
|
||||||
* @author Aave
|
* @author Aave
|
||||||
**/
|
**/
|
||||||
interface IInitializableAToken {
|
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
|
* @dev Initializes the aToken
|
||||||
* @param pool The address of the lending pool where this aToken will be used
|
* @param pool The address of the lending pool where this aToken will be used
|
||||||
|
|
|
@ -10,6 +10,26 @@ import {IAaveIncentivesController} from './IAaveIncentivesController.sol';
|
||||||
* @author Aave
|
* @author Aave
|
||||||
**/
|
**/
|
||||||
interface IInitializableDebtToken {
|
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.
|
* @dev Initializes the debt token.
|
||||||
* @param pool The address of the lending pool where this aToken will be used
|
* @param pool The address of the lending pool where this aToken will be used
|
||||||
|
|
|
@ -96,6 +96,17 @@ contract AToken is
|
||||||
_treasury = treasury;
|
_treasury = treasury;
|
||||||
_underlyingAsset = underlyingAsset;
|
_underlyingAsset = underlyingAsset;
|
||||||
_incentivesController = incentivesController;
|
_incentivesController = incentivesController;
|
||||||
|
|
||||||
|
emit Initialized(
|
||||||
|
underlyingAsset,
|
||||||
|
address(pool),
|
||||||
|
treasury,
|
||||||
|
address(incentivesController),
|
||||||
|
aTokenDecimals,
|
||||||
|
aTokenName,
|
||||||
|
aTokenSymbol,
|
||||||
|
params
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -54,6 +54,16 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
||||||
_pool = pool;
|
_pool = pool;
|
||||||
_underlyingAsset = underlyingAsset;
|
_underlyingAsset = underlyingAsset;
|
||||||
_incentivesController = incentivesController;
|
_incentivesController = incentivesController;
|
||||||
|
|
||||||
|
emit Initialized(
|
||||||
|
underlyingAsset,
|
||||||
|
address(pool),
|
||||||
|
address(incentivesController),
|
||||||
|
debtTokenDecimals,
|
||||||
|
debtTokenName,
|
||||||
|
debtTokenSymbol,
|
||||||
|
params
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,6 +48,16 @@ contract VariableDebtToken is DebtTokenBase, IVariableDebtToken {
|
||||||
_pool = pool;
|
_pool = pool;
|
||||||
_underlyingAsset = underlyingAsset;
|
_underlyingAsset = underlyingAsset;
|
||||||
_incentivesController = incentivesController;
|
_incentivesController = incentivesController;
|
||||||
|
|
||||||
|
emit Initialized(
|
||||||
|
underlyingAsset,
|
||||||
|
address(pool),
|
||||||
|
address(incentivesController),
|
||||||
|
debtTokenDecimals,
|
||||||
|
debtTokenName,
|
||||||
|
debtTokenSymbol,
|
||||||
|
params
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user