ERC-20
Protocol
Overview
Max Total Supply
46,645,022.680884071890972314 USDM
Holders
169 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.004839365919855705 USDMValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
USDM
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "../interfaces/IMochiEngine.sol"; import "../interfaces/IERC3156FlashLender.sol"; contract USDM is ERC20, IUSDM { IMochiEngine public immutable engine; uint256 private constant SCALE = 1e18; bytes32 public constant CALLBACK_SUCCESS = keccak256("ERC3156FlashBorrower.onFlashLoan"); constructor(address _engine) ERC20("USDM", "USDM") { engine = IMochiEngine(_engine); } modifier onlyMinter() { require(msg.sender == address(engine.minter()), "!minter"); _; } function mint(address _recipient, uint256 _amount) external override onlyMinter { _mint(_recipient, _amount); } function burn(uint256 _amount) external override { _burn(msg.sender, _amount); } function maxFlashLoan(address _token) external view override returns (uint256) { require(_token == address(this), "!this"); return type(uint256).max - totalSupply(); } function flashFee(address _token, uint256 _amount) public view override returns (uint256) { //should return 0.1337% * _amount; require(_token == address(this), "!supported"); return (_amount * ((1337 * SCALE) / 1000000)) / SCALE; } function flashLoan( IERC3156FlashBorrower _receiver, address _token, uint256 _amount, bytes calldata _data ) external override returns (bool) { require(_token == address(this), "!supported"); uint256 fee = flashFee(_token, _amount); _mint(address(_receiver), _amount); require( _receiver.onFlashLoan(msg.sender, _token, _amount, fee, _data) == CALLBACK_SUCCESS, "!callback" ); _burn(address(_receiver), _amount); _transfer(address(_receiver), engine.treasury(), fee); return true; } }
// SPDX-License-Identifier: MIT 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override 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 virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), 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: * * - `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 virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `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 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 {} }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@mochifi/vmochi/contracts/interfaces/IVMochi.sol"; import "@mochifi/cssr/contracts/interfaces/ICSSRRouter.sol"; import "./IMochiProfile.sol"; import "./IDiscountProfile.sol"; import "./IMochiVault.sol"; import "./IFeePool.sol"; import "./IReferralFeePool.sol"; import "./ILiquidator.sol"; import "./IUSDM.sol"; import "./IMochi.sol"; import "./IMinter.sol"; import "./IMochiNFT.sol"; import "./IMochiVaultFactory.sol"; interface IMochiEngine { function mochi() external view returns (IMochi); function vMochi() external view returns (IVMochi); function usdm() external view returns (IUSDM); function cssr() external view returns (ICSSRRouter); function governance() external view returns (address); function treasury() external view returns (address); function operationWallet() external view returns (address); function mochiProfile() external view returns (IMochiProfile); function discountProfile() external view returns (IDiscountProfile); function feePool() external view returns (IFeePool); function referralFeePool() external view returns (IReferralFeePool); function liquidator() external view returns (ILiquidator); function minter() external view returns (IMinter); function nft() external view returns (IMochiNFT); function vaultFactory() external view returns (IMochiVaultFactory); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "./IERC3156FlashBorrower.sol"; interface IERC3156FlashLender { /** * @dev The amount of currency available to be lent. * @param token The loan currency. * @return The amount of `token` that can be borrowed. */ function maxFlashLoan(address token) external view returns (uint256); /** * @dev The fee to be charged for a given loan. * @param token The loan currency. * @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(address token, 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 token The loan currency. * @param amount The amount of tokens lent. * @param data Arbitrary data structure, intended to contain user-defined parameters. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT 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); }
// SPDX-License-Identifier: MIT 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; } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IVMochi { function locked(address _user) external view returns(int128, uint256); function depositFor(address _user, uint256 _amount) external; function balanceOf(address _user) external view returns(uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@mochifi/library/contracts/Float.sol"; interface ICSSRRouter { function update(address _asset, bytes memory _data) external returns (float memory); function getPrice(address _asset) external view returns (float memory); function getLiquidity(address _asset) external view returns (uint256); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@mochifi/library/contracts/Float.sol"; enum AssetClass { Invalid, Stable, Alpha, Gamma, Delta, Zeta, Sigma, Revoked } interface IMochiProfile { function assetClass(address _asset) external view returns (AssetClass); function liquidityRequirement() external view returns (uint256); function minimumDebt() external view returns (uint256); function changeAssetClass( address[] calldata _asset, AssetClass[] calldata _class ) external; function changeLiquidityRequirement(uint256 _requirement) external; function changeMinimumDebt(uint256 _debt) external; function calculateFeeIndex( address _asset, uint256 _currentIndex, uint256 _lastAccrued ) external view returns (uint256); function creditCap(address _asset) external view returns (uint256); function delay() external view returns (uint256); function liquidationFactor(address _asset) external view returns (float memory); function maxCollateralFactor(address _asset) external view returns (float memory); function stabilityFee(address _asset) external view returns (float memory); function liquidationFee(address _asset) external view returns (float memory); function keeperFee(address _asset) external view returns (float memory); function utilizationRatio(address _asset) external view returns (float memory); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@mochifi/library/contracts/Float.sol"; interface IDiscountProfile { function discount(address _user) external view returns (float memory); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; struct Detail { Status status; uint256 collateral; uint256 debt; uint256 debtIndex; address referrer; } enum Status { Invalid, // not minted Idle, // debt = 0, collateral = 0 Collaterized, // debt = 0, collateral > 0 Active, // debt > 0, collateral > 0 Liquidated } interface IMochiVault { function liveDebtIndex() external view returns (uint256); function details(uint256 _nftId) external view returns ( Status, uint256 collateral, uint256 debt, uint256 debtIndexe, address refferer ); function status(uint256 _nftId) external view returns (Status); function asset() external view returns (IERC20); function deposits() external view returns (uint256); function debts() external view returns (uint256); function claimable() external view returns (int256); function currentDebt(uint256 _nftId) external view returns (uint256); function initialize(address _asset) external; function deposit(uint256 _nftId, uint256 _amount) external; function withdraw( uint256 _nftId, uint256 _amount, bytes memory _data ) external; function borrow( uint256 _nftId, uint256 _amount, bytes memory _data ) external; function repay(uint256 _nftId, uint256 _amount) external; function liquidate( uint256 _nftId, uint256 _collateral, uint256 _usdm ) external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IFeePool { function updateReserve() external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IReferralFeePool { function addReward(address _recipient) external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface ILiquidator { event Triggered(uint256 _auctionId, uint256 _price); event Settled(uint256 _auctionId, uint256 _price); function triggerLiquidation(address _asset, uint256 _nftId) external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./IERC3156FlashLender.sol"; interface IUSDM is IERC20, IERC3156FlashLender { function mint(address _recipient, uint256 _amount) external; function burn(uint256 _amount) external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IMochi is IERC20 {}
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IMinter { function mint(address _to, uint256 _amount) external; function hasPermission(address _user) external view returns (bool); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IMochiNFT is IERC721Enumerable { struct MochiInfo { address asset; } function asset(uint256 _id) external view returns (address); function mint(address _asset, address _owner) external returns (uint256); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "./IMochiVault.sol"; interface IMochiVaultFactory { function updateTemplate(address _template) external; function deployVault(address _asset) external returns (IMochiVault); function getVault(address _asset) external view returns (IMochiVault); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; struct float { uint256 numerator; uint256 denominator; } library Float { function multiply(uint256 a, float memory f) internal pure returns(uint256) { require(f.denominator != 0, "div 0"); return a * f.numerator / f.denominator; } function inverse(float memory f) internal pure returns(float memory) { require(f.numerator != 0 && f.denominator != 0, "div 0"); return float({ numerator: f.denominator, denominator: f.numerator }); } function divide(uint256 a, float memory f) internal pure returns(uint256) { require(f.denominator != 0, "div 0"); return a * f.denominator / f.numerator; } function add(float memory a, float memory b) internal pure returns(float memory res) { require(a.denominator != 0 && b.denominator != 0, "div 0"); res = float({ numerator : a.numerator*b.denominator + a.denominator*b.numerator, denominator : a.denominator*b.denominator }); if(res.numerator > 2**128 && res.denominator > 2**128){ res.numerator = res.numerator / 2**64; res.denominator = res.denominator / 2**64; } } function sub(float memory a, float memory b) internal pure returns(float memory res) { require(a.denominator != 0 && b.denominator != 0, "div 0"); res = float({ numerator : a.numerator*b.denominator - b.numerator*a.denominator, denominator : a.denominator*b.denominator }); if(res.numerator > 2**128 && res.denominator > 2**128){ res.numerator = res.numerator / 2**64; res.denominator = res.denominator / 2**64; } } function mul(float memory a, float memory b) internal pure returns(float memory res) { require(a.denominator != 0 && b.denominator != 0, "div 0"); res = float({ numerator : a.numerator * b.numerator, denominator : a.denominator * b.denominator }); if(res.numerator > 2**128 && res.denominator > 2**128){ res.numerator = res.numerator / 2**64; res.denominator = res.denominator / 2**64; } } function gt(float memory a, float memory b) internal pure returns(bool) { require(a.denominator != 0 && b.denominator != 0, "div 0"); return a.numerator * b.denominator > a.denominator * b.numerator; } function lt(float memory a, float memory b) internal pure returns(bool) { require(a.denominator != 0 && b.denominator != 0, "div 0"); return a.numerator * b.denominator < a.denominator * b.numerator; } function gte(float memory a, float memory b) internal pure returns(bool) { require(a.denominator != 0 && b.denominator != 0, "div 0"); return a.numerator * b.denominator >= a.denominator * b.numerator; } function lte(float memory a, float memory b) internal pure returns(bool) { require(a.denominator != 0 && b.denominator != 0, "div 0"); return a.numerator * b.denominator <= a.denominator * b.numerator; } function equals(float memory a, float memory b) internal pure returns(bool) { require(a.denominator != 0 && b.denominator != 0, "div 0"); return a.numerator * b.denominator == b.numerator * a.denominator; } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IERC3156FlashBorrower { /** * @dev Receive a flash loan. * @param initiator The initiator of the loan. * @param token The loan currency. * @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 "ERC3156FlashBorrower.onFlashLoan" */ function onFlashLoan( address initiator, address token, uint256 amount, uint256 fee, bytes calldata data ) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_engine","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CALLBACK_SUCCESS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"engine","outputs":[{"internalType":"contract IMochiEngine","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"_receiver","type":"address"},{"internalType":"address","name":"_token","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200134a3803806200134a833981016040819052620000349162000148565b6040805180820182526004808252635553444d60e01b6020808401828152855180870190965292855284015281519192916200007391600391620000a2565b50805162000089906004906020840190620000a2565b50505060601b6001600160601b031916608052620001b7565b828054620000b0906200017a565b90600052602060002090601f016020900481019282620000d457600085556200011f565b82601f10620000ef57805160ff19168380011785556200011f565b828001600101855582156200011f579182015b828111156200011f57825182559160200191906001019062000102565b506200012d92915062000131565b5090565b5b808211156200012d576000815560010162000132565b6000602082840312156200015b57600080fd5b81516001600160a01b03811681146200017357600080fd5b9392505050565b600181811c908216806200018f57607f821691505b60208210811415620001b157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c611166620001e4600039600081816102740152818161048f01526106d501526111666000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063613255ab116100a2578063a457c2d711610071578063a457c2d714610249578063a9059cbb1461025c578063c9d4623f1461026f578063d9d98ce4146102ae578063dd62ed3e146102c157600080fd5b8063613255ab146101de57806370a08231146101f15780638237e5381461021a57806395d89b411461024157600080fd5b8063313ce567116100e9578063313ce56714610181578063395093511461019057806340c10f19146101a357806342966c68146101b85780635cffe9de146101cb57600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b6101236102fa565b604051610130919061102e565b60405180910390f35b61014c610147366004610ed5565b61038c565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610e94565b6103a2565b60405160128152602001610130565b61014c61019e366004610ed5565b610451565b6101b66101b1366004610ed5565b61048d565b005b6101b66101c6366004610fb9565b610576565b61014c6101d9366004610f1a565b610583565b6101606101ec366004610e21565b610777565b6101606101ff366004610e21565b6001600160a01b031660009081526020819052604090205490565b6101607f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd981565b6101236107ce565b61014c610257366004610ed5565b6107dd565b61014c61026a366004610ed5565b610876565b6102967f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610130565b6101606102bc366004610ed5565b610883565b6101606102cf366004610e5b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b606060038054610309906110f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906110f3565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b6000610399338484610908565b50600192915050565b60006103af848484610a2d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104395760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104468533858403610908565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610399918590610488908690611083565b610908565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b1580156104e657600080fd5b505afa1580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051e9190610e3e565b6001600160a01b0316336001600160a01b0316146105685760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610430565b6105728282610bfc565b5050565b6105803382610cdb565b50565b60006001600160a01b03851630146105ca5760405162461bcd60e51b815260206004820152600a602482015269085cdd5c1c1bdc9d195960b21b6044820152606401610430565b60006105d68686610883565b90506105e28786610bfc565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b9061063a9033908b908b9088908c908c90600401610fd2565b602060405180830381600087803b15801561065457600080fd5b505af1158015610668573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068c9190610f01565b146106c55760405162461bcd60e51b81526020600482015260096024820152682163616c6c6261636b60b81b6044820152606401610430565b6106cf8786610cdb565b61076a877f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610e3e565b83610a2d565b5060019695505050505050565b60006001600160a01b03821630146107b95760405162461bcd60e51b8152602060048201526005602482015264217468697360d81b6044820152606401610430565b6002546107c8906000196110dc565b92915050565b606060048054610309906110f3565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561085f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610430565b61086c3385858403610908565b5060019392505050565b6000610399338484610a2d565b60006001600160a01b03831630146108ca5760405162461bcd60e51b815260206004820152600a602482015269085cdd5c1c1bdc9d195960b21b6044820152606401610430565b670de0b6b3a7640000620f42406108e3826105396110bd565b6108ed919061109b565b6108f790846110bd565b610901919061109b565b9392505050565b6001600160a01b03831661096a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610430565b6001600160a01b0382166109cb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610430565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610a915760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610430565b6001600160a01b038216610af35760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610430565b6001600160a01b03831660009081526020819052604090205481811015610b6b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610430565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610ba2908490611083565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610bee91815260200190565b60405180910390a350505050565b6001600160a01b038216610c525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610430565b8060026000828254610c649190611083565b90915550506001600160a01b03821660009081526020819052604081208054839290610c91908490611083565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610d3b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610430565b6001600160a01b03821660009081526020819052604090205481811015610daf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610430565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dde9084906110dc565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a20565b600060208284031215610e3357600080fd5b813561090181611144565b600060208284031215610e5057600080fd5b815161090181611144565b60008060408385031215610e6e57600080fd5b8235610e7981611144565b91506020830135610e8981611144565b809150509250929050565b600080600060608486031215610ea957600080fd5b8335610eb481611144565b92506020840135610ec481611144565b929592945050506040919091013590565b60008060408385031215610ee857600080fd5b8235610ef381611144565b946020939093013593505050565b600060208284031215610f1357600080fd5b5051919050565b600080600080600060808688031215610f3257600080fd5b8535610f3d81611144565b94506020860135610f4d81611144565b935060408601359250606086013567ffffffffffffffff80821115610f7157600080fd5b818801915088601f830112610f8557600080fd5b813581811115610f9457600080fd5b896020828501011115610fa657600080fd5b9699959850939650602001949392505050565b600060208284031215610fcb57600080fd5b5035919050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208083528351808285015260005b8181101561105b5785810183015185820160400152820161103f565b8181111561106d576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156110965761109661112e565b500190565b6000826110b857634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156110d7576110d761112e565b500290565b6000828210156110ee576110ee61112e565b500390565b600181811c9082168061110757607f821691505b6020821081141561112857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461058057600080fdfea164736f6c6343000807000a000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063613255ab116100a2578063a457c2d711610071578063a457c2d714610249578063a9059cbb1461025c578063c9d4623f1461026f578063d9d98ce4146102ae578063dd62ed3e146102c157600080fd5b8063613255ab146101de57806370a08231146101f15780638237e5381461021a57806395d89b411461024157600080fd5b8063313ce567116100e9578063313ce56714610181578063395093511461019057806340c10f19146101a357806342966c68146101b85780635cffe9de146101cb57600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b6101236102fa565b604051610130919061102e565b60405180910390f35b61014c610147366004610ed5565b61038c565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610e94565b6103a2565b60405160128152602001610130565b61014c61019e366004610ed5565b610451565b6101b66101b1366004610ed5565b61048d565b005b6101b66101c6366004610fb9565b610576565b61014c6101d9366004610f1a565b610583565b6101606101ec366004610e21565b610777565b6101606101ff366004610e21565b6001600160a01b031660009081526020819052604090205490565b6101607f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd981565b6101236107ce565b61014c610257366004610ed5565b6107dd565b61014c61026a366004610ed5565b610876565b6102967f000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f81565b6040516001600160a01b039091168152602001610130565b6101606102bc366004610ed5565b610883565b6101606102cf366004610e5b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b606060038054610309906110f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906110f3565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b6000610399338484610908565b50600192915050565b60006103af848484610a2d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104395760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104468533858403610908565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610399918590610488908690611083565b610908565b7f000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f6001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b1580156104e657600080fd5b505afa1580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051e9190610e3e565b6001600160a01b0316336001600160a01b0316146105685760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610430565b6105728282610bfc565b5050565b6105803382610cdb565b50565b60006001600160a01b03851630146105ca5760405162461bcd60e51b815260206004820152600a602482015269085cdd5c1c1bdc9d195960b21b6044820152606401610430565b60006105d68686610883565b90506105e28786610bfc565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b9061063a9033908b908b9088908c908c90600401610fd2565b602060405180830381600087803b15801561065457600080fd5b505af1158015610668573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068c9190610f01565b146106c55760405162461bcd60e51b81526020600482015260096024820152682163616c6c6261636b60b81b6044820152606401610430565b6106cf8786610cdb565b61076a877f000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f6001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610e3e565b83610a2d565b5060019695505050505050565b60006001600160a01b03821630146107b95760405162461bcd60e51b8152602060048201526005602482015264217468697360d81b6044820152606401610430565b6002546107c8906000196110dc565b92915050565b606060048054610309906110f3565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561085f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610430565b61086c3385858403610908565b5060019392505050565b6000610399338484610a2d565b60006001600160a01b03831630146108ca5760405162461bcd60e51b815260206004820152600a602482015269085cdd5c1c1bdc9d195960b21b6044820152606401610430565b670de0b6b3a7640000620f42406108e3826105396110bd565b6108ed919061109b565b6108f790846110bd565b610901919061109b565b9392505050565b6001600160a01b03831661096a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610430565b6001600160a01b0382166109cb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610430565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610a915760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610430565b6001600160a01b038216610af35760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610430565b6001600160a01b03831660009081526020819052604090205481811015610b6b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610430565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610ba2908490611083565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610bee91815260200190565b60405180910390a350505050565b6001600160a01b038216610c525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610430565b8060026000828254610c649190611083565b90915550506001600160a01b03821660009081526020819052604081208054839290610c91908490611083565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610d3b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610430565b6001600160a01b03821660009081526020819052604090205481811015610daf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610430565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dde9084906110dc565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a20565b600060208284031215610e3357600080fd5b813561090181611144565b600060208284031215610e5057600080fd5b815161090181611144565b60008060408385031215610e6e57600080fd5b8235610e7981611144565b91506020830135610e8981611144565b809150509250929050565b600080600060608486031215610ea957600080fd5b8335610eb481611144565b92506020840135610ec481611144565b929592945050506040919091013590565b60008060408385031215610ee857600080fd5b8235610ef381611144565b946020939093013593505050565b600060208284031215610f1357600080fd5b5051919050565b600080600080600060808688031215610f3257600080fd5b8535610f3d81611144565b94506020860135610f4d81611144565b935060408601359250606086013567ffffffffffffffff80821115610f7157600080fd5b818801915088601f830112610f8557600080fd5b813581811115610f9457600080fd5b896020828501011115610fa657600080fd5b9699959850939650602001949392505050565b600060208284031215610fcb57600080fd5b5035919050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208083528351808285015260005b8181101561105b5785810183015185820160400152820161103f565b8181111561106d576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156110965761109661112e565b500190565b6000826110b857634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156110d7576110d761112e565b500290565b6000828210156110ee576110ee61112e565b500390565b600181811c9082168061110757607f821691505b6020821081141561112857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461058057600080fdfea164736f6c6343000807000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f
-----Decoded View---------------
Arg [0] : _engine (address): 0x860E47e6D6f4a6bCAADDFC7f17F772d2ab55bE2f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000860e47e6d6f4a6bcaaddfc7f17f772d2ab55be2f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.