S Price: $0.487529 (+4.72%)
    /

    Contract

    0xc55E93C62874D8100dBd2DfE307EDc1036ad5434

    Overview

    S Balance

    Sonic LogoSonic LogoSonic Logo0 S

    S Value

    $0.00

    More Info

    Private Name Tags

    TokenTracker

    Moo BIFI (mooBIFI) (@$189.79)
    Transaction Hash
    Method
    Block
    Age
    From
    To
    Amount
    Approve212642552025-04-21 0:06:529 hrs ago1745194012IN
    Beefy: mooBIFI Token
    0 S0.0027326856.19
    Approve212512152025-04-20 22:22:5911 hrs ago1745187779IN
    Beefy: mooBIFI Token
    0 S0.002330950.0001
    Approve211296492025-04-20 5:00:4528 hrs ago1745125245IN
    Beefy: mooBIFI Token
    0 S0.0024963451
    Approve210549162025-04-19 15:59:3942 hrs ago1745078379IN
    Beefy: mooBIFI Token
    0 S0.002330950.0001
    Approve210545432025-04-19 15:55:5842 hrs ago1745078158IN
    Beefy: mooBIFI Token
    0 S0.0023634451
    Approve209235252025-04-18 17:36:462 days ago1744997806IN
    Beefy: mooBIFI Token
    0 S0.0026752455.01
    Transfer208124722025-04-17 23:43:483 days ago1744933428IN
    Beefy: mooBIFI Token
    0 S0.0017222755
    Approve207698912025-04-17 17:26:393 days ago1744910799IN
    Beefy: mooBIFI Token
    0 S0.0026748155
    Approve207279262025-04-17 12:21:043 days ago1744892464IN
    Beefy: mooBIFI Token
    0 S0.002354250
    Approve207211852025-04-17 11:27:233 days ago1744889243IN
    Beefy: mooBIFI Token
    0 S0.002330950
    Approve206834342025-04-17 6:06:184 days ago1744869978IN
    Beefy: mooBIFI Token
    0 S0.002330950.0001
    Transfer206507142025-04-17 1:01:034 days ago1744851663IN
    Beefy: mooBIFI Token
    0 S0.0017222755
    Approve206371122025-04-16 23:03:394 days ago1744844619IN
    Beefy: mooBIFI Token
    0 S0.0026921455
    Approve201994062025-04-14 13:59:486 days ago1744639188IN
    Beefy: mooBIFI Token
    0 S0.002330950.0001
    Approve201895262025-04-14 13:06:526 days ago1744636012IN
    Beefy: mooBIFI Token
    0 S0.002317450.0001
    Approve201689582025-04-14 10:56:396 days ago1744628199IN
    Beefy: mooBIFI Token
    0 S0.001418755.01
    Approve201677952025-04-14 10:48:596 days ago1744627739IN
    Beefy: mooBIFI Token
    0 S0.0026767355.01
    Approve201613192025-04-14 10:07:436 days ago1744625263IN
    Beefy: mooBIFI Token
    0 S0.001216750.0001
    Approve201613122025-04-14 10:07:406 days ago1744625260IN
    Beefy: mooBIFI Token
    0 S0.001216750.0001
    Approve201382432025-04-14 7:31:347 days ago1744615894IN
    Beefy: mooBIFI Token
    0 S0.0027555456.66
    Approve198530672025-04-12 19:38:168 days ago1744486696IN
    Beefy: mooBIFI Token
    0 S0.0026767355.01
    Approve196081352025-04-11 15:11:489 days ago1744384308IN
    Beefy: mooBIFI Token
    0 S0.0016887255
    Approve193529142025-04-10 10:33:2810 days ago1744281208IN
    Beefy: mooBIFI Token
    0 S0.0023634451
    Approve193212052025-04-10 7:07:1911 days ago1744268839IN
    Beefy: mooBIFI Token
    0 S0.0026772955
    Approve192274112025-04-09 20:33:2111 days ago1744230801IN
    Beefy: mooBIFI Token
    0 S0.00168855
    View all transactions

    Latest 1 internal transaction

    Parent Transaction Hash Block Age From To Amount
    33910762025-01-11 13:19:4899 days ago1736601588
     Contract Creation
    0 S
    Loading...
    Loading

    Contract Source Code Verified (Exact Match)

    Contract Name:
    XERC20

    Compiler Version
    v0.8.19+commit.7dd6d404

    Optimization Enabled:
    Yes with 200 runs

    Other Settings:
    default evmVersion
    File 1 of 19 : XERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: UNLICENSED
    pragma solidity >=0.8.4 <0.9.0;
    import {IXERC20} from './interfaces/IXERC20.sol';
    import {ERC20} from '@openzeppelin-4/contracts/token/ERC20/ERC20.sol';
    import {ERC20Permit} from '@openzeppelin-4/contracts/token/ERC20/extensions/draft-ERC20Permit.sol';
    import {Ownable} from '@openzeppelin-4/contracts/access/Ownable.sol';
    contract XERC20 is ERC20, Ownable, IXERC20, ERC20Permit {
    /**
    * @notice The duration it takes for the limits to fully replenish
    */
    uint256 private constant _DURATION = 1 days;
    /**
    * @notice The address of the factory which deployed this contract
    */
    address public immutable FACTORY;
    /**
    * @notice The address of the lockbox contract
    */
    address public lockbox;
    /**
    * @notice Maps bridge address to bridge configurations
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 19 : Ownable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
    pragma solidity ^0.8.0;
    import "../utils/Context.sol";
    /**
    * @dev Contract module which provides a basic access control mechanism, where
    * there is an account (an owner) that can be granted exclusive access to
    * specific functions.
    *
    * By default, the owner account will be the one that deploys the contract. This
    * can later be changed with {transferOwnership}.
    *
    * This module is used through inheritance. It will make available the modifier
    * `onlyOwner`, which can be applied to your functions to restrict their use to
    * the owner.
    */
    abstract contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    /**
    * @dev Initializes the contract setting the deployer as the initial owner.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 19 : IERC5267.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)
    pragma solidity ^0.8.0;
    interface IERC5267 {
    /**
    * @dev MAY be emitted to signal that the domain could have changed.
    */
    event EIP712DomainChanged();
    /**
    * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
    * signature.
    */
    function eip712Domain()
    external
    view
    returns (
    bytes1 fields,
    string memory name,
    string memory version,
    uint256 chainId,
    address verifyingContract,
    bytes32 salt,
    uint256[] memory extensions
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 19 : ERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
    pragma solidity ^0.8.0;
    import "./IERC20.sol";
    import "./extensions/IERC20Metadata.sol";
    import "../../utils/Context.sol";
    /**
    * @dev Implementation of the {IERC20} interface.
    *
    * This implementation is agnostic to the way tokens are created. This means
    * that a supply mechanism has to be added in a derived contract using {_mint}.
    * For a generic mechanism see {ERC20PresetMinterPauser}.
    *
    * TIP: For a detailed writeup see our guide
    * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
    * to implement supply mechanisms].
    *
    * The default value of {decimals} is 18. To change this, you should override
    * this function so it returns a different value.
    *
    * We have followed general OpenZeppelin Contracts guidelines: functions revert
    * instead returning `false` on failure. This behavior is nonetheless
    * conventional and does not conflict with the expectations of ERC20
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 19 : draft-ERC20Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-ERC20Permit.sol)
    pragma solidity ^0.8.0;
    // EIP-2612 is Final as of 2022-11-01. This file is deprecated.
    import "./ERC20Permit.sol";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 19 : ERC20Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol)
    pragma solidity ^0.8.0;
    import "./IERC20Permit.sol";
    import "../ERC20.sol";
    import "../../../utils/cryptography/ECDSA.sol";
    import "../../../utils/cryptography/EIP712.sol";
    import "../../../utils/Counters.sol";
    /**
    * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
    * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
    *
    * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
    * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
    * need to send a transaction, and thus is not required to hold Ether at all.
    *
    * _Available since v3.4._
    */
    abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;
    mapping(address => Counters.Counter) private _nonces;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 19 : IERC20Metadata.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
    pragma solidity ^0.8.0;
    import "../IERC20.sol";
    /**
    * @dev Interface for the optional metadata functions from the ERC20 standard.
    *
    * _Available since v4.1._
    */
    interface IERC20Metadata is IERC20 {
    /**
    * @dev Returns the name of the token.
    */
    function name() external view returns (string memory);
    /**
    * @dev Returns the symbol of the token.
    */
    function symbol() external view returns (string memory);
    /**
    * @dev Returns the decimals places of the token.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 19 : IERC20Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
    * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
    *
    * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
    * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
    * need to send a transaction, and thus is not required to hold Ether at all.
    */
    interface IERC20Permit {
    /**
    * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
    * given ``owner``'s signed approval.
    *
    * IMPORTANT: The same issues {IERC20-approve} has related to transaction
    * ordering also apply here.
    *
    * Emits an {Approval} event.
    *
    * Requirements:
    *
    * - `spender` cannot be the zero address.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 19 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Interface of the ERC20 standard as defined in the EIP.
    */
    interface IERC20 {
    /**
    * @dev Emitted when `value` tokens are moved from one account (`from`) to
    * another (`to`).
    *
    * Note that `value` may be zero.
    */
    event Transfer(address indexed from, address indexed to, uint256 value);
    /**
    * @dev Emitted when the allowance of a `spender` for an `owner` is set by
    * a call to {approve}. `value` is the new allowance.
    */
    event Approval(address indexed owner, address indexed spender, uint256 value);
    /**
    * @dev Returns the amount of tokens in existence.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 10 of 19 : Context.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Provides information about the current execution context, including the
    * sender of the transaction and its data. While these are generally available
    * via msg.sender and msg.data, they should not be accessed in such a direct
    * manner, since when dealing with meta-transactions the account sending and
    * paying for execution may not be the actual sender (as far as an application
    * is concerned).
    *
    * This contract is only required for intermediate, library-like contracts.
    */
    abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
    return msg.sender;
    }
    function _msgData() internal view virtual returns (bytes calldata) {
    return msg.data;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 11 of 19 : Counters.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
    pragma solidity ^0.8.0;
    /**
    * @title Counters
    * @author Matt Condon (@shrugs)
    * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
    * of elements in a mapping, issuing ERC721 ids, or counting request ids.
    *
    * Include with `using Counters for Counters.Counter;`
    */
    library Counters {
    struct Counter {
    // This variable should never be directly accessed by users of the library: interactions must be restricted to
    // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
    // this feature: see https://github.com/ethereum/solidity/issues/4637
    uint256 _value; // default: 0
    }
    function current(Counter storage counter) internal view returns (uint256) {
    return counter._value;
    }
    function increment(Counter storage counter) internal {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 12 of 19 : ECDSA.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)
    pragma solidity ^0.8.0;
    import "../Strings.sol";
    /**
    * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
    *
    * These functions can be used to verify that a message was signed by the holder
    * of the private keys of a given address.
    */
    library ECDSA {
    enum RecoverError {
    NoError,
    InvalidSignature,
    InvalidSignatureLength,
    InvalidSignatureS,
    InvalidSignatureV // Deprecated in v4.8
    }
    function _throwError(RecoverError error) private pure {
    if (error == RecoverError.NoError) {
    return; // no error: do nothing
    } else if (error == RecoverError.InvalidSignature) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 13 of 19 : EIP712.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)
    pragma solidity ^0.8.8;
    import "./ECDSA.sol";
    import "../ShortStrings.sol";
    import "../../interfaces/IERC5267.sol";
    /**
    * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
    *
    * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
    * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
    * they need in their contracts using a combination of `abi.encode` and `keccak256`.
    *
    * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
    * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
    * ({_hashTypedDataV4}).
    *
    * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
    * the chain id to protect against replay attacks on an eventual fork of the chain.
    *
    * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
    * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 14 of 19 : Math.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Standard math utilities missing in the Solidity language.
    */
    library Math {
    enum Rounding {
    Down, // Toward negative infinity
    Up, // Toward infinity
    Zero // Toward zero
    }
    /**
    * @dev Returns the largest of two numbers.
    */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
    return a > b ? a : b;
    }
    /**
    * @dev Returns the smallest of two numbers.
    */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 15 of 19 : SignedMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Standard signed math utilities missing in the Solidity language.
    */
    library SignedMath {
    /**
    * @dev Returns the largest of two signed numbers.
    */
    function max(int256 a, int256 b) internal pure returns (int256) {
    return a > b ? a : b;
    }
    /**
    * @dev Returns the smallest of two signed numbers.
    */
    function min(int256 a, int256 b) internal pure returns (int256) {
    return a < b ? a : b;
    }
    /**
    * @dev Returns the average of two signed numbers without overflow.
    * The result is rounded towards zero.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 16 of 19 : ShortStrings.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)
    pragma solidity ^0.8.8;
    import "./StorageSlot.sol";
    // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
    // | length | 0x BB |
    type ShortString is bytes32;
    /**
    * @dev This library provides functions to convert short memory strings
    * into a `ShortString` type that can be used as an immutable variable.
    *
    * Strings of arbitrary length can be optimized using this library if
    * they are short enough (up to 31 bytes) by packing them with their
    * length (1 byte) in a single EVM word (32 bytes). Additionally, a
    * fallback mechanism can be used for every other case.
    *
    * Usage example:
    *
    * ```solidity
    * contract Named {
    * using ShortStrings for *;
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 17 of 19 : StorageSlot.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
    // This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
    pragma solidity ^0.8.0;
    /**
    * @dev Library for reading and writing primitive types to specific storage slots.
    *
    * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
    * This library helps with reading and writing to such slots without the need for inline assembly.
    *
    * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
    *
    * Example usage to set ERC1967 implementation slot:
    * ```solidity
    * contract ERC1967 {
    * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
    *
    * function _getImplementation() internal view returns (address) {
    * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    * }
    *
    * function _setImplementation(address newImplementation) internal {
    * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
    * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 18 of 19 : Strings.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
    pragma solidity ^0.8.0;
    import "./math/Math.sol";
    import "./math/SignedMath.sol";
    /**
    * @dev String operations.
    */
    library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;
    /**
    * @dev Converts a `uint256` to its ASCII `string` decimal representation.
    */
    function toString(uint256 value) internal pure returns (string memory) {
    unchecked {
    uint256 length = Math.log10(value) + 1;
    string memory buffer = new string(length);
    uint256 ptr;
    /// @solidity memory-safe-assembly
    assembly {
    ptr := add(buffer, add(32, length))
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 19 of 19 : IXERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: UNLICENSED
    pragma solidity >=0.8.4 <0.9.0;
    interface IXERC20 {
    /**
    * @notice Emits when a lockbox is set
    *
    * @param _lockbox The address of the lockbox
    */
    event LockboxSet(address _lockbox);
    /**
    * @notice Emits when a limit is set
    *
    * @param _mintingLimit The updated minting limit we are setting to the bridge
    * @param _burningLimit The updated burning limit we are setting to the bridge
    * @param _bridge The address of the bridge we are setting the limit too
    */
    event BridgeLimitsSet(uint256 _mintingLimit, uint256 _burningLimit, address indexed _bridge);
    /**
    * @notice Reverts when a user with too low of a limit tries to call mint/burn
    */
    error IXERC20_NotHighEnoughLimits();
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    {
    "optimizer": {
    "enabled": true,
    "runs": 200
    },
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/"
    ],
    "libraries": {}
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract Security Audit

    Contract ABI

    API
    [{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IXERC20_NotFactory","type":"error"},{"inputs":[],"name":"IXERC20_NotHighEnoughLimits","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_mintingLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_burningLimit","type":"uint256"},{"indexed":true,"internalType":"address","name":"_bridge","type":"address"}],"name":"BridgeLimitsSet","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lockbox","type":"address"}],"name":"LockboxSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bridges","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"currentLimit","type":"uint256"}],"internalType":"struct IXERC20.BridgeParameters","name":"minterParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"currentLimit","type":"uint256"}],"internalType":"struct IXERC20.BridgeParameters","name":"burnerParams","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"burningCurrentLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"burningMaxLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockbox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"mintingCurrentLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"mintingMaxLimitOf","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"uint256","name":"_mintingLimit","type":"uint256"},{"internalType":"uint256","name":"_burningLimit","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lockbox","type":"address"}],"name":"setLockbox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

    6101806040523480156200001257600080fd5b506040516200228b3803806200228b83398101604081905262000035916200030c565b6040805180820190915260018152603160f81b6020820152839081908185600362000061838262000428565b50600462000070828262000428565b5050506200008d620000876200016460201b60201c565b62000168565b6200009a826006620001ba565b61012052620000ab816007620001ba565b61014052815160208084019190912060e052815190820120610100524660a0526200013960e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506200014e8162000168565b6001600160a01b031661016052506200054e9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602083511015620001da57620001d283620001f3565b9050620001ed565b81620001e7848262000428565b5060ff90505b92915050565b600080829050601f815111156200022a578260405163305a27a960e01b8152600401620002219190620004f4565b60405180910390fd5b8051620002378262000529565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200027257818101518382015260200162000258565b50506000910152565b600082601f8301126200028d57600080fd5b81516001600160401b0380821115620002aa57620002aa6200023f565b604051601f8301601f19908116603f01168101908282118183101715620002d557620002d56200023f565b81604052838152866020858801011115620002ef57600080fd5b6200030284602083016020890162000255565b9695505050505050565b6000806000606084860312156200032257600080fd5b83516001600160401b03808211156200033a57600080fd5b62000348878388016200027b565b945060208601519150808211156200035f57600080fd5b506200036e868287016200027b565b604086015190935090506001600160a01b03811681146200038e57600080fd5b809150509250925092565b600181811c90821680620003ae57607f821691505b602082108103620003cf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042357600081815260208120601f850160051c81016020861015620003fe5750805b601f850160051c820191505b818110156200041f578281556001016200040a565b5050505b505050565b81516001600160401b038111156200044457620004446200023f565b6200045c8162000455845462000399565b84620003d5565b602080601f8311600181146200049457600084156200047b5750858301515b600019600386901b1c1916600185901b1785556200041f565b600085815260208120601f198616915b82811015620004c557888601518255948401946001909101908401620004a4565b5085821015620004e45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208152600082518060208401526200051581604085016020870162000255565b601f01601f19169190910160400192915050565b80516020808301519190811015620003cf5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051611cd0620005bb6000396000818161026f015261060c0152600061073d0152600061071201526000610f1b01526000610ef301526000610e4e01526000610e7801526000610ea20152611cd06000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063a08d5654116100a2578063ced67f0c11610071578063ced67f0c14610424578063d505accf146104b6578063dd62ed3e146104c9578063f2fde38b146104dc57600080fd5b8063a08d5654146103bf578063a457c2d7146103d2578063a9059cbb146103e5578063c1eb7137146103f857600080fd5b80638da5cb5b116100de5780638da5cb5b1461038057806395d89b4114610391578063998955d3146103995780639dc29fac146103ac57600080fd5b8063715018a61461034a5780637ecebe001461035257806384b0196e1461036557600080fd5b80633644e51511610171578063435350b71161014b578063435350b7146102e8578063651fd268146102fb57806366cc57021461030e57806370a082311461032157600080fd5b80633644e515146102b857806339509351146102c057806340c10f19146102d357600080fd5b806318160ddd116101ad57806318160ddd1461024f57806323b872dd146102575780632dd310001461026a578063313ce567146102a957600080fd5b806306fdde03146101d4578063095ea7b3146101f25780630c05f82c14610215575b600080fd5b6101dc6104ef565b6040516101e99190611970565b60405180910390f35b61020561020036600461199f565b610581565b60405190151581526020016101e9565b6102416102233660046119c9565b6001600160a01b03166000908152600b602052604090206002015490565b6040519081526020016101e9565b600254610241565b6102056102653660046119e4565b61059b565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e9565b604051601281526020016101e9565b6102416105c1565b6102056102ce36600461199f565b6105d0565b6102e66102e136600461199f565b6105f2565b005b6102e66102f63660046119c9565b610601565b6102416103093660046119c9565b61069e565b600a54610291906001600160a01b031681565b61024161032f3660046119c9565b6001600160a01b031660009081526020819052604090205490565b6102e66106d2565b6102416103603660046119c9565b6106e6565b61036d610704565b6040516101e99796959493929190611a20565b6005546001600160a01b0316610291565b6101dc61078d565b6102416103a73660046119c9565b61079c565b6102e66103ba36600461199f565b6107d3565b6102e66103cd366004611ab6565b6107f9565b6102056103e036600461199f565b61085e565b6102056103f336600461199f565b6108e9565b6102416104063660046119c9565b6001600160a01b03166000908152600b602052604090206006015490565b6104a86104323660046119c9565b600b602090815260009182526040918290208251608080820185528254825260018301548285015260028301548286015260038301546060808401919091528551918201865260048401548252600584015494820194909452600683015494810194909452600790910154918301919091529082565b6040516101e9929190611ae9565b6102e66104c4366004611b35565b6108f7565b6102416104d7366004611ba8565b610a5b565b6102e66104ea3660046119c9565b610a86565b6060600380546104fe90611bdb565b80601f016020809104026020016040519081016040528092919081815260200182805461052a90611bdb565b80156105775780601f1061054c57610100808354040283529160200191610577565b820191906000526020600020905b81548152906001019060200180831161055a57829003601f168201915b5050505050905090565b60003361058f818585610aff565b60019150505b92915050565b6000336105a9858285610c23565b6105b4858585610c9d565b60019150505b9392505050565b60006105cb610e41565b905090565b60003361058f8185856105e38383610a5b565b6105ed9190611c25565b610aff565b6105fd338383610f6c565b5050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461064a57604051632029e52560e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527ffa2e15ea41196e438f0593ecdd6036acd83bdfcd39d627b77c17eab43f376a399060200160405180910390a150565b6001600160a01b0381166000908152600b602052604081206003810154600282015482546001909301546105959390610fca565b6106da611042565b6106e4600061109c565b565b6001600160a01b038116600090815260086020526040812054610595565b6000606080828080836107387f000000000000000000000000000000000000000000000000000000000000000060066110ee565b6107637f000000000000000000000000000000000000000000000000000000000000000060076110ee565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546104fe90611bdb565b6001600160a01b0381166000908152600b602052604081206007810154600682015460048301546005909301546105959390610fca565b336001600160a01b038316146107ee576107ee823383610c23565b6105fd338383611199565b610801611042565b61080b83836111f2565b6108158382611296565b60408051838152602081018390526001600160a01b038516917f93f3bbfe8cfb354ec059175107653f49f6eb479a8622a7d83866ea015435c944910160405180910390a2505050565b6000338161086c8286610a5b565b9050838110156108d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6108de8286868403610aff565b506001949350505050565b60003361058f818585610c9d565b834211156109475760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108c8565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109768c611340565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006109d182611368565b905060006109e182878787611395565b9050896001600160a01b0316816001600160a01b031614610a445760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108c8565b610a4f8a8a8a610aff565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a8e611042565b6001600160a01b038116610af35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c8565b610afc8161109c565b50565b6001600160a01b038316610b615760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108c8565b6001600160a01b038216610bc25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108c8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610c2f8484610a5b565b90506000198114610c975781811015610c8a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c8565b610c978484848403610aff565b50505050565b6001600160a01b038316610d015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108c8565b6001600160a01b038216610d635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108c8565b6001600160a01b03831660009081526020819052604090205481811015610ddb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108c8565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610c97565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610e9a57507f000000000000000000000000000000000000000000000000000000000000000046145b15610ec457507f000000000000000000000000000000000000000000000000000000000000000090565b6105cb604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600a546001600160a01b03848116911614610fbb576000610f8c8461069e565b905081811015610faf576040516305b4215560e11b815260040160405180910390fd5b610fb984836113bd565b505b610fc58282611413565b505050565b8383811461103a5742610fe06201518085611c25565b11610fec57508261103a565b42610ffa6201518085611c25565b111561103a57600061100c8442611c38565b9050600061101a8483611c4b565b6110249084611c25565b90508581116110335780611035565b855b925050505b949350505050565b6005546001600160a01b031633146106e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108c8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff831461110857611101836114d2565b9050610595565b81805461111490611bdb565b80601f016020809104026020016040519081016040528092919081815260200182805461114090611bdb565b801561118d5780601f106111625761010080835404028352916020019161118d565b820191906000526020600020905b81548152906001019060200180831161117057829003601f168201915b50505050509050610595565b600a546001600160a01b038481169116146111e85760006111b98461079c565b9050818110156111dc576040516305b4215560e11b815260040160405180910390fd5b6111e68483611511565b505b610fc5828261156b565b6001600160a01b0382166000908152600b6020526040812060020154906112188461069e565b6001600160a01b0385166000908152600b60205260409020600201849055905061124383838361169d565b6001600160a01b0385166000908152600b602052604090206003015561126c6201518084611c62565b6001600160a01b039094166000908152600b60205260409020600181019490945550504290915550565b6001600160a01b0382166000908152600b6020526040812060060154906112bc8461079c565b6001600160a01b0385166000908152600b6020526040902060060184905590506112e783838361169d565b6001600160a01b0385166000908152600b60205260409020600701556113106201518084611c62565b6001600160a01b039094166000908152600b60205260409020600581019490945550504260049092019190915550565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b6000610595611375610e41565b8360405161190160f01b8152600281019290925260228201526042902090565b60008060006113a6878787876116f4565b915091506113b3816117b8565b5095945050505050565b60006113c88361069e565b6001600160a01b0384166000908152600b6020526040902042905590506113ef8282611c38565b6001600160a01b039093166000908152600b60205260409020600301929092555050565b6001600160a01b0382166114695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c8565b806002600082825461147b9190611c25565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606060006114df83611902565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600061151c8361079c565b6001600160a01b0384166000908152600b602052604090204260049091015590506115478282611c38565b6001600160a01b039093166000908152600b60205260409020600701929092555050565b6001600160a01b0382166115cb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108c8565b6001600160a01b0382166000908152602081905260409020548181101561163f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108c8565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080848411156116d3576116b28585611c38565b90508083116116c25760006116cc565b6116cc8184611c38565b91506116ec565b6116dd8486611c38565b90506116e98184611c25565b91505b509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561172b57506000905060036117af565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561177f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117a8576000600192509250506117af565b9150600090505b94509492505050565b60008160048111156117cc576117cc611c84565b036117d45750565b60018160048111156117e8576117e8611c84565b036118355760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108c8565b600281600481111561184957611849611c84565b036118965760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108c8565b60038160048111156118aa576118aa611c84565b03610afc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108c8565b600060ff8216601f81111561059557604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561195057602081850181015186830182015201611934565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006105ba602083018461192a565b80356001600160a01b038116811461199a57600080fd5b919050565b600080604083850312156119b257600080fd5b6119bb83611983565b946020939093013593505050565b6000602082840312156119db57600080fd5b6105ba82611983565b6000806000606084860312156119f957600080fd5b611a0284611983565b9250611a1060208501611983565b9150604084013590509250925092565b60ff60f81b881681526000602060e081840152611a4060e084018a61192a565b8381036040850152611a52818a61192a565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015611aa457835183529284019291840191600101611a88565b50909c9b505050505050505050505050565b600080600060608486031215611acb57600080fd5b611ad484611983565b95602085013595506040909401359392505050565b82518152602080840151818301526040808501518184015260608086015181850152845160808501529184015160a084015283015160c083015282015160e082015261010081016105ba565b600080600080600080600060e0888a031215611b5057600080fd5b611b5988611983565b9650611b6760208901611983565b95506040880135945060608801359350608088013560ff81168114611b8b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611bbb57600080fd5b611bc483611983565b9150611bd260208401611983565b90509250929050565b600181811c90821680611bef57607f821691505b60208210810361136257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561059557610595611c0f565b8181038181111561059557610595611c0f565b808202811582820484141761059557610595611c0f565b600082611c7f57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212203225a62a0a70dde380dc52b72a0871cd916b13029cb0be4f9d2a595ad6ba6ebb64736f6c63430008130033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b33f68a074dcba4ee9068faf35adfca24827cc0e00000000000000000000000000000000000000000000000000000000000000084d6f6f204249464900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6f4249464900000000000000000000000000000000000000000000000000

    Deployed Bytecode

    0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063a08d5654116100a2578063ced67f0c11610071578063ced67f0c14610424578063d505accf146104b6578063dd62ed3e146104c9578063f2fde38b146104dc57600080fd5b8063a08d5654146103bf578063a457c2d7146103d2578063a9059cbb146103e5578063c1eb7137146103f857600080fd5b80638da5cb5b116100de5780638da5cb5b1461038057806395d89b4114610391578063998955d3146103995780639dc29fac146103ac57600080fd5b8063715018a61461034a5780637ecebe001461035257806384b0196e1461036557600080fd5b80633644e51511610171578063435350b71161014b578063435350b7146102e8578063651fd268146102fb57806366cc57021461030e57806370a082311461032157600080fd5b80633644e515146102b857806339509351146102c057806340c10f19146102d357600080fd5b806318160ddd116101ad57806318160ddd1461024f57806323b872dd146102575780632dd310001461026a578063313ce567146102a957600080fd5b806306fdde03146101d4578063095ea7b3146101f25780630c05f82c14610215575b600080fd5b6101dc6104ef565b6040516101e99190611970565b60405180910390f35b61020561020036600461199f565b610581565b60405190151581526020016101e9565b6102416102233660046119c9565b6001600160a01b03166000908152600b602052604090206002015490565b6040519081526020016101e9565b600254610241565b6102056102653660046119e4565b61059b565b6102917f000000000000000000000000b33f68a074dcba4ee9068faf35adfca24827cc0e81565b6040516001600160a01b0390911681526020016101e9565b604051601281526020016101e9565b6102416105c1565b6102056102ce36600461199f565b6105d0565b6102e66102e136600461199f565b6105f2565b005b6102e66102f63660046119c9565b610601565b6102416103093660046119c9565b61069e565b600a54610291906001600160a01b031681565b61024161032f3660046119c9565b6001600160a01b031660009081526020819052604090205490565b6102e66106d2565b6102416103603660046119c9565b6106e6565b61036d610704565b6040516101e99796959493929190611a20565b6005546001600160a01b0316610291565b6101dc61078d565b6102416103a73660046119c9565b61079c565b6102e66103ba36600461199f565b6107d3565b6102e66103cd366004611ab6565b6107f9565b6102056103e036600461199f565b61085e565b6102056103f336600461199f565b6108e9565b6102416104063660046119c9565b6001600160a01b03166000908152600b602052604090206006015490565b6104a86104323660046119c9565b600b602090815260009182526040918290208251608080820185528254825260018301548285015260028301548286015260038301546060808401919091528551918201865260048401548252600584015494820194909452600683015494810194909452600790910154918301919091529082565b6040516101e9929190611ae9565b6102e66104c4366004611b35565b6108f7565b6102416104d7366004611ba8565b610a5b565b6102e66104ea3660046119c9565b610a86565b6060600380546104fe90611bdb565b80601f016020809104026020016040519081016040528092919081815260200182805461052a90611bdb565b80156105775780601f1061054c57610100808354040283529160200191610577565b820191906000526020600020905b81548152906001019060200180831161055a57829003601f168201915b5050505050905090565b60003361058f818585610aff565b60019150505b92915050565b6000336105a9858285610c23565b6105b4858585610c9d565b60019150505b9392505050565b60006105cb610e41565b905090565b60003361058f8185856105e38383610a5b565b6105ed9190611c25565b610aff565b6105fd338383610f6c565b5050565b336001600160a01b037f000000000000000000000000b33f68a074dcba4ee9068faf35adfca24827cc0e161461064a57604051632029e52560e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527ffa2e15ea41196e438f0593ecdd6036acd83bdfcd39d627b77c17eab43f376a399060200160405180910390a150565b6001600160a01b0381166000908152600b602052604081206003810154600282015482546001909301546105959390610fca565b6106da611042565b6106e4600061109c565b565b6001600160a01b038116600090815260086020526040812054610595565b6000606080828080836107387f4d6f6f204249464900000000000000000000000000000000000000000000000860066110ee565b6107637f310000000000000000000000000000000000000000000000000000000000000160076110ee565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546104fe90611bdb565b6001600160a01b0381166000908152600b602052604081206007810154600682015460048301546005909301546105959390610fca565b336001600160a01b038316146107ee576107ee823383610c23565b6105fd338383611199565b610801611042565b61080b83836111f2565b6108158382611296565b60408051838152602081018390526001600160a01b038516917f93f3bbfe8cfb354ec059175107653f49f6eb479a8622a7d83866ea015435c944910160405180910390a2505050565b6000338161086c8286610a5b565b9050838110156108d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6108de8286868403610aff565b506001949350505050565b60003361058f818585610c9d565b834211156109475760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108c8565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109768c611340565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006109d182611368565b905060006109e182878787611395565b9050896001600160a01b0316816001600160a01b031614610a445760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108c8565b610a4f8a8a8a610aff565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a8e611042565b6001600160a01b038116610af35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c8565b610afc8161109c565b50565b6001600160a01b038316610b615760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108c8565b6001600160a01b038216610bc25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108c8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610c2f8484610a5b565b90506000198114610c975781811015610c8a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c8565b610c978484848403610aff565b50505050565b6001600160a01b038316610d015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108c8565b6001600160a01b038216610d635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108c8565b6001600160a01b03831660009081526020819052604090205481811015610ddb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108c8565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610c97565b6000306001600160a01b037f000000000000000000000000c55e93c62874d8100dbd2dfe307edc1036ad543416148015610e9a57507f000000000000000000000000000000000000000000000000000000000000009246145b15610ec457507fb5697776452b7d6721a3b7384731d3658808b1f9ab8dc95692698c84355c4e4490565b6105cb604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527ff1344641b73d20c39372278dd31764190db9b0f89044d98b303bd2d6ca088c9b918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600a546001600160a01b03848116911614610fbb576000610f8c8461069e565b905081811015610faf576040516305b4215560e11b815260040160405180910390fd5b610fb984836113bd565b505b610fc58282611413565b505050565b8383811461103a5742610fe06201518085611c25565b11610fec57508261103a565b42610ffa6201518085611c25565b111561103a57600061100c8442611c38565b9050600061101a8483611c4b565b6110249084611c25565b90508581116110335780611035565b855b925050505b949350505050565b6005546001600160a01b031633146106e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108c8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff831461110857611101836114d2565b9050610595565b81805461111490611bdb565b80601f016020809104026020016040519081016040528092919081815260200182805461114090611bdb565b801561118d5780601f106111625761010080835404028352916020019161118d565b820191906000526020600020905b81548152906001019060200180831161117057829003601f168201915b50505050509050610595565b600a546001600160a01b038481169116146111e85760006111b98461079c565b9050818110156111dc576040516305b4215560e11b815260040160405180910390fd5b6111e68483611511565b505b610fc5828261156b565b6001600160a01b0382166000908152600b6020526040812060020154906112188461069e565b6001600160a01b0385166000908152600b60205260409020600201849055905061124383838361169d565b6001600160a01b0385166000908152600b602052604090206003015561126c6201518084611c62565b6001600160a01b039094166000908152600b60205260409020600181019490945550504290915550565b6001600160a01b0382166000908152600b6020526040812060060154906112bc8461079c565b6001600160a01b0385166000908152600b6020526040902060060184905590506112e783838361169d565b6001600160a01b0385166000908152600b60205260409020600701556113106201518084611c62565b6001600160a01b039094166000908152600b60205260409020600581019490945550504260049092019190915550565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b6000610595611375610e41565b8360405161190160f01b8152600281019290925260228201526042902090565b60008060006113a6878787876116f4565b915091506113b3816117b8565b5095945050505050565b60006113c88361069e565b6001600160a01b0384166000908152600b6020526040902042905590506113ef8282611c38565b6001600160a01b039093166000908152600b60205260409020600301929092555050565b6001600160a01b0382166114695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c8565b806002600082825461147b9190611c25565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606060006114df83611902565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600061151c8361079c565b6001600160a01b0384166000908152600b602052604090204260049091015590506115478282611c38565b6001600160a01b039093166000908152600b60205260409020600701929092555050565b6001600160a01b0382166115cb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108c8565b6001600160a01b0382166000908152602081905260409020548181101561163f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108c8565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080848411156116d3576116b28585611c38565b90508083116116c25760006116cc565b6116cc8184611c38565b91506116ec565b6116dd8486611c38565b90506116e98184611c25565b91505b509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561172b57506000905060036117af565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561177f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117a8576000600192509250506117af565b9150600090505b94509492505050565b60008160048111156117cc576117cc611c84565b036117d45750565b60018160048111156117e8576117e8611c84565b036118355760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108c8565b600281600481111561184957611849611c84565b036118965760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108c8565b60038160048111156118aa576118aa611c84565b03610afc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108c8565b600060ff8216601f81111561059557604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561195057602081850181015186830182015201611934565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006105ba602083018461192a565b80356001600160a01b038116811461199a57600080fd5b919050565b600080604083850312156119b257600080fd5b6119bb83611983565b946020939093013593505050565b6000602082840312156119db57600080fd5b6105ba82611983565b6000806000606084860312156119f957600080fd5b611a0284611983565b9250611a1060208501611983565b9150604084013590509250925092565b60ff60f81b881681526000602060e081840152611a4060e084018a61192a565b8381036040850152611a52818a61192a565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015611aa457835183529284019291840191600101611a88565b50909c9b505050505050505050505050565b600080600060608486031215611acb57600080fd5b611ad484611983565b95602085013595506040909401359392505050565b82518152602080840151818301526040808501518184015260608086015181850152845160808501529184015160a084015283015160c083015282015160e082015261010081016105ba565b600080600080600080600060e0888a031215611b5057600080fd5b611b5988611983565b9650611b6760208901611983565b95506040880135945060608801359350608088013560ff81168114611b8b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611bbb57600080fd5b611bc483611983565b9150611bd260208401611983565b90509250929050565b600181811c90821680611bef57607f821691505b60208210810361136257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561059557610595611c0f565b8181038181111561059557610595611c0f565b808202811582820484141761059557610595611c0f565b600082611c7f57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212203225a62a0a70dde380dc52b72a0871cd916b13029cb0be4f9d2a595ad6ba6ebb64736f6c63430008130033

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

    000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b33f68a074dcba4ee9068faf35adfca24827cc0e00000000000000000000000000000000000000000000000000000000000000084d6f6f204249464900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6f4249464900000000000000000000000000000000000000000000000000

    -----Decoded View---------------
    Arg [0] : _name (string): Moo BIFI
    Arg [1] : _symbol (string): mooBIFI
    Arg [2] : _factory (address): 0xb33f68A074dcBa4eE9068Faf35AdFCA24827Cc0E

    -----Encoded View---------------
    7 Constructor Arguments found :
    Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
    Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
    Arg [2] : 000000000000000000000000b33f68a074dcba4ee9068faf35adfca24827cc0e
    Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
    Arg [4] : 4d6f6f2042494649000000000000000000000000000000000000000000000000
    Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
    Arg [6] : 6d6f6f4249464900000000000000000000000000000000000000000000000000


    Block Age Transaction Gas Used Reward
    view all blocks ##produced##

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

    OVERVIEW

    Beefy is The Trusted Yield Optimizer that help users to safely and securely autocompound yields on their crypto. Beefy's cutting-edge web app delivers hundreds of DeFi earning strategies from dozens of chains in a single, easy-to-use service.

    Loading...
    Loading

    Validator Index Block Age Amount
    View All Withdrawals

    Transaction Hash Block Age Value Eth2 PubKey Valid
    View All Deposits
    [ Download: CSV Export  ]
    [ Download: CSV Export  ]

    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.