Skip to content

Commit 8d359e1

Browse files
committed
feat: Add fixes to the avalanche deployment
1 parent 0e7bc49 commit 8d359e1

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

helpers/contracts-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const getOptionalParamAddressPerNetwork = (
192192
return getParamPerNetwork(param, network);
193193
};
194194

195-
export const getParamPerPool = <T>({ proto, amm, matic }: iParamsPerPool<T>, pool: AavePools) => {
195+
export const getParamPerPool = <T>({ proto, amm, matic, avalanche }: iParamsPerPool<T>, pool: AavePools) => {
196196
switch (pool) {
197197
case AavePools.proto:
198198
return proto;

markets/avalanche/commons.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
RAY,
66
ZERO_ADDRESS,
77
MOCK_CHAINLINK_AGGREGATORS_PRICES,
8+
oneUsd,
89
} from '../../helpers/constants';
910
import { ICommonConfiguration, eAvalancheNetwork } from '../../helpers/types';
1011

@@ -19,6 +20,8 @@ export const CommonsConfig: ICommonConfiguration = {
1920
VariableDebtTokenNamePrefix: 'Aave Avalanche Market variable debt',
2021
SymbolPrefix: '', // TODO: add a symbol?
2122
ProviderId: 0, // Overriden in index.ts
23+
OracleQuoteCurrency: 'USD',
24+
OracleQuoteUnit: oneUsd.toString(),
2225
ProtocolGlobalParams: {
2326
TokenDistributorPercentageBase: '10000',
2427
MockUsdPriceInWei: '5848466240000000',

tasks/deployments/add-market-to-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ task('add-market-to-registry', 'Adds address provider to registry')
4040
) {
4141
console.log('- Deploying a new Address Providers Registry:');
4242

43-
await DRE.run('full:deploy-address-provider-registry', { verify });
43+
await DRE.run('full:deploy-address-provider-registry', { verify, pool });
4444

4545
providerRegistryAddress = (await getLendingPoolAddressesProviderRegistry()).address;
4646
providerRegistryOwner = await (await getFirstSigner()).getAddress();

tasks/deployments/deploy-UiPoolDataProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { task } from 'hardhat/config';
2-
import { eContractid, eEthereumNetwork, eNetwork, ePolygonNetwork } from '../../helpers/types';
2+
import { eAvalancheNetwork, eContractid, eEthereumNetwork, eNetwork, ePolygonNetwork } from '../../helpers/types';
33
import { deployUiPoolDataProvider } from '../../helpers/contracts-deployments';
44
import { exit } from 'process';
55

@@ -31,6 +31,10 @@ task(`deploy-${eContractid.UiPoolDataProvider}`, `Deploys the UiPoolDataProvider
3131
incentivesController: '0xd41aE58e803Edf4304334acCE4DC4Ec34a63C644',
3232
aaveOracle: '0xC365C653f7229894F93994CD0b30947Ab69Ff1D5',
3333
},
34+
[eAvalancheNetwork.fuji]: {
35+
incentivesController: '0x0000000000000000000000000000000000000000',
36+
aaveOracle: '0xF8a88cE4bd99dcae4634D1b11bBf4554b1B9EaCf',
37+
},
3438
};
3539
const supportedNetworks = Object.keys(addressesByNetwork);
3640

0 commit comments

Comments
 (0)