Skip to content

Commit

Permalink
fix: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
CheyenneAtapour committed Aug 8, 2024
1 parent 77b4d54 commit 879f742
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.10;
import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';
import {VersionedInitializable} from '@aave/core-v3/contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol';
import {IFixedFeeStrategyFactory} from './interfaces/IFixedFeeStrategyFactory.sol';
import {IGsmFeeStrategy} from 'src/contracts/facilitators/gsm/feeStrategy/interfaces/IGsmFeeStrategy.sol';
import {IGsmFeeStrategy} from './interfaces/IGsmFeeStrategy.sol';
import {FixedFeeStrategy} from './FixedFeeStrategy.sol';

/**
Expand Down Expand Up @@ -69,7 +69,7 @@ contract FixedFeeStrategyFactory is VersionedInitializable, IFixedFeeStrategyFac
}

///@inheritdoc IFixedFeeStrategyFactory
function getStrategyByFees(uint256 buyFee, uint256 sellFee) external view returns (address) {
function getFixedFeeStrategy(uint256 buyFee, uint256 sellFee) external view returns (address) {
return _gsmFeeStrategiesByFees[buyFee][sellFee];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface IFixedFeeStrategyFactory {
* @param sellFee The sell fee of the fee strategy contract
* @return The address of the fee strategy contract
*/
function getStrategyByFees(uint256 buyFee, uint256 sellFee) external view returns (address);
function getFixedFeeStrategy(uint256 buyFee, uint256 sellFee) external view returns (address);

/**
* @notice Returns the GsmFeeStrategyFactory revision number
Expand Down
8 changes: 4 additions & 4 deletions src/test/TestGhoBucketSteward.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ contract TestGhoBucketSteward is TestGhoBase {
}

function testChangeOwnership() public {
address NEW_OWNER = makeAddr('NEW_OWNER');
address newOwner = makeAddr('newOwner');
assertEq(GHO_BUCKET_STEWARD.owner(), SHORT_EXECUTOR);
vm.prank(SHORT_EXECUTOR);
GHO_BUCKET_STEWARD.transferOwnership(NEW_OWNER);
assertEq(GHO_BUCKET_STEWARD.owner(), NEW_OWNER);
GHO_BUCKET_STEWARD.transferOwnership(newOwner);
assertEq(GHO_BUCKET_STEWARD.owner(), newOwner);
}

function testChangeOwnershipRevert() public {
Expand Down Expand Up @@ -165,7 +165,7 @@ contract TestGhoBucketSteward is TestGhoBase {
);
}

function testUpdateFacilitatorBucketCapacityDecrement() public {
function testRevertUpdateFacilitatorBucketCapacityDecrement() public {
(uint256 currentBucketCapacity, ) = GHO_TOKEN.getFacilitatorBucket(address(GHO_ATOKEN));
vm.prank(RISK_COUNCIL);
uint128 newBucketCapacity = uint128(currentBucketCapacity) - 1;
Expand Down

0 comments on commit 879f742

Please sign in to comment.