Skip to content
Verified contractPartialGPL-3.0-only

PairBlockLendingFundRemoval

Address0x77499b9f96c8de0a68ecfc7e08c9e02f59bb9a2d
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.34

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
Yes, 1 runs
EVM version
cancun
License
GPL-3.0-only
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,443,543
Creation transaction
0x9cd32fa72a…66ac29f585
Libraries
lib/core-v1/contracts/proxy/PairBlockLendingFundRemoval.sol:Interest0xfb98…371138lib/core-v1/contracts/proxy/PairBlockLendingFundRemoval.sol:Validation0x8df1…d88a5e

45 files

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

lib/core-v1/contracts/interfaces/factories/IAmmalgamFactory.sol

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.34;

import {IBeacon} from '@openzeppelin/contracts/proxy/beacon/IBeacon.sol';

import {IFactoryCallback} from 'contracts/interfaces/factories/IFactoryCallback.sol';
import {IHookRegistry} from 'contracts/interfaces/tokens/IHookRegistry.sol';

interface IBeaconCallback {
    /**
     * @notice Returns the public immutable address of the pair beacon contract. Used as a callback
     *   in the creation of a new pair to ensure we can maintain the create2 deterministic address
     *   that also require no args in the constructor.
     * @return beacon The address of the pair beacon.
     */
    function pairBeacon() external view returns (IBeacon beacon);
}

/**
 *  @title Interface for the AmmalgamFactory contract
 */
interface IAmmalgamFactory is IFactoryCallback, IBeaconCallback {
    /**
     * @notice Emitted when a new pair is created.
     * @param tokenX The first token in the pair.
     * @param tokenY The second token in the pair.
     * @param pair The address of the new pair.
     * @param allPairsLength The current total number of token pairs.
     */
    event PairCreated(address indexed tokenX, address indexed tokenY, address pair, uint256 allPairsLength);

    /**
     * @notice Emitted when new lending tokens are created.
     * @param pair The address of the pair.
     * @param depositL The address of the `DEPOSIT_L` lending token.
     * @param depositX The address of the `DEPOSIT_X` lending token.
     * @param depositY The address of the `DEPOSIT_Y` lending token.
     * @param borrowL The address of the `BORROW_L` lending token.
     * @param borrowX The address of the `BORROW_X` lending token.
     * @param borrowY The address of the `BORROW_Y` lending token.
     */
    event LendingTokensCreated(
        address indexed pair,
        address depositL,
        address depositX,
        address depositY,
        address borrowL,
        address borrowX,
        address borrowY
    );

    /**
     * @notice Returns the pair address for two tokens.
     * @param tokenA The first token.
     * @param tokenB The second token.
     * @return pair The address of the pair for the two tokens.
     */
    function getPair(address tokenA, address tokenB) external view returns (address pair);

    /**
     * @notice Returns the pair address at a specific index.
     * @param index The index of the pair.
     * @return pair The address of the pair at the given index.
     */
    function allPairs(
        uint256 index
    ) external view returns (address pair);

    /**
     * @notice Returns the total number of token pairs.
     * @return The total number of token pairs.
     */
    function allPairsLength() external view returns (uint256);

    /**
     * @notice Creates a new pair for two tokens.
     * @param tokenA The first token.
     * @param tokenB The second token.
     * @return pair The address of the new pair.
     */
    function createPair(address tokenA, address tokenB) external returns (address pair);

    /**
     * @notice Changes the fee recipient address.
     * @param newFeeTo The new fee recipient address.
     */
    function setFeeTo(
        address newFeeTo
    ) external;

    /**
     * @notice Changes the address that can change the fee recipient.
     * @param newFeeToSetter The new fee setter address.
     */
    function setFeeToSetter(
        address newFeeToSetter
    ) external;

    /**
     * @notice Returns the public immutable address of the hook registry contract.
     * @return The address of the hook registry.
     */
    function hookRegistry() external view returns (IHookRegistry);
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {
    "lib/core-v1/contracts/proxy/PairBlockLendingFundRemoval.sol": {
      "Interest": "0xfb9840519502cce354943cf6920538a30d371138",
      "Validation": "0x8df125dc481b6b42e03c0977398cd3b6ead88a5e"
    }
  },
  "optimizer": {
    "runs": 1,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": [
    "@core-v1/=lib/core-v1/",
    "@peripheral-v1/=lib/peripheral-v1/contracts/",
    "contracts/=lib/core-v1/contracts/",
    "utils/=lib/core-v1/utils/",
    "@openzeppelin/=lib/core-v1/lib/openzeppelin-contracts/",
    "@openzeppelin-upgradeable/=lib/core-v1/lib/openzeppelin-contracts-upgradeable/",
    "@1inch/=lib/core-v1/lib/1inch/",
    "@mangrovedao/mangrove-core/=lib/core-v1/lib/mangrove-core/",
    "@morpho-org/morpho-blue/=lib/core-v1/lib/morpho-blue/",
    "forge-std/=lib/core-v1/lib/forge-std/src/",
    "lib/ExcessivelySafeCall/=lib/core-v1/lib/ExcessivelySafeCall/",
    "lib/openzeppelin-contracts/=lib/core-v1/lib/openzeppelin-contracts/",
    "lib/1inch/=lib/core-v1/lib/1inch/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.