Skip to content
Verified contractPartialGPL-3.0-only

PairBlockedBorrow

Address0x5d5efc4336a0304ac7bad494d2b0dc73a2deaa3e
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,545
Creation transaction
0x6d985cb5a9…ae287c28f2
Libraries
lib/core-v1/contracts/proxy/PairBlockedBorrow.sol:Interest0xfb98…371138lib/core-v1/contracts/proxy/PairBlockedBorrow.sol:Validation0x8df1…d88a5elib/core-v1/contracts/proxy/PairBlockedBorrow.sol:Liquidation0x66b7…eeea19

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/PairBlockedBorrow.sol

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

import {AmmalgamPair} from 'contracts/AmmalgamPair.sol';

error BORROW_LOCKED();
error BORROW_LIQUIDITY_LOCKED();

contract PairBlockedBorrowLiquidity is AmmalgamPair {
    function borrowLiquidity(address, uint256, bytes calldata) external pure override returns (uint256, uint256) {
        revert BORROW_LIQUIDITY_LOCKED();
    }
}

contract PairBlockedBorrow is AmmalgamPair {
    function borrow(address, uint256, uint256, bytes calldata) public pure override {
        revert BORROW_LOCKED();
    }
}

contract PairBlockedAllBorrow is AmmalgamPair {
    function borrowLiquidity(address, uint256, bytes calldata) external pure override returns (uint256, uint256) {
        revert BORROW_LIQUIDITY_LOCKED();
    }

    function borrow(address, uint256, uint256, bytes calldata) public pure override {
        revert BORROW_LOCKED();
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {
    "lib/core-v1/contracts/proxy/PairBlockedBorrow.sol": {
      "Interest": "0xfb9840519502cce354943cf6920538a30d371138",
      "Validation": "0x8df125dc481b6b42e03c0977398cd3b6ead88a5e",
      "Liquidation": "0x66b7a7d0038b50640c0bee129acaf161afeeea19"
    }
  },
  "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.