POL Price: $0.457807 (-6.04%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...436425122023-06-07 16:36:16591 days ago1686155776IN
0x904B6EBd...e9DFEdFD5
0 POL0.00455359159.02762807
Set Minter436425122023-06-07 16:36:16591 days ago1686155776IN
0x904B6EBd...e9DFEdFD5
0 POL0.00761058159.02762807

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SurplusMinter

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : SurplusMinter.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity 0.8.15;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../utils/Ownable.sol";
import "../interfaces/IMintableERC20.sol";
import "../interfaces/IBurnableERC20.sol";
import "../interfaces/IERC677Receiver.sol";

/**
 * @title SurplusMinter
 * Managing realized and unrealized BOB surplus from debt-minting use-cases.
 */
contract SurplusMinter is IERC677Receiver, Ownable {
    address public immutable token;

    mapping(address => bool) public isMinter;

    uint256 public surplus; // unrealized surplus

    event UpdateMinter(address indexed minter, bool enabled);
    event WithdrawSurplus(address indexed to, uint256 realized, uint256 unrealized);
    event AddSurplus(address indexed from, uint256 unrealized);

    constructor(address _token) {
        token = _token;
    }

    /**
     * @dev Updates surplus mint permissions for the given address.
     * Callable only by the contract owner.
     * @param _account managed minter account address.
     * @param _enabled true, if enabling surplus minting, false otherwise.
     */
    function setMinter(address _account, bool _enabled) external onlyOwner {
        isMinter[_account] = _enabled;

        emit UpdateMinter(_account, _enabled);
    }

    /**
     * @dev Records potential unrealized surplus.
     * Callable only by the pre-approved surplus minter.
     * Once unrealized surplus is realized, it should be transferred to this contract via transferAndCall.
     * @param _surplus unrealized surplus to add.
     */
    function add(uint256 _surplus) external {
        require(isMinter[msg.sender], "SurplusMinter: not a minter");

        surplus += _surplus;

        emit AddSurplus(msg.sender, _surplus);
    }

    /**
     * @dev ERC677 callback. Converts previously recorded unrealized surplus into the realized one.
     * If converted amount exceeds unrealized surplus, remainder is burnt to account for unrealized interest withdrawn in advance.
     * Callable by anyone.
     * @param _from tokens sender.
     * @param _amount amount of tokens corresponding to realized interest.
     * @param _data optional extra data, encoded uint256 amount of unrealized surplus to convert. Defaults to _amount.
     */
    function onTokenTransfer(address _from, uint256 _amount, bytes calldata _data) external override returns (bool) {
        require(msg.sender == token, "SurplusMinter: invalid caller");

        uint256 unrealized = _amount;
        if (_data.length == 32) {
            unrealized = abi.decode(_data, (uint256));
            require(unrealized <= _amount, "SurplusMinter: invalid value");
        }

        uint256 currentSurplus = surplus;
        if (currentSurplus >= unrealized) {
            unchecked {
                surplus = currentSurplus - unrealized;
            }
        } else {
            IBurnableERC20(token).burn(unrealized - currentSurplus);
            unrealized = currentSurplus;
            surplus = 0;
        }
        emit WithdrawSurplus(address(this), 0, unrealized);

        return true;
    }

    /**
     * @dev Burns potential unrealized surplus.
     * Callable only by the contract owner.
     * Intended to be used for cancelling mistakenly accounted surplus.
     * @param _surplus unrealized surplus to cancel.
     */
    function burn(uint256 _surplus) external onlyOwner {
        require(_surplus <= surplus, "SurplusMinter: exceeds surplus");
        unchecked {
            surplus -= _surplus;
        }
        emit WithdrawSurplus(address(0), 0, _surplus);
    }

    /**
     * @dev Withdraws surplus.
     * Callable only by the contract owner.
     * Withdrawing realized surplus is prioritised, unrealized surplus is minted only
     * if realized surplus is not enough to cover the requested amount.
     * @param _surplus surplus amount to withdraw/mint.
     */
    function withdraw(address _to, uint256 _surplus) external onlyOwner {
        uint256 realized = IERC20(token).balanceOf(address(this));

        if (_surplus > realized) {
            uint256 unrealized = _surplus - realized;
            require(unrealized <= surplus, "SurplusMinter: exceeds surplus");
            unchecked {
                surplus -= unrealized;
            }

            IERC20(token).transfer(_to, realized);
            IMintableERC20(token).mint(_to, unrealized);

            emit WithdrawSurplus(_to, realized, unrealized);
        } else {
            IERC20(token).transfer(_to, _surplus);

            emit WithdrawSurplus(_to, _surplus, 0);
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity 0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol" as OZOwnable;

/**
 * @title Ownable
 */
contract Ownable is OZOwnable.Ownable {
    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view override {
        require(_isOwner(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Tells if caller is the contract owner.
     * @return true, if caller is the contract owner.
     */
    function _isOwner() internal view virtual returns (bool) {
        return owner() == _msgSender();
    }
}

File 4 of 8 : IMintableERC20.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity 0.8.15;

interface IMintableERC20 {
    function mint(address to, uint256 amount) external;
}

File 5 of 8 : IBurnableERC20.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity 0.8.15;

interface IBurnableERC20 {
    function burn(uint256 amount) external;
    function burnFrom(address user, uint256 amount) external;
}

File 6 of 8 : IERC677Receiver.sol
// SPDX-License-Identifier: CC0-1.0

pragma solidity 0.8.15;

interface IERC677Receiver {
    function onTokenTransfer(address from, uint256 value, bytes calldata data) external returns (bool);
}

File 7 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        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);
    }
}

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@quickswap/=lib/@quickswap/contracts/",
    "@uniswap/=lib/@uniswap/",
    "@zkbob/=lib/zkbob-contracts/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true
      }
    }
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"unrealized","type":"uint256"}],"name":"AddSurplus","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":"minter","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"UpdateMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"realized","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unrealized","type":"uint256"}],"name":"WithdrawSurplus","type":"event"},{"inputs":[{"internalType":"uint256","name":"_surplus","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_surplus","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"surplus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","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":"_to","type":"address"},{"internalType":"uint256","name":"_surplus","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b50604051610cb4380380610cb483398101604081905261002f91610099565b61003833610049565b6001600160a01b03166080526100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ab57600080fd5b81516001600160a01b03811681146100c257600080fd5b9392505050565b608051610ba661010e600039600081816101a30152818161032401528181610418015281816105d9015281816106e50152818161077901526108330152610ba66000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063a4c0ed3611610071578063a4c0ed361461011f578063aa271e1a14610142578063cf456ae714610165578063f2fde38b14610178578063f3fef3a31461018b578063fc0c546a1461019e57600080fd5b80631003e2d2146100ae57806313888565146100c357806342966c68146100df578063715018a6146100f25780638da5cb5b146100fa575b600080fd5b6100c16100bc366004610988565b6101c5565b005b6100cc60025481565b6040519081526020015b60405180910390f35b6100c16100ed366004610988565b610279565b6100c1610303565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100d6565b61013261012d3660046109bd565b610317565b60405190151581526020016100d6565b610132610150366004610a44565b60016020526000908152604090205460ff1681565b6100c1610173366004610a74565b6104d9565b6100c1610186366004610a44565b610540565b6100c1610199366004610aab565b6105b9565b6101077f000000000000000000000000000000000000000000000000000000000000000081565b3360009081526001602052604090205460ff166102295760405162461bcd60e51b815260206004820152601b60248201527f537572706c75734d696e7465723a206e6f742061206d696e746572000000000060448201526064015b60405180910390fd5b806002600082825461023b9190610aeb565b909155505060405181815233907f6a0bbc4943fe21fe707132cea1bff78c79665f23b0c0d6cf0d44c9b572df490a906020015b60405180910390a250565b6102816108d8565b6002548111156102d35760405162461bcd60e51b815260206004820152601e60248201527f537572706c75734d696e7465723a206578636565647320737572706c757300006044820152606401610220565b6002805482900390556040805160008082526020820184905291600080516020610b51833981519152910161026e565b61030b6108d8565b6103156000610938565b565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103915760405162461bcd60e51b815260206004820152601d60248201527f537572706c75734d696e7465723a20696e76616c69642063616c6c65720000006044820152606401610220565b8360208390036103f9576103a783850185610988565b9050848111156103f95760405162461bcd60e51b815260206004820152601c60248201527f537572706c75734d696e7465723a20696e76616c69642076616c7565000000006044820152606401610220565b60025481811061040e578181036002556104a2565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166342966c686104478385610b03565b6040518263ffffffff1660e01b815260040161046591815260200190565b600060405180830381600087803b15801561047f57600080fd5b505af1158015610493573d6000803e3d6000fd5b50506000600255509091508190505b6040805160008152602081018490523091600080516020610b51833981519152910160405180910390a25060019695505050505050565b6104e16108d8565b6001600160a01b038216600081815260016020908152604091829020805460ff191685151590811790915591519182527fc6a23a0a2412457bc174b0b04538a04d162131389a2e6bafcb3c90d104004e16910160405180910390a25050565b6105486108d8565b6001600160a01b0381166105ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610220565b6105b681610938565b50565b6105c16108d8565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064c9190610b1a565b90508082111561080d5760006106628284610b03565b90506002548111156106b65760405162461bcd60e51b815260206004820152601e60248201527f537572706c75734d696e7465723a206578636565647320737572706c757300006044820152606401610220565b60028054829003905560405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af115801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610b33565b506040516340c10f1960e01b81526001600160a01b038581166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b1580156107bd57600080fd5b505af11580156107d1573d6000803e3d6000fd5b505060408051858152602081018590526001600160a01b0388169350600080516020610b5183398151915292500160405180910390a250505050565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af115801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190610b33565b5060408051838152600060208201526001600160a01b03851691600080516020610b51833981519152910160405180910390a2505050565b6108ec6000546001600160a01b0316331490565b6103155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610220565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561099a57600080fd5b5035919050565b80356001600160a01b03811681146109b857600080fd5b919050565b600080600080606085870312156109d357600080fd5b6109dc856109a1565b935060208501359250604085013567ffffffffffffffff80821115610a0057600080fd5b818701915087601f830112610a1457600080fd5b813581811115610a2357600080fd5b886020828501011115610a3557600080fd5b95989497505060200194505050565b600060208284031215610a5657600080fd5b610a5f826109a1565b9392505050565b80151581146105b657600080fd5b60008060408385031215610a8757600080fd5b610a90836109a1565b91506020830135610aa081610a66565b809150509250929050565b60008060408385031215610abe57600080fd5b610ac7836109a1565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610afe57610afe610ad5565b500190565b600082821015610b1557610b15610ad5565b500390565b600060208284031215610b2c57600080fd5b5051919050565b600060208284031215610b4557600080fd5b8151610a5f81610a6656fe1f63e6549230421adb8044833d08c1a5af0037fb9818b010d180a2869654a419a264697066735822122070863804ff8cfef91a9b4c2c7ece585ca4883bb4cac125915a0cff0f44fa6b1964736f6c634300080f0033000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063a4c0ed3611610071578063a4c0ed361461011f578063aa271e1a14610142578063cf456ae714610165578063f2fde38b14610178578063f3fef3a31461018b578063fc0c546a1461019e57600080fd5b80631003e2d2146100ae57806313888565146100c357806342966c68146100df578063715018a6146100f25780638da5cb5b146100fa575b600080fd5b6100c16100bc366004610988565b6101c5565b005b6100cc60025481565b6040519081526020015b60405180910390f35b6100c16100ed366004610988565b610279565b6100c1610303565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100d6565b61013261012d3660046109bd565b610317565b60405190151581526020016100d6565b610132610150366004610a44565b60016020526000908152604090205460ff1681565b6100c1610173366004610a74565b6104d9565b6100c1610186366004610a44565b610540565b6100c1610199366004610aab565b6105b9565b6101077f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b81565b3360009081526001602052604090205460ff166102295760405162461bcd60e51b815260206004820152601b60248201527f537572706c75734d696e7465723a206e6f742061206d696e746572000000000060448201526064015b60405180910390fd5b806002600082825461023b9190610aeb565b909155505060405181815233907f6a0bbc4943fe21fe707132cea1bff78c79665f23b0c0d6cf0d44c9b572df490a906020015b60405180910390a250565b6102816108d8565b6002548111156102d35760405162461bcd60e51b815260206004820152601e60248201527f537572706c75734d696e7465723a206578636565647320737572706c757300006044820152606401610220565b6002805482900390556040805160008082526020820184905291600080516020610b51833981519152910161026e565b61030b6108d8565b6103156000610938565b565b6000336001600160a01b037f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b16146103915760405162461bcd60e51b815260206004820152601d60248201527f537572706c75734d696e7465723a20696e76616c69642063616c6c65720000006044820152606401610220565b8360208390036103f9576103a783850185610988565b9050848111156103f95760405162461bcd60e51b815260206004820152601c60248201527f537572706c75734d696e7465723a20696e76616c69642076616c7565000000006044820152606401610220565b60025481811061040e578181036002556104a2565b6001600160a01b037f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b166342966c686104478385610b03565b6040518263ffffffff1660e01b815260040161046591815260200190565b600060405180830381600087803b15801561047f57600080fd5b505af1158015610493573d6000803e3d6000fd5b50506000600255509091508190505b6040805160008152602081018490523091600080516020610b51833981519152910160405180910390a25060019695505050505050565b6104e16108d8565b6001600160a01b038216600081815260016020908152604091829020805460ff191685151590811790915591519182527fc6a23a0a2412457bc174b0b04538a04d162131389a2e6bafcb3c90d104004e16910160405180910390a25050565b6105486108d8565b6001600160a01b0381166105ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610220565b6105b681610938565b50565b6105c16108d8565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b6001600160a01b0316906370a0823190602401602060405180830381865afa158015610628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064c9190610b1a565b90508082111561080d5760006106628284610b03565b90506002548111156106b65760405162461bcd60e51b815260206004820152601e60248201527f537572706c75734d696e7465723a206578636565647320737572706c757300006044820152606401610220565b60028054829003905560405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490527f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b169063a9059cbb906044016020604051808303816000875af115801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610b33565b506040516340c10f1960e01b81526001600160a01b038581166004830152602482018390527f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b16906340c10f1990604401600060405180830381600087803b1580156107bd57600080fd5b505af11580156107d1573d6000803e3d6000fd5b505060408051858152602081018590526001600160a01b0388169350600080516020610b5183398151915292500160405180910390a250505050565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b169063a9059cbb906044016020604051808303816000875af115801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190610b33565b5060408051838152600060208201526001600160a01b03851691600080516020610b51833981519152910160405180910390a2505050565b6108ec6000546001600160a01b0316331490565b6103155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610220565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561099a57600080fd5b5035919050565b80356001600160a01b03811681146109b857600080fd5b919050565b600080600080606085870312156109d357600080fd5b6109dc856109a1565b935060208501359250604085013567ffffffffffffffff80821115610a0057600080fd5b818701915087601f830112610a1457600080fd5b813581811115610a2357600080fd5b886020828501011115610a3557600080fd5b95989497505060200194505050565b600060208284031215610a5657600080fd5b610a5f826109a1565b9392505050565b80151581146105b657600080fd5b60008060408385031215610a8757600080fd5b610a90836109a1565b91506020830135610aa081610a66565b809150509250929050565b60008060408385031215610abe57600080fd5b610ac7836109a1565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610afe57610afe610ad5565b500190565b600082821015610b1557610b15610ad5565b500390565b600060208284031215610b2c57600080fd5b5051919050565b600060208284031215610b4557600080fd5b8151610a5f81610a6656fe1f63e6549230421adb8044833d08c1a5af0037fb9818b010d180a2869654a419a264697066735822122070863804ff8cfef91a9b4c2c7ece585ca4883bb4cac125915a0cff0f44fa6b1964736f6c634300080f0033

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

000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b

-----Decoded View---------------
Arg [0] : _token (address): 0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b


Block Transaction 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
[ 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.