ETH Price: $1,884.84 (-4.59%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Rebalance245174832026-02-23 5:25:592 hrs ago1771824359IN
Fluid: SUSDE Rate
0 ETH0.000001760.04019893
Rebalance245159022026-02-23 0:08:357 hrs ago1771805315IN
Fluid: SUSDE Rate
0 ETH0.000001740.0396985
Rebalance245143182026-02-22 18:51:1113 hrs ago1771786271IN
Fluid: SUSDE Rate
0 ETH0.000002440.05571462
Rebalance245127332026-02-22 13:33:1118 hrs ago1771767191IN
Fluid: SUSDE Rate
0 ETH0.000002790.06362709
Rebalance245111482026-02-22 8:15:2323 hrs ago1771748123IN
Fluid: SUSDE Rate
0 ETH0.000002010.04600893
Rebalance245095672026-02-22 2:57:4728 hrs ago1771729067IN
Fluid: SUSDE Rate
0 ETH0.000001630.03731278
Rebalance245079852026-02-21 21:39:3534 hrs ago1771709975IN
Fluid: SUSDE Rate
0 ETH0.000001650.03764754
Rebalance245064022026-02-21 16:21:2339 hrs ago1771690883IN
Fluid: SUSDE Rate
0 ETH0.000002640.06031218
Rebalance245048152026-02-21 11:03:1144 hrs ago1771671791IN
Fluid: SUSDE Rate
0 ETH0.000001850.04221836
Rebalance245032272026-02-21 5:44:352 days ago1771652675IN
Fluid: SUSDE Rate
0 ETH0.000002340.05342319
Rebalance245016362026-02-21 0:25:112 days ago1771633511IN
Fluid: SUSDE Rate
0 ETH0.000002610.05973532
Rebalance245000432026-02-20 19:05:592 days ago1771614359IN
Fluid: SUSDE Rate
0 ETH0.000004190.09559908
Rebalance244984532026-02-20 13:46:472 days ago1771595207IN
Fluid: SUSDE Rate
0 ETH0.000007530.17185617
Rebalance244968662026-02-20 8:27:472 days ago1771576067IN
Fluid: SUSDE Rate
0 ETH0.000002140.04881998
Rebalance244952742026-02-20 3:08:233 days ago1771556903IN
Fluid: SUSDE Rate
0 ETH0.00000210.0479686
Rebalance244936222026-02-19 21:36:473 days ago1771537007IN
Fluid: SUSDE Rate
0 ETH0.000002310.05269239
Rebalance244919432026-02-19 15:59:113 days ago1771516751IN
Fluid: SUSDE Rate
0 ETH0.000010680.24356235
Rebalance244890622026-02-19 6:20:594 days ago1771482059IN
Fluid: SUSDE Rate
0 ETH0.000002180.04986342
Rebalance244861832026-02-18 20:42:354 days ago1771447355IN
Fluid: SUSDE Rate
0 ETH0.000006290.14350695
Rebalance244832992026-02-18 11:04:114 days ago1771412651IN
Fluid: SUSDE Rate
0 ETH0.000002590.05916342
Rebalance244804222026-02-18 1:25:595 days ago1771377959IN
Fluid: SUSDE Rate
0 ETH0.000001680.03833217
Rebalance244775372026-02-17 15:46:235 days ago1771343183IN
Fluid: SUSDE Rate
0 ETH0.000006810.15541461
Rebalance244746462026-02-17 6:05:116 days ago1771308311IN
Fluid: SUSDE Rate
0 ETH0.000001710.03921247
Rebalance244717452026-02-16 20:22:476 days ago1771273367IN
Fluid: SUSDE Rate
0 ETH0.00000210.04791411
Rebalance244688432026-02-16 10:40:236 days ago1771238423IN
Fluid: SUSDE Rate
0 ETH0.000001750.04010458
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x61010060215866172025-01-09 11:26:59409 days ago1736422019  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SUSDEContractRate

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import { IERC4626 } from "@openzeppelin/contracts/interfaces/IERC4626.sol";
import { FluidContractRate } from "../../fluidContractRate.sol";

/// @notice This contract stores the rate of USDE for 1 sUSDE in intervals to optimize gas cost.
/// @notice Properly implements all interfaces for use as IFluidCenterPrice and IFluidOracle.
/// @dev SUSDE contract; on mainnet 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497
contract SUSDEContractRate is FluidContractRate {
    constructor(
        string memory infoName_,
        address rateSource_,
        uint256 minUpdateDiffPercent_,
        uint256 minHeartBeat_
    ) FluidContractRate(infoName_, rateSource_, minUpdateDiffPercent_, minHeartBeat_) {}

    function _getNewRate1e27() internal view virtual override returns (uint256 exchangeRate_) {
        return IERC4626(_RATE_SOURCE).convertToAssets(1e27); // scale to 1e27
    }

    /// @notice Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
    /// scenario where all the conditions are met. see IERC4626
    function convertToShares(uint256 assets) external view returns (uint256 shares) {
        return (_rate * assets) / 1e27;
    }

    /// @notice Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
    /// scenario where all the conditions are met. see IERC4626
    function convertToAssets(uint256 shares) external view returns (uint256 assets) {
        return (shares * 1e27) / _rate;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (interfaces/IERC4626.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";
import "../token/ERC20/extensions/IERC20Metadata.sol";

/**
 * @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in
 * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
 *
 * _Available since v4.7._
 */
interface IERC4626 is IERC20, IERC20Metadata {
    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /**
     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
     *
     * - MUST be an ERC-20 token contract.
     * - MUST NOT revert.
     */
    function asset() external view returns (address assetTokenAddress);

    /**
     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.
     *
     * - SHOULD include any compounding that occurs from yield.
     * - MUST be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT revert.
     */
    function totalAssets() external view returns (uint256 totalManagedAssets);

    /**
     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToShares(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
     * through a deposit call.
     *
     * - MUST return a limited value if receiver is subject to some deposit limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
     * - MUST NOT revert.
     */
    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
     *   in the same transaction.
     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   deposit execution, and are accounted for during deposit.
     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
     * - MUST return a limited value if receiver is subject to some mint limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
     * - MUST NOT revert.
     */
    function maxMint(address receiver) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
     *   same transaction.
     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
     *   would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by minting.
     */
    function previewMint(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
     *   execution, and are accounted for during mint.
     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
     * Vault, through a withdraw call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
     *   called
     *   in the same transaction.
     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   withdraw execution, and are accounted for during withdraw.
     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
     * through a redeem call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxRedeem(address owner) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
     *   same transaction.
     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
     *   redemption would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.
     */
    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   redeem execution, and are accounted for during redeem.
     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) external returns (uint256 assets);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

File 5 of 10 : error.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

contract Error {
    error FluidOracleError(uint256 errorId_);
}

File 6 of 10 : errorTypes.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

library ErrorTypes {
    /***********************************|
    |           FluidOracleL2           | 
    |__________________________________*/

    /// @notice thrown when sequencer on a L2 has an outage and grace period has not yet passed.
    uint256 internal constant FluidOracleL2__SequencerOutage = 60000;

    /***********************************|
    |     UniV3CheckCLRSOracle          | 
    |__________________________________*/

    /// @notice thrown when the delta between main price source and check rate source is exceeding the allowed delta
    uint256 internal constant UniV3CheckCLRSOracle__InvalidPrice = 60001;

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant UniV3CheckCLRSOracle__InvalidParams = 60002;

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant UniV3CheckCLRSOracle__ExchangeRateZero = 60003;

    /***********************************|
    |           FluidOracle             | 
    |__________________________________*/

    /// @notice thrown when an invalid info name is passed into a fluid oracle (e.g. not set or too long)
    uint256 internal constant FluidOracle__InvalidInfoName = 60010;

    /***********************************|
    |            sUSDe Oracle           | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant SUSDeOracle__InvalidParams = 60102;

    /***********************************|
    |           Pendle Oracle           | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant PendleOracle__InvalidParams = 60201;

    /// @notice thrown when the Pendle market Oracle has not been initialized yet
    uint256 internal constant PendleOracle__MarketNotInitialized = 60202;

    /// @notice thrown when the Pendle market does not have 18 decimals
    uint256 internal constant PendleOracle__MarketInvalidDecimals = 60203;

    /// @notice thrown when the Pendle market returns an unexpected price
    uint256 internal constant PendleOracle__InvalidPrice = 60204;

    /***********************************|
    |    CLRS2UniV3CheckCLRSOracleL2    | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant CLRS2UniV3CheckCLRSOracleL2__ExchangeRateZero = 60301;

    /***********************************|
    |    Ratio2xFallbackCLRSOracleL2    | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant Ratio2xFallbackCLRSOracleL2__ExchangeRateZero = 60311;

    /***********************************|
    |            WeETHsOracle           | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant WeETHsOracle__InvalidParams = 60321;

    /***********************************|
    |        DexSmartColOracle          | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant DexSmartColOracle__InvalidParams = 60331;

    /// @notice thrown when smart col is not enabled
    uint256 internal constant DexSmartColOracle__SmartColNotEnabled = 60332;

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant DexSmartColOracle__ExchangeRateZero = 60333;

    /***********************************|
    |        DexSmartDebtOracle         | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant DexSmartDebtOracle__InvalidParams = 60341;

    /// @notice thrown when smart debt is not enabled
    uint256 internal constant DexSmartDebtOracle__SmartDebtNotEnabled = 60342;

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant DexSmartDebtOracle__ExchangeRateZero = 60343;

    /***********************************|
    |            ContractRate           | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant ContractRate__InvalidParams = 60351;

    /// @notice thrown when caller is not authorized
    uint256 internal constant ContractRate__Unauthorized = 60352;

    /// @notice thrown when minimum diff for triggering update on the stared rate is not reached
    uint256 internal constant ContractRate__MinUpdateDiffNotReached = 60353;

    /// @notice thrown when the external rate source returns 0 for the new rate
    uint256 internal constant ContractRate__NewRateZero = 60354;

    /***********************************|
    |            sUSDs Oracle           | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant SUSDsOracle__InvalidParams = 60361;

    /***********************************|
    |            Peg Oracle             | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant PegOracle__InvalidParams = 60371;

    /***********************************|
    |              DexOracle            | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant DexOracle__InvalidParams = 60381;

    /// @notice thrown when the exchange rate is zero, even after all possible fallbacks depending on config
    uint256 internal constant DexOracle__ExchangeRateZero = 60382;

    /***********************************|
    |          Chainlink Oracle         | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant ChainlinkOracle__InvalidParams = 61001;

    /***********************************|
    |          UniswapV3 Oracle         | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant UniV3Oracle__InvalidParams = 62001;

    /// @notice thrown when constructor is called with invalid ordered seconds agos values
    uint256 internal constant UniV3Oracle__InvalidSecondsAgos = 62002;

    /// @notice thrown when constructor is called with invalid delta values > 100%
    uint256 internal constant UniV3Oracle__InvalidDeltas = 62003;

    /***********************************|
    |            WstETh Oracle          | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant WstETHOracle__InvalidParams = 63001;

    /***********************************|
    |           Redstone Oracle         | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant RedstoneOracle__InvalidParams = 64001;

    /***********************************|
    |          Fallback Oracle          | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant FallbackOracle__InvalidParams = 65001;

    /***********************************|
    |       FallbackCLRSOracle          | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even for the fallback oracle source (if enabled)
    uint256 internal constant FallbackCLRSOracle__ExchangeRateZero = 66001;

    /***********************************|
    |         WstETHCLRSOracle          | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even for the fallback oracle source (if enabled)
    uint256 internal constant WstETHCLRSOracle__ExchangeRateZero = 67001;

    /***********************************|
    |        CLFallbackUniV3Oracle      | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even for the uniV3 rate
    uint256 internal constant CLFallbackUniV3Oracle__ExchangeRateZero = 68001;

    /***********************************|
    |  WstETHCLRS2UniV3CheckCLRSOracle  | 
    |__________________________________*/

    /// @notice thrown when the exchange rate is zero, even for the uniV3 rate
    uint256 internal constant WstETHCLRS2UniV3CheckCLRSOracle__ExchangeRateZero = 69001;

    /***********************************|
    |             WeETh Oracle          | 
    |__________________________________*/

    /// @notice thrown when an invalid parameter is passed to a method
    uint256 internal constant WeETHOracle__InvalidParams = 70001;
}

File 7 of 10 : fluidCenterPrice.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import { IFluidCenterPrice } from "./interfaces/iFluidCenterPrice.sol";
import { ErrorTypes } from "./errorTypes.sol";
import { Error as OracleError } from "./error.sol";

/// @title   FluidCenterPrice
/// @notice  Base contract that any Fluid Center Price must implement
abstract contract FluidCenterPrice is IFluidCenterPrice, OracleError {
    /// @dev short helper string to easily identify the center price oracle. E.g. token symbols
    //
    // using a bytes32 because string can not be immutable.
    bytes32 private immutable _infoName;

    constructor(string memory infoName_) {
        if (bytes(infoName_).length > 32 || bytes(infoName_).length == 0) {
            revert FluidOracleError(ErrorTypes.FluidOracle__InvalidInfoName);
        }

        // convert string to bytes32
        bytes32 infoNameBytes32_;
        assembly {
            infoNameBytes32_ := mload(add(infoName_, 32))
        }
        _infoName = infoNameBytes32_;
    }

    /// @inheritdoc IFluidCenterPrice
    function infoName() public view virtual returns (string memory) {
        // convert bytes32 to string
        uint256 length_;
        while (length_ < 32 && _infoName[length_] != 0) {
            length_++;
        }
        bytes memory infoNameBytes_ = new bytes(length_);
        for (uint256 i; i < length_; i++) {
            infoNameBytes_[i] = _infoName[i];
        }
        return string(infoNameBytes_);
    }

    /// @inheritdoc IFluidCenterPrice
    function centerPrice() external virtual returns (uint256 price_);
}

// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import { IFluidOracle } from "./interfaces/iFluidOracle.sol";
import { FluidCenterPrice } from "./fluidCenterPrice.sol";

import { Error as OracleError } from "./error.sol";
import { ErrorTypes } from "./errorTypes.sol";

abstract contract Events {
    /// @notice emitted when rebalancer successfully changes the contract rate
    event LogRebalanceRate(uint256 oldRate, uint256 newRate);
}

abstract contract Constants {
    /// @dev external exchange rate source contract
    address internal immutable _RATE_SOURCE;

    /// @dev Minimum difference to trigger update in percent 1e4 decimals, 10000 = 1%
    uint256 internal immutable _MIN_UPDATE_DIFF_PERCENT;

    /// @dev Minimum time after which an update can trigger, even if it does not reach `_MIN_UPDATE_DIFF_PERCENT`
    uint256 internal immutable _MIN_HEART_BEAT;
}

abstract contract Variables is Constants {
    /// @dev exchange rate in 1e27 decimals
    uint216 internal _rate;

    /// @dev time when last update for rate happened
    uint40 internal _lastUpdateTime;
}

/// @notice This contract stores an exchange rate in intervals to optimize gas cost.
/// @notice Properly implements all interfaces for use as IFluidCenterPrice and IFluidOracle.
abstract contract FluidContractRate is IFluidOracle, FluidCenterPrice, Variables, Events {
    /// @dev Validates that an address is not the zero address
    modifier validAddress(address value_) {
        if (value_ == address(0)) {
            revert FluidOracleError(ErrorTypes.ContractRate__InvalidParams);
        }
        _;
    }

    constructor(
        string memory infoName_,
        address rateSource_,
        uint256 minUpdateDiffPercent_,
        uint256 minHeartBeat_
    ) validAddress(rateSource_) FluidCenterPrice(infoName_) {
        if (minUpdateDiffPercent_ == 0 || minUpdateDiffPercent_ > 1e5 || minHeartBeat_ == 0) {
            // revert if > 10% or 0
            revert FluidOracleError(ErrorTypes.ContractRate__InvalidParams);
        }
        _RATE_SOURCE = rateSource_;
        _MIN_UPDATE_DIFF_PERCENT = minUpdateDiffPercent_;
        _MIN_HEART_BEAT = minHeartBeat_;

        _rate = uint216(_getNewRate1e27());
        _lastUpdateTime = uint40(block.timestamp);
    }

    /// @dev read the exchange rate from the external contract e.g. wstETH or rsETH exchange rate, scaled to 1e27
    /// To be implemented by inheriting contract
    function _getNewRate1e27() internal view virtual returns (uint256 exchangeRate_);

    /// @inheritdoc FluidCenterPrice
    function infoName() public view override(IFluidOracle, FluidCenterPrice) returns (string memory) {
        return super.infoName();
    }

    /// @inheritdoc IFluidOracle
    function getExchangeRate() external view virtual returns (uint256 exchangeRate_) {
        return _rate;
    }

    /// @inheritdoc IFluidOracle
    function getExchangeRateOperate() external view virtual returns (uint256 exchangeRate_) {
        return _rate;
    }

    /// @inheritdoc IFluidOracle
    function getExchangeRateLiquidate() external view virtual returns (uint256 exchangeRate_) {
        return _rate;
    }

    /// @notice Rebalance the contract rate by updating the stored rate with the current rate from the external contract.
    /// @dev The rate is only updated if the difference between the current rate and the new rate is greater than or
    ///      equal to the minimum update difference percentage.
    function rebalance() external {
        uint256 curRate_ = _rate;
        uint256 newRate_ = _getNewRate1e27();
        if (newRate_ == 0) {
            revert FluidOracleError(ErrorTypes.ContractRate__NewRateZero);
        }

        uint256 rateDiffPercent;
        unchecked {
            if (curRate_ > newRate_) {
                rateDiffPercent = ((curRate_ - newRate_) * 1e6) / curRate_;
            } else if (newRate_ > curRate_) {
                rateDiffPercent = ((newRate_ - curRate_) * 1e6) / curRate_;
            }
        }
        if (rateDiffPercent < _MIN_UPDATE_DIFF_PERCENT) {
            revert FluidOracleError(ErrorTypes.ContractRate__MinUpdateDiffNotReached);
        }

        _rate = uint216(newRate_);
        _lastUpdateTime = uint40(block.timestamp);

        emit LogRebalanceRate(curRate_, newRate_);
    }

    /// @inheritdoc FluidCenterPrice
    function centerPrice() external override returns (uint256 price_) {
        // heart beat check update for Dex swaps
        if (_lastUpdateTime + _MIN_HEART_BEAT < block.timestamp) {
            uint256 curRate_ = _rate;
            uint256 newRate_ = _getNewRate1e27();
            if (newRate_ == 0) {
                revert FluidOracleError(ErrorTypes.ContractRate__NewRateZero);
            }

            _rate = uint216(newRate_);
            _lastUpdateTime = uint40(block.timestamp);

            emit LogRebalanceRate(curRate_, newRate_);
        }

        return _rate;
    }

    /// @notice returns how much the new rate would be different from current rate in percent (10000 = 1%, 1 = 0.0001%).
    function configPercentDiff() public view virtual returns (uint256 configPercentDiff_) {
        uint256 curRate_ = _rate;
        uint256 newRate_ = _getNewRate1e27();

        unchecked {
            if (curRate_ > newRate_) {
                configPercentDiff_ = ((curRate_ - newRate_) * 1e6) / curRate_;
            } else if (newRate_ > curRate_) {
                configPercentDiff_ = ((newRate_ - curRate_) * 1e6) / curRate_;
            }
        }
    }

    /// @notice returns all config vars, last update timestamp, and external rate source oracle address
    function configData()
        external
        view
        returns (uint256 minUpdateDiffPercent_, uint256 minHeartBeat_, uint40 lastUpdateTime_, address rateSource_)
    {
        return (_MIN_UPDATE_DIFF_PERCENT, _MIN_HEART_BEAT, _lastUpdateTime, _RATE_SOURCE);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

interface IFluidCenterPrice {
    /// @notice Retrieves the center price for the pool
    /// @dev This function is marked as non-constant (potentially state-changing) to allow flexibility in price fetching mechanisms.
    ///      While typically used as a read-only operation, this design permits write operations if needed for certain token pairs
    ///      (e.g., fetching up-to-date exchange rates that may require state changes).
    /// @return price_ The current price ratio of token1 to token0, expressed with 27 decimal places
    function centerPrice() external returns (uint256 price_);

    /// @notice helper string to easily identify the oracle. E.g. token symbols
    function infoName() external view returns (string memory);
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

interface IFluidOracle {
    /// @dev Deprecated. Use `getExchangeRateOperate()` and `getExchangeRateLiquidate()` instead. Only implemented for
    ///      backwards compatibility.
    function getExchangeRate() external view returns (uint256 exchangeRate_);

    /// @notice Get the `exchangeRate_` between the underlying asset and the peg asset in 1e27 for operates
    function getExchangeRateOperate() external view returns (uint256 exchangeRate_);

    /// @notice Get the `exchangeRate_` between the underlying asset and the peg asset in 1e27 for liquidations
    function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_);

    /// @notice helper string to easily identify the oracle. E.g. token symbols
    function infoName() external view returns (string memory);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000000
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"infoName_","type":"string"},{"internalType":"address","name":"rateSource_","type":"address"},{"internalType":"uint256","name":"minUpdateDiffPercent_","type":"uint256"},{"internalType":"uint256","name":"minHeartBeat_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"errorId_","type":"uint256"}],"name":"FluidOracleError","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"LogRebalanceRate","type":"event"},{"inputs":[],"name":"centerPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configData","outputs":[{"internalType":"uint256","name":"minUpdateDiffPercent_","type":"uint256"},{"internalType":"uint256","name":"minHeartBeat_","type":"uint256"},{"internalType":"uint40","name":"lastUpdateTime_","type":"uint40"},{"internalType":"address","name":"rateSource_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"configPercentDiff","outputs":[{"internalType":"uint256","name":"configPercentDiff_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExchangeRate","outputs":[{"internalType":"uint256","name":"exchangeRate_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExchangeRateLiquidate","outputs":[{"internalType":"uint256","name":"exchangeRate_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExchangeRateOperate","outputs":[{"internalType":"uint256","name":"exchangeRate_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"infoName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162000dbb38038062000dbb8339810160408190526200003591620001e5565b83838383836020815111806200004a57508051155b15620000725760405163c82fc46560e01b815261ea6a60048201526024015b60405180910390fd5b60200151608052826001600160a01b038116620000a75760405163c82fc46560e01b815261ebbf600482015260240162000069565b821580620000b75750620186a083115b80620000c1575081155b15620000e55760405163c82fc46560e01b815261ebbf600482015260240162000069565b6001600160a01b03841660a05260c083905260e08290526200010662000131565b6001600160d81b0316600160d81b4264ffffffffff16021760005550620002f7975050505050505050565b60a0516040516303d1689d60e11b81526b033b2e3c9fd0803ce800000060048201526000916001600160a01b0316906307a2d13a90602401602060405180830381865afa15801562000187573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ad9190620002dd565b905090565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001e057600080fd5b919050565b60008060008060808587031215620001fc57600080fd5b84516001600160401b03808211156200021457600080fd5b818701915087601f8301126200022957600080fd5b8151818111156200023e576200023e620001b2565b604051601f8201601f19908116603f01168101908382118183101715620002695762000269620001b2565b81604052828152602093508a848487010111156200028657600080fd5b600091505b82821015620002aa57848201840151818301850152908301906200028b565b6000848483010152809850505050620002c5818801620001c8565b60408801516060909801519699909850945050505050565b600060208284031215620002f057600080fd5b5051919050565b60805160a05160c05160e051610a6f6200034c6000396000818161011501526104bd01526000818160f20152610311015260008181610166015261065d0152600081816106ef01526107b40152610a6f6000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063abd5f95d11610076578063e6aa216c1161005b578063e6aa216c146101b2578063f3190c89146101b2578063f763f7a61461020757600080fd5b8063abd5f95d146101df578063c6e6f592146101f457600080fd5b80637d7c2a1c116100a75780637d7c2a1c146101a85780638e7bfbc0146101b25780639dc10566146101d757600080fd5b806307a2d13a146100c357806320e44e43146100e9575b600080fd5b6100d66100d1366004610842565b61020f565b6040519081526020015b60405180910390f35b600054604080517f000000000000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060208201527b0100000000000000000000000000000000000000000000000000000090920464ffffffffff16908201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1660608201526080016100e0565b6101b0610256565b005b6000547affffffffffffffffffffffffffffffffffffffffffffffffffffff166100d6565b6100d66103f3565b6101e7610468565b6040516100e0919061085b565b6100d6610202366004610842565b610477565b6100d66104b1565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff16610246836b033b2e3c9fd0803ce80000006108f6565b610250919061093c565b92915050565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690610280610620565b9050806000036102c5576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc260048201526024015b60405180910390fd5b6000818311156102ed5782828403620f424002816102e5576102e561090d565b04905061030f565b8282111561030f5782838303620f4240028161030b5761030b61090d565b0490505b7f000000000000000000000000000000000000000000000000000000000000000081101561036d576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc160048201526024016102bc565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff82167b010000000000000000000000000000000000000000000000000000004264ffffffffff16021760005560408051848152602081018490527f95f03a932c8aced8238058ac39deeaf30f8ddcbf42ade5ad3ada32f0d1338a08910160405180910390a1505050565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff168161041d610620565b9050808211156104455781818303620f4240028161043d5761043d61090d565b049250505090565b818111156104635781828203620f4240028161043d5761043d61090d565b505090565b60606104726106dd565b905090565b600080546b033b2e3c9fd0803ce8000000906102469084907affffffffffffffffffffffffffffffffffffffffffffffffffffff166108f6565b600080544290610508907f0000000000000000000000000000000000000000000000000000000000000000907b01000000000000000000000000000000000000000000000000000000900464ffffffffff16610977565b10156105fc57600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690610538610620565b905080600003610578576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc260048201526024016102bc565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff81167b010000000000000000000000000000000000000000000000000000004264ffffffffff16021760005560408051838152602081018390527f95f03a932c8aced8238058ac39deeaf30f8ddcbf42ade5ad3ada32f0d1338a08910160405180910390a150505b506000547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690565b6040517f07a2d13a0000000000000000000000000000000000000000000000000000000081526b033b2e3c9fd0803ce800000060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906307a2d13a90602401602060405180830381865afa1580156106b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610472919061098a565b606060005b60208110801561074857507f0000000000000000000000000000000000000000000000000000000000000000816020811061071f5761071f6109a3565b1a60f81b7fff000000000000000000000000000000000000000000000000000000000000001615155b1561075f5780610757816109d2565b9150506106e2565b60008167ffffffffffffffff81111561077a5761077a610a0a565b6040519080825280601f01601f1916602001820160405280156107a4576020820181803683370190505b50905060005b8281101561083b577f000000000000000000000000000000000000000000000000000000000000000081602081106107e4576107e46109a3565b1a60f81b8282815181106107fa576107fa6109a3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080610833816109d2565b9150506107aa565b5092915050565b60006020828403121561085457600080fd5b5035919050565b600060208083528351808285015260005b818110156108885785810183015185820160400152820161086c565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610250576102506108c7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082610972577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610250576102506108c7565b60006020828403121561099c57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610a0357610a036108c7565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220254a82a6de3df6a7d79ab47266062de9bb7d6f23db603369f38b4baf7f796de864736f6c6343000815003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000009d39a5de30e57443bff2a8307a4256c8797a3497000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000015f90000000000000000000000000000000000000000000000000000000000000001b7355534445203c3e20555344452065786368616e676520726174650000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063abd5f95d11610076578063e6aa216c1161005b578063e6aa216c146101b2578063f3190c89146101b2578063f763f7a61461020757600080fd5b8063abd5f95d146101df578063c6e6f592146101f457600080fd5b80637d7c2a1c116100a75780637d7c2a1c146101a85780638e7bfbc0146101b25780639dc10566146101d757600080fd5b806307a2d13a146100c357806320e44e43146100e9575b600080fd5b6100d66100d1366004610842565b61020f565b6040519081526020015b60405180910390f35b600054604080517f000000000000000000000000000000000000000000000000000000000000000a81527f0000000000000000000000000000000000000000000000000000000000015f9060208201527b0100000000000000000000000000000000000000000000000000000090920464ffffffffff16908201527f0000000000000000000000009d39a5de30e57443bff2a8307a4256c8797a349773ffffffffffffffffffffffffffffffffffffffff1660608201526080016100e0565b6101b0610256565b005b6000547affffffffffffffffffffffffffffffffffffffffffffffffffffff166100d6565b6100d66103f3565b6101e7610468565b6040516100e0919061085b565b6100d6610202366004610842565b610477565b6100d66104b1565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff16610246836b033b2e3c9fd0803ce80000006108f6565b610250919061093c565b92915050565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690610280610620565b9050806000036102c5576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc260048201526024015b60405180910390fd5b6000818311156102ed5782828403620f424002816102e5576102e561090d565b04905061030f565b8282111561030f5782838303620f4240028161030b5761030b61090d565b0490505b7f000000000000000000000000000000000000000000000000000000000000000a81101561036d576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc160048201526024016102bc565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff82167b010000000000000000000000000000000000000000000000000000004264ffffffffff16021760005560408051848152602081018490527f95f03a932c8aced8238058ac39deeaf30f8ddcbf42ade5ad3ada32f0d1338a08910160405180910390a1505050565b600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff168161041d610620565b9050808211156104455781818303620f4240028161043d5761043d61090d565b049250505090565b818111156104635781828203620f4240028161043d5761043d61090d565b505090565b60606104726106dd565b905090565b600080546b033b2e3c9fd0803ce8000000906102469084907affffffffffffffffffffffffffffffffffffffffffffffffffffff166108f6565b600080544290610508907f0000000000000000000000000000000000000000000000000000000000015f90907b01000000000000000000000000000000000000000000000000000000900464ffffffffff16610977565b10156105fc57600080547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690610538610620565b905080600003610578576040517fc82fc46500000000000000000000000000000000000000000000000000000000815261ebc260048201526024016102bc565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff81167b010000000000000000000000000000000000000000000000000000004264ffffffffff16021760005560408051838152602081018390527f95f03a932c8aced8238058ac39deeaf30f8ddcbf42ade5ad3ada32f0d1338a08910160405180910390a150505b506000547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690565b6040517f07a2d13a0000000000000000000000000000000000000000000000000000000081526b033b2e3c9fd0803ce800000060048201526000907f0000000000000000000000009d39a5de30e57443bff2a8307a4256c8797a349773ffffffffffffffffffffffffffffffffffffffff16906307a2d13a90602401602060405180830381865afa1580156106b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610472919061098a565b606060005b60208110801561074857507f7355534445203c3e20555344452065786368616e676520726174650000000000816020811061071f5761071f6109a3565b1a60f81b7fff000000000000000000000000000000000000000000000000000000000000001615155b1561075f5780610757816109d2565b9150506106e2565b60008167ffffffffffffffff81111561077a5761077a610a0a565b6040519080825280601f01601f1916602001820160405280156107a4576020820181803683370190505b50905060005b8281101561083b577f7355534445203c3e20555344452065786368616e67652072617465000000000081602081106107e4576107e46109a3565b1a60f81b8282815181106107fa576107fa6109a3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080610833816109d2565b9150506107aa565b5092915050565b60006020828403121561085457600080fd5b5035919050565b600060208083528351808285015260005b818110156108885785810183015185820160400152820161086c565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610250576102506108c7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082610972577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610250576102506108c7565b60006020828403121561099c57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610a0357610a036108c7565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220254a82a6de3df6a7d79ab47266062de9bb7d6f23db603369f38b4baf7f796de864736f6c63430008150033

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

00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009d39a5de30e57443bff2a8307a4256c8797a3497000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000015f90000000000000000000000000000000000000000000000000000000000000001b7355534445203c3e20555344452065786368616e676520726174650000000000

-----Decoded View---------------
Arg [0] : infoName_ (string): sUSDE <> USDE exchange rate
Arg [1] : rateSource_ (address): 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497
Arg [2] : minUpdateDiffPercent_ (uint256): 10
Arg [3] : minHeartBeat_ (uint256): 90000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000009d39a5de30e57443bff2a8307a4256c8797a3497
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000015f90
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [5] : 7355534445203c3e20555344452065786368616e676520726174650000000000


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.