ETH Price: $2,543.90 (-2.20%)

Contract

0x9844335d55156C411338C2640ccDBf9585a57E88
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040140482912022-01-21 10:01:491006 days ago1642759309IN
 Create: Burner
0 ETH0.01834984110.65185792

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Burner

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 2 : Burner.sol
pragma solidity 0.8.11;

// SPDX-License-Identifier: MIT

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @notice cBSN token burner - just approve the contract and then call burn to send the tokens into a black hole.
contract Burner {
    /// @notice Address of the cBSN token
    IERC20 public cBSN;

    /// @param _cBSN Address of cBSN token that will be burned
    constructor(IERC20 _cBSN) {
        cBSN = _cBSN;
    }

    /// @notice Burn `_amount` from `_owner` that has approved this contract
    /// @dev Tokens will be pulled in with no where to go
    /// @param _owner Address that has a cBSN balance and has approved this contract for transfer
    /// @param _amount Number of tokens that will be transferred into the contract and burned forever
    function burn(address _owner, uint256 _amount) external {
        cBSN.transferFrom(_owner, address(this), _amount);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_cBSN","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cBSN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161022b38038061022b83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610198806100936000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806389735d6c1461003b5780639dc29fac1461006a575b600080fd5b60005461004e906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61007d610078366004610101565b61007f565b005b6000546040516323b872dd60e01b81526001600160a01b03848116600483015230602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156100d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fc9190610139565b505050565b6000806040838503121561011457600080fd5b82356001600160a01b038116811461012b57600080fd5b946020939093013593505050565b60006020828403121561014b57600080fd5b8151801515811461015b57600080fd5b939250505056fea2646970667358221220b9278e539fbade4c348a14fdf2f32bb62e237eddaca05976244aef455030dc9664736f6c634300080b00330000000000000000000000007d4b1d793239707445305d8d2456d2c735f6b25b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806389735d6c1461003b5780639dc29fac1461006a575b600080fd5b60005461004e906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61007d610078366004610101565b61007f565b005b6000546040516323b872dd60e01b81526001600160a01b03848116600483015230602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156100d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fc9190610139565b505050565b6000806040838503121561011457600080fd5b82356001600160a01b038116811461012b57600080fd5b946020939093013593505050565b60006020828403121561014b57600080fd5b8151801515811461015b57600080fd5b939250505056fea2646970667358221220b9278e539fbade4c348a14fdf2f32bb62e237eddaca05976244aef455030dc9664736f6c634300080b0033

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

0000000000000000000000007d4b1d793239707445305d8d2456d2c735f6b25b

-----Decoded View---------------
Arg [0] : _cBSN (address): 0x7d4B1d793239707445305D8d2456D2c735F6B25B

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007d4b1d793239707445305d8d2456d2c735f6b25b


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  ]

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.