MNT Price: $0.90 (+2.54%)

Contract

0x86bEecEfAefC42a776F94696131f1FDe7c786Bb5
 
Transaction Hash
Block
From
To
Transfer893615422025-12-27 16:36:3627 days ago1766853396IN
0x86bEecEf...e7c786Bb5
30 MNT0.001193930.0201

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
892718162025-12-25 14:45:4430 days ago1766673944  Contract Creation0 MNT

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NativeTreasury

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
shanghai EvmVersion
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) Eywa.Fi, 2021-2025 - all rights reserved
pragma solidity ^0.8.20;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/INativeTreasury.sol";


contract NativeTreasury is INativeTreasury, Ownable {
    address public immutable gateKeeper;
    event ValueSent(uint256 value, address to);

    constructor(address admin_) {
        require(admin_ != address(0), "NativeTreasury: zero address");
        _transferOwnership(admin_);
        gateKeeper = msg.sender;
    }

    receive() external payable {}

    /**
     * @dev Get value for msg.sender
     *
     * @param value_ value to transfer
     */
    function getValue(uint256 value_) external {
        require(msg.sender == gateKeeper || msg.sender == owner(), "NativeTreasury: only admin or gatekeeper");
        (bool success, ) = msg.sender.call{value: value_}("");
        require(success, "NativeTreasury: failed to send Ether");
        emit ValueSent(value_, msg.sender);
    }
}

// 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.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: UNLICENSED
// Copyright (c) Eywa.Fi, 2021-2023 - all rights reserved
pragma solidity ^0.8.17;

interface INativeTreasury {

    function getValue(uint256 value_) external;
}

Settings
{
  "evmVersion": "shanghai",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": [
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/"
  ]
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"ValueSent","type":"event"},{"inputs":[],"name":"gateKeeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"getValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561000f575f80fd5b5060405161058138038061058183398101604081905261002e916100f3565b610037336100a4565b6001600160a01b0381166100915760405162461bcd60e51b815260206004820152601c60248201527f4e617469766554726561737572793a207a65726f206164647265737300000000604482015260640160405180910390fd5b61009a816100a4565b5033608052610120565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610103575f80fd5b81516001600160a01b0381168114610119575f80fd5b9392505050565b60805161044361013e5f395f81816089015261012101526104435ff3fe60806040526004361061004c575f3560e01c80630ff4c9161461005757806345d61ded14610078578063715018a6146100c75780638da5cb5b146100db578063f2fde38b146100f7575f80fd5b3661005357005b5f80fd5b348015610062575f80fd5b506100766100713660046103c9565b610116565b005b348015610083575f80fd5b506100ab7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d2575f80fd5b50610076610295565b3480156100e6575f80fd5b505f546001600160a01b03166100ab565b348015610102575f80fd5b506100766101113660046103e0565b6102a8565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061015657505f546001600160a01b031633145b6101b85760405162461bcd60e51b815260206004820152602860248201527f4e617469766554726561737572793a206f6e6c792061646d696e206f722067616044820152673a32b5b2b2b832b960c11b60648201526084015b60405180910390fd5b6040515f90339083908381818185875af1925050503d805f81146101f7576040519150601f19603f3d011682016040523d82523d5f602084013e6101fc565b606091505b50509050806102595760405162461bcd60e51b8152602060048201526024808201527f4e617469766554726561737572793a206661696c656420746f2073656e6420456044820152633a3432b960e11b60648201526084016101af565b604080518381523360208201527f6e956827cc4d1fccd75ce1b2622b67a52f13906439c330d7f85258eb9b8b342e910160405180910390a15050565b61029d610321565b6102a65f61037a565b565b6102b0610321565b6001600160a01b0381166103155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101af565b61031e8161037a565b50565b5f546001600160a01b031633146102a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101af565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156103d9575f80fd5b5035919050565b5f602082840312156103f0575f80fd5b81356001600160a01b0381168114610406575f80fd5b939250505056fea264697066735822122072a156b89eee99b6cf328696f77d473192a0042ef09b4a9e2f9f8b9489bdf84b64736f6c63430008140033000000000000000000000000f8e3961792c0a9d8bff4aac772ef35edde700416

Deployed Bytecode

0x60806040526004361061004c575f3560e01c80630ff4c9161461005757806345d61ded14610078578063715018a6146100c75780638da5cb5b146100db578063f2fde38b146100f7575f80fd5b3661005357005b5f80fd5b348015610062575f80fd5b506100766100713660046103c9565b610116565b005b348015610083575f80fd5b506100ab7f0000000000000000000000001cfbd51e558782bd24268eaed312631cc7f2a99f81565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d2575f80fd5b50610076610295565b3480156100e6575f80fd5b505f546001600160a01b03166100ab565b348015610102575f80fd5b506100766101113660046103e0565b6102a8565b336001600160a01b037f0000000000000000000000001cfbd51e558782bd24268eaed312631cc7f2a99f16148061015657505f546001600160a01b031633145b6101b85760405162461bcd60e51b815260206004820152602860248201527f4e617469766554726561737572793a206f6e6c792061646d696e206f722067616044820152673a32b5b2b2b832b960c11b60648201526084015b60405180910390fd5b6040515f90339083908381818185875af1925050503d805f81146101f7576040519150601f19603f3d011682016040523d82523d5f602084013e6101fc565b606091505b50509050806102595760405162461bcd60e51b8152602060048201526024808201527f4e617469766554726561737572793a206661696c656420746f2073656e6420456044820152633a3432b960e11b60648201526084016101af565b604080518381523360208201527f6e956827cc4d1fccd75ce1b2622b67a52f13906439c330d7f85258eb9b8b342e910160405180910390a15050565b61029d610321565b6102a65f61037a565b565b6102b0610321565b6001600160a01b0381166103155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101af565b61031e8161037a565b50565b5f546001600160a01b031633146102a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101af565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156103d9575f80fd5b5035919050565b5f602082840312156103f0575f80fd5b81356001600160a01b0381168114610406575f80fd5b939250505056fea264697066735822122072a156b89eee99b6cf328696f77d473192a0042ef09b4a9e2f9f8b9489bdf84b64736f6c63430008140033

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

000000000000000000000000f8e3961792c0a9d8bff4aac772ef35edde700416

-----Decoded View---------------
Arg [0] : admin_ (address): 0xf8e3961792c0a9d8bfF4AAc772Ef35eDdE700416

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f8e3961792c0a9d8bff4aac772ef35edde700416


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0x86bEecEfAefC42a776F94696131f1FDe7c786Bb5
Net Worth in USD
$506.18

Net Worth in MNT
Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo 560.387728

Token Allocations
ETH 50.04%
XDAI 9.79%
FRAX 9.14%
Others 31.03%
Chain Token Portfolio % Price Amount Value
ETH17.07%$2,951.860.0293$86.41
ARB10.33%$2,951.390.0177$52.27
GNO9.79%$0.99943849.5938$49.57
FRAXTAL9.14%$0.98628646.9083$46.27
BSC8.27%$886.410.0472$41.84
POL7.16%$0.125576288.69$36.25
LINEA5.83%$2,951.860.01$29.52
BLAST5.83%$2,951.860.01$29.52
BASE5.72%$2,951.350.009809$28.95
MANTLE
Mantle (MNT)
5.35%$0.90331530$27.1
OP5.26%$2,951.860.00901299$26.61
AVAX4.75%$12.012$24.03
CELO2.28%$0.115542100$11.55
SONIC1.78%$0.070083128.6751$9.02
BERA1.44%$0.72786510$7.28
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.