mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
add poligon related temp hacks
This commit is contained in:
parent
d51ac1d6fe
commit
025a988a13
|
@ -25,7 +25,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
||||||
using UserConfiguration for DataTypes.UserConfigurationMap;
|
using UserConfiguration for DataTypes.UserConfigurationMap;
|
||||||
|
|
||||||
address public constant MOCK_USD_ADDRESS = 0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96;
|
address public constant MOCK_USD_ADDRESS = 0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96;
|
||||||
IAaveIncentivesController public immutable incentivesController;
|
IAaveIncentivesController public immutable override incentivesController;
|
||||||
IPriceOracleGetter public immutable oracle;
|
IPriceOracleGetter public immutable oracle;
|
||||||
|
|
||||||
constructor(IAaveIncentivesController _incentivesController, IPriceOracleGetter _oracle) public {
|
constructor(IAaveIncentivesController _incentivesController, IPriceOracleGetter _oracle) public {
|
||||||
|
@ -138,23 +138,23 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
||||||
// incentives
|
// incentives
|
||||||
if (address(0) != address(incentivesController)) {
|
if (address(0) != address(incentivesController)) {
|
||||||
(
|
(
|
||||||
reserveData.aTokenIncentivesIndex,
|
|
||||||
reserveData.aEmissionPerSecond,
|
reserveData.aEmissionPerSecond,
|
||||||
reserveData.aIncentivesLastUpdateTimestamp
|
reserveData.aIncentivesLastUpdateTimestamp,
|
||||||
|
reserveData.aTokenIncentivesIndex
|
||||||
// ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix
|
// ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix
|
||||||
) = incentivesController.assets(reserveData.aTokenAddress);
|
) = incentivesController.assets(reserveData.aTokenAddress);
|
||||||
|
|
||||||
(
|
(
|
||||||
reserveData.sTokenIncentivesIndex,
|
|
||||||
reserveData.sEmissionPerSecond,
|
reserveData.sEmissionPerSecond,
|
||||||
reserveData.sIncentivesLastUpdateTimestamp
|
reserveData.sIncentivesLastUpdateTimestamp,
|
||||||
|
reserveData.sTokenIncentivesIndex
|
||||||
// ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix
|
// ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix
|
||||||
) = incentivesController.assets(reserveData.stableDebtTokenAddress);
|
) = incentivesController.assets(reserveData.stableDebtTokenAddress);
|
||||||
|
|
||||||
(
|
(
|
||||||
reserveData.vTokenIncentivesIndex,
|
|
||||||
reserveData.vEmissionPerSecond,
|
reserveData.vEmissionPerSecond,
|
||||||
reserveData.vIncentivesLastUpdateTimestamp
|
reserveData.vIncentivesLastUpdateTimestamp,
|
||||||
|
reserveData.vTokenIncentivesIndex
|
||||||
// ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix
|
// ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix
|
||||||
) = incentivesController.assets(reserveData.variableDebtTokenAddress);
|
) = incentivesController.assets(reserveData.variableDebtTokenAddress);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,8 @@ interface IUiPoolDataProvider {
|
||||||
view
|
view
|
||||||
returns (address[] memory);
|
returns (address[] memory);
|
||||||
|
|
||||||
|
function incentivesController() external view returns (IAaveIncentivesController);
|
||||||
|
|
||||||
function getSimpleReservesData(ILendingPoolAddressesProvider provider)
|
function getSimpleReservesData(ILendingPoolAddressesProvider provider)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
|
|
|
@ -47,7 +47,10 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
|
||||||
[eEthereumNetwork.buidlerevm]: 'http://localhost:8545',
|
[eEthereumNetwork.buidlerevm]: 'http://localhost:8545',
|
||||||
[eEthereumNetwork.tenderlyMain]: `https://rpc.tenderly.co/fork/${TENDERLY_FORK_ID}`,
|
[eEthereumNetwork.tenderlyMain]: `https://rpc.tenderly.co/fork/${TENDERLY_FORK_ID}`,
|
||||||
[ePolygonNetwork.mumbai]: 'https://rpc-mumbai.maticvigil.com',
|
[ePolygonNetwork.mumbai]: 'https://rpc-mumbai.maticvigil.com',
|
||||||
[ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
|
[ePolygonNetwork.matic]:
|
||||||
|
// 'https://rpc-mainnet.maticvigil.com/v1/e616b9ddc7598ffae92629f8145614d55094c722',
|
||||||
|
'https://polygon-mainnet.g.alchemy.com/v2/6NUmfWDZw6lC3RPAphj0p_2vm7ElOn2U',
|
||||||
|
// [ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
|
||||||
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
|
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user