ETH Price: $1,959.95 (+2.02%)
 

Overview

ETH Balance

0.40754367878581208 ETH

Eth Value

$798.77 (@ $1,959.95/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Addresses163618412023-01-08 11:42:231147 days ago1673178143IN
MahaDAO: CollSurplusPool
0 ETH0.0020519620

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer216736042025-01-21 14:57:23403 days ago1737471443
MahaDAO: CollSurplusPool
0.95685159 ETH
Transfer192703822024-02-20 17:24:47739 days ago1708449887
MahaDAO: CollSurplusPool
0.24716386 ETH
Transfer192679002024-02-20 9:01:59739 days ago1708419719
MahaDAO: CollSurplusPool
0.24716386 ETH
Transfer191950972024-02-10 3:40:47749 days ago1707536447
MahaDAO: CollSurplusPool
0.1651755 ETH
Transfer179522032023-08-19 23:50:23923 days ago1692489023
MahaDAO: CollSurplusPool
0.95685159 ETH
Transfer179269352023-08-16 10:56:47927 days ago1692183407
MahaDAO: CollSurplusPool
0.40754367 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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xbAf2Cc89...5C7966F8A
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CollSurplusPool

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

import "./Interfaces/ICollSurplusPool.sol";
import "./Dependencies/SafeMath.sol";
import "./Dependencies/Ownable.sol";
import "./Dependencies/CheckContract.sol";

contract CollSurplusPool is Ownable, CheckContract, ICollSurplusPool {
    using SafeMath for uint256;

    string public constant NAME = "CollSurplusPool";

    address public borrowerOperationsAddress;
    address public troveManagerAddress;
    address public activePoolAddress;

    // deposited ether tracker
    uint256 internal ETH;
    // Collateral surplus claimable by trove owners
    mapping(address => uint256) internal balances;

    // --- Contract setters ---

    function setAddresses(
        address _borrowerOperationsAddress,
        address _troveManagerAddress,
        address _activePoolAddress
    ) external override onlyOwner {
        checkContract(_borrowerOperationsAddress);
        checkContract(_troveManagerAddress);
        checkContract(_activePoolAddress);

        borrowerOperationsAddress = _borrowerOperationsAddress;
        troveManagerAddress = _troveManagerAddress;
        activePoolAddress = _activePoolAddress;

        emit BorrowerOperationsAddressChanged(_borrowerOperationsAddress);
        emit TroveManagerAddressChanged(_troveManagerAddress);
        emit ActivePoolAddressChanged(_activePoolAddress);

        _renounceOwnership();
    }

    /* Returns the ETH state variable at ActivePool address.
       Not necessarily equal to the raw ether balance - ether can be forcibly sent to contracts. */
    function getETH() external view override returns (uint256) {
        return ETH;
    }

    function getCollateral(address _account) external view override returns (uint256) {
        return balances[_account];
    }

    // --- Pool functionality ---

    function accountSurplus(address _account, uint256 _amount) external override {
        _requireCallerIsTroveManager();

        uint256 newAmount = balances[_account].add(_amount);
        balances[_account] = newAmount;

        emit CollBalanceUpdated(_account, newAmount);
    }

    function claimColl(address _account) external override {
        _requireCallerIsBorrowerOperations();
        uint256 claimableColl = balances[_account];
        require(claimableColl > 0, "CollSurplusPool: No collateral available to claim");

        balances[_account] = 0;
        emit CollBalanceUpdated(_account, 0);

        ETH = ETH.sub(claimableColl);
        emit EtherSent(_account, claimableColl);

        (bool success, ) = _account.call{value: claimableColl}("");
        require(success, "CollSurplusPool: sending ETH failed");
    }

    // --- 'require' functions ---

    function _requireCallerIsBorrowerOperations() internal view {
        require(
            msg.sender == borrowerOperationsAddress,
            "CollSurplusPool: Caller is not Borrower Operations"
        );
    }

    function _requireCallerIsTroveManager() internal view {
        require(msg.sender == troveManagerAddress, "CollSurplusPool: Caller is not TroveManager");
    }

    function _requireCallerIsActivePool() internal view {
        require(msg.sender == activePoolAddress, "CollSurplusPool: Caller is not Active Pool");
    }

    // --- Fallback function ---

    receive() external payable {
        _requireCallerIsActivePool();
        ETH = ETH.add(msg.value);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

interface ICollSurplusPool {
    // --- Events ---

    event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress);
    event TroveManagerAddressChanged(address _newTroveManagerAddress);
    event ActivePoolAddressChanged(address _newActivePoolAddress);

    event CollBalanceUpdated(address indexed _account, uint256 _newBalance);
    event EtherSent(address _to, uint256 _amount);

    // --- Contract setters ---

    function setAddresses(
        address _borrowerOperationsAddress,
        address _troveManagerAddress,
        address _activePoolAddress
    ) external;

    function getETH() external view returns (uint256);

    function getCollateral(address _account) external view returns (uint256);

    function accountSurplus(address _account, uint256 _amount) external;

    function claimColl(address _account) external;
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

/**
 * Based on OpenZeppelin's SafeMath:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol
 *
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

/**
 * Based on OpenZeppelin's Ownable contract:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.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.
 *
 * 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.
 */
contract Ownable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     *
     * NOTE: This function is not safe, as it doesn’t check owner is calling it.
     * Make sure you check it before calling it.
     */
    function _renounceOwnership() internal {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

contract CheckContract {
    /**
     * Check that the account is an already deployed non-destroyed contract.
     * See: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L12
     */
    function checkContract(address _account) internal view {
        require(_account != address(0), "Account cannot be zero address");

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(_account)
        }
        require(size > 0, "Account code size cannot be zero");
    }
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newActivePoolAddress","type":"address"}],"name":"ActivePoolAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newBorrowerOperationsAddress","type":"address"}],"name":"BorrowerOperationsAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_newBalance","type":"uint256"}],"name":"CollBalanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"EtherSent","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":false,"internalType":"address","name":"_newTroveManagerAddress","type":"address"}],"name":"TroveManagerAddressChanged","type":"event"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"accountSurplus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activePoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowerOperationsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimColl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_borrowerOperationsAddress","type":"address"},{"internalType":"address","name":"_troveManagerAddress","type":"address"},{"internalType":"address","name":"_activePoolAddress","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"troveManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x608060405234801561001057600080fd5b50600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3610ca38061005f6000396000f3fe6080604052600436106100ab5760003560e01c80639b56d6c9116100645780639b56d6c914610195578063a3f4df7e146101b5578063b08bc722146101d7578063b32beb5b146101ec578063b7f8cf9b1461020c578063f2fde38b14610221576100ca565b806314f6c3be146100cf578063363bf964146100fa5780633f10abab1461011c5780635a4d28bb1461013c5780638da5cb5b1461015e5780638f32d59b14610173576100ca565b366100ca576100b8610241565b6004546100c59034610276565b600455005b600080fd5b3480156100db57600080fd5b506100e46102ac565b6040516100f19190610933565b60405180910390f35b34801561010657600080fd5b5061011a61011536600461088d565b6102b2565b005b34801561012857600080fd5b5061011a6101373660046108cf565b6103e1565b34801561014857600080fd5b50610151610468565b6040516100f191906108fb565b34801561016a57600080fd5b50610151610477565b34801561017f57600080fd5b50610188610486565b6040516100f19190610928565b3480156101a157600080fd5b506100e46101b0366004610873565b610497565b3480156101c157600080fd5b506101ca6104b6565b6040516100f1919061093c565b3480156101e357600080fd5b506101516104e1565b3480156101f857600080fd5b5061011a610207366004610873565b6104f0565b34801561021857600080fd5b50610151610644565b34801561022d57600080fd5b5061011a61023c366004610873565b610653565b6003546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610a5d565b60405180910390fd5b565b6000806102838385610c28565b9050838110156102a55760405162461bcd60e51b815260040161026b90610a26565b9392505050565b60045490565b6102ba610486565b6102d65760405162461bcd60e51b815260040161026b90610ade565b6102df836106a9565b6102e8826106a9565b6102f1816106a9565b600180546001600160a01b038086166001600160a01b0319928316179092556002805485841690831617905560038054928416929091169190911790556040517f3ca631ffcd2a9b5d9ae18543fc82f58eb4ca33af9e6ab01b7a8e95331e6ed9859061035e9085906108fb565b60405180910390a17f143219c9e69b09e07e095fcc889b43d8f46ca892bba65f08dc3a0050869a56788260405161039591906108fb565b60405180910390a17f78f058b189175430c48dc02699e3a0031ea4ff781536dc2fab847de4babdd882816040516103cc91906108fb565b60405180910390a16103dc6106f2565b505050565b6103e961073c565b6001600160a01b03821660009081526005602052604081205461040c9083610276565b6001600160a01b0384166000818152600560205260409081902083905551919250907ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f209061045b908490610933565b60405180910390a2505050565b6002546001600160a01b031681565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001600160a01b0381166000908152600560205260409020545b919050565b6040518060400160405280600f81526020016e10dbdb1b14dd5c9c1b1d5cd41bdbdb608a1b81525081565b6003546001600160a01b031681565b6104f8610766565b6001600160a01b0381166000908152600560205260409020548061052e5760405162461bcd60e51b815260040161026b9061098f565b6001600160a01b038216600081815260056020526040808220829055517ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f209161057691610933565b60405180910390a260045461058b9082610790565b6004556040517f6109e2559dfa766aaec7118351d48a523f0a4157f49c8d68749c8ac41318ad12906105c0908490849061090f565b60405180910390a16000826001600160a01b0316826040516105e1906108f8565b60006040518083038185875af1925050503d806000811461061e576040519150601f19603f3d011682016040523d82523d6000602084013e610623565b606091505b50509050806103dc5760405162461bcd60e51b815260040161026b90610b13565b6001546001600160a01b031681565b61065b610486565b6106775760405162461bcd60e51b815260040161026b90610ade565b6001600160a01b03811661069d5760405162461bcd60e51b815260040161026b906109e0565b6106a6816107d2565b50565b6001600160a01b0381166106cf5760405162461bcd60e51b815260040161026b90610aa7565b803b806106ee5760405162461bcd60e51b815260040161026b90610b56565b5050565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610bdd565b6001546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610b8b565b60006102a583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610822565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081848411156108465760405162461bcd60e51b815260040161026b919061093c565b5060006108538486610c40565b95945050505050565b80356001600160a01b03811681146104b157600080fd5b600060208284031215610884578081fd5b6102a58261085c565b6000806000606084860312156108a1578182fd5b6108aa8461085c565b92506108b86020850161085c565b91506108c66040850161085c565b90509250925092565b600080604083850312156108e1578182fd5b6108ea8361085c565b946020939093013593505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b6000602080835283518082850152825b818110156109685785810183015185820160400152820161094c565b818111156109795783604083870101525b50601f01601f1916929092016040019392505050565b60208082526031908201527f436f6c6c537572706c7573506f6f6c3a204e6f20636f6c6c61746572616c20616040820152707661696c61626c6520746f20636c61696d60781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602a908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74204160408201526918dd1a5d9948141bdbdb60b21b606082015260800190565b6020808252601e908201527f4163636f756e742063616e6e6f74206265207a65726f20616464726573730000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f436f6c6c537572706c7573506f6f6c3a2073656e64696e6720455448206661696040820152621b195960ea1b606082015260800190565b6020808252818101527f4163636f756e7420636f64652073697a652063616e6e6f74206265207a65726f604082015260600190565b60208082526032908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f7420426040820152716f72726f776572204f7065726174696f6e7360701b606082015260800190565b6020808252602b908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74205460408201526a3937bb32a6b0b730b3b2b960a91b606082015260800190565b60008219821115610c3b57610c3b610c57565b500190565b600082821015610c5257610c52610c57565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220d10f6995125b5204acc8484199fb4d709ba7b0b897a8730de94e1923829ec8d564736f6c63430008000033

Deployed Bytecode

0x6080604052600436106100ab5760003560e01c80639b56d6c9116100645780639b56d6c914610195578063a3f4df7e146101b5578063b08bc722146101d7578063b32beb5b146101ec578063b7f8cf9b1461020c578063f2fde38b14610221576100ca565b806314f6c3be146100cf578063363bf964146100fa5780633f10abab1461011c5780635a4d28bb1461013c5780638da5cb5b1461015e5780638f32d59b14610173576100ca565b366100ca576100b8610241565b6004546100c59034610276565b600455005b600080fd5b3480156100db57600080fd5b506100e46102ac565b6040516100f19190610933565b60405180910390f35b34801561010657600080fd5b5061011a61011536600461088d565b6102b2565b005b34801561012857600080fd5b5061011a6101373660046108cf565b6103e1565b34801561014857600080fd5b50610151610468565b6040516100f191906108fb565b34801561016a57600080fd5b50610151610477565b34801561017f57600080fd5b50610188610486565b6040516100f19190610928565b3480156101a157600080fd5b506100e46101b0366004610873565b610497565b3480156101c157600080fd5b506101ca6104b6565b6040516100f1919061093c565b3480156101e357600080fd5b506101516104e1565b3480156101f857600080fd5b5061011a610207366004610873565b6104f0565b34801561021857600080fd5b50610151610644565b34801561022d57600080fd5b5061011a61023c366004610873565b610653565b6003546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610a5d565b60405180910390fd5b565b6000806102838385610c28565b9050838110156102a55760405162461bcd60e51b815260040161026b90610a26565b9392505050565b60045490565b6102ba610486565b6102d65760405162461bcd60e51b815260040161026b90610ade565b6102df836106a9565b6102e8826106a9565b6102f1816106a9565b600180546001600160a01b038086166001600160a01b0319928316179092556002805485841690831617905560038054928416929091169190911790556040517f3ca631ffcd2a9b5d9ae18543fc82f58eb4ca33af9e6ab01b7a8e95331e6ed9859061035e9085906108fb565b60405180910390a17f143219c9e69b09e07e095fcc889b43d8f46ca892bba65f08dc3a0050869a56788260405161039591906108fb565b60405180910390a17f78f058b189175430c48dc02699e3a0031ea4ff781536dc2fab847de4babdd882816040516103cc91906108fb565b60405180910390a16103dc6106f2565b505050565b6103e961073c565b6001600160a01b03821660009081526005602052604081205461040c9083610276565b6001600160a01b0384166000818152600560205260409081902083905551919250907ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f209061045b908490610933565b60405180910390a2505050565b6002546001600160a01b031681565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001600160a01b0381166000908152600560205260409020545b919050565b6040518060400160405280600f81526020016e10dbdb1b14dd5c9c1b1d5cd41bdbdb608a1b81525081565b6003546001600160a01b031681565b6104f8610766565b6001600160a01b0381166000908152600560205260409020548061052e5760405162461bcd60e51b815260040161026b9061098f565b6001600160a01b038216600081815260056020526040808220829055517ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f209161057691610933565b60405180910390a260045461058b9082610790565b6004556040517f6109e2559dfa766aaec7118351d48a523f0a4157f49c8d68749c8ac41318ad12906105c0908490849061090f565b60405180910390a16000826001600160a01b0316826040516105e1906108f8565b60006040518083038185875af1925050503d806000811461061e576040519150601f19603f3d011682016040523d82523d6000602084013e610623565b606091505b50509050806103dc5760405162461bcd60e51b815260040161026b90610b13565b6001546001600160a01b031681565b61065b610486565b6106775760405162461bcd60e51b815260040161026b90610ade565b6001600160a01b03811661069d5760405162461bcd60e51b815260040161026b906109e0565b6106a6816107d2565b50565b6001600160a01b0381166106cf5760405162461bcd60e51b815260040161026b90610aa7565b803b806106ee5760405162461bcd60e51b815260040161026b90610b56565b5050565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610bdd565b6001546001600160a01b031633146102745760405162461bcd60e51b815260040161026b90610b8b565b60006102a583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610822565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081848411156108465760405162461bcd60e51b815260040161026b919061093c565b5060006108538486610c40565b95945050505050565b80356001600160a01b03811681146104b157600080fd5b600060208284031215610884578081fd5b6102a58261085c565b6000806000606084860312156108a1578182fd5b6108aa8461085c565b92506108b86020850161085c565b91506108c66040850161085c565b90509250925092565b600080604083850312156108e1578182fd5b6108ea8361085c565b946020939093013593505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b6000602080835283518082850152825b818110156109685785810183015185820160400152820161094c565b818111156109795783604083870101525b50601f01601f1916929092016040019392505050565b60208082526031908201527f436f6c6c537572706c7573506f6f6c3a204e6f20636f6c6c61746572616c20616040820152707661696c61626c6520746f20636c61696d60781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602a908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74204160408201526918dd1a5d9948141bdbdb60b21b606082015260800190565b6020808252601e908201527f4163636f756e742063616e6e6f74206265207a65726f20616464726573730000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f436f6c6c537572706c7573506f6f6c3a2073656e64696e6720455448206661696040820152621b195960ea1b606082015260800190565b6020808252818101527f4163636f756e7420636f64652073697a652063616e6e6f74206265207a65726f604082015260600190565b60208082526032908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f7420426040820152716f72726f776572204f7065726174696f6e7360701b606082015260800190565b6020808252602b908201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74205460408201526a3937bb32a6b0b730b3b2b960a91b606082015260800190565b60008219821115610c3b57610c3b610c57565b500190565b600082821015610c5257610c52610c57565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220d10f6995125b5204acc8484199fb4d709ba7b0b897a8730de94e1923829ec8d564736f6c63430008000033

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

OVERVIEW

A contract to hold any excess ETH in the case of a redeemption

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.