FTM Price: $0.99 (-3.38%)
Gas: 33 GWei

Contract

0x6815F4Ede06db86D45F599807A235DAeeE737420
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Initialize70543912021-05-20 16:01:331043 days ago1621526493IN
0x6815F4Ed...eeE737420
0 FTM0.00768753102
0x608060406497912020-09-18 9:53:551288 days ago1600422835IN
 Create: FantomMintAddressProvider
0 FTM0.001034881

Latest 1 internal transaction

Parent Txn Hash Block From To Value
6497912020-09-18 9:53:551288 days ago1600422835  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FantomMintAddressProvider

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 5000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at ftmscan.com on 2021-02-24
*/

pragma solidity ^0.5.0;

/**
 * This represents an implementation of the Fantom fMint Address Provider contract.
 * The proxy of the contract is at address 0xcb20a1A22976764b882C2f03f0C8523F3df54b10.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

contract Context is Initializable {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

contract Ownable is Initializable, Context {
    address private _owner;

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

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

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    uint256[50] private ______gap;
}

contract ERC20 is Initializable, Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), 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};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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 returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

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

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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 {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 {
        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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

    uint256[50] private ______gap;
}

interface IERC20Detailed {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @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.
     *
     * 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() external view returns (uint8);
}

interface IFantomDeFiTokenStorage {
    // tokenValue returns the value of the given amount of the token specified.
    function tokenValue(address _token, uint256 _amount) external view returns (uint256);

    // total returns the total value of all the tokens registered inside the storage.
    function total() external view returns (uint256);

    // totalOf returns the value of current balance of specified account.
    function totalOf(address _account) external view returns (uint256);

    // totalOfInc returns the value of current balance of an account
    // with specified token balance increased by given amount of tokens.
    function totalOfInc(address _account, address _token, uint256 _amount) external view returns (uint256);

    // totalOfDec returns the value of current balance of an account
    // with specified token balance decreased by given amount of tokens.
    function totalOfDec(address _account, address _token, uint256 _amount) external view returns (uint256);

    // balanceOf returns the balance of the given token on the given account.
    function balanceOf(address _account, address _token) external view returns (uint256);

    // add adds specified amount of tokens to given account.
    function add(address _account, address _token, uint256 _amount) external;

    // sub removes specified amount of tokens from given account.
    function sub(address _account, address _token, uint256 _amount) external;
}

interface IFantomMintAddressProvider {
	// getFantomMint returns the address of the Fantom fMint contract.
	function getFantomMint() external view returns (IFantomMintBalanceGuard);

	// setFantomMint modifies the address of the Fantom fMint contract.
	function setFantomMint(address _addr) external;

	// getTokenRegistry returns the address of the token registry contract.
	function getTokenRegistry() external view returns (IFantomMintTokenRegistry);

	// setTokenRegistry modifies the address of the token registry contract.
	function setTokenRegistry(address _addr) external;

	// getCollateralPool returns the address of the collateral pool contract.
	function getCollateralPool() external view returns (IFantomDeFiTokenStorage);

	// setCollateralPool modifies the address of the collateral pool contract.
	function setCollateralPool(address _addr) external;

	// getDebtPool returns the address of the debt pool contract.
	function getDebtPool() external view returns (IFantomDeFiTokenStorage);

	// setDebtPool modifies the address of the debt pool contract.
	function setDebtPool(address _addr) external;

	// getRewardDistribution returns the address of the reward distribution contract.
	function getRewardDistribution() external view returns (IFantomMintRewardManager);

	// setRewardDistribution modifies the address of the reward distribution contract.
	function setRewardDistribution(address _addr) external;

	// getPriceOracleProxy returns the address of the price oracle aggregate.
	function getPriceOracleProxy() external view returns (IPriceOracleProxy);

	// setPriceOracleProxy modifies the address of the price oracle aggregate.
	function setPriceOracleProxy(address _addr) external;

	// getRewardToken returns the address of the reward token ERC20 contract.
	function getRewardToken() external view returns (ERC20);

	// setRewardToken modifies the address of the reward token ERC20 contract.
	function setRewardToken(address _addr) external;
}

contract FantomMintAddressProvider is Initializable, Ownable, IFantomMintAddressProvider {

    // ----------------------------------------------
    // Module identifiers used by the address storage
    // ----------------------------------------------
    //
    bytes32 private constant MOD_FANTOM_MINT = "fantom_mint";
    bytes32 private constant MOD_COLLATERAL_POOL = "collateral_pool";
    bytes32 private constant MOD_DEBT_POOL = "debt_pool";
    bytes32 private constant MOD_PRICE_ORACLE = "price_oracle_proxy";
    bytes32 private constant MOD_REWARD_DISTRIBUTION = "reward_distribution";
    bytes32 private constant MOD_TOKEN_REGISTRY = "token_registry";
    bytes32 private constant MOD_ERC20_REWARD_TOKEN = "erc20_reward_token";

    // -----------------------------------------
    // Address storage state and events
    // -----------------------------------------

    // _addressPool stores addresses to the different modules
    // identified their common names.
    mapping(bytes32 => address) private _addressPool;

    // MinterChanged even is emitted when
    // a new fMint Minter address is set.
    event MinterChanged(address newAddress);

    // PriceOracleChanged even is emitted when
    // a new Price Oracle address is set.
    event PriceOracleChanged(address newAddress);

    // RewardDistributionChanged even is emitted when
    // a new Reward Distribution address is set.
    event RewardDistributionChanged(address newAddress);

    // RewardTokenChanged even is emitted when
    // a new reward ERC20 token address is set.
    event RewardTokenChanged(address newAddress);

    // TokenRegistryChanged even is emitted when
    // a new Token Registry address is set.
    event TokenRegistryChanged(address newAddress);

    // CollateralPoolChanged even is emitted when
    // a new Collateral Pool address is set.
    event CollateralPoolChanged(address newAddress);

    // DebtPoolChanged even is emitted when
    // a new Debt Pool address is set.
    event DebtPoolChanged(address newAddress);

    // initialize initializes the instance of the module.
    function initialize(address owner) public initializer {
        Ownable.initialize(owner);
    }

    // --------------------------------------------
    // General address storage management functions
    // --------------------------------------------

    /**
    * getAddress returns the address associated with the given
    * module identifier. If the identifier is not recognized,
    * the function returns zero address instead.
    *
    * @param _id The common name of the module contract.
    * @return The address of the deployed module.
    */
    function getAddress(bytes32 _id) public view returns (address) {
        return _addressPool[_id];
    }

    /**
    * setAddress modifies the active address of the given module,
    * identified by it's common name, to the new address.
    *
    * @param _id The common name of the module contract.
    * @param _addr The new address to be used for the module.
    * @return {void}
    */
    function setAddress(bytes32 _id, address _addr) internal {
        _addressPool[_id] = _addr;
    }

    // -----------------------------------------
    // Module specific getters and setters below
    // -----------------------------------------

    /**
     * getPriceOracleProxy returns the address of the Price Oracle
     * aggregate contract used for the fLend DeFi functions.
     */
    function getPriceOracleProxy() public view returns (IPriceOracleProxy) {
        return IPriceOracleProxy(getAddress(MOD_PRICE_ORACLE));
    }

    /**
     * setPriceOracleProxy modifies the current current active price oracle aggregate
     * to the address specified.
     */
    function setPriceOracleProxy(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_PRICE_ORACLE, _addr);

        // inform listeners and seekers about the change
        emit PriceOracleChanged(_addr);
    }

    /**
     * getTokenRegistry returns the address of the token registry contract.
     */
    function getTokenRegistry() public view returns (IFantomMintTokenRegistry) {
        return IFantomMintTokenRegistry(getAddress(MOD_TOKEN_REGISTRY));
    }

    /**
     * setTokenRegistry modifies the address of the token registry contract.
     */
    function setTokenRegistry(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_TOKEN_REGISTRY, _addr);

        // inform listeners and seekers about the change
        emit TokenRegistryChanged(_addr);
    }

    /**
     * getRewardDistribution returns the address
     * of the reward distribution contract.
     */
    function getRewardDistribution() public view returns (IFantomMintRewardManager) {
        return IFantomMintRewardManager(getAddress(MOD_REWARD_DISTRIBUTION));
    }

    /**
     * setRewardDistribution modifies the address
     * of the reward distribution contract.
     */
    function setRewardDistribution(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_REWARD_DISTRIBUTION, _addr);

        // inform listeners and seekers about the change
        emit RewardDistributionChanged(_addr);
    }

    /**
     * getRewardPool returns the address of the reward pool contract.
     */
    function getRewardToken() public view returns (ERC20) {
        return ERC20(getAddress(MOD_ERC20_REWARD_TOKEN));
    }

    /**
     * setRewardPool modifies the address of the reward pool contract.
     */
    function setRewardToken(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_ERC20_REWARD_TOKEN, _addr);

        // inform listeners and seekers about the change
        emit RewardTokenChanged(_addr);
    }

    /**
     * getFantomMint returns the address of the Fantom fMint contract.
     */
    function getFantomMint() public view returns (IFantomMintBalanceGuard) {
        return IFantomMintBalanceGuard(getAddress(MOD_FANTOM_MINT));
    }

    /**
     * setFantomMint modifies the address of the Fantom fMint contract.
     */
    function setFantomMint(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_FANTOM_MINT, _addr);

        // inform listeners and seekers about the change
        emit MinterChanged(_addr);
    }

    /**
     * getCollateralPool returns the address of the collateral pool contract.
     */
    function getCollateralPool() public view returns (IFantomDeFiTokenStorage) {
        return IFantomDeFiTokenStorage(getAddress(MOD_COLLATERAL_POOL));
    }

    /**
     * setCollateralPool modifies the address of the collateral pool contract.
     */
    function setCollateralPool(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_COLLATERAL_POOL, _addr);

        // inform listeners and seekers about the change
        emit CollateralPoolChanged(_addr);
    }

    /**
     * getDebtPool returns the address of the debt pool contract.
     */
    function getDebtPool() public view returns (IFantomDeFiTokenStorage) {
        return IFantomDeFiTokenStorage(getAddress(MOD_DEBT_POOL));
    }

    /**
     * setDebtPool modifies the address of the debt pool contract.
     */
    function setDebtPool(address _addr) public onlyOwner {
        // make the change
        setAddress(MOD_DEBT_POOL, _addr);

        // inform listeners and seekers about the change
        emit DebtPoolChanged(_addr);
    }
}

interface IFantomMintBalanceGuard {
    // rewardCanClaim checks if the account can claim accumulated rewards.
    function rewardCanClaim(address _account) external view returns (bool);

    // rewardIsEligible checks if the account is eligible to receive any reward.
    function rewardIsEligible(address _account) external view returns (bool);

    // collateralCanDecrease checks if the specified amount of collateral can be removed from account
    // without breaking collateral to debt ratio rule.
    function collateralCanDecrease(address _account, address _token, uint256 _amount) external view returns (bool);

    // debtCanIncrease checks if the specified amount of debt can be added to the account
    // without breaking collateral to debt ratio rule.
    function debtCanIncrease(address _account, address _token, uint256 _amount) external view returns (bool);
}

interface IFantomMintRewardManager {
    // rewardUpdate updates the stored reward distribution state for the account.
    function rewardUpdate(address _account) external;
}

interface IFantomMintTokenRegistry {

    // priceDecimals returns the number of decimal places a price
    // returned for the given token will be encoded to.
	function priceDecimals(address _token) external view returns (uint8);

    // isActive informs if the specified token is active and can be used in DeFi protocols.
    function isActive(address _token) external view returns (bool);

    // canMint informs if the specified token can be deposited to collateral pool.
    function canDeposit(address _token) external view returns (bool);

	// canMint informs if the given token can be minted in the fMint protocol.
    function canMint(address _token) external view returns (bool);
}

interface IPriceOracleProxy {
    // getPrice implements the oracle for getting a specified token value
    // compared to the underlying stable denomination.
    function getPrice(address _token) external view returns (uint256);
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"CollateralPoolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"DebtPoolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"MinterChanged","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":"newAddress","type":"address"}],"name":"PriceOracleChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"RewardDistributionChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"RewardTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TokenRegistryChanged","type":"event"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_id","type":"bytes32"}],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCollateralPool","outputs":[{"internalType":"contract IFantomDeFiTokenStorage","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getDebtPool","outputs":[{"internalType":"contract IFantomDeFiTokenStorage","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getFantomMint","outputs":[{"internalType":"contract IFantomMintBalanceGuard","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getPriceOracleProxy","outputs":[{"internalType":"contract IPriceOracleProxy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRewardDistribution","outputs":[{"internalType":"contract IFantomMintRewardManager","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRewardToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTokenRegistry","outputs":[{"internalType":"contract IFantomMintTokenRegistry","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setCollateralPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setDebtPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setFantomMint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setPriceOracleProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setRewardToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setTokenRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526111e4806100136000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c8063715018a6116100cd5780638f32d59b11610081578063cc653b9a11610066578063cc653b9a1461034f578063f2fde38b14610382578063fcc3c074146103b55761016c565b80638f32d59b14610300578063c4d66de81461031c5761016c565b806384d9319e116100b257806384d9319e146102bd5780638aee8127146102c55780638da5cb5b146102f85761016c565b8063715018a6146102ad57806373c9641d146102b55761016c565b806321f8a7211161012457806342ae86841161010957806342ae86841461026a578063449697111461029d57806369940d79146102a55761016c565b806321f8a7211461021a57806335a5af92146102375761016c565b8063057838bd11610155578063057838bd146101aa5780630d68b761146101b25780631ba28878146101e75761016c565b806303ec357f14610171578063045bb7f8146101a2575b600080fd5b6101796103e8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610179610418565b610179610443565b6101e5600480360360208110156101c857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661046e565b005b6101e5600480360360208110156101fd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610557565b6101796004803603602081101561023057600080fd5b5035610640565b6101e56004803603602081101561024d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610668565b6101e56004803603602081101561028057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610751565b61017961083a565b610179610865565b6101e5610890565b610179610972565b61017961099d565b6101e5600480360360208110156102db57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166109c8565b610179610ab1565b610308610acd565b604080519115158252519081900360200190f35b6101e56004803603602081101561033257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b0d565b6101e56004803603602081101561036557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c2b565b6101e56004803603602081101561039857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d14565b6101e5600480360360208110156103cb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d93565b60006104137f646562745f706f6f6c0000000000000000000000000000000000000000000000610640565b905090565b60006104137f70726963655f6f7261636c655f70726f78790000000000000000000000000000610640565b60006104137f746f6b656e5f7265676973747279000000000000000000000000000000000000610640565b610476610acd565b6104e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61050b7f7265776172645f646973747269627574696f6e0000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517ffe09426f22c44354b62f360c333309adadd6392ae248adc902f3006c7c4b92059181900360200190a150565b61055f610acd565b6105ca57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6105f47f636f6c6c61746572616c5f706f6f6c000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517f9ee268d502b2200c71bbd3cba8222b4f501a7b505c684bd40423fd446bb29fad9181900360200190a150565b60009081526066602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b610670610acd565b6106db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107057f746f6b656e5f726567697374727900000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb6f925ec7d36d613e5d1aa87c0de3ee16a0167e6bdfa2ea254e5fee9870a941e9181900360200190a150565b610759610acd565b6107c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107ee7f646562745f706f6f6c000000000000000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517ff10b554a663200a2ae53269b5aeb591082984e03e47f76ec558f283c01b116d49181900360200190a150565b60006104137f66616e746f6d5f6d696e74000000000000000000000000000000000000000000610640565b60006104137f65726332305f7265776172645f746f6b656e0000000000000000000000000000610640565b610898610acd565b61090357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60335460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006104137f636f6c6c61746572616c5f706f6f6c0000000000000000000000000000000000610640565b60006104137f7265776172645f646973747269627574696f6e00000000000000000000000000610640565b6109d0610acd565b610a3b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a657f65726332305f7265776172645f746f6b656e000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb74d956cf6ec7842d08ebf0ab19ec03a88c1efd4a50ea4349d30f9c4ce512e989181900360200190a150565b60335473ffffffffffffffffffffffffffffffffffffffff1690565b60335460009073ffffffffffffffffffffffffffffffffffffffff16610af1610ecf565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600054610100900460ff1680610b265750610b26610ed3565b80610b34575060005460ff16155b610b89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611182602e913960400191505060405180910390fd5b600054610100900460ff16158015610bef57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b610bf882610ed9565b8015610c2757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b5050565b610c33610acd565b610c9e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610cc87f70726963655f6f7261636c655f70726f7879000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb36d86785c7d32b1ad714bb705e00e93eccc37b8cf47549043e61e10908ad2519181900360200190a150565b610d1c610acd565b610d8757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610d9081611061565b50565b610d9b610acd565b610e0657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610e307f66616e746f6d5f6d696e7400000000000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb6b8f1859c5c352e5ffad07d0f77e384ac725512c015bd3a3ffc885831c8a4259181900360200190a150565b60009182526066602052604090912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3390565b303b1590565b600054610100900460ff1680610ef25750610ef2610ed3565b80610f00575060005460ff16155b610f55576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611182602e913960400191505060405180910390fd5b600054610100900460ff16158015610fbb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610c2757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555050565b73ffffffffffffffffffffffffffffffffffffffff81166110cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061115c6026913960400191505060405180910390fd5b60335460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a265627a7a723158208ea24a0f6a5d2fcfb358212837f10967d67a976f1de82abed49cc0cceb530e2e64736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061016c5760003560e01c8063715018a6116100cd5780638f32d59b11610081578063cc653b9a11610066578063cc653b9a1461034f578063f2fde38b14610382578063fcc3c074146103b55761016c565b80638f32d59b14610300578063c4d66de81461031c5761016c565b806384d9319e116100b257806384d9319e146102bd5780638aee8127146102c55780638da5cb5b146102f85761016c565b8063715018a6146102ad57806373c9641d146102b55761016c565b806321f8a7211161012457806342ae86841161010957806342ae86841461026a578063449697111461029d57806369940d79146102a55761016c565b806321f8a7211461021a57806335a5af92146102375761016c565b8063057838bd11610155578063057838bd146101aa5780630d68b761146101b25780631ba28878146101e75761016c565b806303ec357f14610171578063045bb7f8146101a2575b600080fd5b6101796103e8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610179610418565b610179610443565b6101e5600480360360208110156101c857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661046e565b005b6101e5600480360360208110156101fd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610557565b6101796004803603602081101561023057600080fd5b5035610640565b6101e56004803603602081101561024d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610668565b6101e56004803603602081101561028057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610751565b61017961083a565b610179610865565b6101e5610890565b610179610972565b61017961099d565b6101e5600480360360208110156102db57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166109c8565b610179610ab1565b610308610acd565b604080519115158252519081900360200190f35b6101e56004803603602081101561033257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b0d565b6101e56004803603602081101561036557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c2b565b6101e56004803603602081101561039857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d14565b6101e5600480360360208110156103cb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d93565b60006104137f646562745f706f6f6c0000000000000000000000000000000000000000000000610640565b905090565b60006104137f70726963655f6f7261636c655f70726f78790000000000000000000000000000610640565b60006104137f746f6b656e5f7265676973747279000000000000000000000000000000000000610640565b610476610acd565b6104e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61050b7f7265776172645f646973747269627574696f6e0000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517ffe09426f22c44354b62f360c333309adadd6392ae248adc902f3006c7c4b92059181900360200190a150565b61055f610acd565b6105ca57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6105f47f636f6c6c61746572616c5f706f6f6c000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517f9ee268d502b2200c71bbd3cba8222b4f501a7b505c684bd40423fd446bb29fad9181900360200190a150565b60009081526066602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b610670610acd565b6106db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107057f746f6b656e5f726567697374727900000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb6f925ec7d36d613e5d1aa87c0de3ee16a0167e6bdfa2ea254e5fee9870a941e9181900360200190a150565b610759610acd565b6107c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107ee7f646562745f706f6f6c000000000000000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517ff10b554a663200a2ae53269b5aeb591082984e03e47f76ec558f283c01b116d49181900360200190a150565b60006104137f66616e746f6d5f6d696e74000000000000000000000000000000000000000000610640565b60006104137f65726332305f7265776172645f746f6b656e0000000000000000000000000000610640565b610898610acd565b61090357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60335460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006104137f636f6c6c61746572616c5f706f6f6c0000000000000000000000000000000000610640565b60006104137f7265776172645f646973747269627574696f6e00000000000000000000000000610640565b6109d0610acd565b610a3b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a657f65726332305f7265776172645f746f6b656e000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb74d956cf6ec7842d08ebf0ab19ec03a88c1efd4a50ea4349d30f9c4ce512e989181900360200190a150565b60335473ffffffffffffffffffffffffffffffffffffffff1690565b60335460009073ffffffffffffffffffffffffffffffffffffffff16610af1610ecf565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600054610100900460ff1680610b265750610b26610ed3565b80610b34575060005460ff16155b610b89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611182602e913960400191505060405180910390fd5b600054610100900460ff16158015610bef57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b610bf882610ed9565b8015610c2757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b5050565b610c33610acd565b610c9e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610cc87f70726963655f6f7261636c655f70726f7879000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb36d86785c7d32b1ad714bb705e00e93eccc37b8cf47549043e61e10908ad2519181900360200190a150565b610d1c610acd565b610d8757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610d9081611061565b50565b610d9b610acd565b610e0657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610e307f66616e746f6d5f6d696e7400000000000000000000000000000000000000000082610e7c565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815290517fb6b8f1859c5c352e5ffad07d0f77e384ac725512c015bd3a3ffc885831c8a4259181900360200190a150565b60009182526066602052604090912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3390565b303b1590565b600054610100900460ff1680610ef25750610ef2610ed3565b80610f00575060005460ff16155b610f55576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611182602e913960400191505060405180910390fd5b600054610100900460ff16158015610fbb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610c2757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555050565b73ffffffffffffffffffffffffffffffffffffffff81166110cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061115c6026913960400191505060405180910390fd5b60335460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a265627a7a723158208ea24a0f6a5d2fcfb358212837f10967d67a976f1de82abed49cc0cceb530e2e64736f6c63430005110032

Deployed Bytecode Sourcemap

23346:7681:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23346:7681:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30555:145;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26893:144;;;:::i;27531:157::-;;;:::i;28447:260::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28447:260:0;;;;:::i;:::-;;30214:248;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30214:248:0;;;;:::i;26077:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26077:106:0;;:::i;27792:245::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27792:245:0;;;;:::i;30794:230::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30794:230:0;;;;:::i;29366:149::-;;;:::i;28804:121::-;;;:::i;11043:140::-;;;:::i;29951:157::-;;;:::i;28158:167::-;;;:::i;29023:245::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29023:245:0;;;;:::i;10230:79::-;;;:::i;10596:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;25500:98;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25500:98:0;;;;:::i;27184:244::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27184:244:0;;;;:::i;11338:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11338:109:0;;;;:::i;29614:232::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29614:232:0;;;;:::i;30555:145::-;30599:23;30666:25;30677:13;30666:10;:25::i;:::-;30635:57;;30555:145;:::o;26893:144::-;26945:17;27000:28;27011:16;27000:10;:28::i;27531:157::-;27580:24;27649:30;27660:18;27649:10;:30::i;28447:260::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28549:42;28560:23;28585:5;28549:10;:42::i;:::-;28667:32;;;;;;;;;;;;;;;;;;;28447:260;:::o;30214:248::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30312:38;30323:19;30344:5;30312:10;:38::i;:::-;30426:28;;;;;;;;;;;;;;;;;;;30214:248;:::o;26077:106::-;26131:7;26158:17;;;:12;:17;;;;;;;;;26077:106::o;27792:245::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27889:37;27900:18;27920:5;27889:10;:37::i;:::-;28002:27;;;;;;;;;;;;;;;;;;;27792:245;:::o;30794:230::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30886:32;30897:13;30912:5;30886:10;:32::i;:::-;30994:22;;;;;;;;;;;;;;;;;;;30794:230;:::o;29366:149::-;29412:23;29479:27;29490:15;29479:10;:27::i;28804:121::-;28851:5;28882:34;28893:22;28882:10;:34::i;11043:140::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11126:6;;11105:40;;11142:1;;11105:40;11126:6;;11105:40;;11142:1;;11105:40;11156:6;:19;;;;;;11043:140::o;29951:157::-;30001:23;30068:31;30079:19;30068:10;:31::i;28158:167::-;28212:24;28281:35;28292:23;28281:10;:35::i;29023:245::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29118:41;29129:22;29153:5;29118:10;:41::i;:::-;29235:25;;;;;;;;;;;;;;;;;;;29023:245;:::o;10230:79::-;10295:6;;;;10230:79;:::o;10596:94::-;10676:6;;10636:4;;10676:6;;10660:12;:10;:12::i;:::-;:22;;;10653:29;;10596:94;:::o;25500:98::-;8084:12;;;;;;;;:31;;;8100:15;:13;:15::i;:::-;8084:47;;;-1:-1:-1;8120:11:0;;;;8119:12;8084:47;8076:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8191:19;8214:12;;;;;;8213:13;8233:83;;;;8262:12;:19;;8290:18;8262:19;;;;;;8290:18;8277:4;8290:18;;;8233:83;25565:25;25584:5;25565:18;:25::i;:::-;8338:14;8334:57;;;8378:5;8363:20;;;;;;8334:57;25500:98;;:::o;27184:244::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27284:35;27295:16;27313:5;27284:10;:35::i;:::-;27395:25;;;;;;;;;;;;;;;;;;;27184:244;:::o;11338:109::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11411:28;11430:8;11411:18;:28::i;:::-;11338:109;:::o;29614:232::-;10442:9;:7;:9::i;:::-;10434:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29708:34;29719:15;29736:5;29708:10;:34::i;:::-;29818:20;;;;;;;;;;;;;;;;;;;29614:232;:::o;26484:101::-;26552:17;;;;:12;:17;;;;;;:25;;;;;;;;;;;;;;26484:101::o;9394:98::-;9474:10;9394:98;:::o;8485:508::-;8902:4;8948:17;8980:7;8485:508;:::o;10004:145::-;8084:12;;;;;;;;:31;;;8100:15;:13;:15::i;:::-;8084:47;;;-1:-1:-1;8120:11:0;;;;8119:12;8084:47;8076:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8191:19;8214:12;;;;;;8213:13;8233:83;;;;8262:12;:19;;8290:18;8262:19;;;;;;8290:18;8277:4;8290:18;;;8233:83;10070:6;:15;;;;;;;;;;;;;;;;10101:40;;10134:6;;;-1:-1:-1;;10101:40:0;;-1:-1:-1;;10101:40:0;8338:14;8334:57;;;8378:5;8363:20;;;;;;10004:145;;:::o;11553:229::-;11627:22;;;11619:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11729:6;;11708:38;;;;;;;11729:6;;11708:38;;11729:6;;11708:38;11757:6;:17;;;;;;;;;;;;;;;11553:229::o

Swarm Source

bzzr://8ea24a0f6a5d2fcfb358212837f10967d67a976f1de82abed49cc0cceb530e2e

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.