ETH Price: $1,904.72 (-1.93%)

Contract

0xd1c62207766cc3849FBD05096bec1B71B494043E

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BackwardCompatibilityFacet

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 2 : BackwardCompatibilityFacet.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

// Interfaces
import { IBackwardCompatibility } from "../interfaces/IBackwardCompatibility.sol";

/// @title BackwardCompatibilityFacet
contract BackwardCompatibilityFacet is IBackwardCompatibility {
    /*//////////////////////////////////////////////////////////////
                                EXTERNAL
    //////////////////////////////////////////////////////////////*/

    /// @inheritdoc IBackwardCompatibility
    function getTokenTransferProxy() external view override returns (address tokenTransferProxy) {
        // Return the address of the tokenTransferProxy contract (AugustusV6 Diamond)
        return address(this);
    }
}

File 2 of 2 : IBackwardCompatibility.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

/// @title IBackwardCompatibility
/// @notice Returns the address of the TokenTransferProxy contract
interface IBackwardCompatibility {
    /// @notice Returns the address of the TokenTransferProxy contract
    /// In version 6 of the Augustus protocol, the TokenTransferProxy contract is deprecated.
    /// The Diamond contract now directly handles token approvals. However, for backward compatibility
    /// and to support integrations that still use getTokenTransferProxy() for obtaining the TokenTransferProxy
    /// contract address, this method remains operational. It facilitates smoother migration to the updated
    /// protocol design.
    function getTokenTransferProxy() external view returns (address tokenTransferProxy);
}

Settings
{
  "remappings": [
    "@prb/test/=lib/prb-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "@solady/=lib/solady/src/",
    "@create3/=lib/create3-factory/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "create3-factory/=lib/create3-factory/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "prb-test/=lib/prb-test/src/",
    "solady/=lib/solady/",
    "solmate/=lib/create3-factory/lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"getTokenTransferProxy","outputs":[{"internalType":"address","name":"tokenTransferProxy","type":"address"}],"stateMutability":"view","type":"function"}]

60808060405234601457605b90816100198239f35b5f80fdfe60808060405260043610156011575f80fd5b5f3560e01c63d2c4b598146023575f80fd5b346057575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112605757602090308152f35b5f80fd

Deployed Bytecode

0x60808060405260043610156011575f80fd5b5f3560e01c63d2c4b598146023575f80fd5b346057575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112605757602090308152f35b5f80fd

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.