Skip to content

Commit

Permalink
feat: test structs for new adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Van0k committed Aug 16, 2024
1 parent bbe94b9 commit 9f08de7
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 9f08de7

Please sign in to comment.