ETH Price: $3,264.19 (-2.28%)
Gas: 4.17 Gwei

Contract

0x4265f5D6c0cF127d733EeFA16D66d0df4b650D53
 

Overview

ETH Balance

841.072802025894202567 ETH

Eth Value

$2,745,423.68 (@ $3,264.19/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x109350813850574731abc0dbcf92391144b1ec3cab48560f843f8402ee375cbe Withdraw Eth(pending)2024-12-23 1:15:045 hrs ago1734916504IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x18f47c9e296cfa2c5b9ac8b8ffde6255a474ca00b5bfcc0771d10eb4b2df2566 Withdraw Eth(pending)2024-12-22 6:56:5323 hrs ago1734850613IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xcc6364518f1f0423c10d64725d2e82a2fcc37e0ad71fe793b600ab4176d6a53f Withdraw Eth(pending)2024-12-22 3:12:3827 hrs ago1734837158IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xc85ae68ada62fb669e3d6562950ae86452c306119942bd68458cc5e426f87927 Commit De USD(pending)2024-12-22 2:39:1927 hrs ago1734835159IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x6906e45972f9335af4192c5d7e476c9771471cc415ff23d78ad4fd04fafc4a4f Commit De USD(pending)2024-12-22 2:39:1927 hrs ago1734835159IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xe2a0e8f9d8be31c1853dcda568dc0b1f4c2f2efd3652610c51d8f97991b825e5 Commit De USD(pending)2024-12-22 2:39:1927 hrs ago1734835159IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xc75720f3a0dbd9a496356d1adb1ba4ea5beca39fb4906341c327a7d914cff625 Commit De USD(pending)2024-12-22 1:41:1428 hrs ago1734831674IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x843ad93a9fa50d12bd09f1e24fa2b5424233bb0a87227fde7ed1fafabd0c8120 Commit De USD(pending)2024-12-22 1:37:4029 hrs ago1734831460IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xf7ea7571515d852e69d42cef1045de30528e41fdba9b36b1fc08778792570dad Withdraw Eth(pending)2024-12-22 1:30:1429 hrs ago1734831014IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xc8f7f99fcef5de015caefacfc57abea33652ea8e29d193841c92a75522666adf Withdraw Eth(pending)2024-12-22 1:29:5429 hrs ago1734830994IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x8d08e2e2a3d682c45f5084a9e86bb88681349a0d107ca41a7367ffe51e831dce Commit De USD(pending)2024-12-22 1:29:4229 hrs ago1734830982IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x6b77b094aa58d699c9c6a89070fca60ccf24a6e3e35c382e4e94b78ed5e239be Commit De USD(pending)2024-12-15 23:49:577 days ago1734306597IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x4065f600aa6950af6badede979f916ebec7fd9544ea38eda37f6f806f08defdb Commit De USD(pending)2024-12-15 1:29:148 days ago1734226154IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x4694e0e6402fdf946934665cd3c2054427b240697b818a31ab3baa48d3969b19 Commit De USD(pending)2024-12-15 1:22:168 days ago1734225736IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xc54bb46f4fb85ea068cf37d4b3eb8ae0c7cb38899f9bfea5d612ea436778867a Commit De USD(pending)2024-12-15 1:19:268 days ago1734225566IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x4691452fa2b41139ff40820cdf164f842297adf19e03ec4f173a65836decc7e4 Commit De USD(pending)2024-12-15 1:19:268 days ago1734225566IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x32476089e8a0907a5780ffc5dbb17cf5bb6c0de50c52e594a339f58e23c81d69 Commit De USD(pending)2024-12-15 1:18:298 days ago1734225509IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x98da9b0be44bf10615680d7599fe11598f727c74ff0c99a595e4eede9f3771fd Commit De USD(pending)2024-12-08 3:07:1615 days ago1733627236IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x5e0b1b783a942822fe536bb907abfd4538c7426ffac394517fd6022a6e4e6617 Commit De USD(pending)2024-12-08 2:33:2115 days ago1733625201IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x22f9802d19b24cf33eb45bbb14fdc12e82e1d4170421e79f27fa9bf438886276 Commit De USD(pending)2024-12-08 2:25:0515 days ago1733624705IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x4d4853d2c1bb8a617a337be0ba8223110a570ba5f6bfa656bf00db6ac8289988 Commit De USD(pending)2024-12-08 2:18:4815 days ago1733624328IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xacecff4eda5cf377045389e1002489c55d4bf47fd558b62d7b687b2d20e43ab6 Commit De USD(pending)2024-12-08 2:15:1715 days ago1733624117IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x4d19e853b4865f7c1b367bcad3f5c17daf4547c5d8d94a764e7df16f2d34f27c Commit De USD(pending)2024-12-08 2:14:0715 days ago1733624047IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0x605ea9ac31e8307750408613b354b610232591f4d716acd243a4271446e8c31f Commit De USD(pending)2024-12-08 2:13:2015 days ago1733624000IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
0xe5f15f4c79657675991646e599a29fbe2ebe0ad0bcdb5b5b266388ab7d9176cc Commit De USD(pending)2024-12-07 0:01:3016 days ago1733529690IN
0x4265f5D6...f4b650D53
0 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214634282024-12-23 6:34:115 mins ago1734935651
0x4265f5D6...f4b650D53
0.029987 ETH
214634282024-12-23 6:34:115 mins ago1734935651
0x4265f5D6...f4b650D53
0.027 ETH
214634122024-12-23 6:30:598 mins ago1734935459
0x4265f5D6...f4b650D53
0.0266 ETH
214633972024-12-23 6:27:5911 mins ago1734935279
0x4265f5D6...f4b650D53
0.026824 ETH
214633562024-12-23 6:19:3519 mins ago1734934775
0x4265f5D6...f4b650D53
0.034213 ETH
214633242024-12-23 6:13:1126 mins ago1734934391
0x4265f5D6...f4b650D53
0.025294 ETH
214632912024-12-23 6:06:3532 mins ago1734933995
0x4265f5D6...f4b650D53
0.11000267 ETH
214632832024-12-23 6:04:5934 mins ago1734933899
0x4265f5D6...f4b650D53
0.029745 ETH
214632602024-12-23 6:00:2338 mins ago1734933623
0x4265f5D6...f4b650D53
0.1 ETH
214632492024-12-23 5:58:1141 mins ago1734933491
0x4265f5D6...f4b650D53
0.11 ETH
214632402024-12-23 5:56:2342 mins ago1734933383
0x4265f5D6...f4b650D53
0.04 ETH
214632352024-12-23 5:55:2343 mins ago1734933323
0x4265f5D6...f4b650D53
0.042154 ETH
214631952024-12-23 5:47:2351 mins ago1734932843
0x4265f5D6...f4b650D53
0.026704 ETH
214631852024-12-23 5:45:2353 mins ago1734932723
0x4265f5D6...f4b650D53
0.026704 ETH
214629382024-12-23 4:55:351 hr ago1734929735
0x4265f5D6...f4b650D53
0.055 ETH
214628932024-12-23 4:46:351 hr ago1734929195
0x4265f5D6...f4b650D53
0.16469 ETH
214628152024-12-23 4:30:592 hrs ago1734928259
0x4265f5D6...f4b650D53
0.05 ETH
214627992024-12-23 4:27:352 hrs ago1734928055
0x4265f5D6...f4b650D53
0.0482655 ETH
214626552024-12-23 3:58:472 hrs ago1734926327
0x4265f5D6...f4b650D53
0.035207 ETH
214626552024-12-23 3:58:472 hrs ago1734926327
0x4265f5D6...f4b650D53
1 ETH
214626162024-12-23 3:50:592 hrs ago1734925859
0x4265f5D6...f4b650D53
0.034 ETH
214625882024-12-23 3:45:232 hrs ago1734925523
0x4265f5D6...f4b650D53
0.11 ETH
214625762024-12-23 3:42:592 hrs ago1734925379
0x4265f5D6...f4b650D53
0.05622418 ETH
214625572024-12-23 3:39:113 hrs ago1734925151
0x4265f5D6...f4b650D53
0.15 ETH
214625402024-12-23 3:35:473 hrs ago1734924947
0x4265f5D6...f4b650D53
1 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElixirCommitsAndWithdraw

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : ElixirCommitsAndWithdraw.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.20;

import {Ownable} from "openzeppelin/access/Ownable.sol";
import {ElixirDeUSDCommits} from "src/ElixirDeUSDCommits.sol";
import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";
import {SafeERC20} from "openzeppelin/token/ERC20/utils/SafeERC20.sol";
import {ElixirDeposit} from "src/ElixirDeposit.sol";

/// @title Elixir withdraw contract
/// @author The Elixir Team
/// @notice This contract is used to withdraw funds
contract ElixirCommitsAndWithdraw is Ownable {
    using SafeERC20 for IERC20;

    /*//////////////////////////////////////////////////////////////
                                VARIABLES
    //////////////////////////////////////////////////////////////*/

    /// @notice The address of the ElixirDeposit contract
    ElixirDeposit public elixirDepositContract;

    /// @notice The address of the DepositContract.
    ElixirDeUSDCommits public deusdCommitsContract;

    /// @notice The address of the stETH token
    IERC20 public token;

    /// @notice Mapping of address to committed ETH to deUSD
    mapping(address user => uint256 withdrawn) public committedEth;

    /// @notice Mapping of address to withdrawn ETH
    mapping(address user => uint256 withdrawn) public withdrawn;

    /// @notice The pause status of commit
    bool public commitsPaused;

    /// @notice The pause status of withdrawals. True if withdrawals are paused.
    bool public withdrawalsPaused;

    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when user commits an amount
    /// @param caller The caller of the commit function.
    /// @param amount The token amount committed and transferred.
    event Commit(address indexed caller, uint256 indexed amount);

    /// @notice Emitted when a user withdraws funds.
    /// @param withdrawer The withdrawer.
    /// @param amount The amount withdrawn.
    event Withdraw(address indexed withdrawer, uint256 indexed amount);

    /*//////////////////////////////////////////////////////////////
                                 ERRORS
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when withdraws are paused.
    error WithdrawsPaused();

    /// @notice Emitted when a withdraw fails.
    error WithdrawFailed();

    /// @notice Emitted when the user doesn't have enough funds to withdraw.
    error InsufficientFunds();

    /// @notice Emitted when commits are paused.
    error CommitsPaused();

    /// @notice Emitted when commit exceeds current deposit balance.
    error CommitExceedsBalance();

    /*//////////////////////////////////////////////////////////////
                                MODIFIERS
    //////////////////////////////////////////////////////////////*/

    /// @notice Reverts when commits are paused.
    modifier whenCommitNotPaused() {
        if (commitsPaused) revert CommitsPaused();
        _;
    }

    /// @notice Reverts when withdraws are paused.
    modifier whenWithdrawNotPaused() {
        if (withdrawalsPaused) revert WithdrawsPaused();
        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    /// @notice Set the settings and parameters
    /// @param _commitsContract The address of the commits contract
    /// @param _owner The address of the owner of the contract
    constructor(address _owner, address _depositContract, address _commitsContract, address _token) Ownable(_owner) {
        elixirDepositContract = ElixirDeposit(_depositContract);
        deusdCommitsContract = ElixirDeUSDCommits(_commitsContract);
        token = IERC20(_token);
    }

    /*//////////////////////////////////////////////////////////////
                              VIEW FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Get user's unused balance from DeusdCommitsContract contract
    /// @param user The address of user with unused balance
    function committed(address user) public view returns (uint256 amount) {
        return deusdCommitsContract.committed(user) + committedEth[user];
    }

    /// @notice Get user's unused balance from DeusdCommitsContract contract
    /// @param user The address of user with unused balance
    function unusedBalance(address user) public view returns (uint256 amount) {
        return elixirDepositContract.deposits(user) - committed(user) - withdrawn[user];
    }

    /*//////////////////////////////////////////////////////////////
                            EXTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Commit elxETH to deUSD
    /// @param commitAmount amount of elxETH to commit to deUSD (18 decimals)
    function commitDeUSD(uint256 commitAmount) external whenCommitNotPaused {
        if (commitAmount > unusedBalance(msg.sender)) revert CommitExceedsBalance();
        committedEth[msg.sender] += commitAmount;
        token.safeTransferFrom(
            elixirDepositContract.controller(), deusdCommitsContract.commitsController(), commitAmount
        );
        emit Commit(msg.sender, commitAmount);
    }

    /// @notice Withdraw ETH that was deposited in the ElixirDeposit contract
    /// @param amount The amount of ETH to withdraw
    function withdrawEth(uint256 amount) external whenWithdrawNotPaused {
        if (amount > unusedBalance(msg.sender)) revert InsufficientFunds();

        withdrawn[msg.sender] += amount;

        (bool sent,) = msg.sender.call{value: amount}("");
        if (!sent) revert WithdrawFailed();

        emit Withdraw(msg.sender, amount);
    }

    /// @notice Withdraw unclaimed ETH
    /// @param amount The amount of ETH to withdraw
    function withdrawOwnerEth(uint256 amount) external onlyOwner {
        (bool sent,) = msg.sender.call{value: amount}("");
        if (!sent) revert WithdrawFailed();
    }

    /// @notice Pause withdraws, callable by the owner
    /// @param pauseWithdraw True if withdraws are to be paused, false if they are to be unpaused
    function pauseWithdraws(bool pauseWithdraw) external onlyOwner {
        withdrawalsPaused = pauseWithdraw;
    }

    /// @notice Pause commit, callable by the owner
    /// @param pauseCommit True if mints are to be paused, false if they are to be unpaused
    function pauseCommits(bool pauseCommit) external onlyOwner {
        commitsPaused = pauseCommit;
    }

    /// @notice Receive ether.
    receive() external payable {}
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : ElixirDeUSDCommits.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.20;

import {Ownable} from "openzeppelin/access/Ownable.sol";
import {ElixirDeposit} from "src/ElixirDeposit.sol";
import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";
import {SafeERC20} from "openzeppelin/token/ERC20/utils/SafeERC20.sol";

/// @title Elixir's committed elxETH to deUSD contract
/// @author The Elixir Team
/// @notice This contract is used to track elxETH deposits committed to deUSD
contract ElixirDeUSDCommits is Ownable {
    using SafeERC20 for IERC20;

    /*//////////////////////////////////////////////////////////////
                                VARIABLES
    //////////////////////////////////////////////////////////////*/

    /// @notice The address of the Elixir multisig wallet with control of elxETH funds committed to deUSD
    address public commitsController;

    /// @notice The address of the stETH token
    IERC20 public token;

    /// @notice The pause status of commit
    bool public pauseCommits;

    /// @notice The address of the ElixirDeposit contract
    ElixirDeposit public elixirDepositContract;

    /// @notice Mapping of address to committed ETH from ElixirDeposit contract
    mapping(address user => uint256 committed) public committed;

    /*//////////////////////////////////////////////////////////////
                                 EVENTS 
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when user commits an amount
    /// @param caller The caller of the commit function.
    /// @param amount The token amount committed and transferred.
    event Commit(address indexed caller, uint256 indexed amount);

    /*//////////////////////////////////////////////////////////////
                                 ERRORS
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when commits are paused.
    error CommitsPaused();

    /// @notice Emitted when commit exceeds current deposit balance.
    error CommitExceedsBalance();

    /*//////////////////////////////////////////////////////////////
                                MODIFIERS
    //////////////////////////////////////////////////////////////*/

    /// @notice Reverts when commits are paused.
    modifier whenCommitNotPaused() {
        if (pauseCommits) revert CommitsPaused();
        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    /// @notice Constructor for the ElixirDeUSDCommits contract
    /// @param _owner The address of the owner of the contract
    /// @param _elixirDepositContract The address of the ElixirDeposit contract
    constructor(address _owner, address _elixirDepositContract, address _token) Ownable(_owner) {
        elixirDepositContract = ElixirDeposit(_elixirDepositContract);
        token = IERC20(_token);
    }

    /*//////////////////////////////////////////////////////////////
                              VIEW FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Get user's uncommited balance from ElixirDeposit contract
    /// @param user The address of user with uncommited balance
    function uncommittedBalance(address user) public view returns (uint256 amount) {
        return elixirDepositContract.deposits(user) - committed[user];
    }

    /*//////////////////////////////////////////////////////////////
                            EXTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Commit elxETH to deUSD
    /// @param commitAmount amount of elxETH to commit to deUSD (18 decimals)
    function commitDeUSD(uint256 commitAmount) external whenCommitNotPaused {
        if (commitAmount > uncommittedBalance(msg.sender)) revert CommitExceedsBalance();
        committed[msg.sender] += commitAmount;
        token.safeTransferFrom(elixirDepositContract.controller(), commitsController, commitAmount);
        emit Commit(msg.sender, commitAmount);
    }

    /// @notice Pause commit, callable by the owner
    /// @param _pauseCommits True if mints are to be paused, false if they are to be unpaused
    function pause(bool _pauseCommits) external onlyOwner {
        pauseCommits = _pauseCommits;
    }

    /// @notice Set controller address, callable by the owner
    /// @param _controller controller address to be set
    function setCommitsController(address _controller) external onlyOwner {
        commitsController = _controller;
    }
}

File 4 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 6 of 9 : ElixirDeposit.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.20;

import {Ownable} from "openzeppelin/access/Ownable.sol";

/// @title Elixir deposit contract
/// @author The Elixir Team
/// @notice This contract is used to deposit funds
contract ElixirDeposit is Ownable {
    /*//////////////////////////////////////////////////////////////
                                VARIABLES
    //////////////////////////////////////////////////////////////*/

    /// @notice The address of the Elixir multisig wallet with control of funds
    address public controller;

    /// @notice Mapping of address to deposited amount
    mapping(address user => uint256 amount) public deposits;

    /// @notice The pause status of deposits. True if deposits are paused.
    bool public depositsPaused;

    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when a deposit is made.
    /// @param caller The caller of the deposit function, for which tokens are taken from.
    /// @param amount The token amount deposited.
    event Deposit(address indexed caller, uint256 indexed amount);

    /*//////////////////////////////////////////////////////////////
                                 ERRORS
    //////////////////////////////////////////////////////////////*/

    /// @notice Emitted when deposits are paused.
    error DepositsPaused();

    /// @notice Emitted when deposit fails.
    error DepositFailed();

    /*//////////////////////////////////////////////////////////////
                                MODIFIERS
    //////////////////////////////////////////////////////////////*/

    /// @notice Reverts when deposits are paused.
    modifier whenDepositNotPaused() {
        if (depositsPaused) revert DepositsPaused();
        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    /// @notice Constructor for the ElixirDeposit contract
    /// @param _owner The address of the owner of the contract
    constructor(address _owner) Ownable(_owner) {}

    /*//////////////////////////////////////////////////////////////
                             EXTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Deposit funds into the contract
    function deposit() external payable whenDepositNotPaused {
        deposits[msg.sender] += msg.value;

        (bool sent,) = controller.call{value: msg.value}("");
        if (!sent) revert DepositFailed();

        emit Deposit(msg.sender, msg.value);
    }

    /// @notice Pause deposits, callable by the owner
    /// @param pauseDeposits True if deposits are to be paused, false if they are to be unpaused
    function pause(bool pauseDeposits) external onlyOwner {
        depositsPaused = pauseDeposits;
    }

    /// @notice Set controller address, callable by the owner
    /// @param _controller controller address to be set
    function setController(address _controller) external onlyOwner {
        controller = _controller;
    }
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 9 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_depositContract","type":"address"},{"internalType":"address","name":"_commitsContract","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"CommitExceedsBalance","type":"error"},{"inputs":[],"name":"CommitsPaused","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"WithdrawFailed","type":"error"},{"inputs":[],"name":"WithdrawsPaused","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Commit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"commitAmount","type":"uint256"}],"name":"commitDeUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commitsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"committed","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"committedEth","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deusdCommitsContract","outputs":[{"internalType":"contract ElixirDeUSDCommits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"elixirDepositContract","outputs":[{"internalType":"contract ElixirDeposit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pauseCommit","type":"bool"}],"name":"pauseCommits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pauseWithdraw","type":"bool"}],"name":"pauseWithdraws","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"unusedBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawOwnerEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"withdrawn","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50604051610dbd380380610dbd83398101604081905261002f91610117565b836001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610067816100ab565b50600180546001600160a01b039485166001600160a01b0319918216179091556002805493851693821693909317909255600380549190931691161790555061016b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461011257600080fd5b919050565b6000806000806080858703121561012d57600080fd5b610136856100fb565b9350610144602086016100fb565b9250610152604086016100fb565b9150610160606086016100fb565b905092959194509250565b610c438061017a6000396000f3fe6080604052600436106101025760003560e01c8063b3760d5611610095578063d88d9b7011610064578063d88d9b70146102d2578063e9f2838e146102f2578063f2fde38b14610311578063f5691ad414610331578063fc0c546a1461035157600080fd5b8063b3760d561461023b578063be7c274e14610268578063c311d04914610292578063d7a616ec146102b257600080fd5b8063715018a6116100d1578063715018a6146101c85780637af7e787146101dd5780638da5cb5b146101fd5780639c700b701461021b57600080fd5b8063101437d81461010e5780634fa37d151461014b5780635310d8f41461016d5780636ef610921461018d57600080fd5b3661010957005b600080fd5b34801561011a57600080fd5b5060015461012e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015757600080fd5b5061016b610166366004610ae7565b610371565b005b34801561017957600080fd5b5061016b610188366004610b04565b610393565b34801561019957600080fd5b506101ba6101a8366004610b32565b60056020526000908152604090205481565b604051908152602001610142565b3480156101d457600080fd5b5061016b61052e565b3480156101e957600080fd5b5060025461012e906001600160a01b031681565b34801561020957600080fd5b506000546001600160a01b031661012e565b34801561022757600080fd5b5061016b610236366004610b04565b610542565b34801561024757600080fd5b506101ba610256366004610b32565b60046020526000908152604090205481565b34801561027457600080fd5b506006546102829060ff1681565b6040519015158152602001610142565b34801561029e57600080fd5b5061016b6102ad366004610b04565b6105b7565b3480156102be57600080fd5b5061016b6102cd366004610ae7565b6106c7565b3480156102de57600080fd5b506101ba6102ed366004610b32565b6106e2565b3480156102fe57600080fd5b5060065461028290610100900460ff1681565b34801561031d57600080fd5b5061016b61032c366004610b32565b610776565b34801561033d57600080fd5b506101ba61034c366004610b32565b6107b9565b34801561035d57600080fd5b5060035461012e906001600160a01b031681565b61037961085d565b600680549115156101000261ff0019909216919091179055565b60065460ff16156103b757604051630171712b60e41b815260040160405180910390fd5b6103c0336107b9565b8111156103e057604051631aaad59360e01b815260040160405180910390fd5b33600090815260046020526040812080548392906103ff908490610b65565b90915550506001546040805163f77c479160e01b815290516104fe926001600160a01b03169163f77c47919160048083019260209291908290030181865afa15801561044f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104739190610b78565b600260009054906101000a90046001600160a01b03166001600160a01b031663675155926040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea9190610b78565b6003546001600160a01b031691908461088a565b604051819033907f5e1dd8c4451717d5ca4ffbefdada35e22e0871220b9ed9dd03a351f0938c5ed790600090a350565b61053661085d565b61054060006108ea565b565b61054a61085d565b604051600090339083908381818185875af1925050503d806000811461058c576040519150601f19603f3d011682016040523d82523d6000602084013e610591565b606091505b50509050806105b357604051631d42c86760e21b815260040160405180910390fd5b5050565b600654610100900460ff16156105e0576040516318863d4d60e01b815260040160405180910390fd5b6105e9336107b9565b8111156106095760405163356680b760e01b815260040160405180910390fd5b3360009081526005602052604081208054839290610628908490610b65565b9091555050604051600090339083908381818185875af1925050503d806000811461066f576040519150601f19603f3d011682016040523d82523d6000602084013e610674565b606091505b505090508061069657604051631d42c86760e21b815260040160405180910390fd5b604051829033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a35050565b6106cf61085d565b6006805460ff1916911515919091179055565b6001600160a01b038181166000818152600460208190526040808320546002549151630d88d9b760e41b8152928301949094529193919091169063d88d9b7090602401602060405180830381865afa158015610742573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107669190610b95565b6107709190610b65565b92915050565b61077e61085d565b6001600160a01b0381166107ad57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6107b6816108ea565b50565b6001600160a01b0381166000908152600560205260408120546107db836106e2565b60015460405163fc7e286d60e01b81526001600160a01b0386811660048301529091169063fc7e286d90602401602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108499190610b95565b6108539190610bae565b6107709190610bae565b6000546001600160a01b031633146105405760405163118cdaa760e01b81523360048201526024016107a4565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108e490859061093a565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061094f6001600160a01b038416836109a2565b905080516000141580156109745750808060200190518101906109729190610bc1565b155b1561099d57604051635274afe760e01b81526001600160a01b03841660048201526024016107a4565b505050565b60606109b0838360006109b7565b9392505050565b6060814710156109dc5760405163cd78605960e01b81523060048201526024016107a4565b600080856001600160a01b031684866040516109f89190610bde565b60006040518083038185875af1925050503d8060008114610a35576040519150601f19603f3d011682016040523d82523d6000602084013e610a3a565b606091505b5091509150610a4a868383610a54565b9695505050505050565b606082610a6957610a6482610ab0565b6109b0565b8151158015610a8057506001600160a01b0384163b155b15610aa957604051639996b31560e01b81526001600160a01b03851660048201526024016107a4565b50806109b0565b805115610ac05780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80151581146107b657600080fd5b600060208284031215610af957600080fd5b81356109b081610ad9565b600060208284031215610b1657600080fd5b5035919050565b6001600160a01b03811681146107b657600080fd5b600060208284031215610b4457600080fd5b81356109b081610b1d565b634e487b7160e01b600052601160045260246000fd5b8082018082111561077057610770610b4f565b600060208284031215610b8a57600080fd5b81516109b081610b1d565b600060208284031215610ba757600080fd5b5051919050565b8181038181111561077057610770610b4f565b600060208284031215610bd357600080fd5b81516109b081610ad9565b6000825160005b81811015610bff5760208186018101518583015201610be5565b50600092019182525091905056fea264697066735822122027fccaef47b5169e69b10ea0a12c42c3a8875e4b94b860fdf842e4c3fb640c2d64736f6c6343000814003300000000000000000000000000000000f51340906f767c6999fe512b1275955c0000000000000000000000001f75881dc0707b5236f739b5b64a87c211294abb000000000000000000000000652329cc4f00af06a8020b41846d54a439a64620000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84

Deployed Bytecode

0x6080604052600436106101025760003560e01c8063b3760d5611610095578063d88d9b7011610064578063d88d9b70146102d2578063e9f2838e146102f2578063f2fde38b14610311578063f5691ad414610331578063fc0c546a1461035157600080fd5b8063b3760d561461023b578063be7c274e14610268578063c311d04914610292578063d7a616ec146102b257600080fd5b8063715018a6116100d1578063715018a6146101c85780637af7e787146101dd5780638da5cb5b146101fd5780639c700b701461021b57600080fd5b8063101437d81461010e5780634fa37d151461014b5780635310d8f41461016d5780636ef610921461018d57600080fd5b3661010957005b600080fd5b34801561011a57600080fd5b5060015461012e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015757600080fd5b5061016b610166366004610ae7565b610371565b005b34801561017957600080fd5b5061016b610188366004610b04565b610393565b34801561019957600080fd5b506101ba6101a8366004610b32565b60056020526000908152604090205481565b604051908152602001610142565b3480156101d457600080fd5b5061016b61052e565b3480156101e957600080fd5b5060025461012e906001600160a01b031681565b34801561020957600080fd5b506000546001600160a01b031661012e565b34801561022757600080fd5b5061016b610236366004610b04565b610542565b34801561024757600080fd5b506101ba610256366004610b32565b60046020526000908152604090205481565b34801561027457600080fd5b506006546102829060ff1681565b6040519015158152602001610142565b34801561029e57600080fd5b5061016b6102ad366004610b04565b6105b7565b3480156102be57600080fd5b5061016b6102cd366004610ae7565b6106c7565b3480156102de57600080fd5b506101ba6102ed366004610b32565b6106e2565b3480156102fe57600080fd5b5060065461028290610100900460ff1681565b34801561031d57600080fd5b5061016b61032c366004610b32565b610776565b34801561033d57600080fd5b506101ba61034c366004610b32565b6107b9565b34801561035d57600080fd5b5060035461012e906001600160a01b031681565b61037961085d565b600680549115156101000261ff0019909216919091179055565b60065460ff16156103b757604051630171712b60e41b815260040160405180910390fd5b6103c0336107b9565b8111156103e057604051631aaad59360e01b815260040160405180910390fd5b33600090815260046020526040812080548392906103ff908490610b65565b90915550506001546040805163f77c479160e01b815290516104fe926001600160a01b03169163f77c47919160048083019260209291908290030181865afa15801561044f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104739190610b78565b600260009054906101000a90046001600160a01b03166001600160a01b031663675155926040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea9190610b78565b6003546001600160a01b031691908461088a565b604051819033907f5e1dd8c4451717d5ca4ffbefdada35e22e0871220b9ed9dd03a351f0938c5ed790600090a350565b61053661085d565b61054060006108ea565b565b61054a61085d565b604051600090339083908381818185875af1925050503d806000811461058c576040519150601f19603f3d011682016040523d82523d6000602084013e610591565b606091505b50509050806105b357604051631d42c86760e21b815260040160405180910390fd5b5050565b600654610100900460ff16156105e0576040516318863d4d60e01b815260040160405180910390fd5b6105e9336107b9565b8111156106095760405163356680b760e01b815260040160405180910390fd5b3360009081526005602052604081208054839290610628908490610b65565b9091555050604051600090339083908381818185875af1925050503d806000811461066f576040519150601f19603f3d011682016040523d82523d6000602084013e610674565b606091505b505090508061069657604051631d42c86760e21b815260040160405180910390fd5b604051829033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a35050565b6106cf61085d565b6006805460ff1916911515919091179055565b6001600160a01b038181166000818152600460208190526040808320546002549151630d88d9b760e41b8152928301949094529193919091169063d88d9b7090602401602060405180830381865afa158015610742573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107669190610b95565b6107709190610b65565b92915050565b61077e61085d565b6001600160a01b0381166107ad57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6107b6816108ea565b50565b6001600160a01b0381166000908152600560205260408120546107db836106e2565b60015460405163fc7e286d60e01b81526001600160a01b0386811660048301529091169063fc7e286d90602401602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108499190610b95565b6108539190610bae565b6107709190610bae565b6000546001600160a01b031633146105405760405163118cdaa760e01b81523360048201526024016107a4565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108e490859061093a565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061094f6001600160a01b038416836109a2565b905080516000141580156109745750808060200190518101906109729190610bc1565b155b1561099d57604051635274afe760e01b81526001600160a01b03841660048201526024016107a4565b505050565b60606109b0838360006109b7565b9392505050565b6060814710156109dc5760405163cd78605960e01b81523060048201526024016107a4565b600080856001600160a01b031684866040516109f89190610bde565b60006040518083038185875af1925050503d8060008114610a35576040519150601f19603f3d011682016040523d82523d6000602084013e610a3a565b606091505b5091509150610a4a868383610a54565b9695505050505050565b606082610a6957610a6482610ab0565b6109b0565b8151158015610a8057506001600160a01b0384163b155b15610aa957604051639996b31560e01b81526001600160a01b03851660048201526024016107a4565b50806109b0565b805115610ac05780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80151581146107b657600080fd5b600060208284031215610af957600080fd5b81356109b081610ad9565b600060208284031215610b1657600080fd5b5035919050565b6001600160a01b03811681146107b657600080fd5b600060208284031215610b4457600080fd5b81356109b081610b1d565b634e487b7160e01b600052601160045260246000fd5b8082018082111561077057610770610b4f565b600060208284031215610b8a57600080fd5b81516109b081610b1d565b600060208284031215610ba757600080fd5b5051919050565b8181038181111561077057610770610b4f565b600060208284031215610bd357600080fd5b81516109b081610ad9565b6000825160005b81811015610bff5760208186018101518583015201610be5565b50600092019182525091905056fea264697066735822122027fccaef47b5169e69b10ea0a12c42c3a8875e4b94b860fdf842e4c3fb640c2d64736f6c63430008140033

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

00000000000000000000000000000000f51340906f767c6999fe512b1275955c0000000000000000000000001f75881dc0707b5236f739b5b64a87c211294abb000000000000000000000000652329cc4f00af06a8020b41846d54a439a64620000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84

-----Decoded View---------------
Arg [0] : _owner (address): 0x00000000F51340906F767C6999Fe512b1275955C
Arg [1] : _depositContract (address): 0x1F75881DC0707b5236f739b5B64A87c211294Abb
Arg [2] : _commitsContract (address): 0x652329cc4F00Af06a8020B41846d54a439A64620
Arg [3] : _token (address): 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000f51340906f767c6999fe512b1275955c
Arg [1] : 0000000000000000000000001f75881dc0707b5236f739b5b64a87c211294abb
Arg [2] : 000000000000000000000000652329cc4f00af06a8020b41846d54a439a64620
Arg [3] : 000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.