Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CheyenneAtapour committed Aug 7, 2024
1 parent f8ecd17 commit 9fb1e29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
* @title IFixedRateStrategyFactory
* @author Aave Labs
* @notice Defines the interface of the FixedRateStrategyFactory
*/
interface IFixedRateStrategyFactory {
/**
* @dev Emitted when a new strategy is created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ import {FixedFeeStrategy} from './FixedFeeStrategy.sol';
/**
* @title FixedFeeStrategyFactory
* @author Aave Labs
* @notice Factory contract to create and keep record of Gsm Fee contracts
* @dev Works for fixed fee strategies (percentage based)
* @notice Factory contract to create and keep record of Gsm FixedFeeStrategy contracts
*/
contract FixedFeeStrategyFactory is VersionedInitializable, IFixedFeeStrategyFactory {
using EnumerableSet for EnumerableSet.AddressSet;

/// @dev buyFee => sellFee => feeStrategy
// Mapping of fee strategy contracts by buy and sell fees (buyFee => sellFee => feeStrategy)
mapping(uint256 => mapping(uint256 => address)) internal _gsmFeeStrategiesByFees;
EnumerableSet.AddressSet internal _gsmFeeStrategies;

/**
* @notice FixedFeeStrategyFactory initializer
* @dev Initializer
* @param feeStrategiesList List of fee strategies
* @dev Assumes that the addresses provided are deployed fee strategies.
* @dev Assumes that the addresses provided are deployed FixedFeeStrategy contracts
*/
function initialize(address[] memory feeStrategiesList) external initializer {
for (uint256 i = 0; i < feeStrategiesList.length; i++) {
Expand Down

0 comments on commit 9fb1e29

Please sign in to comment.