Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranquil-Flow committed Mar 22, 2024
2 parents d9cd361 + f79c7b5 commit 58ee7dd
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 29 deletions.
4 changes: 0 additions & 4 deletions src/FeeCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,4 @@ contract FeeCollector is Ownable, IFeeCollector {
SafeTransferLib.safeTransfer(ERC20(_token), msg.sender, withdrawAmt);
}

/**
* @notice Executes when native is sent to this contract through a non-existent function.
*/
fallback() external payable { } // solhint-disable-line no-empty-blocks
}
2 changes: 1 addition & 1 deletion src/Position.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { DebtService } from "src/services/DebtService.sol";
Expand Down
8 changes: 7 additions & 1 deletion src/PositionFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local
import { Position } from "src/Position.sol";
Expand Down Expand Up @@ -78,7 +78,13 @@ contract PositionFactory is Ownable, IPositionFactory {
}

/**
<<<<<<< HEAD
* @notice Executes when native is sent to this contract through a non-existent function.
*/
fallback() external payable { } // solhint-disable-line no-empty-blocks
=======
* @notice Executes when native is sent to this contract with a plain transaction.
*/
receive() external payable { } // solhint-disable-line no-empty-blocks
>>>>>>> f79c7b55671c8204d3d03bb5efe0ec65e1f85a29
}
2 changes: 1 addition & 1 deletion src/dependencies/aave/DataTypes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

library DataTypes {
struct ReserveData {
Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/access/Context.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Provides information about the current execution context, including the
Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/access/Ownable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { Context } from "src/dependencies/access/Context.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/uniswap/TransferHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IERC20 } from "src/interfaces/token/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IFeeCollector.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

interface IFeeCollector {
/* solhint-disable func-name-mixedcase */
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IPosition.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IDebtService } from "src/interfaces/IDebtService.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IPositionFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

interface IPositionFactory {
/* solhint-disable func-name-mixedcase */
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IAaveOracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IPriceOracleGetter } from "./IPriceOracleGetter.sol";
import { IPoolAddressesProvider } from "./IPoolAddressesProvider.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IPoolAddressesProvider } from "src/interfaces/aave/IPoolAddressesProvider.sol";
import { DataTypes } from "src/dependencies/aave/DataTypes.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPoolAddressesProvider.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @title IPoolAddressesProvider
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPriceOracleGetter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @title IPriceOracleGetter
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IERC20 } from "src/interfaces/token/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20Permit.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/uniswap/ISwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.21;
pragma abicoder v2;
pragma solidity 0.8.21;

import { IUniswapV3SwapCallback } from "src/interfaces/uniswap/IUniswapV3SwapCallback.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/uniswap/IUniswapV3SwapCallback.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/FeeLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { SafeTransferLib, ERC20 } from "solmate/utils/SafeTransferLib.sol";
import { IFeeCollector } from "src/interfaces/IFeeCollector.sol";
Expand Down
8 changes: 7 additions & 1 deletion src/services/AdminService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { IERC20 } from "src/interfaces/token/IERC20.sol";
Expand Down Expand Up @@ -37,9 +37,15 @@ contract AdminService is IAdminService {
}

/**
<<<<<<< HEAD
* @notice Executes when native is sent to this contract through a non-existent function.
*/
fallback() external payable { } // solhint-disable-line no-empty-blocks
=======
* @notice Executes when native is sent to this contract with a plain transaction.
*/
receive() external payable { } // solhint-disable-line no-empty-blocks
>>>>>>> f79c7b55671c8204d3d03bb5efe0ec65e1f85a29

/// @notice Check if the caller is the owner of the Position contract
modifier onlyOwner() {
Expand Down
2 changes: 1 addition & 1 deletion src/services/DebtService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { AdminService } from "src/services/AdminService.sol";
Expand Down
4 changes: 1 addition & 3 deletions src/services/SwapService.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

pragma abicoder v2;
pragma solidity 0.8.21;

// Local imports
import { TransferHelper } from "src/dependencies/uniswap/TransferHelper.sol";
Expand Down

0 comments on commit 58ee7dd

Please sign in to comment.