Skip to content

Commit 025a988

Browse files
committed
add poligon related temp hacks
1 parent d51ac1d commit 025a988

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

contracts/misc/UiPoolDataProvider.sol

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
2525
using UserConfiguration for DataTypes.UserConfigurationMap;
2626

2727
address public constant MOCK_USD_ADDRESS = 0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96;
28-
IAaveIncentivesController public immutable incentivesController;
28+
IAaveIncentivesController public immutable override incentivesController;
2929
IPriceOracleGetter public immutable oracle;
3030

3131
constructor(IAaveIncentivesController _incentivesController, IPriceOracleGetter _oracle) public {
@@ -138,23 +138,23 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
138138
// incentives
139139
if (address(0) != address(incentivesController)) {
140140
(
141-
reserveData.aTokenIncentivesIndex,
142141
reserveData.aEmissionPerSecond,
143-
reserveData.aIncentivesLastUpdateTimestamp
142+
reserveData.aIncentivesLastUpdateTimestamp,
143+
reserveData.aTokenIncentivesIndex
144144
// ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix
145145
) = incentivesController.assets(reserveData.aTokenAddress);
146146

147147
(
148-
reserveData.sTokenIncentivesIndex,
149148
reserveData.sEmissionPerSecond,
150-
reserveData.sIncentivesLastUpdateTimestamp
149+
reserveData.sIncentivesLastUpdateTimestamp,
150+
reserveData.sTokenIncentivesIndex
151151
// ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix
152152
) = incentivesController.assets(reserveData.stableDebtTokenAddress);
153153

154154
(
155-
reserveData.vTokenIncentivesIndex,
156155
reserveData.vEmissionPerSecond,
157-
reserveData.vIncentivesLastUpdateTimestamp
156+
reserveData.vIncentivesLastUpdateTimestamp,
157+
reserveData.vTokenIncentivesIndex
158158
// ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix
159159
) = incentivesController.assets(reserveData.variableDebtTokenAddress);
160160
}

contracts/misc/interfaces/IUiPoolDataProvider.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ interface IUiPoolDataProvider {
7878
view
7979
returns (address[] memory);
8080

81+
function incentivesController() external view returns (IAaveIncentivesController);
82+
8183
function getSimpleReservesData(ILendingPoolAddressesProvider provider)
8284
external
8385
view

helper-hardhat-config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
4747
[eEthereumNetwork.buidlerevm]: 'http://localhost:8545',
4848
[eEthereumNetwork.tenderlyMain]: `https://rpc.tenderly.co/fork/${TENDERLY_FORK_ID}`,
4949
[ePolygonNetwork.mumbai]: 'https://rpc-mumbai.maticvigil.com',
50-
[ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
50+
[ePolygonNetwork.matic]:
51+
// 'https://rpc-mainnet.maticvigil.com/v1/e616b9ddc7598ffae92629f8145614d55094c722',
52+
'https://polygon-mainnet.g.alchemy.com/v2/6NUmfWDZw6lC3RPAphj0p_2vm7ElOn2U',
53+
// [ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
5154
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
5255
};
5356

0 commit comments

Comments
 (0)