Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 8d12d79

Browse files
author
Steven Valeri
committed
feat: updates and tests
1 parent 8b9221b commit 8d12d79

File tree

6 files changed

+195
-129
lines changed

6 files changed

+195
-129
lines changed

contracts/deployments/ReservesSetupHelper.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ contract ReservesSetupHelper is Ownable {
4444

4545
if (inputParams[i].borrowingEnabled) {
4646
configurator.setReserveBorrowing(inputParams[i].asset, true);
47-
configurator.setReserveFlashLoaning(inputParams[i].asset, inputParams[i].flashLoanEnabled);
4847

4948
configurator.setBorrowCap(inputParams[i].asset, inputParams[i].borrowCap);
5049
configurator.setReserveStableRateBorrowing(
5150
inputParams[i].asset,
5251
inputParams[i].stableBorrowingEnabled
5352
);
5453
}
54+
configurator.setReserveFlashLoaning(inputParams[i].asset, inputParams[i].flashLoanEnabled);
5555
configurator.setSupplyCap(inputParams[i].asset, inputParams[i].supplyCap);
5656
configurator.setReserveFactor(inputParams[i].asset, inputParams[i].reserveFactor);
5757
}

contracts/misc/AaveProtocolDataProvider.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,16 @@ contract AaveProtocolDataProvider is IPoolDataProvider {
374374

375375
return (reserve.interestRateStrategyAddress);
376376
}
377+
378+
/**
379+
* @notice Returns whether the reserve has FlashLoans enabled or disabled
380+
* @param asset The address of the underlying asset of the reserve
381+
* @return enabled True if FlashLoans are enabled, False if disabled
382+
* */
383+
function getFlashLoanEnabled(address asset) external view returns (bool) {
384+
DataTypes.ReserveConfigurationMap memory configuration = IPool(ADDRESSES_PROVIDER.getPool())
385+
.getConfiguration(asset);
386+
387+
return configuration.getFlashLoanEnabled();
388+
}
377389
}

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"prepublish": "npm run compile"
3131
},
3232
"devDependencies": {
33-
"@aave/deploy-v3": "1.24.0-beta.0",
33+
"@aave/deploy-v3": "1.24.0-beta.2",
3434
"@aave/periphery-v3": "1.18.0",
3535
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
3636
"@tenderly/hardhat-tenderly": "1.1.0-beta.5",

0 commit comments

Comments
 (0)