Skip to content

Commit

Permalink
solidity 0.8.23
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Dec 1, 2023
1 parent a283c69 commit 598a791
Show file tree
Hide file tree
Showing 146 changed files with 146 additions and 146 deletions.
2 changes: 1 addition & 1 deletion chains/PolygonLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../src/core/proxy/Proxy.sol";
import "../src/adapters/libs/AmmAdapterIdLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.Polygon.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "forge-std/Script.sol";
import "../chains/PolygonLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.PolygonForking.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "forge-std/Script.sol";
import "../src/interfaces/IPlatform.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/libs/DeployAdapterLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../../src/core/proxy/Proxy.sol";
import "../../src/adapters/libs/AmmAdapterIdLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/libs/DeployLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import {console} from "forge-std/Test.sol";
import "../../src/core/proxy/Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/libs/DeployStrategyLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../../src/core/proxy/Proxy.sol";
import "../../src/interfaces/IPlatform.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/AlgebraAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/ChainlinkAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../interfaces/IOracleAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/KyberAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/UniswapV3Adapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/AprOracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "./base/Controllable.sol";
import "../interfaces/IAprOracle.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/Factory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/HardWorker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/Strings.sol";
import "./base/Controllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/Platform.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/PriceReader.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/StrategyLogic.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "./base/Controllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/Swapper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/VaultManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/Zap.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/base/Controllable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/base/RVaultBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/math/Math.sol";
import "./VaultBase.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/base/UpgradeableProxy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

/// @title Simple ERC-1967 upgradeable proxy implementation
abstract contract UpgradeableProxy {
Expand Down
2 changes: 1 addition & 1 deletion src/core/base/VaultBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/CommonLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/ConstantsLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

library ConstantsLib {
uint internal constant SWAP_REVENUE_PRICE_IMPACT_TOLERANCE = 1_000;
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/DeployerLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../proxy/VaultProxy.sol";
import "../proxy/StrategyProxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/FactoryLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/RVaultLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/SlotsLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

/// @title Minimal library for setting / getting slot variables (used in upgradable proxy contracts)
library SlotsLib {
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/StrategyLogicLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/VaultManagerLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/VaultStatusLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

library VaultStatusLib {
uint internal constant NOT_EXIST = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/core/libs/VaultTypeLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

library VaultTypeLib {
string internal constant COMPOUNDING = "Compounding";
Expand Down
2 changes: 1 addition & 1 deletion src/core/proxy/Proxy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../base/UpgradeableProxy.sol";
import "../../interfaces/IControllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/proxy/StrategyProxy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../../core/base/UpgradeableProxy.sol";
import "../../interfaces/IControllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/proxy/VaultProxy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../../core/base/UpgradeableProxy.sol";
import "../../interfaces/IControllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/vaults/CVault.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "../base/VaultBase.sol";
import "../libs/VaultTypeLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/vaults/RMVault.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/math/Math.sol";
import "../base/VaultBase.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/vaults/RVault.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/utils/math/Math.sol";
import "../base/VaultBase.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IAlgebraEternalFarming.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "./IncentiveKey.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IAlgebraPool.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.22;
pragma solidity ^0.8.23;

import './pool/IAlgebraPoolImmutables.sol';
import './pool/IAlgebraPoolState.sol';
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IAlgebraQuoter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

/// @notice Restored from 0xa15F0D7377B2A0C0c10db057f641beD21028FC89
interface IAlgebraQuoter {
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IDataStorageOperator.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.22;
pragma solidity ^0.8.23;
pragma abicoder v2;

// coefficients for sigmoids: α / (1 + e^( (β-x) / γ))
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IFarmingCenter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "./IAlgebraEternalFarming.sol";
import "./IncentiveKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/INonfungiblePositionManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

interface INonfungiblePositionManager {
struct MintParams {
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/IncentiveKey.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

struct IncentiveKey {
address rewardToken;
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/pool/IAlgebraPoolActions.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.22;
pragma solidity ^0.8.23;

/// @title Permissionless pool actions
/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/pool/IAlgebraPoolDerivedState.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.22;
pragma solidity ^0.8.23;

/**
* @title Pool state that is not stored
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/pool/IAlgebraPoolEvents.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.22;
pragma solidity ^0.8.23;

/// @title Events emitted by a pool
/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/pool/IAlgebraPoolImmutables.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.22;
pragma solidity ^0.8.23;

import '../IDataStorageOperator.sol';

Expand Down
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.22;
pragma solidity ^0.8.23;

/**
* @title Permissioned pool actions
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/algebra/pool/IAlgebraPoolState.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.22;
pragma solidity ^0.8.23;

/// @title Pool state that can change
/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/chainlink/IAggregatorV3Interface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

interface IAggregatorV3Interface {
function latestRoundData() external view returns (
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/gamma/IHypervisor.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

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

interface IUniProxy {
/// @notice Get the amount of token to deposit for the given amount of pair token
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/gelato/IAutomate.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import "./ITaskTreasuryUpgradable.sol";

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

interface IOpsProxyFactory {
/**
Expand Down
Loading

0 comments on commit 598a791

Please sign in to comment.