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/proxy/PairBlockLendingFundRemoval.solmain1.2 KB
- lib/core-v1/contracts/AmmalgamPair.sol52.91 KB
- lib/core-v1/contracts/interfaces/IAmmalgamPair.sol7.57 KB
- lib/core-v1/contracts/interfaces/ISaturationAndGeometricTWAPState.sol10.54 KB
- lib/core-v1/contracts/interfaces/callbacks/IAmmalgamCallee.sol3.06 KB
- lib/core-v1/contracts/interfaces/factories/IAmmalgamFactory.sol3.67 KB
- lib/core-v1/contracts/interfaces/factories/IFactoryCallback.sol1.58 KB
- lib/core-v1/contracts/interfaces/tokens/IAmmalgamERC20.sol4.46 KB
- lib/core-v1/contracts/interfaces/tokens/IHookRegistry.sol855 B
- lib/core-v1/contracts/interfaces/tokens/ITokenController.sol6.86 KB
- lib/core-v1/contracts/libraries/Convert.sol4.29 KB
- lib/core-v1/contracts/libraries/GeometricTWAP.sol26.84 KB
- lib/core-v1/contracts/libraries/Interest.sol18.2 KB
- lib/core-v1/contracts/libraries/Liquidation.sol38.8 KB
- lib/core-v1/contracts/libraries/PartialLiquidations.sol27.43 KB
- lib/core-v1/contracts/libraries/QuadraticSwapFees.sol11.58 KB
- lib/core-v1/contracts/libraries/Saturation.sol120.86 KB
- lib/core-v1/contracts/libraries/TickMath.sol8.93 KB
- lib/core-v1/contracts/libraries/Uint16Set.sol2.63 KB
- lib/core-v1/contracts/libraries/Validation.sol14.85 KB
- lib/core-v1/contracts/libraries/constants.sol8.69 KB
- lib/core-v1/contracts/proxy/PairBeaconProxy.sol4.85 KB
- lib/core-v1/contracts/tokens/TokenController.sol39.1 KB
- lib/core-v1/lib/mangrove-core/lib/core/BitLib.sol1.89 KB
- lib/core-v1/lib/morpho-blue/src/libraries/MathLib.sol1.63 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol4.45 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol192 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol636 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol181 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol6.24 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/proxy/Proxy.sol2.67 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol2.31 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol472 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/proxy/utils/Initializable.sol8.91 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol2.78 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol684 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol3.81 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol9.44 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/Address.sol6.03 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/Errors.sol896 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/Panic.sol1.97 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol4.18 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol870 B
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/math/Math.sol28.31 KB
- lib/core-v1/lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol34.94 KB
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.