Skip to content

Commit

Permalink
Merge pull request #21 from bgd-labs/feat/helper-batches
Browse files Browse the repository at this point in the history
misc: and add static-a-token and engine tests
  • Loading branch information
brotherlymite authored Jul 10, 2024
2 parents 3375062 + cdb05ee commit 5d9b4a5
Show file tree
Hide file tree
Showing 80 changed files with 5,011 additions and 309 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ out/
# general
.env
.env.bk
.assets
reports/
diffs/
downloads/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Aave V3.1 Origin

![Aave v3.1 Origin_banner](./v3-1-banner.jpeg)
![Aave v3.1 Origin_banner](./resources/v3-1-banner.jpeg)

Aave v3.1 complete codebase, Foundry-based.

Expand Down
Empty file added reports/.empty
Empty file.
16 changes: 16 additions & 0 deletions resources/configs-engine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/static-a-token-wrapping.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
13 changes: 11 additions & 2 deletions scripts/misc/DeployAaveV3MarketBatchedBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract contract DeployAaveV3MarketBatchedBase is DeployUtils, MarketInput, Scr

(roles, config, flags, report) = _getMarketInput(msg.sender);

_loadWarnings(config);
_loadWarnings(config, flags);

vm.startBroadcast();
report = AaveV3BatchOrchestration.deployAaveV3(msg.sender, roles, config, flags, report);
Expand All @@ -38,12 +38,21 @@ abstract contract DeployAaveV3MarketBatchedBase is DeployUtils, MarketInput, Scr
metadataReporter.writeJsonReportMarket(report);
}

function _loadWarnings(MarketConfig memory config) internal view {
function _loadWarnings(MarketConfig memory config, DeployFlags memory flags) internal view {
if (config.paraswapAugustusRegistry == address(0)) {
console.log(
'Warning: Paraswap Adapters will be skipped at deployment due missing config.paraswapAugustusRegistry'
);
}
if (
(flags.l2 &&
(config.l2SequencerUptimeFeed == address(0) ||
config.l2PriceOracleSentinelGracePeriod == 0))
) {
console.log(
'Warning: L2 Sequencer uptime feed wont be set at deployment due missing config.l2SequencerUptimeFeed config.l2PriceOracleSentinelGracePeriod'
);
}
if (
config.networkBaseTokenPriceInUsdProxyAggregator == address(0) ||
config.marketReferenceCurrencyPriceInUsdProxyAggregator == address(0)
Expand Down
12 changes: 0 additions & 12 deletions src/core/contracts/flashloan/base/LICENSE.md

This file was deleted.

12 changes: 0 additions & 12 deletions src/core/contracts/flashloan/interfaces/LICENSE.md

This file was deleted.

12 changes: 0 additions & 12 deletions src/core/contracts/interfaces/LICENSE.md

This file was deleted.

12 changes: 0 additions & 12 deletions src/core/contracts/misc/interfaces/LICENSE.md

This file was deleted.

Loading

0 comments on commit 5d9b4a5

Please sign in to comment.