Skip to content

Commit

Permalink
Merge pull request #65 from superform-xyz/downsize-solc-2
Browse files Browse the repository at this point in the history
chore: downsize solc
  • Loading branch information
0xTimepunk authored Sep 21, 2023
2 parents 74a2c9d + cf0d214 commit 52c600f
Show file tree
Hide file tree
Showing 105 changed files with 105 additions and 105 deletions.
2 changes: 1 addition & 1 deletion src/_global/swapUtils.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { SafeTransferLib } from "solmate/utils/SafeTransferLib.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/AaveV2ERC4626Reinvest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/AaveV2ERC4626ReinvestFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/AaveV2ERC4626ReinvestIncentive.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/AaveV2ERC4626ReinvestIncentiveFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/aave/IAaveMining.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IAaveMining {
function claimRewards(address[] calldata assets, uint256 amount, address to) external returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/aave/ILendingPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

// Aave lending pool interface
// Documentation: https://docs.aave.com/developers/the-core-protocol/lendingpool/ilendingpool
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/test/AaveV2ERC4626Reinvest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/utils/ISwapRouter.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.19;
pragma abicoder v2;

import "./IUniswapV3SwapCallback.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v2/utils/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.19;

/// @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/aave-v3/AaveV3ERC4626Reinvest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/AaveV3ERC4626ReinvestFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/AaveV3ERC4626ReinvestIncentive.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/AaveV3ERC4626ReinvestIncentiveFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/AaveV3ERC4626ReinvestUni.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/AaveV3ERC4626ReinvestUniFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/external/IPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

/**
* @title IPool
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/external/IRewardsController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

/**
* @title IRewardsController
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/test/AaveV3ERC4626Reinvest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/test/AaveV3ERC4626ReinvestIncentive.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/aave-v3/test/AaveV3ERC4626ReinvestUni.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/AlpacaERC4626Reinvest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/interfaces/IBToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IBToken {
function deposit(uint256) external payable;
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/interfaces/IFairLaunch.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IFairLaunch {
function alpacaPerBlock() external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/interfaces/IRewardsCore.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IRewardsCore {
function claimRewards(address, address, bytes memory) external;
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/interfaces/IVaultConfig.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IVaultConfig {
/// @dev Return the bps rate for reserve pool.
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/interfaces/WrappedNative.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface WrappedNative {
function deposit() external payable;
Expand Down
2 changes: 1 addition & 1 deletion src/alpaca/test/AlpacaERC4626Reinvest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/arrakis/Arrakis_Factory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/arrakis/Arrakis_Non_Native_LP_Vault.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC4626 } from "solmate/mixins/ERC4626.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/arrakis/interfaces/IArrakisRouter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { IGauge } from "./IGauge.sol";

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

interface IGauge {
function withdraw(uint256 amount) external;
Expand Down
2 changes: 1 addition & 1 deletion src/arrakis/interfaces/IStakePool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IStakePool {
function staking_token() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/arrakis/utils/IWETH.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IWETH {
function balanceOf(address) external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/BenqiERC4626Reinvest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/BenqiERC4626Staking.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/BenqiNativeERC4626Reinvest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/external/IBComptroller.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IBComptroller {
function qiAddress() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/external/IBERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/benqi/external/IBEther.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/benqi/external/IBInterestRateModel.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IBInterestRateModel {
function getBorrowRate(uint256, uint256, uint256) external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/external/LibBCompound.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { FixedPointMathLib } from "solmate/utils/FixedPointMathLib.sol";

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

interface IStakedAvax {
function getSharesByPooledAvax(uint256 avaxAmount) external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/test/BenqiERC4626Reinvest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/test/BenqiERC4626Staking.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/test/BenqiNativeERC4626Reinvest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/benqi/utils/wrappedNative.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface WrappedNative {
function deposit() external payable;
Expand Down
2 changes: 1 addition & 1 deletion src/compound/CompoundV2ERC4626Wrapper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/compound/CompoundV3ERC4626Wrapper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC4626 } from "solmate/mixins/ERC4626.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/ICERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/IComet.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.19;

/**
* @title Compound's Comet Main Interface (without Ext)
Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/ICometRewards.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.19;

interface ICometRewards {
struct RewardConfig {
Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/IComptroller.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { ICERC20 } from "./ICERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/IInterestRateModel.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IInterestRateModel {
function getBorrowRate(uint256, uint256, uint256) external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/IWETH.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

interface IWETH {
function deposit() external payable;
Expand Down
2 changes: 1 addition & 1 deletion src/compound/external/LibCompound.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import { FixedPointMathLib } from "solmate/utils/FixedPointMathLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/compound/test/CompoundV2ERC4626Wrapper.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;
pragma solidity ^0.8.19;

import "forge-std/Test.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
Expand Down
Loading

0 comments on commit 52c600f

Please sign in to comment.