Skip to content

Commit

Permalink
Merge pull request #260 from PeggyJV/collin/aave-v3-support-flashloan
Browse files Browse the repository at this point in the history
Add Aave V3 Debt Token adaptors to flashloan list for aave v3
  • Loading branch information
cbrit committed May 1, 2024
2 parents 3ba15c3 + 89e2f18 commit 6a4c687
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default-members = [
resolver = "2"

[workspace.package]
version = "4.2.1"
version = "4.2.2"
edition = "2021"

[workspace.dependencies]
Expand Down
Binary file modified crates/steward-proto/src/gen/descriptor.bin
Binary file not shown.
5 changes: 4 additions & 1 deletion crates/steward-proto/src/gen/steward.v4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,7 @@ pub mod aave_v3_debt_token_adaptor_v1_flash_loan {
/// The function call data for the adaptor
#[prost(
oneof = "adaptor_call_for_aave_v3_flash_loan::CallData",
tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33"
tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34"
)]
pub call_data: ::core::option::Option<adaptor_call_for_aave_v3_flash_loan::CallData>,
}
Expand Down Expand Up @@ -3608,6 +3608,9 @@ pub mod aave_v3_debt_token_adaptor_v1_flash_loan {
/// Represents function calls for the StakingAdaptorV1
#[prost(message, tag = "33")]
StakingV1Calls(super::super::StakingAdaptorV1Calls),
/// Represents function calls for the AaveV3DebtTokenAdaptor V1
#[prost(message, tag = "34")]
AaveV3DebtTokenV1Calls(super::super::AaveV3DebtTokenAdaptorV1Calls),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion hash_proto
Original file line number Diff line number Diff line change
@@ -1 +1 @@
42ce538b083bd8e0909e5be03277d74f5b19aad9dae9c5fc956831579c2a61e6
16d2cc3be8e4aefd4a4864fccd326e92b66abb878e0e617329e90c1eebfc4fb1
3 changes: 3 additions & 0 deletions proto/steward/v4/aave_v3_debt_token_flash_loan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ option go_package = "/steward_proto";
import "a_token.proto";
import "debt_token.proto";
import "aave_v3_a_token.proto";
import "aave_v3_debt_token.proto";
import "balancer_pool.proto";
import "c_token.proto";
import "erc4626.proto";
Expand Down Expand Up @@ -125,6 +126,8 @@ message AaveV3DebtTokenAdaptorV1FlashLoan {
ERC4626AdaptorV1Calls erc4626_v1_calls = 32;
// Represents function calls for the StakingAdaptorV1
StakingAdaptorV1Calls staking_v1_calls = 33;
// Represents function calls for the AaveV3DebtTokenAdaptor V1
AaveV3DebtTokenAdaptorV1Calls aave_v3_debt_token_v1_calls = 34;
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/cellars/adaptors/aave_v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ fn get_encoded_adaptor_calls(
StakingV1Calls(params) => {
calls.extend(adaptors::staking::staking_adaptor_v1_calls(params)?)
}
AaveV3DebtTokenV1Calls(params) => calls.extend(
adaptors::aave_v3::aave_v3_debt_token_adaptor_v1_calls(params)?,
),
};

result.push(AbiAdaptorCall {
Expand Down

0 comments on commit 6a4c687

Please sign in to comment.