Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 121 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 19515554 | 113 days ago | IN | 0 ETH | 0.00248467 | ||||
Mint | 19489081 | 117 days ago | IN | 0 ETH | 0.00370801 | ||||
Mint | 19486273 | 117 days ago | IN | 0 ETH | 0.00235337 | ||||
Mint | 19401217 | 129 days ago | IN | 0 ETH | 0.01676579 | ||||
Mint | 19370801 | 133 days ago | IN | 0 ETH | 0.01059144 | ||||
Mint | 19309699 | 142 days ago | IN | 0 ETH | 0.0023749 | ||||
Mint | 19298161 | 143 days ago | IN | 0 ETH | 0.00585807 | ||||
Mint | 19290393 | 144 days ago | IN | 0 ETH | 0.0078471 | ||||
Mint | 19273928 | 147 days ago | IN | 0 ETH | 0.01053864 | ||||
Mint | 19228352 | 153 days ago | IN | 0 ETH | 0.00263459 | ||||
Mint | 19224790 | 154 days ago | IN | 0 ETH | 0.00332392 | ||||
Mint | 19221910 | 154 days ago | IN | 0 ETH | 0.00783106 | ||||
Mint | 19218558 | 155 days ago | IN | 0 ETH | 0.00263558 | ||||
Mint | 19215633 | 155 days ago | IN | 0 ETH | 0.00272305 | ||||
Mint | 19213922 | 155 days ago | IN | 0 ETH | 0.00943606 | ||||
Mint | 19210690 | 156 days ago | IN | 0 ETH | 0.00249833 | ||||
Mint | 19205476 | 156 days ago | IN | 0 ETH | 0.00951866 | ||||
Mint | 19204570 | 157 days ago | IN | 0 ETH | 0.00301338 | ||||
Mint | 19201716 | 157 days ago | IN | 0 ETH | 0.00283008 | ||||
Mint | 19201558 | 157 days ago | IN | 0 ETH | 0.00460649 | ||||
Mint | 19197650 | 157 days ago | IN | 0 ETH | 0.01371974 | ||||
Mint | 19196418 | 158 days ago | IN | 0 ETH | 0.01896207 | ||||
Mint | 19196060 | 158 days ago | IN | 0 ETH | 0.00428654 | ||||
Mint | 19195729 | 158 days ago | IN | 0 ETH | 0.00483405 | ||||
Mint | 19195719 | 158 days ago | IN | 0 ETH | 0.00555518 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
swapchad
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-09 */ // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.0) (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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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: @openzeppelin/contracts/token/ERC20/IERC20.sol // 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: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } // File: swapchad.sol pragma solidity ^0.8.0; interface IBTC is IERC20{ function burn(uint256 amount) external; function mint(address to, uint256 amount) external; } interface points { function calculatePoints(address _user) external view returns(uint256); } contract swapchad is Ownable(msg.sender) { IBTC public btcToken; uint256 public rate = 50; // Initial mint fee percentage uint256 public totalburn = 0; IERC20 public chad; points public POINTCAL; constructor(address _btcTokenAddress, IERC20 _chad){ btcToken = IBTC(_btcTokenAddress); chad = _chad; POINTCAL = points(0xEdB8E7381D4F6418c7aFEa662869a68AC181499c); } function mint(uint256 btcAmount) external { require(POINTCAL.calculatePoints(msg.sender) >= 500e18, "not enough points to mint nfts"); uint256 amountAfterFee = btcAmount/50; btcToken.transferFrom(address(msg.sender), address(this), btcAmount); btcToken.burn(btcAmount); totalburn += btcAmount; chad.transfer(msg.sender, amountAfterFee); } function setRate(uint256 _rate) external onlyOwner { rate = _rate; } function setChad(IERC20 _chad) external onlyOwner { chad = _chad; } function recoverERC() external onlyOwner { chad.transfer(owner(), chad.balanceOf(address(this))); } function recoverERCcus(IERC20 token) external onlyOwner { token.transfer(owner(), token.balanceOf(address(this))); } // Additional functions and safety checks can be added here. }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_btcTokenAddress","type":"address"},{"internalType":"contract IERC20","name":"_chad","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"POINTCAL","outputs":[{"internalType":"contract points","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"btcToken","outputs":[{"internalType":"contract IBTC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chad","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"btcAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverERC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverERCcus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_chad","type":"address"}],"name":"setChad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalburn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526032600255600060035534801561001a57600080fd5b50604051610aa4380380610aa483398101604081905261003991610126565b338061005f57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610068816100be565b50600180546001600160a01b039384166001600160a01b0319918216179091556004805492909316918116919091179091556005805490911673edb8e7381d4f6418c7afea662869a68ac181499c179055610160565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461012357600080fd5b50565b6000806040838503121561013957600080fd5b82516101448161010e565b60208401519092506101558161010e565b809150509250929050565b6109358061016f6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638d3a31171161008c578063b5a8fa4611610066578063b5a8fa4614610190578063b6661b71146101a3578063ef8d03da146101b6578063f2fde38b146101c957600080fd5b80638d3a3117146101645780638da5cb5b1461016c578063a0712d681461017d57600080fd5b806334fcf437116100bd57806334fcf43714610134578063715018a6146101495780638c799b121461015157600080fd5b8063074bc101146100e45780631b1fdaa1146101145780632c4e722e1461012b575b600080fd5b6001546100f7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61011d60035481565b60405190815260200161010b565b61011d60025481565b610147610142366004610829565b6101dc565b005b6101476101e9565b61014761015f366004610857565b6101fd565b610147610319565b6000546001600160a01b03166100f7565b61014761018b366004610829565b61043b565b6005546100f7906001600160a01b031681565b6101476101b1366004610857565b6106fb565b6004546100f7906001600160a01b031681565b6101476101d7366004610857565b610732565b6101e4610786565b600255565b6101f1610786565b6101fb60006107cc565b565b610205610786565b806001600160a01b031663a9059cbb6102266000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561026a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028e919061087b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156102f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103159190610894565b5050565b610321610786565b6004546001600160a01b031663a9059cbb6103446000546001600160a01b031690565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa15801561038d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b1919061087b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104389190610894565b50565b6005546040517f3dab4e7e000000000000000000000000000000000000000000000000000000008152336004820152681b1ae4d6e2ef500000916001600160a01b031690633dab4e7e90602401602060405180830381865afa1580156104a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c9919061087b565b1015610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6e6f7420656e6f75676820706f696e747320746f206d696e74206e667473000060448201526064015b60405180910390fd5b60006105436032836108b6565b6001546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af11580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610894565b506001546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b15801561063857600080fd5b505af115801561064c573d6000803e3d6000fd5b50505050816003600082825461066291906108d8565b9091555050600480546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523392810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156106d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f69190610894565b505050565b610703610786565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61073a610786565b6001600160a01b03811661077d576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526000600482015260240161052d565b610438816107cc565b6000546001600160a01b031633146101fb576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161052d565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561083b57600080fd5b5035919050565b6001600160a01b038116811461043857600080fd5b60006020828403121561086957600080fd5b813561087481610842565b9392505050565b60006020828403121561088d57600080fd5b5051919050565b6000602082840312156108a657600080fd5b8151801515811461087457600080fd5b6000826108d357634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156108f957634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220010fef1b6ec7905e8dad696eef09088f53f7244716e8f0ac1fc607f0b6dc947e64736f6c63430008160033000000000000000000000000bd6323a83b613f668687014e8a5852079494fb68000000000000000000000000f30f0f076c42f6a94e74628f65fa2018a1002b34
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80638d3a31171161008c578063b5a8fa4611610066578063b5a8fa4614610190578063b6661b71146101a3578063ef8d03da146101b6578063f2fde38b146101c957600080fd5b80638d3a3117146101645780638da5cb5b1461016c578063a0712d681461017d57600080fd5b806334fcf437116100bd57806334fcf43714610134578063715018a6146101495780638c799b121461015157600080fd5b8063074bc101146100e45780631b1fdaa1146101145780632c4e722e1461012b575b600080fd5b6001546100f7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61011d60035481565b60405190815260200161010b565b61011d60025481565b610147610142366004610829565b6101dc565b005b6101476101e9565b61014761015f366004610857565b6101fd565b610147610319565b6000546001600160a01b03166100f7565b61014761018b366004610829565b61043b565b6005546100f7906001600160a01b031681565b6101476101b1366004610857565b6106fb565b6004546100f7906001600160a01b031681565b6101476101d7366004610857565b610732565b6101e4610786565b600255565b6101f1610786565b6101fb60006107cc565b565b610205610786565b806001600160a01b031663a9059cbb6102266000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561026a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028e919061087b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156102f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103159190610894565b5050565b610321610786565b6004546001600160a01b031663a9059cbb6103446000546001600160a01b031690565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa15801561038d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b1919061087b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104389190610894565b50565b6005546040517f3dab4e7e000000000000000000000000000000000000000000000000000000008152336004820152681b1ae4d6e2ef500000916001600160a01b031690633dab4e7e90602401602060405180830381865afa1580156104a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c9919061087b565b1015610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6e6f7420656e6f75676820706f696e747320746f206d696e74206e667473000060448201526064015b60405180910390fd5b60006105436032836108b6565b6001546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af11580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610894565b506001546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b15801561063857600080fd5b505af115801561064c573d6000803e3d6000fd5b50505050816003600082825461066291906108d8565b9091555050600480546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523392810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156106d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f69190610894565b505050565b610703610786565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61073a610786565b6001600160a01b03811661077d576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526000600482015260240161052d565b610438816107cc565b6000546001600160a01b031633146101fb576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161052d565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561083b57600080fd5b5035919050565b6001600160a01b038116811461043857600080fd5b60006020828403121561086957600080fd5b813561087481610842565b9392505050565b60006020828403121561088d57600080fd5b5051919050565b6000602082840312156108a657600080fd5b8151801515811461087457600080fd5b6000826108d357634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156108f957634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220010fef1b6ec7905e8dad696eef09088f53f7244716e8f0ac1fc607f0b6dc947e64736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bd6323a83b613f668687014e8a5852079494fb68000000000000000000000000f30f0f076c42f6a94e74628f65fa2018a1002b34
-----Decoded View---------------
Arg [0] : _btcTokenAddress (address): 0xbD6323A83b613F668687014E8A5852079494fB68
Arg [1] : _chad (address): 0xF30f0f076c42f6a94E74628f65fa2018A1002B34
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000bd6323a83b613f668687014e8a5852079494fb68
Arg [1] : 000000000000000000000000f30f0f076c42f6a94e74628f65fa2018a1002b34
Deployed Bytecode Sourcemap
25995:1368:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26043:20;;;;;-1:-1:-1;;;;;26043:20:0;;;;;;-1:-1:-1;;;;;190:55:1;;;172:74;;160:2;145:18;26043:20:0;;;;;;;;26133:28;;;;;;;;;403:25:1;;;391:2;376:18;26133:28:0;257:177:1;26070:24:0;;;;;;26858:82;;;;;;:::i;:::-;;:::i;:::-;;9984:103;;;:::i;27158:130::-;;;;;;:::i;:::-;;:::i;27037:113::-;;;:::i;9309:87::-;9355:7;9382:6;-1:-1:-1;;;;;9382:6:0;9309:87;;26430:418;;;;;;:::i;:::-;;:::i;26193:22::-;;;;;-1:-1:-1;;;;;26193:22:0;;;26948:81;;;;;;:::i;:::-;;:::i;26168:18::-;;;;;-1:-1:-1;;;;;26168:18:0;;;10242:220;;;;;;:::i;:::-;;:::i;26858:82::-;9195:13;:11;:13::i;:::-;26919:4:::1;:13:::0;26858:82::o;9984:103::-;9195:13;:11;:13::i;:::-;10049:30:::1;10076:1;10049:18;:30::i;:::-;9984:103::o:0;27158:130::-;9195:13;:11;:13::i;:::-;27224:5:::1;-1:-1:-1::0;;;;;27224:14:0::1;;27239:7;9355::::0;9382:6;-1:-1:-1;;;;;9382:6:0;;9309:87;27239:7:::1;27248:30;::::0;-1:-1:-1;;;27248:30:0;;27272:4:::1;27248:30;::::0;::::1;172:74:1::0;-1:-1:-1;;;;;27248:15:0;::::1;::::0;::::1;::::0;145:18:1;;27248:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27224:55;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;2427:55:1;;;27224::0::1;::::0;::::1;2409:74:1::0;2499:18;;;2492:34;2382:18;;27224:55:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;27158:130:::0;:::o;27037:113::-;9195:13;:11;:13::i;:::-;27088:4:::1;::::0;-1:-1:-1;;;;;27088:4:0::1;:13;27102:7;9355::::0;9382:6;-1:-1:-1;;;;;9382:6:0;;9309:87;27102:7:::1;27111:4;::::0;;:29:::1;::::0;-1:-1:-1;;;27111:29:0;;27134:4:::1;27111:29:::0;;::::1;172:74:1::0;;;;-1:-1:-1;;;;;27111:4:0::1;::::0;:14:::1;::::0;145:18:1;;27111:29:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27088:53;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;2427:55:1;;;27088:53:0::1;::::0;::::1;2409:74:1::0;2499:18;;;2492:34;2382:18;;27088:53:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;27037:113::o:0;26430:418::-;26491:8;;:36;;;;;26516:10;26491:36;;;172:74:1;26531:6:0;;-1:-1:-1;;;;;26491:8:0;;:24;;145:18:1;;26491:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;26483:89;;;;;;;3021:2:1;26483:89:0;;;3003:21:1;3060:2;3040:18;;;3033:30;3099:32;3079:18;;;3072:60;3149:18;;26483:89:0;;;;;;;;;26583:22;26608:12;26618:2;26608:9;:12;:::i;:::-;26631:8;;:68;;;;;26661:10;26631:68;;;3720:34:1;26682:4:0;3770:18:1;;;3763:43;3822:18;;;3815:34;;;26583:37:0;;-1:-1:-1;;;;;;26631:8:0;;:21;;3632:18:1;;26631:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;26710:8:0;;:24;;;;;;;;403:25:1;;;-1:-1:-1;;;;;26710:8:0;;;;:13;;376:18:1;;26710:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26758:9;26745;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;26790:4:0;;;:41;;;;;26804:10;26790:41;;;2409:74:1;;;;2499:18;;;2492:34;;;-1:-1:-1;;;;;26790:4:0;;:13;;2382:18:1;;26790:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26472:376;26430:418;:::o;26948:81::-;9195:13;:11;:13::i;:::-;27008:4:::1;:13:::0;;-1:-1:-1;;27008:13:0::1;-1:-1:-1::0;;;;;27008:13:0;;;::::1;::::0;;;::::1;::::0;;26948:81::o;10242:220::-;9195:13;:11;:13::i;:::-;-1:-1:-1;;;;;10327:22:0;::::1;10323:93;;10373:31;::::0;::::1;::::0;;10401:1:::1;10373:31;::::0;::::1;172:74:1::0;145:18;;10373:31:0::1;14:238:1::0;10323:93:0::1;10426:28;10445:8;10426:18;:28::i;9474:166::-:0;9355:7;9382:6;-1:-1:-1;;;;;9382:6:0;7505:10;9534:23;9530:103;;9581:40;;;;;7505:10;9581:40;;;172:74:1;145:18;;9581:40:0;14:238:1;10622:191:0;10696:16;10715:6;;-1:-1:-1;;;;;10732:17:0;;;-1:-1:-1;;10732:17:0;;;;;;10765:40;;10715:6;;;;;;;10765:40;;10696:16;10765:40;10685:128;10622:191;:::o;439:180:1:-;498:6;551:2;539:9;530:7;526:23;522:32;519:52;;;567:1;564;557:12;519:52;-1:-1:-1;590:23:1;;439:180;-1:-1:-1;439:180:1:o;624:162::-;-1:-1:-1;;;;;711:5:1;707:54;700:5;697:65;687:93;;776:1;773;766:12;791:269;864:6;917:2;905:9;896:7;892:23;888:32;885:52;;;933:1;930;923:12;885:52;972:9;959:23;991:39;1024:5;991:39;:::i;:::-;1049:5;791:269;-1:-1:-1;;;791:269:1:o;2046:184::-;2116:6;2169:2;2157:9;2148:7;2144:23;2140:32;2137:52;;;2185:1;2182;2175:12;2137:52;-1:-1:-1;2208:16:1;;2046:184;-1:-1:-1;2046:184:1:o;2537:277::-;2604:6;2657:2;2645:9;2636:7;2632:23;2628:32;2625:52;;;2673:1;2670;2663:12;2625:52;2705:9;2699:16;2758:5;2751:13;2744:21;2737:5;2734:32;2724:60;;2780:1;2777;2770:12;3178:274;3218:1;3244;3234:189;;-1:-1:-1;;;3276:1:1;3269:88;3380:4;3377:1;3370:15;3408:4;3405:1;3398:15;3234:189;-1:-1:-1;3437:9:1;;3178:274::o;3860:279::-;3925:9;;;3946:10;;;3943:190;;;-1:-1:-1;;;3986:1:1;3979:88;4090:4;4087:1;4080:15;4118:4;4115:1;4108:15;3943:190;3860:279;;;;:::o
Swarm Source
ipfs://010fef1b6ec7905e8dad696eef09088f53f7244716e8f0ac1fc607f0b6dc947e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.