mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix typos
This commit is contained in:
parent
b5f2f283a2
commit
1ee5ac78af
|
|
@ -58,7 +58,7 @@ export const getFeeDistributionParamsCommon = (
|
||||||
receiver: tEthereumAddress
|
receiver: tEthereumAddress
|
||||||
): iBasicDistributionParams => {
|
): iBasicDistributionParams => {
|
||||||
const receivers = [receiver, ZERO_ADDRESS];
|
const receivers = [receiver, ZERO_ADDRESS];
|
||||||
const percentages = ['200:0', '8000'];
|
const percentages = ['2000', '8000'];
|
||||||
return {
|
return {
|
||||||
receivers,
|
receivers,
|
||||||
percentages,
|
percentages,
|
||||||
|
|
@ -100,13 +100,11 @@ export const getWethAddress = async (config: ICommonConfiguration) => {
|
||||||
const currentNetwork = DRE.network.name;
|
const currentNetwork = DRE.network.name;
|
||||||
const wethAddress = getParamPerNetwork(config.WETH, <eEthereumNetwork>currentNetwork);
|
const wethAddress = getParamPerNetwork(config.WETH, <eEthereumNetwork>currentNetwork);
|
||||||
if (wethAddress) {
|
if (wethAddress) {
|
||||||
console.log('here', wethAddress);
|
|
||||||
return wethAddress;
|
return wethAddress;
|
||||||
}
|
}
|
||||||
if (currentNetwork.includes('main')) {
|
if (currentNetwork.includes('main')) {
|
||||||
throw new Error('WETH not set at mainnet configuration.');
|
throw new Error('WETH not set at mainnet configuration.');
|
||||||
}
|
}
|
||||||
const weth = await deployWETHMocked();
|
const weth = await deployWETHMocked();
|
||||||
console.log('here2');
|
|
||||||
return weth.address;
|
return weth.address;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user