Updated migration scripts for the reserve factor

This commit is contained in:
The3D 2020-11-27 18:18:31 +01:00
parent 8cff75f7e3
commit 9165cdc4d5
2 changed files with 15 additions and 9 deletions

View File

@ -318,12 +318,12 @@ export const deployVariableDebtToken = async (
);
export const deployGenericAToken = async (
[poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController]: [
[poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol,incentivesController]: [
tEthereumAddress,
tEthereumAddress,
tEthereumAddress,
string,
string,
tEthereumAddress,
tEthereumAddress
],
verify: boolean
@ -336,7 +336,7 @@ export const deployGenericAToken = async (
tEthereumAddress,
tEthereumAddress
] = [poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController];
] = [poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController];
return withSaveAndVerify(
await new ATokenFactory(await getFirstSigner()).deploy(...args),
eContractid.AToken,
@ -346,12 +346,12 @@ export const deployGenericAToken = async (
};
export const deployDelegationAwareAToken = async (
[poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController]: [
[poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController]: [
tEthereumAddress,
tEthereumAddress,
tEthereumAddress,
string,
string,
tEthereumAddress,
tEthereumAddress
],
verify: boolean
@ -363,13 +363,19 @@ export const deployDelegationAwareAToken = async (
string,
tEthereumAddress,
tEthereumAddress
] = [poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController];
return withSaveAndVerify(
] = [poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController];
const promise = withSaveAndVerify(
await new DelegationAwareATokenFactory(await getFirstSigner()).deploy(...args),
eContractid.DelegationAwareAToken,
args,
verify
);
console.log("Done");
return promise;
};
export const deployAllMockTokens = async (verify?: boolean) => {

View File

@ -171,7 +171,7 @@ export const initReservesByHelper = async (
) as [string, IReserveParams][];
for (let [symbol, params] of delegatedAwareReserves) {
console.log(` - Deploy ${symbol} delegation await aToken, debts tokens, and strategy`);
console.log(` - Deploy ${symbol} delegation aware aToken, debts tokens, and strategy`);
const {
optimalUtilizationRate,
baseVariableBorrowRate,
@ -185,9 +185,9 @@ export const initReservesByHelper = async (
[
poolAddress,
tokenAddresses[symbol],
treasuryAddress,
`Aave interest bearing ${symbol}`,
`a${symbol}`,
treasuryAddress,
ZERO_ADDRESS,
],
verify