Source Code
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Treasury
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { CoreOwnable } from "../dependencies/CoreOwnable.sol";
contract Treasury is CoreOwnable {
using SafeERC20 for IERC20;
using Address for address;
event RetrieveToken (address token,uint amount);
event RetrieveETH (uint amount);
receive() external payable {}
constructor(address _core) CoreOwnable(_core) {}
//Retrieve full balance of token in contract
function retrieveToken(address _token, address _to) external onlyOwner {
retrieveTokenExact(_token, _to, IERC20(_token).balanceOf(address(this)));
}
function retrieveTokenExact(address _token, address _to, uint _amount) public onlyOwner {
IERC20(_token).safeTransfer(_to, _amount);
emit RetrieveToken(_token, _amount);
}
function retrieveETH(address _to) external onlyOwner {
retrieveETHExact(_to, address(this).balance);
}
function retrieveETHExact(address _to, uint _amount) public onlyOwner {
(bool success, bytes memory returnData) = _to.call{value: _amount}("");
require(success, "Sending ETH failed");
emit RetrieveETH(_amount);
}
function setTokenApproval(address _token, address _spender, uint256 _amount) external onlyOwner {
IERC20(_token).forceApprove(_spender, _amount);
}
function execute(address target, bytes calldata data) external returns (bool, bytes memory) {
return _execute(target, data);
}
function safeExecute(address target, bytes calldata data) external returns (bytes memory) {
(bool success, bytes memory result) = _execute(target, data);
require(success, "CallFailed");
return result;
}
function _execute(address target, bytes calldata data) internal onlyOwner returns (bool success, bytes memory result) {
(success, result) = target.call(data);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {ICore} from "../interfaces/ICore.sol";
/**
@title Core Ownable
@author Prisma Finance (with edits by Resupply Finance)
@notice Contracts inheriting `CoreOwnable` have the same owner as `Core`.
The ownership cannot be independently modified or renounced.
*/
contract CoreOwnable {
ICore public immutable core;
constructor(address _core) {
core = ICore(_core);
}
modifier onlyOwner() {
require(msg.sender == address(core), "!core");
_;
}
function owner() public view returns (address) {
return address(core);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
if (!success) {
_revert(returndata);
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import { IAuthHook } from './IAuthHook.sol';
interface ICore {
struct OperatorAuth {
bool authorized;
IAuthHook hook;
}
event VoterSet(address indexed newVoter);
event OperatorExecuted(address indexed caller, address indexed target, bytes data);
event OperatorSet(address indexed caller, address indexed target, bool authorized, bytes4 selector, IAuthHook authHook);
function execute(address target, bytes calldata data) external returns (bytes memory);
function epochLength() external view returns (uint256);
function startTime() external view returns (uint256);
function voter() external view returns (address);
function ownershipTransferDeadline() external view returns (uint256);
function pendingOwner() external view returns (address);
function setOperatorPermissions(
address caller,
address target,
bytes4 selector,
bool authorized,
IAuthHook authHook
) external;
function setVoter(address newVoter) external;
function operatorPermissions(address caller, address target, bytes4 selector) external view returns (bool authorized, IAuthHook hook);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IAuthHook {
function preHook(address operator, address target, bytes calldata data) external returns (bool);
function postHook(bytes memory result, address operator, address target, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_core","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RetrieveETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RetrieveToken","type":"event"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"retrieveETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieveETHExact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"retrieveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieveTokenExact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeExecute","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTokenApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a060405234801561000f575f5ffd5b50604051611341380380611341833981810160405281019061003191906100cb565b808073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505050506100f6565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61009a82610071565b9050919050565b6100aa81610090565b81146100b4575f5ffd5b50565b5f815190506100c5816100a1565b92915050565b5f602082840312156100e0576100df61006d565b5b5f6100ed848285016100b7565b91505092915050565b60805161120261013f5f395f818161022b015281816102c60152818161039e015281816104b2015281816105a90152818161071f015281816107a401526108d801526112025ff3fe608060405260043610610089575f3560e01c8063803f22de11610058578063803f22de146101495780638afbcf96146101715780638da5cb5b14610199578063ab23c345146101c3578063f2f4eb26146101ff57610090565b806310a76fb114610094578063175fadbe146100bc5780631cff79cd146100e45780632961320c1461012157610090565b3661009057005b5f5ffd5b34801561009f575f5ffd5b506100ba60048036038101906100b59190610baf565b610229565b005b3480156100c7575f5ffd5b506100e260048036038101906100dd9190610c0d565b6102c4565b005b3480156100ef575f5ffd5b5061010a60048036038101906101059190610cbe565b610382565b604051610118929190610da5565b60405180910390f35b34801561012c575f5ffd5b5061014760048036038101906101429190610dd3565b61039c565b005b348015610154575f5ffd5b5061016f600480360381019061016a9190610c0d565b6104b0565b005b34801561017c575f5ffd5b5061019760048036038101906101929190610e11565b6105a7565b005b3480156101a4575f5ffd5b506101ad61071c565b6040516101ba9190610e5e565b60405180910390f35b3480156101ce575f5ffd5b506101e960048036038101906101e49190610cbe565b610743565b6040516101f69190610e77565b60405180910390f35b34801561020a575f5ffd5b506102136107a2565b6040516102209190610ef2565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610f65565b60405180910390fd5b6102c181476105a7565b50565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034990610f65565b60405180910390fd5b61037d82828573ffffffffffffffffffffffffffffffffffffffff166107c69092919063ffffffff16565b505050565b5f60606103908585856108d3565b91509150935093915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461042a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042190610f65565b60405180910390fd5b6104ac82828473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104689190610e5e565b602060405180830381865afa158015610483573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104a79190610f97565b6104b0565b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461053e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053590610f65565b60405180910390fd5b61056982828573ffffffffffffffffffffffffffffffffffffffff166109da9092919063ffffffff16565b7fed03f54a50c611ac89863bc7a9e033d805d743265603c12cdbf1da71d5eef14d838260405161059a929190610fd1565b60405180910390a1505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062c90610f65565b60405180910390fd5b5f5f8373ffffffffffffffffffffffffffffffffffffffff168360405161065b90611025565b5f6040518083038185875af1925050503d805f8114610695576040519150601f19603f3d011682016040523d82523d5f602084013e61069a565b606091505b5091509150816106df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d690611083565b60405180910390fd5b7fd6dbd685d5a6e3a3706e891d90bf04cfee45dbaba9fc992f4cf6c6c8a0fc9abf8360405161070e91906110a1565b60405180910390a150505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b60605f5f6107528686866108d3565b9150915081610796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078d90611104565b60405180910390fd5b80925050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b384846040516024016107f6929190610fd1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506108448482610a59565b6108cd576108c2848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b3865f60405160240161087b92919061115b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610ab2565b6108cc8482610ab2565b5b50505050565b5f60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095b90610f65565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16848460405161098b9291906111b4565b5f604051808303815f865af19150503d805f81146109c4576040519150601f19603f3d011682016040523d82523d5f602084013e6109c9565b606091505b508092508193505050935093915050565b610a54838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610a0d929190610fd1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610ab2565b505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610aa757505f8214610a8b5760018114610aa6565b5f8673ffffffffffffffffffffffffffffffffffffffff163b115b5b935050505092915050565b5f5f60205f8451602086015f885af180610ad1576040513d5f823e3d81fd5b3d92505f519150505f8214610aea576001811415610b05565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610b4757836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610b3e9190610e5e565b60405180910390fd5b50505050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610b7e82610b55565b9050919050565b610b8e81610b74565b8114610b98575f5ffd5b50565b5f81359050610ba981610b85565b92915050565b5f60208284031215610bc457610bc3610b4d565b5b5f610bd184828501610b9b565b91505092915050565b5f819050919050565b610bec81610bda565b8114610bf6575f5ffd5b50565b5f81359050610c0781610be3565b92915050565b5f5f5f60608486031215610c2457610c23610b4d565b5b5f610c3186828701610b9b565b9350506020610c4286828701610b9b565b9250506040610c5386828701610bf9565b9150509250925092565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112610c7e57610c7d610c5d565b5b8235905067ffffffffffffffff811115610c9b57610c9a610c61565b5b602083019150836001820283011115610cb757610cb6610c65565b5b9250929050565b5f5f5f60408486031215610cd557610cd4610b4d565b5b5f610ce286828701610b9b565b935050602084013567ffffffffffffffff811115610d0357610d02610b51565b5b610d0f86828701610c69565b92509250509250925092565b5f8115159050919050565b610d2f81610d1b565b82525050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610d7782610d35565b610d818185610d3f565b9350610d91818560208601610d4f565b610d9a81610d5d565b840191505092915050565b5f604082019050610db85f830185610d26565b8181036020830152610dca8184610d6d565b90509392505050565b5f5f60408385031215610de957610de8610b4d565b5b5f610df685828601610b9b565b9250506020610e0785828601610b9b565b9150509250929050565b5f5f60408385031215610e2757610e26610b4d565b5b5f610e3485828601610b9b565b9250506020610e4585828601610bf9565b9150509250929050565b610e5881610b74565b82525050565b5f602082019050610e715f830184610e4f565b92915050565b5f6020820190508181035f830152610e8f8184610d6d565b905092915050565b5f819050919050565b5f610eba610eb5610eb084610b55565b610e97565b610b55565b9050919050565b5f610ecb82610ea0565b9050919050565b5f610edc82610ec1565b9050919050565b610eec81610ed2565b82525050565b5f602082019050610f055f830184610ee3565b92915050565b5f82825260208201905092915050565b7f21636f72650000000000000000000000000000000000000000000000000000005f82015250565b5f610f4f600583610f0b565b9150610f5a82610f1b565b602082019050919050565b5f6020820190508181035f830152610f7c81610f43565b9050919050565b5f81519050610f9181610be3565b92915050565b5f60208284031215610fac57610fab610b4d565b5b5f610fb984828501610f83565b91505092915050565b610fcb81610bda565b82525050565b5f604082019050610fe45f830185610e4f565b610ff16020830184610fc2565b9392505050565b5f81905092915050565b50565b5f6110105f83610ff8565b915061101b82611002565b5f82019050919050565b5f61102f82611005565b9150819050919050565b7f53656e64696e6720455448206661696c656400000000000000000000000000005f82015250565b5f61106d601283610f0b565b915061107882611039565b602082019050919050565b5f6020820190508181035f83015261109a81611061565b9050919050565b5f6020820190506110b45f830184610fc2565b92915050565b7f43616c6c4661696c6564000000000000000000000000000000000000000000005f82015250565b5f6110ee600a83610f0b565b91506110f9826110ba565b602082019050919050565b5f6020820190508181035f83015261111b816110e2565b9050919050565b5f819050919050565b5f61114561114061113b84611122565b610e97565b610bda565b9050919050565b6111558161112b565b82525050565b5f60408201905061116e5f830185610e4f565b61117b602083018461114c565b9392505050565b828183375f83830152505050565b5f61119b8385610ff8565b93506111a8838584611182565b82840190509392505050565b5f6111c0828486611190565b9150819050939250505056fea26469706673582212207e3932591c076ba3c194b6765dcd2362697afb36e21c88a32f52b0eddac596ce64736f6c634300081c003300000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b9968
Deployed Bytecode
0x608060405260043610610089575f3560e01c8063803f22de11610058578063803f22de146101495780638afbcf96146101715780638da5cb5b14610199578063ab23c345146101c3578063f2f4eb26146101ff57610090565b806310a76fb114610094578063175fadbe146100bc5780631cff79cd146100e45780632961320c1461012157610090565b3661009057005b5f5ffd5b34801561009f575f5ffd5b506100ba60048036038101906100b59190610baf565b610229565b005b3480156100c7575f5ffd5b506100e260048036038101906100dd9190610c0d565b6102c4565b005b3480156100ef575f5ffd5b5061010a60048036038101906101059190610cbe565b610382565b604051610118929190610da5565b60405180910390f35b34801561012c575f5ffd5b5061014760048036038101906101429190610dd3565b61039c565b005b348015610154575f5ffd5b5061016f600480360381019061016a9190610c0d565b6104b0565b005b34801561017c575f5ffd5b5061019760048036038101906101929190610e11565b6105a7565b005b3480156101a4575f5ffd5b506101ad61071c565b6040516101ba9190610e5e565b60405180910390f35b3480156101ce575f5ffd5b506101e960048036038101906101e49190610cbe565b610743565b6040516101f69190610e77565b60405180910390f35b34801561020a575f5ffd5b506102136107a2565b6040516102209190610ef2565b60405180910390f35b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610f65565b60405180910390fd5b6102c181476105a7565b50565b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034990610f65565b60405180910390fd5b61037d82828573ffffffffffffffffffffffffffffffffffffffff166107c69092919063ffffffff16565b505050565b5f60606103908585856108d3565b91509150935093915050565b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461042a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042190610f65565b60405180910390fd5b6104ac82828473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104689190610e5e565b602060405180830381865afa158015610483573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104a79190610f97565b6104b0565b5050565b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461053e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053590610f65565b60405180910390fd5b61056982828573ffffffffffffffffffffffffffffffffffffffff166109da9092919063ffffffff16565b7fed03f54a50c611ac89863bc7a9e033d805d743265603c12cdbf1da71d5eef14d838260405161059a929190610fd1565b60405180910390a1505050565b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062c90610f65565b60405180910390fd5b5f5f8373ffffffffffffffffffffffffffffffffffffffff168360405161065b90611025565b5f6040518083038185875af1925050503d805f8114610695576040519150601f19603f3d011682016040523d82523d5f602084013e61069a565b606091505b5091509150816106df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d690611083565b60405180910390fd5b7fd6dbd685d5a6e3a3706e891d90bf04cfee45dbaba9fc992f4cf6c6c8a0fc9abf8360405161070e91906110a1565b60405180910390a150505050565b5f7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b9968905090565b60605f5f6107528686866108d3565b9150915081610796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078d90611104565b60405180910390fd5b80925050509392505050565b7f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996881565b5f8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b384846040516024016107f6929190610fd1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506108448482610a59565b6108cd576108c2848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b3865f60405160240161087b92919061115b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610ab2565b6108cc8482610ab2565b5b50505050565b5f60607f00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b996873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095b90610f65565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16848460405161098b9291906111b4565b5f604051808303815f865af19150503d805f81146109c4576040519150601f19603f3d011682016040523d82523d5f602084013e6109c9565b606091505b508092508193505050935093915050565b610a54838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610a0d929190610fd1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610ab2565b505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610aa757505f8214610a8b5760018114610aa6565b5f8673ffffffffffffffffffffffffffffffffffffffff163b115b5b935050505092915050565b5f5f60205f8451602086015f885af180610ad1576040513d5f823e3d81fd5b3d92505f519150505f8214610aea576001811415610b05565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610b4757836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610b3e9190610e5e565b60405180910390fd5b50505050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610b7e82610b55565b9050919050565b610b8e81610b74565b8114610b98575f5ffd5b50565b5f81359050610ba981610b85565b92915050565b5f60208284031215610bc457610bc3610b4d565b5b5f610bd184828501610b9b565b91505092915050565b5f819050919050565b610bec81610bda565b8114610bf6575f5ffd5b50565b5f81359050610c0781610be3565b92915050565b5f5f5f60608486031215610c2457610c23610b4d565b5b5f610c3186828701610b9b565b9350506020610c4286828701610b9b565b9250506040610c5386828701610bf9565b9150509250925092565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112610c7e57610c7d610c5d565b5b8235905067ffffffffffffffff811115610c9b57610c9a610c61565b5b602083019150836001820283011115610cb757610cb6610c65565b5b9250929050565b5f5f5f60408486031215610cd557610cd4610b4d565b5b5f610ce286828701610b9b565b935050602084013567ffffffffffffffff811115610d0357610d02610b51565b5b610d0f86828701610c69565b92509250509250925092565b5f8115159050919050565b610d2f81610d1b565b82525050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610d7782610d35565b610d818185610d3f565b9350610d91818560208601610d4f565b610d9a81610d5d565b840191505092915050565b5f604082019050610db85f830185610d26565b8181036020830152610dca8184610d6d565b90509392505050565b5f5f60408385031215610de957610de8610b4d565b5b5f610df685828601610b9b565b9250506020610e0785828601610b9b565b9150509250929050565b5f5f60408385031215610e2757610e26610b4d565b5b5f610e3485828601610b9b565b9250506020610e4585828601610bf9565b9150509250929050565b610e5881610b74565b82525050565b5f602082019050610e715f830184610e4f565b92915050565b5f6020820190508181035f830152610e8f8184610d6d565b905092915050565b5f819050919050565b5f610eba610eb5610eb084610b55565b610e97565b610b55565b9050919050565b5f610ecb82610ea0565b9050919050565b5f610edc82610ec1565b9050919050565b610eec81610ed2565b82525050565b5f602082019050610f055f830184610ee3565b92915050565b5f82825260208201905092915050565b7f21636f72650000000000000000000000000000000000000000000000000000005f82015250565b5f610f4f600583610f0b565b9150610f5a82610f1b565b602082019050919050565b5f6020820190508181035f830152610f7c81610f43565b9050919050565b5f81519050610f9181610be3565b92915050565b5f60208284031215610fac57610fab610b4d565b5b5f610fb984828501610f83565b91505092915050565b610fcb81610bda565b82525050565b5f604082019050610fe45f830185610e4f565b610ff16020830184610fc2565b9392505050565b5f81905092915050565b50565b5f6110105f83610ff8565b915061101b82611002565b5f82019050919050565b5f61102f82611005565b9150819050919050565b7f53656e64696e6720455448206661696c656400000000000000000000000000005f82015250565b5f61106d601283610f0b565b915061107882611039565b602082019050919050565b5f6020820190508181035f83015261109a81611061565b9050919050565b5f6020820190506110b45f830184610fc2565b92915050565b7f43616c6c4661696c6564000000000000000000000000000000000000000000005f82015250565b5f6110ee600a83610f0b565b91506110f9826110ba565b602082019050919050565b5f6020820190508181035f83015261111b816110e2565b9050919050565b5f819050919050565b5f61114561114061113b84611122565b610e97565b610bda565b9050919050565b6111558161112b565b82525050565b5f60408201905061116e5f830185610e4f565b61117b602083018461114c565b9392505050565b828183375f83830152505050565b5f61119b8385610ff8565b93506111a8838584611182565b82840190509392505050565b5f6111c0828486611190565b9150819050939250505056fea26469706673582212207e3932591c076ba3c194b6765dcd2362697afb36e21c88a32f52b0eddac596ce64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b9968
-----Decoded View---------------
Arg [0] : _core (address): 0x40907540d8a6C65c637785e8f8B742ae6b0b9968
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000040907540d8a6c65c637785e8f8b742ae6b0b9968
Loading...
Loading
Loading...
Loading
Net Worth in USD
$810,116.13
Net Worth in ETH
412.990331
Token Allocations
CRVUSD
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.998465 | 811,361.5679 | $810,116.13 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.