@@ -3,15 +3,10 @@ import { getParamPerNetwork } from '../../helpers/contracts-helpers';
33import {
44 deployLendingPoolCollateralManager ,
55 deployWalletBalancerProvider ,
6- deployWETHGateway ,
76 authorizeWETHGateway ,
7+ deployUiPoolDataProvider ,
88} from '../../helpers/contracts-deployments' ;
9- import {
10- loadPoolConfig ,
11- ConfigNames ,
12- getWethAddress ,
13- getTreasuryAddress ,
14- } from '../../helpers/configuration' ;
9+ import { loadPoolConfig , ConfigNames , getTreasuryAddress } from '../../helpers/configuration' ;
1510import { getWETHGateway } from '../../helpers/contracts-getters' ;
1611import { eNetwork , ICommonConfiguration } from '../../helpers/types' ;
1712import { notFalsyOrZeroAddress , waitForTx } from '../../helpers/misc-utils' ;
@@ -50,6 +45,8 @@ task('full:initialize-lending-pool', 'Initialize lending pool configuration.')
5045 const testHelpers = await getAaveProtocolDataProvider ( ) ;
5146
5247 const admin = await addressesProvider . getPoolAdmin ( ) ;
48+ const oracle = await addressesProvider . getPriceOracle ( ) ;
49+
5350 if ( ! reserveAssets ) {
5451 throw 'Reserve assets is undefined. Check ReserveAssets configuration at config directory' ;
5552 }
@@ -103,6 +100,12 @@ task('full:initialize-lending-pool', 'Initialize lending pool configuration.')
103100
104101 await deployWalletBalancerProvider ( verify ) ;
105102
103+ const uiPoolDataProvider = await deployUiPoolDataProvider (
104+ [ incentivesController , oracle ] ,
105+ verify
106+ ) ;
107+ console . log ( 'UiPoolDataProvider deployed at:' , uiPoolDataProvider . address ) ;
108+
106109 const lendingPoolAddress = await addressesProvider . getLendingPool ( ) ;
107110
108111 let gateWay = getParamPerNetwork ( WethGateway , network ) ;
0 commit comments