Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 31207507 | 13 hrs ago | 0.11084638 FRAX | ||||
| 31207507 | 13 hrs ago | 0.00016274 FRAX | ||||
| 31161729 | 38 hrs ago | 0.09949295 FRAX | ||||
| 31161729 | 38 hrs ago | 0.00014644 FRAX | ||||
| 31107557 | 2 days ago | 0.088107 FRAX | ||||
| 31107557 | 2 days ago | 0.00014552 FRAX | ||||
| 31077606 | 3 days ago | 0.09850207 FRAX | ||||
| 31077606 | 3 days ago | 0.00016154 FRAX | ||||
| 30997410 | 5 days ago | 0.08978704 FRAX | ||||
| 30997410 | 5 days ago | 0.00014272 FRAX | ||||
| 30980369 | 5 days ago | 0.09137223 FRAX | ||||
| 30980369 | 5 days ago | 0.00016778 FRAX | ||||
| 30931366 | 6 days ago | 0.12864208 FRAX | ||||
| 30931366 | 6 days ago | 0.00021496 FRAX | ||||
| 30919248 | 7 days ago | 0.12864208 FRAX | ||||
| 30919248 | 7 days ago | 0.00021496 FRAX | ||||
| 30901878 | 7 days ago | 0.12864208 FRAX | ||||
| 30901878 | 7 days ago | 0.00020119 FRAX | ||||
| 30856142 | 8 days ago | 0.10420546 FRAX | ||||
| 30856142 | 8 days ago | 0.00019342 FRAX | ||||
| 30855481 | 8 days ago | 0.10420546 FRAX | ||||
| 30855481 | 8 days ago | 0.00009427 FRAX | ||||
| 30853566 | 8 days ago | 0.10420546 FRAX | ||||
| 30853566 | 8 days ago | 0.00018102 FRAX | ||||
| 30783537 | 10 days ago | 0.11926686 FRAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NativeTreasury
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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;
}{
"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
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$505.96
Net Worth in FRAX
513.028631
Token Allocations
ETH
50.04%
XDAI
9.80%
FRAX
9.14%
Others
31.02%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 17.07% | $2,950.54 | 0.0293 | $86.37 | |
| ARB | 10.33% | $2,951.09 | 0.0177 | $52.27 | |
| GNO | 9.80% | $0.999367 | 49.5938 | $49.56 | |
| FRAXTAL | 9.14% | $0.986223 | 46.9083 | $46.26 | |
| BSC | 8.26% | $885.68 | 0.0472 | $41.8 | |
| POL | 7.15% | $0.125306 | 288.69 | $36.17 | |
| LINEA | 5.83% | $2,950.96 | 0.01 | $29.51 | |
| BLAST | 5.83% | $2,950.73 | 0.01 | $29.51 | |
| BASE | 5.72% | $2,951.17 | 0.009809 | $28.95 | |
| MANTLE | 5.36% | $0.903767 | 30 | $27.11 | |
| OP | 5.26% | $2,950.74 | 0.00901299 | $26.59 | |
| AVAX | 4.74% | $11.99 | 2 | $23.99 | |
| CELO | 2.28% | $0.115514 | 100 | $11.55 | |
| SONIC | 1.78% | $0.070045 | 128.6751 | $9.01 | |
| BERA | 1.44% | $0.729189 | 10 | $7.29 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.