mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated migration scripts for the reserve factor
This commit is contained in:
parent
8cff75f7e3
commit
9165cdc4d5
|
@ -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) => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user