Skip to content

Commit

Permalink
Merge pull request #256 from Gearbox-protocol/adapter-test-data
Browse files Browse the repository at this point in the history
feat: test structs for new adapters
  • Loading branch information
Van0k authored Aug 16, 2024
2 parents bbe94b9 + 9f08de7 commit ae093e2
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions contracts/test/interfaces/ICreditConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@ struct VelodromeV2Pool {
address factory;
}

struct PendlePair {
address market;
Tokens inputToken;
Tokens pendleToken;
uint8 status;
}

struct MellowUnderlyingConfig {
Contracts vault;
Tokens underlying;
}

struct AdapterConfig {
BalancerPool[] balancerPools;
UniswapV3Pair[] uniswapV3Pairs;
GenericSwapPair[] genericSwapPairs;
VelodromeV2Pool[] velodromeV2Pools;
PendlePair[] pendlePairs;
MellowUnderlyingConfig[] mellowUnderlyings;
}

/// @dev A struct representing the initial Credit Manager configuration parameters
struct CreditManagerV3DeployParams {
/// @dev The Credit Manager's name
Expand Down Expand Up @@ -88,10 +109,7 @@ struct CreditManagerV3DeployParams {
uint256 poolLimit;
//
// ADAPTER CIONFIGURATION
BalancerPool[] balancerPools;
UniswapV3Pair[] uniswapV3Pairs;
GenericSwapPair[] genericSwapPairs;
VelodromeV2Pool[] velodromeV2Pools;
AdapterConfig adapterConfig;
}

struct GaugeRate {
Expand Down

0 comments on commit ae093e2

Please sign in to comment.