Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 157 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Create And Repor... | 24689003 | 14 hrs ago | IN | 0.00001365 ETH | 0.00004541 | ||||
| Create And Repor... | 24688709 | 15 hrs ago | IN | 0.00001719 ETH | 0.00005907 | ||||
| Create And Repor... | 24688404 | 16 hrs ago | IN | 0.00001576 ETH | 0.00004698 | ||||
| Create And Repor... | 24688174 | 17 hrs ago | IN | 0.00001672 ETH | 0.00005197 | ||||
| Create And Repor... | 24688016 | 17 hrs ago | IN | 0.0000168 ETH | 0.0000578 | ||||
| Create And Repor... | 24687509 | 19 hrs ago | IN | 0.00001607 ETH | 0.00004898 | ||||
| Create And Repor... | 24687378 | 20 hrs ago | IN | 0.00001721 ETH | 0.00005197 | ||||
| Create And Repor... | 24687206 | 20 hrs ago | IN | 0.00001798 ETH | 0.0000596 | ||||
| Create And Repor... | 24684259 | 30 hrs ago | IN | 0.00001636 ETH | 0.0000771 | ||||
| Create And Repor... | 24683931 | 31 hrs ago | IN | 0.00001479 ETH | 0.00004461 | ||||
| Create And Repor... | 24683651 | 32 hrs ago | IN | 0.00000847 ETH | 0.00002663 | ||||
| Create And Repor... | 24683333 | 33 hrs ago | IN | 0.00000801 ETH | 0.00002572 | ||||
| Create And Repor... | 24683033 | 34 hrs ago | IN | 0.00000869 ETH | 0.0000301 | ||||
| Create And Repor... | 24682735 | 35 hrs ago | IN | 0.00000772 ETH | 0.00002483 | ||||
| Create And Repor... | 24682436 | 36 hrs ago | IN | 0.00000801 ETH | 0.00002447 | ||||
| Create And Repor... | 24682138 | 37 hrs ago | IN | 0.00000634 ETH | 0.00002083 | ||||
| Create And Repor... | 24681885 | 38 hrs ago | IN | 0.00000752 ETH | 0.0000232 | ||||
| Create And Repor... | 24681687 | 39 hrs ago | IN | 0.0000123 ETH | 0.00003876 | ||||
| Create And Repor... | 24665445 | 3 days ago | IN | 0.00000537 ETH | 0.000017 | ||||
| Create And Repor... | 24665144 | 3 days ago | IN | 0.00000524 ETH | 0.00001647 | ||||
| Create And Repor... | 24664844 | 3 days ago | IN | 0.00000608 ETH | 0.00001799 | ||||
| Create And Repor... | 24664545 | 4 days ago | IN | 0.0000084 ETH | 0.00002711 | ||||
| Create And Repor... | 24664246 | 4 days ago | IN | 0.00000594 ETH | 0.00002014 | ||||
| Create And Repor... | 24663946 | 4 days ago | IN | 0.00000633 ETH | 0.00001979 | ||||
| Create And Repor... | 24663647 | 4 days ago | IN | 0.00000992 ETH | 0.00003256 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Create Report In... | 24689003 | 14 hrs ago | 0.00001365 ETH | ||||
| Create Report In... | 24688709 | 15 hrs ago | 0.00001719 ETH | ||||
| Create Report In... | 24688404 | 16 hrs ago | 0.00001576 ETH | ||||
| Create Report In... | 24688174 | 17 hrs ago | 0.00001672 ETH | ||||
| Create Report In... | 24688016 | 17 hrs ago | 0.0000168 ETH | ||||
| Create Report In... | 24687509 | 19 hrs ago | 0.00001607 ETH | ||||
| Create Report In... | 24687378 | 20 hrs ago | 0.00001721 ETH | ||||
| Create Report In... | 24687206 | 20 hrs ago | 0.00001798 ETH | ||||
| Create Report In... | 24684259 | 30 hrs ago | 0.00001636 ETH | ||||
| Create Report In... | 24683931 | 31 hrs ago | 0.00001479 ETH | ||||
| Create Report In... | 24683651 | 32 hrs ago | 0.00000847 ETH | ||||
| Create Report In... | 24683333 | 33 hrs ago | 0.00000801 ETH | ||||
| Create Report In... | 24683033 | 34 hrs ago | 0.00000869 ETH | ||||
| Create Report In... | 24682735 | 35 hrs ago | 0.00000772 ETH | ||||
| Create Report In... | 24682436 | 36 hrs ago | 0.00000801 ETH | ||||
| Create Report In... | 24682138 | 37 hrs ago | 0.00000634 ETH | ||||
| Create Report In... | 24681885 | 38 hrs ago | 0.00000752 ETH | ||||
| Create Report In... | 24681687 | 39 hrs ago | 0.0000123 ETH | ||||
| Create Report In... | 24665445 | 3 days ago | 0.00000537 ETH | ||||
| Create Report In... | 24665144 | 3 days ago | 0.00000524 ETH | ||||
| Create Report In... | 24664844 | 3 days ago | 0.00000608 ETH | ||||
| Create Report In... | 24664545 | 4 days ago | 0.0000084 ETH | ||||
| Create Report In... | 24664246 | 4 days ago | 0.00000594 ETH | ||||
| Create Report In... | 24663946 | 4 days ago | 0.00000633 ETH | ||||
| Create Report In... | 24663647 | 4 days ago | 0.00000992 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OracleSwapFacility
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 190 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {IOpenOracle} from "./interfaces/IOpenOracle.sol";
/* ****************************************************
* OracleSwapFacility (v0.1) *
***************************************************** */
contract OracleSwapFacility is ReentrancyGuard {
using SafeERC20 for IERC20;
/* immutables */
IOpenOracle public immutable oracle;
/* -------- EVENTS -------- */
event SwapReportOpened(
uint256 indexed reportId,
address indexed user,
address indexed tokenIn,
address tokenOut,
uint256 amountIn,
uint256 amountOut,
uint256 feePaidWei
);
constructor(address oracle_) {
require(oracle_ != address(0), "oracle addr 0");
oracle = IOpenOracle(oracle_);
}
//overloaded functions to keep createAndReport backwards-compatibility with simple settings
function createAndReport(
address token1,
address token2,
uint256 amount1,
uint256 amount2,
uint256 fee,
uint256 settlementTime
) external payable nonReentrant returns (uint256 reportId) {
reportId = _createAndReport(
token1,
token2,
amount1,
amount2,
fee,
settlementTime,
true,
address(0),
bytes4(0),
false,
0,
false,
101,
0,
amount1
);
}
// createAndReport with full customizability
function createAndReport(
address token1,
address token2,
uint256 amount1,
uint256 amount2,
uint256 fee,
uint256 settlementTime,
bool timeType,
address callbackContract,
bytes4 callbackSelector,
bool trackDisputes,
uint256 callbackGasLimit,
bool keepFee,
uint256 multiplier,
uint256 disputeDelay,
uint256 escalationHalt
) external payable nonReentrant returns (uint256 reportId) {
reportId = _createAndReport(
token1,
token2,
amount1,
amount2,
fee,
settlementTime,
timeType,
callbackContract,
callbackSelector,
trackDisputes,
callbackGasLimit,
keepFee,
multiplier,
disputeDelay,
escalationHalt
);
}
//you tend to receive the token whose amount converted to USD is smaller
//percent difference in value minus fee converted to percent is total net execution cost of swap ex-gas
//configure amount1, amount2 and fee so you end up paying a net fee you are comfortable with
//msg.value should be ~0.000004 ETH at 0.01 gwei gas and no L1 congestion to ensure oracle settlement
function _createAndReport(
address token1,
address token2,
uint256 amount1,
uint256 amount2,
uint256 fee, // 2222 = 2.222bps
uint256 settlementTime, // how long your tokens are locked up in seconds. NOT a timestamp
bool timeType,
address callbackContract,
bytes4 callbackSelector,
bool trackDisputes,
uint256 callbackGasLimit,
bool keepFee,
uint256 multiplier,
uint256 disputeDelay,
uint256 escalationHalt
) internal returns (uint256 reportId) {
require(token1 != token2, "tokens identical");
require(amount1 > 0 && amount2 > 0, "zero amounts");
if (msg.value <= 100) revert("not enough msg.value");
/* ------------ pull the user’s tokens ------------ */
IERC20(token1).safeTransferFrom(msg.sender, address(this), amount1);
IERC20(token2).safeTransferFrom(msg.sender, address(this), amount2);
IOpenOracle.CreateReportParams memory params = IOpenOracle.CreateReportParams({
exactToken1Report: amount1,
escalationHalt: escalationHalt,
settlerReward: msg.value - 1,
token1Address: token1,
settlementTime: uint48(settlementTime),
disputeDelay: uint24(disputeDelay),
protocolFee: 0,
token2Address: token2,
callbackGasLimit: uint32(callbackGasLimit),
feePercentage: uint24(fee),
multiplier: uint16(multiplier),
timeType: timeType,
trackDisputes: trackDisputes,
keepFee: keepFee,
callbackContract: callbackContract,
callbackSelector: callbackSelector,
protocolFeeRecipient: address(0)
});
/* ------------ create report instance ------------ */
reportId = oracle.createReportInstance{value: msg.value}(params);
/* ------------ let oracle move the tokens -------- */
IERC20(token1).safeIncreaseAllowance(address(oracle), amount1);
IERC20(token2).safeIncreaseAllowance(address(oracle), amount2);
bytes32 stateHash = oracle.extraData(reportId).stateHash;
/* ------------ file the initial report ----------- */
oracle.submitInitialReport(reportId, amount1, amount2, stateHash, msg.sender);
emit SwapReportOpened(reportId, msg.sender, token1, token2, amount1, amount2, msg.value);
}
}// 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
// 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) (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.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
// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IOpenOracle {
struct disputeRecord {
uint256 amount1;
uint256 amount2;
address tokenToSwap;
uint48 reportTimestamp;
}
struct extraReportData {
bytes32 stateHash;
address callbackContract;
uint32 numReports;
uint32 callbackGasLimit;
bytes4 callbackSelector;
address protocolFeeRecipient;
bool trackDisputes;
bool keepFee;
}
struct ReportMeta {
uint256 exactToken1Report;
uint256 escalationHalt;
uint256 fee;
uint256 settlerReward;
address token1;
uint48 settlementTime;
address token2;
bool timeType;
uint24 feePercentage;
uint24 protocolFee;
uint16 multiplier;
uint24 disputeDelay;
}
struct ReportStatus {
uint256 currentAmount1;
uint256 currentAmount2;
uint256 price;
address payable currentReporter;
uint48 reportTimestamp;
uint48 settlementTimestamp;
address payable initialReporter;
uint48 lastReportOppoTime;
bool disputeOccurred;
bool isDistributed;
}
struct CreateReportParams {
uint256 exactToken1Report;
uint256 escalationHalt;
uint256 settlerReward;
address token1Address;
uint48 settlementTime;
uint24 disputeDelay;
uint24 protocolFee;
address token2Address;
uint32 callbackGasLimit;
uint24 feePercentage;
uint16 multiplier;
bool timeType;
bool trackDisputes;
bool keepFee;
address callbackContract;
bytes4 callbackSelector;
address protocolFeeRecipient;
}
function createReportInstance(CreateReportParams calldata params) external payable returns (uint256 reportId);
/* initial report overload with reporter */
function submitInitialReport(
uint256 reportId,
uint256 amount1,
uint256 amount2,
bytes32 stateHash,
address reporter
) external;
function disputeAndSwap(
uint256 reportId,
address tokenToSwap,
uint256 newAmount1,
uint256 newAmount2,
address disputer,
uint256 amt2Expected,
bytes32 stateHash
) external;
function getProtocolFees(
address tokenToGet
) external;
function settle(uint256 id) external returns (uint256 price, uint256 settlementTimestamp);
function nextReportId() external view returns (uint256);
function reportMeta(uint256 id) external view returns (ReportMeta memory);
function reportStatus(uint256 id) external view returns (ReportStatus memory);
function extraData(uint256 id) external view returns (extraReportData memory);
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 190
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"oracle_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"reportId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feePaidWei","type":"uint256"}],"name":"SwapReportOpened","type":"event"},{"inputs":[{"internalType":"address","name":"token1","type":"address"},{"internalType":"address","name":"token2","type":"address"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"amount2","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"settlementTime","type":"uint256"}],"name":"createAndReport","outputs":[{"internalType":"uint256","name":"reportId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token1","type":"address"},{"internalType":"address","name":"token2","type":"address"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"amount2","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"settlementTime","type":"uint256"},{"internalType":"bool","name":"timeType","type":"bool"},{"internalType":"address","name":"callbackContract","type":"address"},{"internalType":"bytes4","name":"callbackSelector","type":"bytes4"},{"internalType":"bool","name":"trackDisputes","type":"bool"},{"internalType":"uint256","name":"callbackGasLimit","type":"uint256"},{"internalType":"bool","name":"keepFee","type":"bool"},{"internalType":"uint256","name":"multiplier","type":"uint256"},{"internalType":"uint256","name":"disputeDelay","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"}],"name":"createAndReport","outputs":[{"internalType":"uint256","name":"reportId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOpenOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a03461010057601f6110bb38819003918201601f19168301916001600160401b038311848410176101055780849260209460405283398101031261010057516001600160a01b0381169081900361010057600160005580156100cb57608052604051610f9f908161011c82396080518181816102e9015281816103330152818161036c015281816103b2015281816103ee0152818161045a0152818161070401528181610974015281816109be015281816109f701528181610a3d01528181610a790152610ae50152f35b60405162461bcd60e51b815260206004820152600d60248201526c06f7261636c652061646472203609c1b6044820152606490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b6000803560e01c8063727de8c7146107335780637dc0d1d0146106ee5763d88eed6c1461003e57600080fd5b6101e03660031901126106eb57610053610c86565b61005b610c9c565b60c435918215158093036104fe5760e4356001600160a01b0381169081900361050d576101043563ffffffff60e01b81168091036106e95761012435918215158093036105ce57610164358015158091036106e5576100b8610cb2565b6001600160a01b03858116908716146106ad576044351515806106a2575b1561066e576064341115610632576100fb60443530336001600160a01b038916610d78565b61011260643530336001600160a01b038a16610d78565b60001934019334851161061e576040519461012c86610cd4565b60443586526101c43560208701526040860152600160a01b600190038616606086015260a43565ffffffffffff1660808601526101a43562ffffff1660a08601528860c0860152600160a01b60019003871660e08601526101008501976101443563ffffffff168952610120860160843562ffffff1681526101408701906101843561ffff168252610160880192835261018088019384526101a088019485526101c088019586526101e088019687528b6102008901526040519a631d6329ab60e11b8c52885160048d0152602089015160248d0152604089015160448d0152600160a01b6001900360608a01511660648d0152608089015165ffffffffffff1660848d015260a089015162ffffff1660a48d015260c089015162ffffff1660c48d0152600160a01b6001900360e08a01511660e48d01525163ffffffff166101048c01525162ffffff166101248b01525161ffff166101448a01525115156101648901525115156101848801525115156101a4870152600160a01b600190039051166101c486015263ffffffff60e01b9051166101e4850152600160a01b60019003906102000151166102048401523483600160a01b600190037f000000000000000000000000000000000000000000000000000000000000000016815a9361022492602095f19283156106135784936105da575b5061035c6044356001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116908416610dc3565b6103956064356001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116908516610dc3565b604051631e0097b160e21b815260048101849052610100816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115610502578591610511575b50517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163b1561050d5760405190630375848160e01b8252846004830152604435602483015260643560448301526064820152336084820152848160a4818360018060a01b037f0000000000000000000000000000000000000000000000000000000000000000165af18015610502576104e9575b509260019160209460405191848060a01b03168252604435868301526064356040830152346060830152838060a01b031690847f68ad2581d955e5e135d335c5e08f22aa87bd0537cb736e581d6d542059f7ac5060803393a455604051908152f35b6104f4858092610d24565b6104fe5738610487565b8380fd5b6040513d87823e3d90fd5b8480fd5b9050610100813d82116105d2575b8161052d6101009383610d24565b8101031261050d576040519061054282610d07565b8051825261055260208201610d46565b602083015261056360408201610d5a565b604083015261057460608201610d5a565b606083015260808101516001600160e01b0319811681036105ce576105c39160e09160808501526105a760a08201610d46565b60a08501526105b860c08201610d6b565b60c085015201610d6b565b60e0820152386103ea565b8680fd5b3d915061051f565b9092506020813d60201161060b575b816105f660209383610d24565b8101031261060657519138610322565b600080fd5b3d91506105e9565b6040513d86823e3d90fd5b634e487b7160e01b89526011600452602489fd5b60405162461bcd60e51b81526020600482015260146024820152736e6f7420656e6f756768206d73672e76616c756560601b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b7a65726f20616d6f756e747360a01b6044820152606490fd5b5060643515156100d6565b60405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b9cc81a59195b9d1a58d85b60821b6044820152606490fd5b8780fd5b855b80fd5b50346106eb57806003193601126106eb576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5060c03660031901126106eb57610748610c86565b610750610c9c565b610758610cb2565b6001600160a01b03828116908216146106ad57604435151580610c7b575b1561066e5760643411156106325761079b60443530336001600160a01b038616610d78565b6107b260643530336001600160a01b038516610d78565b600019340191348311610c6757604051926107cc84610cd4565b604435845260443560208501526040840152600160a01b600190038116606084015260a43565ffffffffffff1660808401528360a08401528360c0840152600160a01b60019003821660e0840152610100830192848452610120810160843562ffffff16815261014082016065815261016083016001815261018084018881526101a08501918983526101c08601938a85526101e08701958b87528b6102008901526040519a631d6329ab60e11b8c52885160048d0152602089015160248d0152604089015160448d0152600160a01b6001900360608a01511660648d0152608089015165ffffffffffff1660848d015260a089015162ffffff1660a48d015260c089015162ffffff1660c48d0152600160a01b6001900360e08a01511660e48d01525163ffffffff166101048c01525162ffffff166101248b01525161ffff166101448a01525115156101648901525115156101848801525115156101a4870152600160a01b600190039051166101c486015263ffffffff60e01b9051166101e4850152600160a01b60019003906102000151166102048401523483600160a01b600190037f000000000000000000000000000000000000000000000000000000000000000016815a9361022492602095f1928315610613578493610c33575b506109e76044356001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116908416610dc3565b610a206064356001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116908516610dc3565b604051631e0097b160e21b815260048101849052610100816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115610502578591610b8a575b50517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163b1561050d5760405190630375848160e01b8252846004830152604435602483015260643560448301526064820152336084820152848160a4818360018060a01b037f0000000000000000000000000000000000000000000000000000000000000000165af1801561050257916001939160209693610b76575b5060405191848060a01b03168252604435868301526064356040830152346060830152838060a01b031690847f68ad2581d955e5e135d335c5e08f22aa87bd0537cb736e581d6d542059f7ac5060803393a455604051908152f35b83610b8391949294610d24565b9138610b1b565b9050610100813d8211610c2b575b81610ba66101009383610d24565b8101031261050d5760405190610bbb82610d07565b80518252610bcb60208201610d46565b6020830152610bdc60408201610d5a565b6040830152610bed60608201610d5a565b606083015260808101516001600160e01b0319811681036105ce57610c209160e09160808501526105a760a08201610d46565b60e082015238610a75565b3d9150610b98565b9092506020813d602011610c5f575b81610c4f60209383610d24565b810103126104fe575191386109ad565b3d9150610c42565b634e487b7160e01b84526011600452602484fd5b506064351515610776565b600435906001600160a01b038216820361060657565b602435906001600160a01b038216820361060657565b600260005414610cc3576002600055565b633ee5aeb560e01b60005260046000fd5b610220810190811067ffffffffffffffff821117610cf157604052565b634e487b7160e01b600052604160045260246000fd5b610100810190811067ffffffffffffffff821117610cf157604052565b90601f8019910116810190811067ffffffffffffffff821117610cf157604052565b51906001600160a01b038216820361060657565b519063ffffffff8216820361060657565b5190811515820361060657565b6040516323b872dd60e01b60208201526001600160a01b039283166024820152929091166044830152606480830193909352918152610dc191610dbc608483610d24565b610f0e565b565b604051636eb1769f60e11b81523060048201526001600160a01b0392831660248201819052939092821690602084604481855afa938415610f0257600094610ece575b508301809311610eb85760206000604051948286019063095ea7b360e01b8252876024880152604487015260448652610e40606487610d24565b85519082865af1903d6000519083610e99575b50505015610e6057505050565b610dbc610dc1936040519063095ea7b360e01b602083015260248201526000604482015260448152610e93606482610d24565b82610f0e565b91925090610eae57503b15155b388080610e53565b6001915014610ea6565b634e487b7160e01b600052601160045260246000fd5b90936020823d602011610efa575b81610ee960209383610d24565b810103126106eb5750519238610e06565b3d9150610edc565b6040513d6000823e3d90fd5b906000602091828151910182855af115610f02576000513d610f6057506001600160a01b0381163b155b610f3f5750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415610f3856fea26469706673582212207128fdcc9b16f95ec9da4cf7b020368f1e2c1095712332a3dc48e287a3a918b864736f6c634300081c0033000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f
Deployed Bytecode
0x6080604052600436101561001257600080fd5b6000803560e01c8063727de8c7146107335780637dc0d1d0146106ee5763d88eed6c1461003e57600080fd5b6101e03660031901126106eb57610053610c86565b61005b610c9c565b60c435918215158093036104fe5760e4356001600160a01b0381169081900361050d576101043563ffffffff60e01b81168091036106e95761012435918215158093036105ce57610164358015158091036106e5576100b8610cb2565b6001600160a01b03858116908716146106ad576044351515806106a2575b1561066e576064341115610632576100fb60443530336001600160a01b038916610d78565b61011260643530336001600160a01b038a16610d78565b60001934019334851161061e576040519461012c86610cd4565b60443586526101c43560208701526040860152600160a01b600190038616606086015260a43565ffffffffffff1660808601526101a43562ffffff1660a08601528860c0860152600160a01b60019003871660e08601526101008501976101443563ffffffff168952610120860160843562ffffff1681526101408701906101843561ffff168252610160880192835261018088019384526101a088019485526101c088019586526101e088019687528b6102008901526040519a631d6329ab60e11b8c52885160048d0152602089015160248d0152604089015160448d0152600160a01b6001900360608a01511660648d0152608089015165ffffffffffff1660848d015260a089015162ffffff1660a48d015260c089015162ffffff1660c48d0152600160a01b6001900360e08a01511660e48d01525163ffffffff166101048c01525162ffffff166101248b01525161ffff166101448a01525115156101648901525115156101848801525115156101a4870152600160a01b600190039051166101c486015263ffffffff60e01b9051166101e4850152600160a01b60019003906102000151166102048401523483600160a01b600190037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f16815a9361022492602095f19283156106135784936105da575b5061035c6044356001600160a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f8116908416610dc3565b6103956064356001600160a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f8116908516610dc3565b604051631e0097b160e21b815260048101849052610100816024817f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03165afa908115610502578591610511575b50517f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03163b1561050d5760405190630375848160e01b8252846004830152604435602483015260643560448301526064820152336084820152848160a4818360018060a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f165af18015610502576104e9575b509260019160209460405191848060a01b03168252604435868301526064356040830152346060830152838060a01b031690847f68ad2581d955e5e135d335c5e08f22aa87bd0537cb736e581d6d542059f7ac5060803393a455604051908152f35b6104f4858092610d24565b6104fe5738610487565b8380fd5b6040513d87823e3d90fd5b8480fd5b9050610100813d82116105d2575b8161052d6101009383610d24565b8101031261050d576040519061054282610d07565b8051825261055260208201610d46565b602083015261056360408201610d5a565b604083015261057460608201610d5a565b606083015260808101516001600160e01b0319811681036105ce576105c39160e09160808501526105a760a08201610d46565b60a08501526105b860c08201610d6b565b60c085015201610d6b565b60e0820152386103ea565b8680fd5b3d915061051f565b9092506020813d60201161060b575b816105f660209383610d24565b8101031261060657519138610322565b600080fd5b3d91506105e9565b6040513d86823e3d90fd5b634e487b7160e01b89526011600452602489fd5b60405162461bcd60e51b81526020600482015260146024820152736e6f7420656e6f756768206d73672e76616c756560601b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b7a65726f20616d6f756e747360a01b6044820152606490fd5b5060643515156100d6565b60405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b9cc81a59195b9d1a58d85b60821b6044820152606490fd5b8780fd5b855b80fd5b50346106eb57806003193601126106eb576040517f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03168152602090f35b5060c03660031901126106eb57610748610c86565b610750610c9c565b610758610cb2565b6001600160a01b03828116908216146106ad57604435151580610c7b575b1561066e5760643411156106325761079b60443530336001600160a01b038616610d78565b6107b260643530336001600160a01b038516610d78565b600019340191348311610c6757604051926107cc84610cd4565b604435845260443560208501526040840152600160a01b600190038116606084015260a43565ffffffffffff1660808401528360a08401528360c0840152600160a01b60019003821660e0840152610100830192848452610120810160843562ffffff16815261014082016065815261016083016001815261018084018881526101a08501918983526101c08601938a85526101e08701958b87528b6102008901526040519a631d6329ab60e11b8c52885160048d0152602089015160248d0152604089015160448d0152600160a01b6001900360608a01511660648d0152608089015165ffffffffffff1660848d015260a089015162ffffff1660a48d015260c089015162ffffff1660c48d0152600160a01b6001900360e08a01511660e48d01525163ffffffff166101048c01525162ffffff166101248b01525161ffff166101448a01525115156101648901525115156101848801525115156101a4870152600160a01b600190039051166101c486015263ffffffff60e01b9051166101e4850152600160a01b60019003906102000151166102048401523483600160a01b600190037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f16815a9361022492602095f1928315610613578493610c33575b506109e76044356001600160a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f8116908416610dc3565b610a206064356001600160a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f8116908516610dc3565b604051631e0097b160e21b815260048101849052610100816024817f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03165afa908115610502578591610b8a575b50517f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03163b1561050d5760405190630375848160e01b8252846004830152604435602483015260643560448301526064820152336084820152848160a4818360018060a01b037f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f165af1801561050257916001939160209693610b76575b5060405191848060a01b03168252604435868301526064356040830152346060830152838060a01b031690847f68ad2581d955e5e135d335c5e08f22aa87bd0537cb736e581d6d542059f7ac5060803393a455604051908152f35b83610b8391949294610d24565b9138610b1b565b9050610100813d8211610c2b575b81610ba66101009383610d24565b8101031261050d5760405190610bbb82610d07565b80518252610bcb60208201610d46565b6020830152610bdc60408201610d5a565b6040830152610bed60608201610d5a565b606083015260808101516001600160e01b0319811681036105ce57610c209160e09160808501526105a760a08201610d46565b60e082015238610a75565b3d9150610b98565b9092506020813d602011610c5f575b81610c4f60209383610d24565b810103126104fe575191386109ad565b3d9150610c42565b634e487b7160e01b84526011600452602484fd5b506064351515610776565b600435906001600160a01b038216820361060657565b602435906001600160a01b038216820361060657565b600260005414610cc3576002600055565b633ee5aeb560e01b60005260046000fd5b610220810190811067ffffffffffffffff821117610cf157604052565b634e487b7160e01b600052604160045260246000fd5b610100810190811067ffffffffffffffff821117610cf157604052565b90601f8019910116810190811067ffffffffffffffff821117610cf157604052565b51906001600160a01b038216820361060657565b519063ffffffff8216820361060657565b5190811515820361060657565b6040516323b872dd60e01b60208201526001600160a01b039283166024820152929091166044830152606480830193909352918152610dc191610dbc608483610d24565b610f0e565b565b604051636eb1769f60e11b81523060048201526001600160a01b0392831660248201819052939092821690602084604481855afa938415610f0257600094610ece575b508301809311610eb85760206000604051948286019063095ea7b360e01b8252876024880152604487015260448652610e40606487610d24565b85519082865af1903d6000519083610e99575b50505015610e6057505050565b610dbc610dc1936040519063095ea7b360e01b602083015260248201526000604482015260448152610e93606482610d24565b82610f0e565b91925090610eae57503b15155b388080610e53565b6001915014610ea6565b634e487b7160e01b600052601160045260246000fd5b90936020823d602011610efa575b81610ee960209383610d24565b810103126106eb5750519238610e06565b3d9150610edc565b6040513d6000823e3d90fd5b906000602091828151910182855af115610f02576000513d610f6057506001600160a01b0381163b155b610f3f5750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415610f3856fea26469706673582212207128fdcc9b16f95ec9da4cf7b020368f1e2c1095712332a3dc48e287a3a918b864736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f
-----Decoded View---------------
Arg [0] : oracle_ (address): 0xf3CCE3274c32f1F344Ba48336D5EFF34dc6E145f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.