ETH Price: $2,290.08 (-3.82%)

Contract

0xc4bBeFDc3066b919cd1A6B5901241E11282e625D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040149924402022-06-19 19:23:23819 days ago1655666603IN
 Create: ARTHFlashMinter
0 ETH0.0394312230

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ARTHFlashMinter

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : ARTHFlashMinter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

import "./IFlashBorrower.sol";
import "./IFlashLender.sol";

interface ERC20MinterBurner is IERC20 {
    function burn(address from, uint256 amount) external;

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

contract ARTHFlashMinter is IFlashLender, Pausable, Ownable {
    bytes32 public constant CALLBACK_SUCCESS =
        keccak256("ARTHFlashMinter.onFlashLoan");

    uint256 public fee = 1000; //  1000 == 0.1 %.
    ERC20MinterBurner public token;
    address public ecosystemFund;

    event FeeChanged(uint256 amount);
    event EcosystemFundChanged(address fund_);

    event FlashloanMint(uint256 amount, address indexed to);
    event FlashloanPayback(uint256 amount, uint256 fee, address indexed by);

    /**
     * @param token_ The token to mint/burn
     * @param fee_ The percentage of the loan `amount` that needs to be repaid, in addition to `amount`.
     */
    constructor(
        address token_,
        address fund_,
        address governance_,
        uint256 fee_
    ) {
        token = ERC20MinterBurner(token_);
        setFee(fee_);
        setEcosystemFund(fund_);

        _transferOwnership(governance_);
    }

    function setFee(uint256 amount) public onlyOwner {
        fee = amount;
        emit FeeChanged(amount);
    }

    function setEcosystemFund(address fund_) public onlyOwner {
        ecosystemFund = fund_;
        emit EcosystemFundChanged(fund_);
    }

    function toggle() external onlyOwner {
        if (paused()) _unpause();
        else _pause();
    }

    /**
     * @dev The fee to be charged for a given loan.
     * @param amount The amount of tokens lent.
     * @return The amount of `token` to be charged for the loan, on top of the returned principal.
     */
    function flashFee(uint256 amount) external view override returns (uint256) {
        return _flashFee(amount);
    }

    /**
     * @dev Loan `amount` tokens to `receiver`, and takes it back plus a `flashFee` after the ERC3156 callback.
     * @param receiver The contract receiving the tokens, needs to implement the `onFlashLoan(address user, uint256 amount, uint256 fee, bytes calldata)` interface.
     * @param amount The amount of tokens lent.
     * @param data A data parameter to be passed on to the `receiver` for any custom use.
     */
    function flashLoan(
        IFlashBorrower receiver,
        uint256 amount,
        bytes calldata data
    ) external override returns (bool) {
        uint256 _fee = _flashFee(amount);

        token.mint(address(receiver), amount);
        emit FlashloanMint(amount, address(receiver));

        require(
            receiver.onFlashLoan(msg.sender, amount, _fee, data) ==
                CALLBACK_SUCCESS,
            "ARTHFlashMinter: Callback failed"
        );

        token.burn(address(receiver), amount);
        token.transfer(ecosystemFund, _fee);

        emit FlashloanPayback(amount, _fee, address(receiver));
        return true;
    }

    /**
     * @dev The fee to be charged for a given loan. Internal function with no checks.
     * @param amount The amount of tokens lent.
     * @return The amount of `token` to be charged for the loan, on top of the returned principal.
     */
    function _flashFee(uint256 amount) internal view returns (uint256) {
        return (amount * fee) / 10000;
    }
}

File 2 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `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);

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

File 3 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 value {ERC20} uses, unless this function is
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override 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 `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` 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 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        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 `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` 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.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 5 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 9 : IFlashBorrower.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IFlashBorrower {
    /**
     * @dev Receive a flash loan.
     * @param initiator The initiator of the loan.
     * @param amount The amount of tokens lent.
     * @param fee The additional amount of tokens to repay.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     * @return The keccak256 hash of "IFlashLender.onFlashLoan"
     */
    function onFlashLoan(
        address initiator,
        uint256 amount,
        uint256 fee,
        bytes calldata data
    ) external returns (bytes32);
}

File 7 of 9 : IFlashLender.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IFlashBorrower.sol";

interface IFlashLender {
    /**
     * @dev The fee to be charged for a given loan.
     * @param amount The amount of tokens lent.
     * @return The amount of `token` to be charged for the loan, on top of the returned principal.
     */
    function flashFee(uint256 amount) external view returns (uint256);

    /**
     * @dev Initiate a flash loan.
     * @param receiver The receiver of the tokens in the loan, and the receiver of the callback.
     * @param amount The amount of tokens lent.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     */
    function flashLoan(
        IFlashBorrower receiver,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);
}

File 8 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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 9 of 9 : 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
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"fund_","type":"address"},{"internalType":"address","name":"governance_","type":"address"},{"internalType":"uint256","name":"fee_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"fund_","type":"address"}],"name":"EcosystemFundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"FlashloanMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":true,"internalType":"address","name":"by","type":"address"}],"name":"FlashloanPayback","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CALLBACK_SUCCESS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ecosystemFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IFlashBorrower","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fund_","type":"address"}],"name":"setEcosystemFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20MinterBurner","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526103e86001553480156200001757600080fd5b5060405162001a8138038062001a8183398181016040528101906200003d9190620003f7565b60008060006101000a81548160ff021916908315150217905550620000776200006b620000f560201b60201c565b620000fd60201b60201c565b83600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000c981620001c260201b60201c565b620000da836200029460201b60201c565b620000eb82620000fd60201b60201c565b50505050620005b4565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001d2620000f560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620001f8620003a060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000251576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200024890620004c9565b60405180910390fd5b806001819055507f6bbc57480a46553fa4d156ce702beef5f3ad66303b0ed1a5d4cb44966c6584c381604051620002899190620004eb565b60405180910390a150565b620002a4620000f560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002ca620003a060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000323576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200031a90620004c9565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f69058bcbc30011b537b4532039f5d4a3cb31c0d7e60cf7c9f839ef41ca15a41081604051620003959190620004ac565b60405180910390a150565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050620003da8162000580565b92915050565b600081519050620003f1816200059a565b92915050565b600080600080608085870312156200040e57600080fd5b60006200041e87828801620003c9565b94505060206200043187828801620003c9565b93505060406200044487828801620003c9565b92505060606200045787828801620003e0565b91505092959194509250565b6200046e8162000519565b82525050565b60006200048360208362000508565b9150620004908262000557565b602082019050919050565b620004a6816200054d565b82525050565b6000602082019050620004c3600083018462000463565b92915050565b60006020820190508181036000830152620004e48162000474565b9050919050565b60006020820190506200050260008301846200049b565b92915050565b600082825260208201905092915050565b600062000526826200052d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6200058b8162000519565b81146200059757600080fd5b50565b620005a5816200054d565b8114620005b157600080fd5b50565b6114bd80620005c46000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063e0232b4211610066578063e0232b42146101ca578063ebbac2f9146101fa578063f2fde38b14610216578063fc0c546a14610232576100cf565b80638da5cb5b1461015e578063a7af467a1461017c578063ddca3f43146101ac576100cf565b80631d0cf683146100d457806340a3d246146100f25780635c975abb146100fc57806369fe0e2d1461011a578063715018a6146101365780638237e53814610140575b600080fd5b6100dc610250565b6040516100e99190610fa7565b60405180910390f35b6100fa610276565b005b610104610317565b6040516101119190611039565b60405180910390f35b610134600480360381019061012f9190610e57565b61032d565b005b61013e6103ea565b005b610148610472565b6040516101559190611054565b60405180910390f35b610166610496565b6040516101739190610fa7565b60405180910390f35b61019660048036038101906101919190610e57565b6104bf565b6040516101a3919061112a565b60405180910390f35b6101b46104d1565b6040516101c1919061112a565b60405180910390f35b6101e460048036038101906101df9190610deb565b6104d7565b6040516101f19190611039565b60405180910390f35b610214600480360381019061020f9190610d70565b610874565b005b610230600480360381019061022b9190610d70565b61096b565b005b61023a610a63565b604051610247919061106f565b60405180910390f35b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61027e610a89565b73ffffffffffffffffffffffffffffffffffffffff1661029c610496565b73ffffffffffffffffffffffffffffffffffffffff16146102f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e99061110a565b60405180910390fd5b6102fa610317565b1561030c57610307610a91565b610315565b610314610b32565b5b565b60008060009054906101000a900460ff16905090565b610335610a89565b73ffffffffffffffffffffffffffffffffffffffff16610353610496565b73ffffffffffffffffffffffffffffffffffffffff16146103a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a09061110a565b60405180910390fd5b806001819055507f6bbc57480a46553fa4d156ce702beef5f3ad66303b0ed1a5d4cb44966c6584c3816040516103df919061112a565b60405180910390a150565b6103f2610a89565b73ffffffffffffffffffffffffffffffffffffffff16610410610496565b73ffffffffffffffffffffffffffffffffffffffff1614610466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045d9061110a565b60405180910390fd5b6104706000610bd4565b565b7f60c63faf14d78be7b7afb189d0a51323ee8b4e79c3a61714928be6dbdd3d6d1181565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006104ca82610c99565b9050919050565b60015481565b6000806104e385610c99565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987876040518363ffffffff1660e01b8152600401610542929190610fc2565b600060405180830381600087803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff167fac327ce6a8fa4ab3c7115b72456dc4aa72c843819d8289c158f123f1bab4c192866040516105ba919061112a565b60405180910390a27f60c63faf14d78be7b7afb189d0a51323ee8b4e79c3a61714928be6dbdd3d6d118673ffffffffffffffffffffffffffffffffffffffff16639caee11333888589896040518663ffffffff1660e01b8152600401610624959493929190610feb565b602060405180830381600087803b15801561063e57600080fd5b505af1158015610652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106769190610dc2565b146106b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ad906110ca565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac87876040518363ffffffff1660e01b8152600401610713929190610fc2565b600060405180830381600087803b15801561072d57600080fd5b505af1158015610741573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016107c4929190610fc2565b602060405180830381600087803b1580156107de57600080fd5b505af11580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190610d99565b508573ffffffffffffffffffffffffffffffffffffffff167f8f7844a962424deb9a460e965b9fdea3ce85bea66b5933a32e1cd0c1ac7a56de868360405161085f929190611145565b60405180910390a26001915050949350505050565b61087c610a89565b73ffffffffffffffffffffffffffffffffffffffff1661089a610496565b73ffffffffffffffffffffffffffffffffffffffff16146108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e79061110a565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f69058bcbc30011b537b4532039f5d4a3cb31c0d7e60cf7c9f839ef41ca15a410816040516109609190610fa7565b60405180910390a150565b610973610a89565b73ffffffffffffffffffffffffffffffffffffffff16610991610496565b73ffffffffffffffffffffffffffffffffffffffff16146109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de9061110a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e906110aa565b60405180910390fd5b610a6081610bd4565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b610a99610317565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf9061108a565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610b1b610a89565b604051610b289190610fa7565b60405180910390a1565b610b3a610317565b15610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b71906110ea565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bbd610a89565b604051610bca9190610fa7565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061271060015483610cac91906111c1565b610cb69190611190565b9050919050565b600081359050610ccc81611414565b92915050565b600081519050610ce18161142b565b92915050565b600081519050610cf681611442565b92915050565b60008083601f840112610d0e57600080fd5b8235905067ffffffffffffffff811115610d2757600080fd5b602083019150836001820283011115610d3f57600080fd5b9250929050565b600081359050610d5581611459565b92915050565b600081359050610d6a81611470565b92915050565b600060208284031215610d8257600080fd5b6000610d9084828501610cbd565b91505092915050565b600060208284031215610dab57600080fd5b6000610db984828501610cd2565b91505092915050565b600060208284031215610dd457600080fd5b6000610de284828501610ce7565b91505092915050565b60008060008060608587031215610e0157600080fd5b6000610e0f87828801610d46565b9450506020610e2087828801610d5b565b935050604085013567ffffffffffffffff811115610e3d57600080fd5b610e4987828801610cfc565b925092505092959194509250565b600060208284031215610e6957600080fd5b6000610e7784828501610d5b565b91505092915050565b610e898161121b565b82525050565b610e988161122d565b82525050565b610ea781611239565b82525050565b6000610eb9838561116e565b9350610ec68385846112a3565b610ecf83611310565b840190509392505050565b610ee38161127f565b82525050565b6000610ef660148361117f565b9150610f0182611321565b602082019050919050565b6000610f1960268361117f565b9150610f248261134a565b604082019050919050565b6000610f3c60208361117f565b9150610f4782611399565b602082019050919050565b6000610f5f60108361117f565b9150610f6a826113c2565b602082019050919050565b6000610f8260208361117f565b9150610f8d826113eb565b602082019050919050565b610fa181611275565b82525050565b6000602082019050610fbc6000830184610e80565b92915050565b6000604082019050610fd76000830185610e80565b610fe46020830184610f98565b9392505050565b60006080820190506110006000830188610e80565b61100d6020830187610f98565b61101a6040830186610f98565b818103606083015261102d818486610ead565b90509695505050505050565b600060208201905061104e6000830184610e8f565b92915050565b60006020820190506110696000830184610e9e565b92915050565b60006020820190506110846000830184610eda565b92915050565b600060208201905081810360008301526110a381610ee9565b9050919050565b600060208201905081810360008301526110c381610f0c565b9050919050565b600060208201905081810360008301526110e381610f2f565b9050919050565b6000602082019050818103600083015261110381610f52565b9050919050565b6000602082019050818103600083015261112381610f75565b9050919050565b600060208201905061113f6000830184610f98565b92915050565b600060408201905061115a6000830185610f98565b6111676020830184610f98565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600061119b82611275565b91506111a683611275565b9250826111b6576111b56112e1565b5b828204905092915050565b60006111cc82611275565b91506111d783611275565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156112105761120f6112b2565b5b828202905092915050565b600061122682611255565b9050919050565b60008115159050919050565b6000819050919050565b600061124e8261121b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061128a82611291565b9050919050565b600061129c82611255565b9050919050565b82818337600083830152505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41525448466c6173684d696e7465723a2043616c6c6261636b206661696c6564600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61141d8161121b565b811461142857600080fd5b50565b6114348161122d565b811461143f57600080fd5b50565b61144b81611239565b811461145657600080fd5b50565b61146281611243565b811461146d57600080fd5b50565b61147981611275565b811461148457600080fd5b5056fea26469706673582212209f8f9a10f9f8fe503743183a739ce646f7164017b49d8f01a162dc8bb424f6a964736f6c634300080400330000000000000000000000008cc0f052fff7ead7f2edcccac895502e884a8a710000000000000000000000006bfc9db28f0a6d11a8d9d64c86026ddd2fad293b0000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc00000000000000000000000000000000000000000000000000000000000003e8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063e0232b4211610066578063e0232b42146101ca578063ebbac2f9146101fa578063f2fde38b14610216578063fc0c546a14610232576100cf565b80638da5cb5b1461015e578063a7af467a1461017c578063ddca3f43146101ac576100cf565b80631d0cf683146100d457806340a3d246146100f25780635c975abb146100fc57806369fe0e2d1461011a578063715018a6146101365780638237e53814610140575b600080fd5b6100dc610250565b6040516100e99190610fa7565b60405180910390f35b6100fa610276565b005b610104610317565b6040516101119190611039565b60405180910390f35b610134600480360381019061012f9190610e57565b61032d565b005b61013e6103ea565b005b610148610472565b6040516101559190611054565b60405180910390f35b610166610496565b6040516101739190610fa7565b60405180910390f35b61019660048036038101906101919190610e57565b6104bf565b6040516101a3919061112a565b60405180910390f35b6101b46104d1565b6040516101c1919061112a565b60405180910390f35b6101e460048036038101906101df9190610deb565b6104d7565b6040516101f19190611039565b60405180910390f35b610214600480360381019061020f9190610d70565b610874565b005b610230600480360381019061022b9190610d70565b61096b565b005b61023a610a63565b604051610247919061106f565b60405180910390f35b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61027e610a89565b73ffffffffffffffffffffffffffffffffffffffff1661029c610496565b73ffffffffffffffffffffffffffffffffffffffff16146102f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e99061110a565b60405180910390fd5b6102fa610317565b1561030c57610307610a91565b610315565b610314610b32565b5b565b60008060009054906101000a900460ff16905090565b610335610a89565b73ffffffffffffffffffffffffffffffffffffffff16610353610496565b73ffffffffffffffffffffffffffffffffffffffff16146103a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a09061110a565b60405180910390fd5b806001819055507f6bbc57480a46553fa4d156ce702beef5f3ad66303b0ed1a5d4cb44966c6584c3816040516103df919061112a565b60405180910390a150565b6103f2610a89565b73ffffffffffffffffffffffffffffffffffffffff16610410610496565b73ffffffffffffffffffffffffffffffffffffffff1614610466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045d9061110a565b60405180910390fd5b6104706000610bd4565b565b7f60c63faf14d78be7b7afb189d0a51323ee8b4e79c3a61714928be6dbdd3d6d1181565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006104ca82610c99565b9050919050565b60015481565b6000806104e385610c99565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987876040518363ffffffff1660e01b8152600401610542929190610fc2565b600060405180830381600087803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff167fac327ce6a8fa4ab3c7115b72456dc4aa72c843819d8289c158f123f1bab4c192866040516105ba919061112a565b60405180910390a27f60c63faf14d78be7b7afb189d0a51323ee8b4e79c3a61714928be6dbdd3d6d118673ffffffffffffffffffffffffffffffffffffffff16639caee11333888589896040518663ffffffff1660e01b8152600401610624959493929190610feb565b602060405180830381600087803b15801561063e57600080fd5b505af1158015610652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106769190610dc2565b146106b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ad906110ca565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac87876040518363ffffffff1660e01b8152600401610713929190610fc2565b600060405180830381600087803b15801561072d57600080fd5b505af1158015610741573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016107c4929190610fc2565b602060405180830381600087803b1580156107de57600080fd5b505af11580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190610d99565b508573ffffffffffffffffffffffffffffffffffffffff167f8f7844a962424deb9a460e965b9fdea3ce85bea66b5933a32e1cd0c1ac7a56de868360405161085f929190611145565b60405180910390a26001915050949350505050565b61087c610a89565b73ffffffffffffffffffffffffffffffffffffffff1661089a610496565b73ffffffffffffffffffffffffffffffffffffffff16146108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e79061110a565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f69058bcbc30011b537b4532039f5d4a3cb31c0d7e60cf7c9f839ef41ca15a410816040516109609190610fa7565b60405180910390a150565b610973610a89565b73ffffffffffffffffffffffffffffffffffffffff16610991610496565b73ffffffffffffffffffffffffffffffffffffffff16146109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de9061110a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e906110aa565b60405180910390fd5b610a6081610bd4565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b610a99610317565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf9061108a565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610b1b610a89565b604051610b289190610fa7565b60405180910390a1565b610b3a610317565b15610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b71906110ea565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bbd610a89565b604051610bca9190610fa7565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061271060015483610cac91906111c1565b610cb69190611190565b9050919050565b600081359050610ccc81611414565b92915050565b600081519050610ce18161142b565b92915050565b600081519050610cf681611442565b92915050565b60008083601f840112610d0e57600080fd5b8235905067ffffffffffffffff811115610d2757600080fd5b602083019150836001820283011115610d3f57600080fd5b9250929050565b600081359050610d5581611459565b92915050565b600081359050610d6a81611470565b92915050565b600060208284031215610d8257600080fd5b6000610d9084828501610cbd565b91505092915050565b600060208284031215610dab57600080fd5b6000610db984828501610cd2565b91505092915050565b600060208284031215610dd457600080fd5b6000610de284828501610ce7565b91505092915050565b60008060008060608587031215610e0157600080fd5b6000610e0f87828801610d46565b9450506020610e2087828801610d5b565b935050604085013567ffffffffffffffff811115610e3d57600080fd5b610e4987828801610cfc565b925092505092959194509250565b600060208284031215610e6957600080fd5b6000610e7784828501610d5b565b91505092915050565b610e898161121b565b82525050565b610e988161122d565b82525050565b610ea781611239565b82525050565b6000610eb9838561116e565b9350610ec68385846112a3565b610ecf83611310565b840190509392505050565b610ee38161127f565b82525050565b6000610ef660148361117f565b9150610f0182611321565b602082019050919050565b6000610f1960268361117f565b9150610f248261134a565b604082019050919050565b6000610f3c60208361117f565b9150610f4782611399565b602082019050919050565b6000610f5f60108361117f565b9150610f6a826113c2565b602082019050919050565b6000610f8260208361117f565b9150610f8d826113eb565b602082019050919050565b610fa181611275565b82525050565b6000602082019050610fbc6000830184610e80565b92915050565b6000604082019050610fd76000830185610e80565b610fe46020830184610f98565b9392505050565b60006080820190506110006000830188610e80565b61100d6020830187610f98565b61101a6040830186610f98565b818103606083015261102d818486610ead565b90509695505050505050565b600060208201905061104e6000830184610e8f565b92915050565b60006020820190506110696000830184610e9e565b92915050565b60006020820190506110846000830184610eda565b92915050565b600060208201905081810360008301526110a381610ee9565b9050919050565b600060208201905081810360008301526110c381610f0c565b9050919050565b600060208201905081810360008301526110e381610f2f565b9050919050565b6000602082019050818103600083015261110381610f52565b9050919050565b6000602082019050818103600083015261112381610f75565b9050919050565b600060208201905061113f6000830184610f98565b92915050565b600060408201905061115a6000830185610f98565b6111676020830184610f98565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600061119b82611275565b91506111a683611275565b9250826111b6576111b56112e1565b5b828204905092915050565b60006111cc82611275565b91506111d783611275565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156112105761120f6112b2565b5b828202905092915050565b600061122682611255565b9050919050565b60008115159050919050565b6000819050919050565b600061124e8261121b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061128a82611291565b9050919050565b600061129c82611255565b9050919050565b82818337600083830152505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41525448466c6173684d696e7465723a2043616c6c6261636b206661696c6564600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61141d8161121b565b811461142857600080fd5b50565b6114348161122d565b811461143f57600080fd5b50565b61144b81611239565b811461145657600080fd5b50565b61146281611243565b811461146d57600080fd5b50565b61147981611275565b811461148457600080fd5b5056fea26469706673582212209f8f9a10f9f8fe503743183a739ce646f7164017b49d8f01a162dc8bb424f6a964736f6c63430008040033

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

0000000000000000000000008cc0f052fff7ead7f2edcccac895502e884a8a710000000000000000000000006bfc9db28f0a6d11a8d9d64c86026ddd2fad293b0000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc00000000000000000000000000000000000000000000000000000000000003e8

-----Decoded View---------------
Arg [0] : token_ (address): 0x8CC0F052fff7eaD7f2EdCCcaC895502E884a8a71
Arg [1] : fund_ (address): 0x6bfc9DB28f0A6d11a8d9d64c86026DDD2fad293B
Arg [2] : governance_ (address): 0x6357EDbfE5aDA570005ceB8FAd3139eF5A8863CC
Arg [3] : fee_ (uint256): 1000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008cc0f052fff7ead7f2edcccac895502e884a8a71
Arg [1] : 0000000000000000000000006bfc9db28f0a6d11a8d9d64c86026ddd2fad293b
Arg [2] : 0000000000000000000000006357edbfe5ada570005ceb8fad3139ef5a8863cc
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8


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.