Skip to content

Commit

Permalink
solidity 0.8.26
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Jun 3, 2024
1 parent 2091572 commit 3debc5d
Show file tree
Hide file tree
Showing 68 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion chains/RealLib.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.26;

import {console} from "forge-std/Test.sol";
import "../script/lib/DeployLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.Goerli.s.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.26;

import "forge-std/Script.sol";
import "../chains/GoerliLib.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: BUSL-1.1
pragma solidity ^0.8.21;
pragma solidity ^0.8.26;

import "forge-std/Script.sol";
import "../chains/PolygonLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.Real.s.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.26;

import "forge-std/Script.sol";
import {RealLib} from "../chains/RealLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.Unreal.s.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.26;

import "forge-std/Script.sol";
import "../chains/UnrealLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployCompounder.Unreal.s.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.26;

import "forge-std/Script.sol";
import "../src/Frontend.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployCustomIfoVaultAndStrategy.s.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.26;

import "forge-std/Script.sol";
import "../src/interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployDepositHelper.s.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.26;

import "forge-std/Script.sol";
import "../src/DepositHelper.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployFrontend.Goerli.s.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.26;

import "forge-std/Script.sol";
import "../src/Frontend.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployFrontend.Unreal.s.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.26;

import "forge-std/Script.sol";
import "../src/Frontend.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployVaultAndStrategy.s.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.26;

import "forge-std/Script.sol";
import "../src/interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/PrepareFactoryUpgrade.s.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.26;

import "forge-std/Script.sol";
import "../src/Factory.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/lib/DeployLib.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.26;

import {Test, console2} from "forge-std/Test.sol";
import "../../src/Controller.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Compounder.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.26;

import "openzeppelin-contracts/contracts/utils/Strings.sol";
import "./interfaces/IStrategyStrict.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/CompounderVault.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC4626.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/ControllableProxy.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.26;

import "./interfaces/IControllable.sol";
import "./interfaces/IProxyControlled.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Controller.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.26;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/DepositHelper.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.26;

import "openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.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.26;

import "./base/Controllable.sol";
import "./CompounderVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend.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.26;

import "./interfaces/IController.sol";
import "./interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/HarvesterVault.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC4626.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/IFO.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IController.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/MultiGauge.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.26;

import "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IVe.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/PearlStrategy.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.26;

import "./base/StrategyStrictBase.sol";
import "./interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/PearlStrategyCustomIFO.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.26;

import "./base/StrategyStrictBase.sol";
import "./interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/PerfFeeTreasury.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/STGN.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "./interfaces/ISTGN.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/VeDistributor.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/utils/math/Math.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/VeSTGN.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Vesting.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IVesting.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/Controllable.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.26;

import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../interfaces/IControllable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/StakelessMultiPoolBase.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.26;

import "openzeppelin-contracts/contracts/utils/math/Math.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/StrategyStrictBase.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.26;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/utils/math/Math.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/UpgradeableProxy.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.26;

abstract contract UpgradeableProxy {
/// @dev This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IControllable.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.26;

interface IControllable {
function isController(address _contract) external view returns (bool);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IController.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.26;

interface IController {
event ProxyUpgradeAnnounced(address proxy, address implementation);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IGauge.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.26;

interface IGauge {
// function veIds(address stakingToken, address account) external view returns (uint);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IGaugeV2ALM.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.26;

interface IGaugeV2ALM {
function box() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IIFO.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.26;

interface IIFO {
event Setup(address controller, address stgn, address rewardToken, uint rate);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ILiquidBox.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.26;

interface ILiquidBox {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ILiquidatorControllable.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.26;

interface ILiquidatorControllable {
function controller() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ILiquidatorController.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.26;

interface ILiquidatorController {
function governance() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IMultiPool.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.26;

interface IMultiPool {
function totalSupply(address stakingToken) external view returns (uint);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IProxyControlled.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.26;

interface IProxyControlled {
function initProxy(address _logic) external;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ISTGN.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.26;

interface ISTGN {
function vesting() external view returns (address[] memory);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IStrategyStrict.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.26;

interface IStrategyStrict {
function asset() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ITetuLiquidator.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.26;

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

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IVault.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.26;

import "openzeppelin-contracts/contracts/interfaces/IERC4626.sol";
import "./IStrategyStrict.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IVe.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.26;

import "openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IVeDistributor.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.26;

interface IVeDistributor {
function rewardToken() external view returns (address);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IVesting.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.26;

/// @title Vesting contract interface
interface IVesting {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/DeployerLib.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.26;

import "../HarvesterVault.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/SlotsLib.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.26;

/// @title Library for setting / getting slot variables (used in upgradable proxy contracts)
/// @author bogdoslav
Expand Down
2 changes: 1 addition & 1 deletion src/lib/StringLib.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.26;

library StringLib {
function toAsciiString(address x) internal pure returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/VeSTGNLib.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.26;

import "openzeppelin-contracts/contracts/utils/Strings.sol";
import "openzeppelin-contracts/contracts/utils/Base64.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Controller.t.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.26;

import {Test, console2} from "forge-std/Test.sol";
import {Controller} from "../src/Controller.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/PearlStrategy.Real.t.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.26;

import "./setup/MockSetup.sol";
import "../src/HarvesterVault.sol";
Expand Down
Loading

0 comments on commit 3debc5d

Please sign in to comment.