Source Code
Overview
FRAX Balance | FXTL Balance
0 FRAX | 0 FXTL
FRAX Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FraxtalTransportOracle
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: ISC
pragma solidity ^0.8.19;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ |
// | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ |
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ===================== FraxtalTransportOracle =======================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance
// ====================================================================
import { FraxOracle, ConstructorParams as FraxOracleParams } from "src/contracts/frax-oracle/abstracts/FraxOracle.sol";
/// @title ClFraxOracle
/// @notice Drop in replacement for a chainlink oracle for price of ETH in USD
/// @dev High/low prices will be equivalent and return the L1 CL Oracle result
contract FraxtalTransportOracle is FraxOracle {
constructor(FraxOracleParams memory _params) FraxOracle(_params) {}
// ====================================================================
// View Helpers
// ====================================================================
/// @notice The ```description``` function returns the description of the contract
/// @return _description The description of the contract
function description() external pure override returns (string memory _description) {
_description = "ETH/USD: Chainlink Transport";
}
/// @notice The ```decimals``` function returns same decimals value as CL Oracle
/// @return _decimals The decimals corresponding to the CL answer being transported to L2
/// @dev Needed for ingesting CL feed into Frax Oracles
function decimals() external pure override returns (uint8 _decimals) {
_decimals = 8;
}
}// SPDX-License-Identifier: ISC
pragma solidity ^0.8.19;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ |
// | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ |
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ============================ FraxOracle ============================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance
// Author
// Jon Walch: https://github.com/jonwalch
// Contributors
// Dennis: https://github.com/denett
// Reviewers
// Drake Evans: https://github.com/DrakeEvans
// ====================================================================
import { ERC165Storage } from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import { AggregatorV3Interface } from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import { Timelock2Step } from "frax-std/access-control/v1/Timelock2Step.sol";
import { ITimelock2Step } from "frax-std/access-control/v1/interfaces/ITimelock2Step.sol";
import { IPriceSourceReceiver } from "../interfaces/IPriceSourceReceiver.sol";
/// @notice maximumDeviation Percentage of acceptable deviation i.e. 0.03e18 = 3%
/// @notice maximumOracleDelay Seconds until data is considered stale
struct ConstructorParams {
// = Timelock2Step
address timelockAddress;
// = FraxOracle
address baseErc20;
address quoteErc20;
address priceSource;
uint256 maximumDeviation;
uint256 maximumOracleDelay;
}
/// @title FraxOracle
/// @author Jon Walch (Frax Finance) https://github.com/jonwalch
/// @notice Drop in replacement for a chainlink oracle, also supports Fraxlend style high and low prices
abstract contract FraxOracle is AggregatorV3Interface, IPriceSourceReceiver, ERC165Storage, Timelock2Step {
/// @notice Maximum deviation of price source data between low and high, beyond which it is considered bad data
uint256 public maximumDeviation;
/// @notice Maximum delay of price source data, after which it is considered stale
uint256 public maximumOracleDelay;
/// @notice The address of the Erc20 base token contract
address public immutable BASE_TOKEN;
/// @notice The address of the Erc20 quote token contract
address public immutable QUOTE_TOKEN;
/// @notice Contract that posts price updates through addRoundData()
address public priceSource;
/// @notice Last round ID where isBadData is false and price is within maximum deviation
uint80 public lastCorrectRoundId;
/// @notice Array of round data
Round[] public rounds;
/// @notice Packed Round data struct
/// @notice priceLow Lower of the two prices
/// @notice priceHigh Higher of the two prices
/// @notice timestamp Time of price
/// @notice isBadData If data is bad / should be used
struct Round {
uint104 priceLow;
uint104 priceHigh;
uint40 timestamp;
bool isBadData;
}
constructor(ConstructorParams memory _params) Timelock2Step() {
_setTimelock({ _newTimelock: _params.timelockAddress });
_registerInterface({ interfaceId: type(ITimelock2Step).interfaceId });
_registerInterface({ interfaceId: type(AggregatorV3Interface).interfaceId });
_registerInterface({ interfaceId: type(IPriceSourceReceiver).interfaceId });
BASE_TOKEN = _params.baseErc20;
QUOTE_TOKEN = _params.quoteErc20;
_setMaximumDeviation(_params.maximumDeviation);
_setMaximumOracleDelay(_params.maximumOracleDelay);
_setPriceSource(_params.priceSource);
}
// ====================================================================
// Events
// ====================================================================
/// @notice The ```SetMaximumOracleDelay``` event is emitted when the max oracle delay is set
/// @param oldMaxOracleDelay The old max oracle delay
/// @param newMaxOracleDelay The new max oracle delay
event SetMaximumOracleDelay(uint256 oldMaxOracleDelay, uint256 newMaxOracleDelay);
/// @notice The ```SetPriceSource``` event is emitted when the price source is set
/// @param oldPriceSource The old price source address
/// @param newPriceSource The new price source address
event SetPriceSource(address oldPriceSource, address newPriceSource);
/// @notice The ```SetMaximumDeviation``` event is emitted when the max oracle delay is set
/// @param oldMaxDeviation The old max oracle delay
/// @param newMaxDeviation The new max oracle delay
event SetMaximumDeviation(uint256 oldMaxDeviation, uint256 newMaxDeviation);
// ====================================================================
// Internal Configuration Setters
// ====================================================================
/// @notice The ```_setMaximumOracleDelay``` function sets the max oracle delay to determine if data is stale
/// @param _newMaxOracleDelay The new max oracle delay
function _setMaximumOracleDelay(uint256 _newMaxOracleDelay) internal {
uint256 _maxOracleDelay = maximumOracleDelay;
if (_maxOracleDelay == _newMaxOracleDelay) revert SameMaximumOracleDelay();
emit SetMaximumOracleDelay({ oldMaxOracleDelay: _maxOracleDelay, newMaxOracleDelay: _newMaxOracleDelay });
maximumOracleDelay = _newMaxOracleDelay;
}
/// @notice The ```_setPriceSource``` function sets the price source
/// @param _newPriceSource The new price source
function _setPriceSource(address _newPriceSource) internal {
address _priceSource = priceSource;
if (_priceSource == _newPriceSource) revert SamePriceSource();
emit SetPriceSource({ oldPriceSource: _priceSource, newPriceSource: _newPriceSource });
priceSource = _newPriceSource;
}
/// @notice The ```_setMaximumDeviation``` function sets the maximum deviation between low and high
/// @param _newMaximumDeviation The new maximum deviation
function _setMaximumDeviation(uint256 _newMaximumDeviation) internal {
uint256 _maxDeviation = maximumDeviation;
if (_newMaximumDeviation == _maxDeviation) revert SameMaximumDeviation();
emit SetMaximumDeviation({ oldMaxDeviation: _maxDeviation, newMaxDeviation: _newMaximumDeviation });
maximumDeviation = _newMaximumDeviation;
}
// ====================================================================
// Configuration Setters
// ====================================================================
/// @notice The ```setMaximumOracleDelay``` function sets the max oracle delay to determine if data is stale
/// @dev Requires msg.sender to be the timelock address
/// @param _newMaxOracleDelay The new max oracle delay
function setMaximumOracleDelay(uint256 _newMaxOracleDelay) external {
_requireTimelock();
_setMaximumOracleDelay({ _newMaxOracleDelay: _newMaxOracleDelay });
}
/// @notice The ```setPriceSource``` function sets the price source
/// @dev Requires msg.sender to be the timelock address
/// @param _newPriceSource The new price source address
function setPriceSource(address _newPriceSource) external {
_requireTimelock();
_setPriceSource({ _newPriceSource: _newPriceSource });
}
/// @notice The ```setMaximumDeviation``` function sets the max oracle delay to determine if data is stale
/// @dev Requires msg.sender to be the timelock address
/// @param _newMaxDeviation The new max oracle delay
function setMaximumDeviation(uint256 _newMaxDeviation) external {
_requireTimelock();
_setMaximumDeviation({ _newMaximumDeviation: _newMaxDeviation });
}
// ====================================================================
// Metadata
// ====================================================================
/// @notice The ```decimals``` function returns the number of decimals in the response.
function decimals() external pure virtual override returns (uint8 _decimals) {
_decimals = 18;
}
/// @notice The ```version``` function returns the version number for the AggregatorV3Interface.
/// @dev Adheres to AggregatorV3Interface, which is different than typical semver
function version() external view virtual returns (uint256 _version) {
_version = 1;
}
// ====================================================================
// Price Source Receiver
// ====================================================================
/// @notice The ```addRoundData``` adds new price data to be served later
/// @dev Can only be called by the preconfigured price source
/// @param _isBadData Boolean representing if the data is bad from underlying chainlink oracles from FraxDualOracle's getPrices()
/// @param _priceLow The low price returned from a FraxDualOracle's getPrices()
/// @param _priceHigh The high price returned from a FraxDualOracle's getPrices()
/// @param _timestamp The timestamp that FraxDualOracle's getPrices() was called
function addRoundData(bool _isBadData, uint104 _priceLow, uint104 _priceHigh, uint40 _timestamp) external {
if (msg.sender != priceSource) revert OnlyPriceSource();
if (_timestamp > block.timestamp) revert CalledWithFutureTimestamp();
uint256 _roundsLength = rounds.length;
if (_roundsLength > 0 && _timestamp <= rounds[_roundsLength - 1].timestamp) {
revert CalledWithTimestampBeforePreviousRound();
}
if (!_isBadData && (((uint256(_priceHigh) - _priceLow) * 1e18) / _priceHigh <= maximumDeviation)) {
lastCorrectRoundId = uint80(_roundsLength);
}
rounds.push(
Round({ isBadData: _isBadData, priceLow: _priceLow, priceHigh: _priceHigh, timestamp: _timestamp })
);
}
// ====================================================================
// Price Functions
// ====================================================================
function _getPrices() internal view returns (bool _isBadData, uint256 _priceLow, uint256 _priceHigh) {
uint256 _roundsLength = rounds.length;
if (_roundsLength == 0) revert NoPriceData();
Round memory _round = rounds[_roundsLength - 1];
_isBadData = _round.isBadData || _round.timestamp + maximumOracleDelay < block.timestamp;
_priceLow = _round.priceLow;
_priceHigh = _round.priceHigh;
}
/// @notice The ```getPrices``` function is intended to return two prices from different oracles
/// @return _isBadData is true when data is stale or otherwise bad
/// @return _priceLow is the lower of the two prices
/// @return _priceHigh is the higher of the two prices
function getPrices() external view returns (bool _isBadData, uint256 _priceLow, uint256 _priceHigh) {
(_isBadData, _priceLow, _priceHigh) = _getPrices();
}
function _getRoundData(
uint80 _roundId
)
internal
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
{
if (rounds.length <= _roundId) revert NoPriceData();
Round memory _round = rounds[_roundId];
answer = int256((uint256(_round.priceHigh) + _round.priceLow) / 2);
roundId = answeredInRound = _roundId;
startedAt = updatedAt = _round.timestamp;
}
/// @notice The ```getRoundData``` function returns price data
/// @param _roundId The round ID
/// @return roundId The round ID
/// @return answer The data that this specific feed provides
/// @return startedAt Timestamp of when the round started
/// @return updatedAt Timestamp of when the round was updated
/// @return answeredInRound The round ID in which the answer was computed
function getRoundData(
uint80 _roundId
)
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
{
(roundId, answer, startedAt, updatedAt, answeredInRound) = _getRoundData(_roundId);
}
/// @notice The ```latestRoundData``` function returns price data
/// @dev Will only return the latest data that is not bad and within the maximum price deviation
/// @return roundId The round ID
/// @return answer The data that this specific feed provides
/// @return startedAt Timestamp of when the round started
/// @return updatedAt Timestamp of when the round was updated
/// @return answeredInRound The round ID in which the answer was computed
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
{
(roundId, answer, startedAt, updatedAt, answeredInRound) = _getRoundData(lastCorrectRoundId);
}
// ====================================================================
// Errors
// ====================================================================
error CalledWithFutureTimestamp();
error CalledWithTimestampBeforePreviousRound();
error NoPriceData();
error OnlyPriceSource();
error SameMaximumDeviation();
error SameMaximumOracleDelay();
error SamePriceSource();
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)
pragma solidity ^0.8.0;
import "./ERC165.sol";
/**
* @dev Storage based implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
abstract contract ERC165Storage is ERC165 {
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
function getRoundData(uint80 _roundId)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
function latestRoundData()
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
}// SPDX-License-Identifier: ISC
pragma solidity >=0.8.0;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ |
// | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ |
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ========================== Timelock2Step ===========================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance
// Primary Author
// Drake Evans: https://github.com/DrakeEvans
// Reviewers
// Dennis: https://github.com/denett
// ====================================================================
/// @title Timelock2Step
/// @author Drake Evans (Frax Finance) https://github.com/drakeevans
/// @dev Inspired by the OpenZeppelin's Ownable2Step contract
/// @notice An abstract contract which contains 2-step transfer and renounce logic for a timelock address
abstract contract Timelock2Step {
/// @notice The pending timelock address
address public pendingTimelockAddress;
/// @notice The current timelock address
address public timelockAddress;
constructor() {
timelockAddress = msg.sender;
}
/// @notice Emitted when timelock is transferred
error OnlyTimelock();
/// @notice Emitted when pending timelock is transferred
error OnlyPendingTimelock();
/// @notice The ```TimelockTransferStarted``` event is emitted when the timelock transfer is initiated
/// @param previousTimelock The address of the previous timelock
/// @param newTimelock The address of the new timelock
event TimelockTransferStarted(address indexed previousTimelock, address indexed newTimelock);
/// @notice The ```TimelockTransferred``` event is emitted when the timelock transfer is completed
/// @param previousTimelock The address of the previous timelock
/// @param newTimelock The address of the new timelock
event TimelockTransferred(address indexed previousTimelock, address indexed newTimelock);
/// @notice The ```_isSenderTimelock``` function checks if msg.sender is current timelock address
/// @return Whether or not msg.sender is current timelock address
function _isSenderTimelock() internal view returns (bool) {
return msg.sender == timelockAddress;
}
/// @notice The ```_requireTimelock``` function reverts if msg.sender is not current timelock address
function _requireTimelock() internal view {
if (msg.sender != timelockAddress) revert OnlyTimelock();
}
/// @notice The ```_isSenderPendingTimelock``` function checks if msg.sender is pending timelock address
/// @return Whether or not msg.sender is pending timelock address
function _isSenderPendingTimelock() internal view returns (bool) {
return msg.sender == pendingTimelockAddress;
}
/// @notice The ```_requirePendingTimelock``` function reverts if msg.sender is not pending timelock address
function _requirePendingTimelock() internal view {
if (msg.sender != pendingTimelockAddress) revert OnlyPendingTimelock();
}
/// @notice The ```_transferTimelock``` function initiates the timelock transfer
/// @dev This function is to be implemented by a public function
/// @param _newTimelock The address of the nominated (pending) timelock
function _transferTimelock(address _newTimelock) internal {
pendingTimelockAddress = _newTimelock;
emit TimelockTransferStarted(timelockAddress, _newTimelock);
}
/// @notice The ```_acceptTransferTimelock``` function completes the timelock transfer
/// @dev This function is to be implemented by a public function
function _acceptTransferTimelock() internal {
pendingTimelockAddress = address(0);
_setTimelock(msg.sender);
}
/// @notice The ```_setTimelock``` function sets the timelock address
/// @dev This function is to be implemented by a public function
/// @param _newTimelock The address of the new timelock
function _setTimelock(address _newTimelock) internal {
emit TimelockTransferred(timelockAddress, _newTimelock);
timelockAddress = _newTimelock;
}
/// @notice The ```transferTimelock``` function initiates the timelock transfer
/// @dev Must be called by the current timelock
/// @param _newTimelock The address of the nominated (pending) timelock
function transferTimelock(address _newTimelock) external virtual {
_requireTimelock();
_transferTimelock(_newTimelock);
}
/// @notice The ```acceptTransferTimelock``` function completes the timelock transfer
/// @dev Must be called by the pending timelock
function acceptTransferTimelock() external virtual {
_requirePendingTimelock();
_acceptTransferTimelock();
}
/// @notice The ```renounceTimelock``` function renounces the timelock after setting pending timelock to current timelock
/// @dev Pending timelock must be set to current timelock before renouncing, creating a 2-step renounce process
function renounceTimelock() external virtual {
_requireTimelock();
_requirePendingTimelock();
_transferTimelock(address(0));
_setTimelock(address(0));
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;
interface ITimelock2Step {
event TimelockTransferStarted(address indexed previousTimelock, address indexed newTimelock);
event TimelockTransferred(address indexed previousTimelock, address indexed newTimelock);
function acceptTransferTimelock() external;
function pendingTimelockAddress() external view returns (address);
function renounceTimelock() external;
function timelockAddress() external view returns (address);
function transferTimelock(address _newTimelock) external;
}// SPDX-License-Identifier: ISC
pragma solidity ^0.8.19;
interface IPriceSourceReceiver {
function addRoundData(bool isBadData, uint104 priceLow, uint104 priceHigh, uint40 timestamp) external;
function getPrices() external view returns (bool isBadData, uint256 priceLow, uint256 priceHigh);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* 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[EIP 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);
}{
"remappings": [
"ds-test/=node_modules/ds-test/src/",
"forge-std/=node_modules/forge-std/src/",
"frax-std/=node_modules/frax-standard-solidity/src/",
"script/=src/script/",
"src/=src/",
"test/=src/test/",
"interfaces/=src/contracts/interfaces/",
"arbitrum/=node_modules/@arbitrum/",
"rlp/=node_modules/solidity-rlp/contracts/",
"@solmate/=node_modules/@rari-capital/solmate/src/",
"@arbitrum/=node_modules/@arbitrum/",
"@chainlink/=node_modules/@chainlink/",
"@eth-optimism/=node_modules/@eth-optimism/",
"@mean-finance/=node_modules/@mean-finance/",
"@offchainlabs/=node_modules/@offchainlabs/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@rari-capital/=node_modules/@rari-capital/",
"@uniswap/=node_modules/@uniswap/",
"base64-sol/=node_modules/base64-sol/",
"frax-standard-solidity/=node_modules/frax-standard-solidity/",
"hardhat/=node_modules/hardhat/",
"prb-math/=node_modules/prb-math/",
"solidity-bytes-utils/=node_modules/solidity-bytes-utils/",
"solidity-rlp/=node_modules/solidity-rlp/"
],
"optimizer": {
"enabled": true,
"runs": 1000000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"components":[{"internalType":"address","name":"timelockAddress","type":"address"},{"internalType":"address","name":"baseErc20","type":"address"},{"internalType":"address","name":"quoteErc20","type":"address"},{"internalType":"address","name":"priceSource","type":"address"},{"internalType":"uint256","name":"maximumDeviation","type":"uint256"},{"internalType":"uint256","name":"maximumOracleDelay","type":"uint256"}],"internalType":"struct ConstructorParams","name":"_params","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CalledWithFutureTimestamp","type":"error"},{"inputs":[],"name":"CalledWithTimestampBeforePreviousRound","type":"error"},{"inputs":[],"name":"NoPriceData","type":"error"},{"inputs":[],"name":"OnlyPendingTimelock","type":"error"},{"inputs":[],"name":"OnlyPriceSource","type":"error"},{"inputs":[],"name":"OnlyTimelock","type":"error"},{"inputs":[],"name":"SameMaximumDeviation","type":"error"},{"inputs":[],"name":"SameMaximumOracleDelay","type":"error"},{"inputs":[],"name":"SamePriceSource","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxDeviation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxDeviation","type":"uint256"}],"name":"SetMaximumDeviation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxOracleDelay","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxOracleDelay","type":"uint256"}],"name":"SetMaximumOracleDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPriceSource","type":"address"},{"indexed":false,"internalType":"address","name":"newPriceSource","type":"address"}],"name":"SetPriceSource","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousTimelock","type":"address"},{"indexed":true,"internalType":"address","name":"newTimelock","type":"address"}],"name":"TimelockTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousTimelock","type":"address"},{"indexed":true,"internalType":"address","name":"newTimelock","type":"address"}],"name":"TimelockTransferred","type":"event"},{"inputs":[],"name":"BASE_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTE_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptTransferTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isBadData","type":"bool"},{"internalType":"uint104","name":"_priceLow","type":"uint104"},{"internalType":"uint104","name":"_priceHigh","type":"uint104"},{"internalType":"uint40","name":"_timestamp","type":"uint40"}],"name":"addRoundData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"_decimals","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"_description","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getPrices","outputs":[{"internalType":"bool","name":"_isBadData","type":"bool"},{"internalType":"uint256","name":"_priceLow","type":"uint256"},{"internalType":"uint256","name":"_priceHigh","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastCorrectRoundId","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumDeviation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumOracleDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingTimelockAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSource","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint104","name":"priceLow","type":"uint104"},{"internalType":"uint104","name":"priceHigh","type":"uint104"},{"internalType":"uint40","name":"timestamp","type":"uint40"},{"internalType":"bool","name":"isBadData","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxDeviation","type":"uint256"}],"name":"setMaximumDeviation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxOracleDelay","type":"uint256"}],"name":"setMaximumOracleDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPriceSource","type":"address"}],"name":"setPriceSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelockAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newTimelock","type":"address"}],"name":"transferTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"_version","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b50604051620016a8380380620016a883398101604081905262000034916200033b565b600280546001600160a01b03191633179055805181906200005590620000e1565b62000067632fa3fc3160e21b6200013d565b62000079630e70a24b60e31b6200013d565b6200008b63f843a10960e01b6200013d565b60208101516001600160a01b039081166080908152604083015190911660a052810151620000b990620001c1565b60a0810151620000c99062000224565b6060810151620000d99062000287565b5050620003e6565b6002546040516001600160a01b038084169216907f31b6c5a04b069b6ec1b3cef44c4e7c1eadd721349cda9823d0b1877b3551cdc690600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160e01b031980821690036200019c5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b600354808203620001e55760405163b99d8aaf60e01b815260040160405180910390fd5b60408051828152602081018490527f7e2a21727a662d0def125b3d1237f41a099a760d472095091724cd8e56c25bf0910160405180910390a150600355565b600454818103620002485760405163054e23d160e01b815260040160405180910390fd5b60408051828152602081018490527fd72ef688fa430b6a285b84371ba35e8a8e0762b32c1deb7be9d9c111ca79f5ea910160405180910390a150600455565b6005546001600160a01b039081169082168103620002b8576040516322ba75b360e01b815260040160405180910390fd5b604080516001600160a01b038084168252841660208201527f964298b435edfc268e11aa89b342ef1ddac566da6759b6dd15d7aad58a1dc935910160405180910390a150600580546001600160a01b0319166001600160a01b0392909216919091179055565b80516001600160a01b03811681146200033657600080fd5b919050565b600060c082840312156200034e57600080fd5b60405160c081016001600160401b03811182821017156200037f57634e487b7160e01b600052604160045260246000fd5b6040526200038d836200031e565b81526200039d602084016200031e565b6020820152620003b0604084016200031e565b6040820152620003c3606084016200031e565b60608201526080830151608082015260a083015160a08201528091505092915050565b60805160a05161129c6200040c60003960006103560152600061026d015261129c6000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c806354fd4d50116100e3578063bd9a548b1161008c578063d2333be711610066578063d2333be71461045e578063f6ccaad414610471578063feaf968c1461047957600080fd5b8063bd9a548b1461041d578063bda5310714610442578063cede91a41461045557600080fd5b80638c65c81f116100bd5780638c65c81f146103785780639152c29d146103ca5780639a6fc8f5146103d357600080fd5b806354fd4d50146103015780637284e4161461031257806378892cea1461035157600080fd5b80632dfa42671161014557806345d9f5821161011f57806345d9f582146102c65780634bc66f32146102d95780634f8b4ae7146102f957600080fd5b80632dfa42671461028f578063313ce567146102a457806345014095146102b357600080fd5b80630f4a05fb116101765780630f4a05fb146101ff57806320531bc914610248578063210663e41461026857600080fd5b806301ffc9a714610192578063090f3f50146101ba575b600080fd5b6101a56101a0366004611000565b610481565b60405190151581526020015b60405180910390f35b6001546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b1565b60055461022d9074010000000000000000000000000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020016101b1565b6005546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b6102a261029d366004611049565b61050a565b005b604051600881526020016101b1565b6102a26102c1366004611062565b61051e565b6102a26102d43660046110ba565b61052f565b6002546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b6102a261084d565b60015b6040519081526020016101b1565b604080518082018252601c81527f4554482f5553443a20436861696e6c696e6b205472616e73706f727400000000602082015290516101b19190611121565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b61038b610386366004611049565b610873565b604080516cffffffffffffffffffffffffff958616815294909316602085015264ffffffffff90911691830191909152151560608201526080016101b1565b61030460035481565b6103e66103e136600461118d565b610904565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101b1565b610425610927565b6040805193151584526020840192909252908201526060016101b1565b6102a2610450366004611062565b610940565b61030460045481565b6102a261046c366004611049565b610951565b6102a2610962565b6103e6610972565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061050457507fffffffff00000000000000000000000000000000000000000000000000000000821660009081526020819052604090205460ff165b92915050565b6105126109ac565b61051b816109fd565b50565b6105266109ac565b61051b81610a78565b60055473ffffffffffffffffffffffffffffffffffffffff163314610580576040517f2937b3e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428164ffffffffff1611156105c1576040517f7c729df400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006548015801590610624575060066105db6001836111e8565b815481106105eb576105eb6111fb565b60009182526020909120015464ffffffffff7a010000000000000000000000000000000000000000000000000000909104811690831611155b1561065b576040517f44e8b44700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b841580156106a457506003546cffffffffffffffffffffffffff80851690610685908716826111e8565b61069790670de0b6b3a764000061122a565b6106a19190611241565b11155b156106f757600580547fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000069ffffffffffffffffffff8416021790555b50604080516080810182526cffffffffffffffffffffffffff94851681529284166020840190815264ffffffffff928316918401918252941515606084019081526006805460018101825560009190915293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909401805496519251915115157f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff929094167a010000000000000000000000000000000000000000000000000000029190911679ffffffffffffffffffffffffffffffffffffffffffffffffffff9286166d0100000000000000000000000000027fffffffffffff00000000000000000000000000000000000000000000000000009097169490951693909317949094179390931691909117919091179055565b6108556109ac565b61085d610aef565b6108676000610a78565b6108716000610b40565b565b6006818154811061088357600080fd5b6000918252602090912001546cffffffffffffffffffffffffff80821692506d0100000000000000000000000000820416907a010000000000000000000000000000000000000000000000000000810464ffffffffff16907f0100000000000000000000000000000000000000000000000000000000000000900460ff1684565b600080600080600061091586610bce565b939a9299509097509550909350915050565b6000806000610934610d1a565b91959094509092509050565b6109486109ac565b61051b81610e66565b6109596109ac565b61051b81610f54565b61096a610aef565b610871610fcf565b600080600080600061099b600560149054906101000a900469ffffffffffffffffffff16610bce565b939992985090965094509092509050565b60025473ffffffffffffffffffffffffffffffffffffffff163314610871576040517f1c0be90a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354808203610a39576040517fb99d8aaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051828152602081018490527f7e2a21727a662d0def125b3d1237f41a099a760d472095091724cd8e56c25bf0910160405180910390a150600355565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116918217909255600254604051919216907f162998b90abc2507f3953aa797827b03a14c42dbd9a35f09feaf02e0d592773a90600090a350565b60015473ffffffffffffffffffffffffffffffffffffffff163314610871576040517ff5c49e6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f31b6c5a04b069b6ec1b3cef44c4e7c1eadd721349cda9823d0b1877b3551cdc690600090a3600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008060008060008569ffffffffffffffffffff1660068054905011610c20576040517f1b696c1500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060068769ffffffffffffffffffff1681548110610c4157610c416111fb565b60009182526020918290206040805160808101825291909201546cffffffffffffffffffffffffff8082168084526d0100000000000000000000000000830490911694830185905264ffffffffff7a0100000000000000000000000000000000000000000000000000008304169383019390935260ff7f010000000000000000000000000000000000000000000000000000000000000090910416151560608201529250600291610cf2919061127c565b610cfc9190611241565b6040909101519697909664ffffffffff169550859450879350915050565b60065460009081908190808203610d5d576040517f1b696c1500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006006610d6c6001846111e8565b81548110610d7c57610d7c6111fb565b60009182526020918290206040805160808101825292909101546cffffffffffffffffffffffffff80821684526d0100000000000000000000000000820416938301939093527a010000000000000000000000000000000000000000000000000000830464ffffffffff16908201527f010000000000000000000000000000000000000000000000000000000000000090910460ff1615156060820181905290915080610e40575042600454826040015164ffffffffff16610e3e919061127c565b105b815160209092015190966cffffffffffffffffffffffffff928316965091169350915050565b60055473ffffffffffffffffffffffffffffffffffffffff9081169082168103610ebc576040517f22ba75b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8084168252841660208201527f964298b435edfc268e11aa89b342ef1ddac566da6759b6dd15d7aad58a1dc935910160405180910390a150600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600454818103610f90576040517f054e23d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051828152602081018490527fd72ef688fa430b6a285b84371ba35e8a8e0762b32c1deb7be9d9c111ca79f5ea910160405180910390a150600455565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561087133610b40565b60006020828403121561101257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461104257600080fd5b9392505050565b60006020828403121561105b57600080fd5b5035919050565b60006020828403121561107457600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461104257600080fd5b80356cffffffffffffffffffffffffff811681146110b557600080fd5b919050565b600080600080608085870312156110d057600080fd5b843580151581146110e057600080fd5b93506110ee60208601611098565b92506110fc60408601611098565b9150606085013564ffffffffff8116811461111657600080fd5b939692955090935050565b600060208083528351808285015260005b8181101561114e57858101830151858201604001528201611132565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60006020828403121561119f57600080fd5b813569ffffffffffffffffffff8116811461104257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610504576105046111b9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8082028115828204841417610504576105046111b9565b600082611277577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610504576105046111b956fea164736f6c6343000813000a00000000000000000000000031562ae726afebe25417df01bedc72ef489f45b30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018c8cc1958317bc85f59af9cb3114da2efe4f921000000000000000000000000000000000000000000000000006a94d74f4300000000000000000000000000000000000000000000000000000000000000015f90
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c806354fd4d50116100e3578063bd9a548b1161008c578063d2333be711610066578063d2333be71461045e578063f6ccaad414610471578063feaf968c1461047957600080fd5b8063bd9a548b1461041d578063bda5310714610442578063cede91a41461045557600080fd5b80638c65c81f116100bd5780638c65c81f146103785780639152c29d146103ca5780639a6fc8f5146103d357600080fd5b806354fd4d50146103015780637284e4161461031257806378892cea1461035157600080fd5b80632dfa42671161014557806345d9f5821161011f57806345d9f582146102c65780634bc66f32146102d95780634f8b4ae7146102f957600080fd5b80632dfa42671461028f578063313ce567146102a457806345014095146102b357600080fd5b80630f4a05fb116101765780630f4a05fb146101ff57806320531bc914610248578063210663e41461026857600080fd5b806301ffc9a714610192578063090f3f50146101ba575b600080fd5b6101a56101a0366004611000565b610481565b60405190151581526020015b60405180910390f35b6001546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b1565b60055461022d9074010000000000000000000000000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020016101b1565b6005546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b6102a261029d366004611049565b61050a565b005b604051600881526020016101b1565b6102a26102c1366004611062565b61051e565b6102a26102d43660046110ba565b61052f565b6002546101da9073ffffffffffffffffffffffffffffffffffffffff1681565b6102a261084d565b60015b6040519081526020016101b1565b604080518082018252601c81527f4554482f5553443a20436861696e6c696e6b205472616e73706f727400000000602082015290516101b19190611121565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b61038b610386366004611049565b610873565b604080516cffffffffffffffffffffffffff958616815294909316602085015264ffffffffff90911691830191909152151560608201526080016101b1565b61030460035481565b6103e66103e136600461118d565b610904565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101b1565b610425610927565b6040805193151584526020840192909252908201526060016101b1565b6102a2610450366004611062565b610940565b61030460045481565b6102a261046c366004611049565b610951565b6102a2610962565b6103e6610972565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061050457507fffffffff00000000000000000000000000000000000000000000000000000000821660009081526020819052604090205460ff165b92915050565b6105126109ac565b61051b816109fd565b50565b6105266109ac565b61051b81610a78565b60055473ffffffffffffffffffffffffffffffffffffffff163314610580576040517f2937b3e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428164ffffffffff1611156105c1576040517f7c729df400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006548015801590610624575060066105db6001836111e8565b815481106105eb576105eb6111fb565b60009182526020909120015464ffffffffff7a010000000000000000000000000000000000000000000000000000909104811690831611155b1561065b576040517f44e8b44700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b841580156106a457506003546cffffffffffffffffffffffffff80851690610685908716826111e8565b61069790670de0b6b3a764000061122a565b6106a19190611241565b11155b156106f757600580547fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000069ffffffffffffffffffff8416021790555b50604080516080810182526cffffffffffffffffffffffffff94851681529284166020840190815264ffffffffff928316918401918252941515606084019081526006805460018101825560009190915293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909401805496519251915115157f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff929094167a010000000000000000000000000000000000000000000000000000029190911679ffffffffffffffffffffffffffffffffffffffffffffffffffff9286166d0100000000000000000000000000027fffffffffffff00000000000000000000000000000000000000000000000000009097169490951693909317949094179390931691909117919091179055565b6108556109ac565b61085d610aef565b6108676000610a78565b6108716000610b40565b565b6006818154811061088357600080fd5b6000918252602090912001546cffffffffffffffffffffffffff80821692506d0100000000000000000000000000820416907a010000000000000000000000000000000000000000000000000000810464ffffffffff16907f0100000000000000000000000000000000000000000000000000000000000000900460ff1684565b600080600080600061091586610bce565b939a9299509097509550909350915050565b6000806000610934610d1a565b91959094509092509050565b6109486109ac565b61051b81610e66565b6109596109ac565b61051b81610f54565b61096a610aef565b610871610fcf565b600080600080600061099b600560149054906101000a900469ffffffffffffffffffff16610bce565b939992985090965094509092509050565b60025473ffffffffffffffffffffffffffffffffffffffff163314610871576040517f1c0be90a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354808203610a39576040517fb99d8aaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051828152602081018490527f7e2a21727a662d0def125b3d1237f41a099a760d472095091724cd8e56c25bf0910160405180910390a150600355565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116918217909255600254604051919216907f162998b90abc2507f3953aa797827b03a14c42dbd9a35f09feaf02e0d592773a90600090a350565b60015473ffffffffffffffffffffffffffffffffffffffff163314610871576040517ff5c49e6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f31b6c5a04b069b6ec1b3cef44c4e7c1eadd721349cda9823d0b1877b3551cdc690600090a3600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008060008060008569ffffffffffffffffffff1660068054905011610c20576040517f1b696c1500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060068769ffffffffffffffffffff1681548110610c4157610c416111fb565b60009182526020918290206040805160808101825291909201546cffffffffffffffffffffffffff8082168084526d0100000000000000000000000000830490911694830185905264ffffffffff7a0100000000000000000000000000000000000000000000000000008304169383019390935260ff7f010000000000000000000000000000000000000000000000000000000000000090910416151560608201529250600291610cf2919061127c565b610cfc9190611241565b6040909101519697909664ffffffffff169550859450879350915050565b60065460009081908190808203610d5d576040517f1b696c1500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006006610d6c6001846111e8565b81548110610d7c57610d7c6111fb565b60009182526020918290206040805160808101825292909101546cffffffffffffffffffffffffff80821684526d0100000000000000000000000000820416938301939093527a010000000000000000000000000000000000000000000000000000830464ffffffffff16908201527f010000000000000000000000000000000000000000000000000000000000000090910460ff1615156060820181905290915080610e40575042600454826040015164ffffffffff16610e3e919061127c565b105b815160209092015190966cffffffffffffffffffffffffff928316965091169350915050565b60055473ffffffffffffffffffffffffffffffffffffffff9081169082168103610ebc576040517f22ba75b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8084168252841660208201527f964298b435edfc268e11aa89b342ef1ddac566da6759b6dd15d7aad58a1dc935910160405180910390a150600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600454818103610f90576040517f054e23d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051828152602081018490527fd72ef688fa430b6a285b84371ba35e8a8e0762b32c1deb7be9d9c111ca79f5ea910160405180910390a150600455565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561087133610b40565b60006020828403121561101257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461104257600080fd5b9392505050565b60006020828403121561105b57600080fd5b5035919050565b60006020828403121561107457600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461104257600080fd5b80356cffffffffffffffffffffffffff811681146110b557600080fd5b919050565b600080600080608085870312156110d057600080fd5b843580151581146110e057600080fd5b93506110ee60208601611098565b92506110fc60408601611098565b9150606085013564ffffffffff8116811461111657600080fd5b939692955090935050565b600060208083528351808285015260005b8181101561114e57858101830151858201604001528201611132565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60006020828403121561119f57600080fd5b813569ffffffffffffffffffff8116811461104257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610504576105046111b9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8082028115828204841417610504576105046111b9565b600082611277577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610504576105046111b956fea164736f6c6343000813000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000031562ae726afebe25417df01bedc72ef489f45b30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018c8cc1958317bc85f59af9cb3114da2efe4f921000000000000000000000000000000000000000000000000006a94d74f4300000000000000000000000000000000000000000000000000000000000000015f90
-----Decoded View---------------
Arg [0] : _params (tuple):
Arg [1] : timelockAddress (address): 0x31562ae726AFEBe25417df01bEdC72EF489F45b3
Arg [2] : baseErc20 (address): 0x0000000000000000000000000000000000000000
Arg [3] : quoteErc20 (address): 0x0000000000000000000000000000000000000000
Arg [4] : priceSource (address): 0x18c8CC1958317Bc85F59af9cb3114DA2EfE4f921
Arg [5] : maximumDeviation (uint256): 30000000000000000
Arg [6] : maximumOracleDelay (uint256): 90000
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000031562ae726afebe25417df01bedc72ef489f45b3
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000018c8cc1958317bc85f59af9cb3114da2efe4f921
Arg [4] : 000000000000000000000000000000000000000000000000006a94d74f430000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000015f90
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.