Skip to content

Commit

Permalink
harmonized function naming
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed May 21, 2024
1 parent ef5e983 commit d115c73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Facets/GenericSwapFacetV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ contract GenericSwapFacetV3 is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
/// @param _receiver the address to receive the swapped tokens into (also excess tokens)
/// @param _minAmountOut the minimum amount of the final asset to receive
/// @param _swapData an object containing swap related data to perform swaps before bridging
function swapTokensGenericV3FromERC20ToNative(
function swapTokensMultipleV3ERC20ToNative(
bytes32 _transactionId,
string calldata _integrator,
string calldata _referrer,
Expand All @@ -241,7 +241,7 @@ contract GenericSwapFacetV3 is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
/// @param _receiver the address to receive the swapped tokens into (also excess tokens)
/// @param _minAmountOut the minimum amount of the final asset to receive
/// @param _swapData an object containing swap related data to perform swaps before bridging
function swapTokensGenericV3FromERC20ToERC20(
function swapTokensMultipleV3ERC20ToERC20(
bytes32 _transactionId,
string calldata _integrator,
string calldata _referrer,
Expand All @@ -268,7 +268,7 @@ contract GenericSwapFacetV3 is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
/// @param _receiver the address to receive the swapped tokens into (also excess tokens)
/// @param _minAmountOut the minimum amount of the final asset to receive
/// @param _swapData an object containing swap related data to perform swaps before bridging
function swapTokensGenericV3FromNativeToERC20(
function swapTokensMultipleV3NativeToERC20(
bytes32 _transactionId,
string calldata _integrator,
string calldata _referrer,
Expand Down
16 changes: 8 additions & 8 deletions test/solidity/Facets/GenericSwapFacetV3.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
.swapTokensSingleV3NativeToERC20
.selector;
functionSelectorsV3[3] = genericSwapFacetV3
.swapTokensGenericV3FromERC20ToERC20
.swapTokensMultipleV3ERC20ToERC20
.selector;
functionSelectorsV3[4] = genericSwapFacetV3
.swapTokensGenericV3FromERC20ToNative
.swapTokensMultipleV3ERC20ToNative
.selector;
functionSelectorsV3[5] = genericSwapFacetV3
.swapTokensGenericV3FromNativeToERC20
.swapTokensMultipleV3NativeToERC20
.selector;

addFacet(diamond, address(genericSwapFacetV3), functionSelectorsV3);
Expand Down Expand Up @@ -716,7 +716,7 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
minAmountOut // toAmount (with liquidity in that selected block)
);

genericSwapFacetV3.swapTokensGenericV3FromERC20ToERC20(
genericSwapFacetV3.swapTokensMultipleV3ERC20ToERC20(
"",
"integrator",
"referrer",
Expand Down Expand Up @@ -855,7 +855,7 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
minAmountOut // toAmount (with liquidity in that selected block)
);

genericSwapFacetV3.swapTokensGenericV3FromNativeToERC20{
genericSwapFacetV3.swapTokensMultipleV3NativeToERC20{
value: amountIn
}(
"",
Expand Down Expand Up @@ -1008,7 +1008,7 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
minAmountOut // toAmount (with liquidity in that selected block)
);

genericSwapFacetV3.swapTokensGenericV3FromERC20ToERC20(
genericSwapFacetV3.swapTokensMultipleV3ERC20ToERC20(
"",
"integrator",
"referrer",
Expand Down Expand Up @@ -1146,7 +1146,7 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
minAmountOut // toAmount (with liquidity in that selected block)
);

genericSwapFacetV3.swapTokensGenericV3FromNativeToERC20{
genericSwapFacetV3.swapTokensMultipleV3NativeToERC20{
value: amountIn
}(
"",
Expand Down Expand Up @@ -1300,7 +1300,7 @@ contract GenericSwapFacetV3Test is DSTest, DiamondTest, Test {
minAmountOut // toAmount (with liquidity in that selected block)
);

genericSwapFacetV3.swapTokensGenericV3FromERC20ToNative(
genericSwapFacetV3.swapTokensMultipleV3ERC20ToNative(
"",
"integrator",
"referrer",
Expand Down

0 comments on commit d115c73

Please sign in to comment.