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 (
|
export const deployGenericAToken = async (
|
||||||
[poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController]: [
|
[poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol,incentivesController]: [
|
||||||
|
tEthereumAddress,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
string,
|
string,
|
||||||
string,
|
string,
|
||||||
tEthereumAddress,
|
|
||||||
tEthereumAddress
|
tEthereumAddress
|
||||||
],
|
],
|
||||||
verify: boolean
|
verify: boolean
|
||||||
|
@ -336,7 +336,7 @@ export const deployGenericAToken = async (
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
tEthereumAddress
|
tEthereumAddress
|
||||||
|
|
||||||
] = [poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController];
|
] = [poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController];
|
||||||
return withSaveAndVerify(
|
return withSaveAndVerify(
|
||||||
await new ATokenFactory(await getFirstSigner()).deploy(...args),
|
await new ATokenFactory(await getFirstSigner()).deploy(...args),
|
||||||
eContractid.AToken,
|
eContractid.AToken,
|
||||||
|
@ -346,12 +346,12 @@ export const deployGenericAToken = async (
|
||||||
};
|
};
|
||||||
|
|
||||||
export const deployDelegationAwareAToken = async (
|
export const deployDelegationAwareAToken = async (
|
||||||
[poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController]: [
|
[poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController]: [
|
||||||
|
tEthereumAddress,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
string,
|
string,
|
||||||
string,
|
string,
|
||||||
tEthereumAddress,
|
|
||||||
tEthereumAddress
|
tEthereumAddress
|
||||||
],
|
],
|
||||||
verify: boolean
|
verify: boolean
|
||||||
|
@ -363,13 +363,19 @@ export const deployDelegationAwareAToken = async (
|
||||||
string,
|
string,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
tEthereumAddress
|
tEthereumAddress
|
||||||
] = [poolAddress, underlyingAssetAddress, name, symbol, treasuryAddress, incentivesController];
|
] = [poolAddress, underlyingAssetAddress, treasuryAddress, name, symbol, incentivesController];
|
||||||
return withSaveAndVerify(
|
|
||||||
|
const promise = withSaveAndVerify(
|
||||||
await new DelegationAwareATokenFactory(await getFirstSigner()).deploy(...args),
|
await new DelegationAwareATokenFactory(await getFirstSigner()).deploy(...args),
|
||||||
eContractid.DelegationAwareAToken,
|
eContractid.DelegationAwareAToken,
|
||||||
args,
|
args,
|
||||||
verify
|
verify
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log("Done");
|
||||||
|
|
||||||
|
return promise;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const deployAllMockTokens = async (verify?: boolean) => {
|
export const deployAllMockTokens = async (verify?: boolean) => {
|
||||||
|
|
|
@ -171,7 +171,7 @@ export const initReservesByHelper = async (
|
||||||
) as [string, IReserveParams][];
|
) as [string, IReserveParams][];
|
||||||
|
|
||||||
for (let [symbol, params] of delegatedAwareReserves) {
|
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 {
|
const {
|
||||||
optimalUtilizationRate,
|
optimalUtilizationRate,
|
||||||
baseVariableBorrowRate,
|
baseVariableBorrowRate,
|
||||||
|
@ -185,9 +185,9 @@ export const initReservesByHelper = async (
|
||||||
[
|
[
|
||||||
poolAddress,
|
poolAddress,
|
||||||
tokenAddresses[symbol],
|
tokenAddresses[symbol],
|
||||||
|
treasuryAddress,
|
||||||
`Aave interest bearing ${symbol}`,
|
`Aave interest bearing ${symbol}`,
|
||||||
`a${symbol}`,
|
`a${symbol}`,
|
||||||
treasuryAddress,
|
|
||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
],
|
],
|
||||||
verify
|
verify
|
||||||
|
|
Loading…
Reference in New Issue
Block a user