Skip to content
Verified contractPartialBUSL-1.1

FusionFactory

Address0xcdc4429cc74b0878c7cb47685c01d21c8bac0a1f
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.30

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
BUSL-1.1
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,336,738
Creation transaction
0xd3f16b0015…4701cc7e7b
Libraries
lib/ipor-fusion/contracts/factory/FusionFactory.sol:FusionFactoryLib0x6303…dcbf6f

112 files

The source code is large: one file is shown at a time. Choose a file in the list.

lib/ipor-fusion/contracts/factory/FusionFactory.sol

// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.30;

import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import {FusionFactoryStorageLib} from "./lib/FusionFactoryStorageLib.sol";

import {FusionFactoryLogicLib} from "./lib/FusionFactoryLogicLib.sol";
import {FusionFactoryLib} from "./lib/FusionFactoryLib.sol";

import {FusionFactoryAccessControl} from "./FusionFactoryAccessControl.sol";
import {PlasmaVaultLib} from "../libraries/PlasmaVaultLib.sol";

/// @title FusionFactory
/// @notice Factory contract for creating and managing Fusion Managers
/// @dev This contract is responsible for deploying and initializing various manager contracts
contract FusionFactory is UUPSUpgradeable, FusionFactoryAccessControl {
    event FactoryAddressesUpdated(
        uint256 version,
        address accessManagerFactory,
        address plasmaVaultFactory,
        address feeManagerFactory,
        address withdrawManagerFactory,
        address rewardsManagerFactory,
        address contextManagerFactory,
        address priceManagerFactory
    );

    event BaseAddressesUpdated(
        uint256 version,
        address newPlasmaVaultCoreBase,
        address newAccessManagerBase,
        address newPriceManagerBase,
        address newWithdrawManagerBase,
        address newRewardsManagerBase,
        address newContextManagerBase
    );

    event PlasmaVaultBaseUpdated(address newPlasmaVaultBase);
    event PriceOracleMiddlewareUpdated(address newPriceOracleMiddleware);
    event BurnRequestFeeFuseUpdated(address newBurnRequestFeeFuse);
    event BurnRequestFeeBalanceFuseUpdated(address newBurnRequestFeeBalanceFuse);
    event WithdrawWindowInSecondsUpdated(uint256 newWithdrawWindowInSeconds);
    event VestingPeriodInSecondsUpdated(uint256 newVestingPeriodInSeconds);
    event DaoFeePackagesUpdated(FusionFactoryStorageLib.FeePackage[] packages, address updatedBy);
    event BusinessClientFeePackagesSet(
        address indexed client,
        FusionFactoryStorageLib.FeePackage[] packages,
        address updatedBy
    );
    event BusinessClientFeePackagesRemoved(address indexed client, address removedBy);

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    function initialize(
        address initialFactoryAdmin_,
        FusionFactoryStorageLib.FactoryAddresses memory factoryAddresses_,
        address plasmaVaultBase_,
        address priceOracleMiddleware_,
        address burnRequestFeeFuse_,
        address burnRequestFeeBalanceFuse_
    ) external initializer {
        __FusionFactoryAccessControl_init();
        __UUPSUpgradeable_init();

        if (initialFactoryAdmin_ == address(0)) revert FusionFactoryLib.InvalidAddress();

        _grantRole(DEFAULT_ADMIN_ROLE, initialFactoryAdmin_);

        FusionFactoryLib.initialize(
            factoryAddresses_,
            plasmaVaultBase_,
            priceOracleMiddleware_,
            burnRequestFeeFuse_,
            burnRequestFeeBalanceFuse_
        );
    }


    /// @notice Creates a new Fusion Vault by cloning existing contracts
    /// @param assetName_ The name of the asset
    /// @param assetSymbol_ The symbol of the asset
    /// @param underlyingToken_ The address of the underlying token
    /// @param redemptionDelayInSeconds_ The redemption delay in seconds
    /// @param owner_ The owner of the Fusion Vault
    /// @param daoFeePackageIndex_ Index of the DAO fee package to use
    /// @return The Fusion Vault instance
    /// @dev Recommended redemption delay is greater than 0 seconds to prevent immediate asset redemption after deposit, which helps protect against potential manipulation and ensures proper vault operation
    /// @dev This function clones existing contracts rather than deploying new ones, which is more gas efficient
    function clone(
        string memory assetName_,
        string memory assetSymbol_,
        address underlyingToken_,
        uint256 redemptionDelayInSeconds_,
        address owner_,
        uint256 daoFeePackageIndex_
    ) external returns (FusionFactoryLogicLib.FusionInstance memory) {
        return
            FusionFactoryLib.clone(
                assetName_,
                assetSymbol_,
                underlyingToken_,
                redemptionDelayInSeconds_,
                owner_,
                false,
                daoFeePackageIndex_
            );
    }

    /// @notice Creates a new Fusion Vault by cloning existing contracts, with admin role
    /// @param assetName_ The name of the asset
    /// @param assetSymbol_ The symbol of the asset
    /// @param underlyingToken_ The address of the underlying token
    /// @param redemptionDelayInSeconds_ The redemption delay in seconds
    /// @param owner_ The owner of the Fusion Vault
    /// @param daoFeePackageIndex_ Index of the DAO fee package to use
    /// @return The Fusion Vault instance
    /// @dev Recommended redemption delay is greater than 0 seconds to prevent immediate asset redemption after deposit, which helps protect against potential manipulation and ensures proper vault operation
    /// @dev This function clones existing contracts rather than deploying new ones, which is more gas efficient
    /// @dev Only callable by MAINTENANCE_MANAGER_ROLE
    function cloneSupervised(
        string memory assetName_,
        string memory assetSymbol_,
        address underlyingToken_,
        uint256 redemptionDelayInSeconds_,
        address owner_,
        uint256 daoFeePackageIndex_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) returns (FusionFactoryLogicLib.FusionInstance memory) {
        return
            FusionFactoryLib.clone(
                assetName_,
                assetSymbol_,
                underlyingToken_,
                redemptionDelayInSeconds_,
                owner_,
                true,
                daoFeePackageIndex_
            );
    }

    /// @notice Sets the DAO fee packages array (replaces entire array)
    /// @param packages_ Array of DAO fee packages to set
    /// @dev Each package must have managementFee <= PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE (500 = 5%),
    /// performanceFee <= PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE (5000 = 50%) and a non-zero recipient
    function setDaoFeePackages(
        FusionFactoryStorageLib.FeePackage[] calldata packages_
    ) external onlyRole(DAO_FEE_MANAGER_ROLE) {
        if (packages_.length == 0) revert FusionFactoryLib.DaoFeePackagesArrayEmpty();

        uint256 length = packages_.length;
        for (uint256 i; i < length; ++i) {
            if (packages_[i].managementFee > PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE) {
                revert FusionFactoryLib.FeeExceedsMaximum(
                    packages_[i].managementFee,
                    PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE
                );
            }
            if (packages_[i].performanceFee > PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE) {
                revert FusionFactoryLib.FeeExceedsMaximum(
                    packages_[i].performanceFee,
                    PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE
                );
            }
            if (packages_[i].feeRecipient == address(0)) {
                revert FusionFactoryLib.FeeRecipientZeroAddress();
            }
        }

        // Convert calldata to memory for storage
        FusionFactoryStorageLib.FeePackage[] memory packagesMemory = new FusionFactoryStorageLib.FeePackage[](length);
        for (uint256 i; i < length; ++i) {
            packagesMemory[i] = packages_[i];
        }

        FusionFactoryStorageLib.setDaoFeePackages(packagesMemory);
        emit DaoFeePackagesUpdated(packagesMemory, msg.sender);
    }

    /// @notice Sets custom fee packages for a specific business client
    /// @param client_ Address of the business client
    /// @param packages_ Array of fee packages to assign
    /// @dev Only callable by DAO_FEE_MANAGER_ROLE
    /// @dev Each package must have managementFee <= PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE (500 = 5%),
    /// performanceFee <= PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE (5000 = 50%) and a non-zero recipient
    function setBusinessClientFeePackages(
        address client_,
        FusionFactoryStorageLib.FeePackage[] calldata packages_
    ) external onlyRole(DAO_FEE_MANAGER_ROLE) {
        if (client_ == address(0)) revert FusionFactoryLib.BusinessClientAddressZero();
        if (packages_.length == 0) revert FusionFactoryLib.DaoFeePackagesArrayEmpty();

        uint256 length = packages_.length;
        for (uint256 i; i < length; ++i) {
            if (packages_[i].managementFee > PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE) {
                revert FusionFactoryLib.FeeExceedsMaximum(
                    packages_[i].managementFee,
                    PlasmaVaultLib.MANAGEMENT_MAX_FEE_IN_PERCENTAGE
                );
            }
            if (packages_[i].performanceFee > PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE) {
                revert FusionFactoryLib.FeeExceedsMaximum(
                    packages_[i].performanceFee,
                    PlasmaVaultLib.PERFORMANCE_MAX_FEE_IN_PERCENTAGE
                );
            }
            if (packages_[i].feeRecipient == address(0)) {
                revert FusionFactoryLib.FeeRecipientZeroAddress();
            }
        }

        FusionFactoryStorageLib.FeePackage[] memory packagesMemory = new FusionFactoryStorageLib.FeePackage[](length);
        for (uint256 i; i < length; ++i) {
            packagesMemory[i] = packages_[i];
        }

        FusionFactoryStorageLib.setBusinessClientFeePackages(client_, packagesMemory);
        emit BusinessClientFeePackagesSet(client_, packagesMemory, msg.sender);
    }

    /// @notice Removes custom fee packages for a specific business client
    /// @param client_ Address of the business client
    /// @dev Only callable by DAO_FEE_MANAGER_ROLE. Reverts if no packages are set.
    function removeBusinessClientFeePackages(address client_) external onlyRole(DAO_FEE_MANAGER_ROLE) {
        if (client_ == address(0)) revert FusionFactoryLib.BusinessClientAddressZero();
        uint256 length = FusionFactoryStorageLib.getBusinessClientFeePackagesLength(client_);
        if (length == 0) revert FusionFactoryLib.DaoFeePackagesArrayEmpty();

        FusionFactoryStorageLib.removeBusinessClientFeePackages(client_);
        emit BusinessClientFeePackagesRemoved(client_, msg.sender);
    }

    /// @notice Returns the fee packages for a specific business client
    /// @param client_ Address of the business client
    /// @return packages Array of fee packages (client-specific if set, otherwise global)
    /// @return isCustom True if the client has custom packages set
    function getBusinessClientFeePackages(
        address client_
    ) external view returns (FusionFactoryStorageLib.FeePackage[] memory packages, bool isCustom) {
        uint256 clientLength = FusionFactoryStorageLib.getBusinessClientFeePackagesLength(client_);
        if (clientLength > 0) {
            return (FusionFactoryStorageLib.getBusinessClientFeePackages(client_), true);
        }
        return (FusionFactoryStorageLib.getDaoFeePackages(), false);
    }

    /// @notice Updates the factory addresses
    /// @param version_ Version of the Fusion Vault, version should be incremented when new features are added to the Fusion Vault
    /// @param newFactoryAddresses_ New factory addresses
    function updateFactoryAddresses(
        uint256 version_,
        FusionFactoryStorageLib.FactoryAddresses memory newFactoryAddresses_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newFactoryAddresses_.accessManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.plasmaVaultFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.feeManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.withdrawManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.rewardsManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.contextManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newFactoryAddresses_.priceManagerFactory == address(0)) revert FusionFactoryLib.InvalidAddress();

        FusionFactoryStorageLib.setFusionFactoryVersion(version_);
        FusionFactoryStorageLib.setPlasmaVaultFactoryAddress(newFactoryAddresses_.plasmaVaultFactory);
        FusionFactoryStorageLib.setAccessManagerFactoryAddress(newFactoryAddresses_.accessManagerFactory);
        FusionFactoryStorageLib.setFeeManagerFactoryAddress(newFactoryAddresses_.feeManagerFactory);
        FusionFactoryStorageLib.setWithdrawManagerFactoryAddress(newFactoryAddresses_.withdrawManagerFactory);
        FusionFactoryStorageLib.setRewardsManagerFactoryAddress(newFactoryAddresses_.rewardsManagerFactory);
        FusionFactoryStorageLib.setContextManagerFactoryAddress(newFactoryAddresses_.contextManagerFactory);
        FusionFactoryStorageLib.setPriceManagerFactoryAddress(newFactoryAddresses_.priceManagerFactory);

        emit FactoryAddressesUpdated({
            version: version_,
            accessManagerFactory: newFactoryAddresses_.accessManagerFactory,
            plasmaVaultFactory: newFactoryAddresses_.plasmaVaultFactory,
            feeManagerFactory: newFactoryAddresses_.feeManagerFactory,
            withdrawManagerFactory: newFactoryAddresses_.withdrawManagerFactory,
            rewardsManagerFactory: newFactoryAddresses_.rewardsManagerFactory,
            contextManagerFactory: newFactoryAddresses_.contextManagerFactory,
            priceManagerFactory: newFactoryAddresses_.priceManagerFactory
        });
    }

    /// @notice Updates the base contract addresses used for cloning new components
    /// @param version_ Version number to track base contract updates
    /// @param newPlasmaVaultCoreBase_ New base address for PlasmaVaultCore implementation
    /// @param newAccessManagerBase_ New base address for AccessManager implementation
    /// @param newPriceManagerBase_ New base address for PriceManager implementation
    /// @param newWithdrawManagerBase_ New base address for WithdrawManager implementation
    /// @param newRewardsManagerBase_ New base address for RewardsManager implementation
    /// @param newContextManagerBase_ New base address for ContextManager implementation
    /// @dev These base contracts serve as templates that are cloned when creating new vaults
    /// @custom:access Restricted to MAINTENANCE_MANAGER_ROLE
    function updateBaseAddresses(
        uint256 version_,
        address newPlasmaVaultCoreBase_,
        address newAccessManagerBase_,
        address newPriceManagerBase_,
        address newWithdrawManagerBase_,
        address newRewardsManagerBase_,
        address newContextManagerBase_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newPlasmaVaultCoreBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newAccessManagerBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newPriceManagerBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newWithdrawManagerBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newRewardsManagerBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        if (newContextManagerBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();

        FusionFactoryStorageLib.setFusionFactoryVersion(version_);

        FusionFactoryStorageLib.setPlasmaVaultCoreBaseAddress(newPlasmaVaultCoreBase_);
        FusionFactoryStorageLib.setAccessManagerBaseAddress(newAccessManagerBase_);
        FusionFactoryStorageLib.setPriceManagerBaseAddress(newPriceManagerBase_);
        FusionFactoryStorageLib.setWithdrawManagerBaseAddress(newWithdrawManagerBase_);
        FusionFactoryStorageLib.setRewardsManagerBaseAddress(newRewardsManagerBase_);
        FusionFactoryStorageLib.setContextManagerBaseAddress(newContextManagerBase_);

        emit BaseAddressesUpdated(
            version_,
            newPlasmaVaultCoreBase_,
            newAccessManagerBase_,
            newPriceManagerBase_,
            newWithdrawManagerBase_,
            newRewardsManagerBase_,
            newContextManagerBase_
        );
    }

    function updatePlasmaVaultBase(address newPlasmaVaultBase_) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newPlasmaVaultBase_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        FusionFactoryStorageLib.setPlasmaVaultBaseAddress(newPlasmaVaultBase_);
        emit PlasmaVaultBaseUpdated(newPlasmaVaultBase_);
    }

    /// @notice Updates the default price oracle middleware address
    /// @param newPriceOracleMiddleware_ New price oracle middleware address
    function updatePriceOracleMiddleware(
        address newPriceOracleMiddleware_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newPriceOracleMiddleware_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        FusionFactoryStorageLib.setPriceOracleMiddlewareAddress(newPriceOracleMiddleware_);
        emit PriceOracleMiddlewareUpdated(newPriceOracleMiddleware_);
    }

    function updateBurnRequestFeeFuse(address newBurnRequestFeeFuse_) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newBurnRequestFeeFuse_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        FusionFactoryStorageLib.setBurnRequestFeeFuseAddress(newBurnRequestFeeFuse_);
        emit BurnRequestFeeFuseUpdated(newBurnRequestFeeFuse_);
    }

    function updateBurnRequestFeeBalanceFuse(
        address newBurnRequestFeeBalanceFuse_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newBurnRequestFeeBalanceFuse_ == address(0)) revert FusionFactoryLib.InvalidAddress();
        FusionFactoryStorageLib.setBurnRequestFeeBalanceFuseAddress(newBurnRequestFeeBalanceFuse_);
        emit BurnRequestFeeBalanceFuseUpdated(newBurnRequestFeeBalanceFuse_);
    }

    function updateWithdrawWindowInSeconds(
        uint256 newWithdrawWindowInSeconds_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newWithdrawWindowInSeconds_ == 0) revert FusionFactoryLib.InvalidWithdrawWindow();
        FusionFactoryStorageLib.setWithdrawWindowInSeconds(newWithdrawWindowInSeconds_);
        emit WithdrawWindowInSecondsUpdated(newWithdrawWindowInSeconds_);
    }

    function updateVestingPeriodInSeconds(
        uint256 newVestingPeriodInSeconds_
    ) external onlyRole(MAINTENANCE_MANAGER_ROLE) {
        if (newVestingPeriodInSeconds_ == 0 || newVestingPeriodInSeconds_ > type(uint32).max) {
            revert FusionFactoryLib.InvalidVestingPeriod();
        }
        FusionFactoryStorageLib.setVestingPeriodInSeconds(newVestingPeriodInSeconds_);
        emit VestingPeriodInSecondsUpdated(newVestingPeriodInSeconds_);
    }

    function getFusionFactoryVersion() external view returns (uint256) {
        return FusionFactoryStorageLib.getFusionFactoryVersion();
    }

    function getFusionFactoryIndex() external view returns (uint256) {
        return FusionFactoryStorageLib.getFusionFactoryIndex();
    }

    /// @notice Returns whether a PlasmaVault was produced by this FusionFactory proxy after the registry upgrade
    /// @param vault_ Address to check
    /// @return True when this proxy recorded the vault during a successful clone or cloneSupervised call
    /// @dev Provenance only. Since clone is permissionless and accepts any owner, true does not imply IPOR
    /// endorsement, review or management of the vault. Vaults created before the registry upgrade return false.
    /// Registry integrity relies on the factory and base addresses configured by MAINTENANCE_MANAGER_ROLE and
    /// on implementation upgrades authorized by DEFAULT_ADMIN_ROLE.
    /// Entries are permanent; there is no unset operation.
    function isFusionVault(address vault_) external view returns (bool) {
        return FusionFactoryStorageLib.isFusionVault(vault_);
    }

    function getFactoryAddresses() external view returns (FusionFactoryStorageLib.FactoryAddresses memory) {
        return FusionFactoryStorageLib.getFactoryAddresses();
    }

    function getBaseAddresses() external view returns (FusionFactoryStorageLib.BaseAddresses memory) {
        return FusionFactoryStorageLib.getBaseAddresses();
    }

    function getPlasmaVaultBaseAddress() external view returns (address) {
        return FusionFactoryStorageLib.getPlasmaVaultBaseAddress();
    }

    function getPriceOracleMiddleware() external view returns (address) {
        return FusionFactoryStorageLib.getPriceOracleMiddleware();
    }

    function getBurnRequestFeeBalanceFuseAddress() external view returns (address) {
        return FusionFactoryStorageLib.getBurnRequestFeeBalanceFuseAddress();
    }

    function getBurnRequestFeeFuseAddress() external view returns (address) {
        return FusionFactoryStorageLib.getBurnRequestFeeFuseAddress();
    }

    function getWithdrawWindowInSeconds() external view returns (uint256) {
        return FusionFactoryStorageLib.getWithdrawWindowInSeconds();
    }

    function getVestingPeriodInSeconds() external view returns (uint256) {
        return FusionFactoryStorageLib.getVestingPeriodInSeconds();
    }

    /// @notice Returns all DAO fee packages
    /// @return Array of DAO fee packages
    function getDaoFeePackages() external view returns (FusionFactoryStorageLib.FeePackage[] memory) {
        return FusionFactoryStorageLib.getDaoFeePackages();
    }

    /// @notice Returns a specific DAO fee package by index
    /// @param index_ Index of the DAO fee package
    /// @return DAO fee package at the specified index
    function getDaoFeePackage(uint256 index_) external view returns (FusionFactoryStorageLib.FeePackage memory) {
        uint256 length = FusionFactoryStorageLib.getDaoFeePackagesLength();
        if (index_ >= length) {
            revert FusionFactoryLib.DaoFeePackageIndexOutOfBounds(index_, length);
        }
        return FusionFactoryStorageLib.getDaoFeePackage(index_);
    }

    /// @notice Returns the number of DAO fee packages
    /// @return Number of DAO fee packages
    function getDaoFeePackagesLength() external view returns (uint256) {
        return FusionFactoryStorageLib.getDaoFeePackagesLength();
    }

    /// @dev Required by the OZ UUPS module
    /// @param newImplementation Address of the new implementation
    // solhint-disable-next-line no-empty-blocks
    function _authorizeUpgrade(address newImplementation) internal override onlyRole(DEFAULT_ADMIN_ROLE) {}
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {
    "lib/ipor-fusion/contracts/factory/FusionFactory.sol": {
      "FusionFactoryLib": "0x6303b711b4fab6c0a8f8d7d5f321a8dcaddcbf6f"
    }
  },
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": [
    "@openzeppelin/=lib/ipor-fusion/node_modules/@openzeppelin/",
    "@chainlink/=lib/ipor-fusion/node_modules/@chainlink/",
    "@uniswap/v4-core/=lib/ipor-fusion/node_modules/@uniswap/v4-core/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@ipor-protocol-deploy/=contracts/",
    "@ipor-fusion/=lib/ipor-fusion/",
    "@ipor-protocol/=lib/ipor-protocol/",
    "scripts/=scripts/",
    "@eth-optimism/=lib/ipor-fusion/node_modules/@eth-optimism/",
    "@ethereum-vault-connector/=lib/ipor-fusion/node_modules/ethereum-vault-connector/",
    "@layerzerolabs/lz-evm-messagelib-v2/contracts/=lib/ipor-fusion/contracts/vendor/layerzero/messagelib/contracts/",
    "@layerzerolabs/lz-evm-oapp-v2/contracts/=lib/ipor-fusion/contracts/vendor/layerzero/oapp/contracts/",
    "@layerzerolabs/lz-evm-protocol-v2/contracts/=lib/ipor-fusion/contracts/vendor/layerzero/protocol/contracts/",
    "@morpho-org/=lib/ipor-fusion/node_modules/@morpho-org/",
    "@pendle/=lib/ipor-fusion/node_modules/@pendle/",
    "@prb/test/=lib/ipor-fusion/lib/foundry-random/lib/prb-test/src/",
    "@scroll-tech/=lib/ipor-fusion/node_modules/@scroll-tech/",
    "@stargatefinance/stg-evm-v2/=lib/ipor-fusion/contracts/vendor/stargate/",
    "@uniswap/v3-core/=lib/ipor-fusion/node_modules/@uniswap/v3-core/",
    "CramBit/=lib/ipor-fusion/lib/foundry-random/lib/CramBit/",
    "abdk-libraries-solidity/=node_modules/abdk-libraries-solidity/",
    "base64-sol/=lib/ipor-fusion/node_modules/base64-sol/",
    "crambit/=lib/ipor-fusion/lib/foundry-random/lib/CramBit/src/",
    "erc4626-tests/=lib/ipor-fusion/node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "ethereum-vault-connector/=lib/ipor-fusion/node_modules/ethereum-vault-connector/",
    "foundry-random/=lib/ipor-fusion/lib/foundry-random/src/",
    "hardhat-deploy/=node_modules/hardhat-deploy/",
    "hardhat/=node_modules/hardhat/",
    "ipor-fusion/=lib/ipor-fusion/contracts/",
    "openzeppelin-contracts/=lib/ipor-fusion/node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/",
    "openzeppelin/=lib/ipor-fusion/node_modules/ethereum-vault-connector/lib/openzeppelin-contracts/contracts/",
    "prb-test/=lib/ipor-fusion/lib/foundry-random/lib/prb-test/src/",
    "solady/=lib/ipor-fusion/contracts/vendor/solady/src/",
    "solidity-bytes-utils/=lib/ipor-fusion/contracts/vendor/solidity-bytes-utils/",
    "solmate/=lib/ipor-fusion/node_modules/@uniswap/v4-core/lib/solmate/",
    "src/=lib/ipor-fusion/lib/foundry-random/src/",
    "test/=lib/ipor-fusion/test/fuses/hypercore/simulation/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.