Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
DeFi
Overview
Max Total Supply
10,000,000 MPL
Holders
10,298 ( 0.029%)
Market
Price
$17.03 @ 0.005090 ETH (+1.62%)
Onchain Market Cap
$170,300,000.00
Circulating Supply Market Cap
$67,623,749.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | XT.COM | MPL-USDT | $17.41 0.0052049 Eth | $349,499.00 20,703.970 MPL | 59.8161% |
2 | Coinbase Exchange | MPL-USD | $16.55 0.0049475 Eth | $205,228.00 12,400.483 MPL | 35.8264% |
3 | Uniswap V3 (Ethereum) | 0X33349B282065B0284D756F0577FB39C158F935E6-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $16.64 0.0049753 Eth | $24,721.00 1,472.390 0X33349B282065B0284D756F0577FB39C158F935E6 | 4.2539% |
4 | Uniswap V2 (Ethereum) | 0X33349B282065B0284D756F0577FB39C158F935E6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $17.11 0.0051156 Eth | $510.72 30.311 0X33349B282065B0284D756F0577FB39C158F935E6 | 0.0876% |
5 | LATOKEN | MPL-USDT | $17.97 0.0053728 Eth | $41.55 2.312 MPL | 0.0067% |
6 | Uniswap V3 (Ethereum) | 0X33349B282065B0284D756F0577FB39C158F935E6-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $16.51 0.0049733 Eth | $34.73 2.104 0X33349B282065B0284D756F0577FB39C158F935E6 | 0.0061% |
7 | Mercado Bitcoin | MPL-BRL | $16.58 0.0049551 Eth | $18.44 1.112 MPL | 0.0032% |
8 | Korbit | MPL-KRW | $18.02 0.0053867 Eth | $3.39 0.188 MPL | 0.0005% |
Contract Name:
MapleToken
Compiler Version
v0.6.11+commit.5ef660b1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; import "./ERC2222.sol"; contract MapleToken is ERC2222 { bytes32 public immutable DOMAIN_SEPARATOR; bytes32 public constant PERMIT_TYPEHASH = 0xfc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f; // bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 amount,uint256 nonce,uint256 deadline)"); mapping (address => uint256) public nonces; /** @dev Instantiates the MapleToken. @param name Name of the token. @param symbol Symbol of the token. @param fundsToken The asset claimable / distributed via ERC-2222, deposited to MapleToken contract. */ constructor ( string memory name, string memory symbol, address fundsToken ) ERC2222(name, symbol, fundsToken) public { uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'), keccak256(bytes(name)), keccak256(bytes('1')), chainId, address(this) ) ); require(address(fundsToken) != address(0), "MapleToken:INVALID_FUNDS_TOKEN"); _mint(msg.sender, 10_000_000 * 10 ** 18); } /** @dev Approve by signature. @param owner Owner address that signed the permit @param spender Spender of the permit @param amount Permit approval spend limit @param deadline Deadline after which the permit is invalid @param v ECDSA signature v component @param r ECDSA signature r component @param s ECDSA signature s component */ function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external { require(deadline >= block.timestamp, 'MapleToken:EXPIRED'); bytes32 digest = keccak256( abi.encodePacked( '\x19\x01', DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, amount, nonces[owner]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress == owner, 'MapleToken:INVALID_SIGNATURE'); _approve(owner, spender, amount); } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; import "lib/openzeppelin-contracts/contracts/token/ERC20/SafeERC20.sol"; import "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; import "lib/openzeppelin-contracts/contracts/math/SafeMath.sol"; import "lib/openzeppelin-contracts/contracts/math/SignedSafeMath.sol"; import "./IERC2222.sol"; import "./math/UintSafeMath.sol"; import "./math/IntSafeMath.sol"; abstract contract ERC2222 is IERC2222, ERC20 { using SafeMath for uint256; using UintSafeMath for uint256; using SignedSafeMath for int256; using IntSafeMath for int256; using SafeERC20 for IERC20; IERC20 public fundsToken; // The fundsToken (dividends) uint256 public fundsTokenBalance; // The amount of fundsToken (loanAsset) currently present and accounted for in this contract. uint256 internal constant pointsMultiplier = 2 ** 128; uint256 internal pointsPerShare; mapping(address => int256) internal pointsCorrection; mapping(address => uint256) internal withdrawnFunds; // 3 event PointsPerShareUpdated(uint256 pointsPerShare); event PointsCorrectionUpdated(address account, int256 pointsCorrection); constructor(string memory name, string memory symbol, address _fundsToken) ERC20(name, symbol) public { fundsToken = IERC20(_fundsToken); } /** * prev. distributeDividends * @dev Distributes funds to token holders. * @dev It reverts if the total supply of tokens is 0. * It emits the `FundsDistributed` event if the amount of received ether is greater than 0. * About undistributed funds: * In each distribution, there is a small amount of funds which does not get distributed, * which is `(msg.value * pointsMultiplier) % totalSupply()`. * With a well-chosen `pointsMultiplier`, the amount funds that are not getting distributed * in a distribution can be less than 1 (base unit). * We can actually keep track of the undistributed ether in a distribution * and try to distribute it in the next distribution ....... todo implement */ function _distributeFunds(uint256 value) internal { require(totalSupply() > 0, "FDT:SUPPLY_EQ_ZERO"); if (value > 0) { pointsPerShare = pointsPerShare.add(value.mul(pointsMultiplier) / totalSupply()); emit FundsDistributed(msg.sender, value); emit PointsPerShareUpdated(pointsPerShare); } } /** * @dev Prepares funds withdrawal * @dev It emits a `FundsWithdrawn` event if the amount of withdrawn ether is greater than 0. */ function _prepareWithdraw() internal returns (uint256) { uint256 _withdrawableDividend = withdrawableFundsOf(msg.sender); withdrawnFunds[msg.sender] = withdrawnFunds[msg.sender].add(_withdrawableDividend); emit FundsWithdrawn(msg.sender, _withdrawableDividend, withdrawnFunds[msg.sender]); return _withdrawableDividend; } /** * @dev Prepares funds withdrawal on behalf of a user * @dev It emits a `FundsWithdrawn` event if the amount of withdrawn ether is greater than 0. */ function _prepareWithdrawOnBehalf(address user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableFundsOf(user); withdrawnFunds[user] = withdrawnFunds[user].add(_withdrawableDividend); emit FundsWithdrawn(user, _withdrawableDividend, withdrawnFunds[user]); return _withdrawableDividend; } /** * @dev View the amount of funds that an address can withdraw. * @param _owner The address of a token holder. * @return The amount funds that `_owner` can withdraw. */ function withdrawableFundsOf(address _owner) public view override returns (uint256) { return accumulativeFundsOf(_owner).sub(withdrawnFunds[_owner]); } /** * @dev View the amount of funds that an address has withdrawn. * @param _owner The address of a token holder. * @return The amount of funds that `_owner` has withdrawn. */ function withdrawnFundsOf(address _owner) public view returns (uint256) { return withdrawnFunds[_owner]; } /** * @dev View the amount of funds that an address has earned in total. * @dev accumulativeFundsOf(_owner) = withdrawableFundsOf(_owner) + withdrawnFundsOf(_owner) * = (pointsPerShare * balanceOf(_owner) + pointsCorrection[_owner]) / pointsMultiplier * @param _owner The address of a token holder. * @return The amount of funds that `_owner` has earned in total. */ function accumulativeFundsOf(address _owner) public view returns (uint256) { return pointsPerShare .mul(balanceOf(_owner)) .toInt256Safe() .add(pointsCorrection[_owner]) .toUint256Safe() / pointsMultiplier; } /** * @dev Internal function that transfer tokens from one address to another. * Update pointsCorrection to keep funds unchanged. * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */ function _transfer( address from, address to, uint256 value ) internal virtual override { require(to != address(this), "ERC20: transferring to token contract"); super._transfer(from, to, value); int256 _magCorrection = pointsPerShare.mul(value).toInt256Safe(); pointsCorrection[from] = pointsCorrection[from].add(_magCorrection); pointsCorrection[to] = pointsCorrection[to].sub(_magCorrection); emit PointsCorrectionUpdated(from, pointsCorrection[from]); emit PointsCorrectionUpdated(to, pointsCorrection[to]); } /** * @dev Internal function that mints tokens to an account. * Update pointsCorrection to keep funds unchanged. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */ function _mint(address account, uint256 value) internal virtual override { super._mint(account, value); pointsCorrection[account] = pointsCorrection[account].sub( (pointsPerShare.mul(value)).toInt256Safe() ); emit PointsCorrectionUpdated(account, pointsCorrection[account]); } /** * @dev Internal function that burns an amount of the token of a given account. * Update pointsCorrection to keep funds unchanged. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */ function _burn(address account, uint256 value) internal virtual override { super._burn(account, value); pointsCorrection[account] = pointsCorrection[account].add( (pointsPerShare.mul(value)).toInt256Safe() ); emit PointsCorrectionUpdated(account, pointsCorrection[account]); } /** * @dev Withdraws all available funds for a token holder */ function withdrawFunds() public virtual override { uint256 withdrawableFunds = _prepareWithdraw(); if (withdrawableFunds > uint256(0)) { fundsToken.safeTransfer(msg.sender, withdrawableFunds); _updateFundsTokenBalance(); } } /** * @dev Withdraws all available funds for a token holder, on behalf of token holder */ function withdrawFundsOnBehalf(address user) public virtual { uint256 withdrawableFunds = _prepareWithdrawOnBehalf(user); if (withdrawableFunds > uint256(0)) { fundsToken.safeTransfer(user, withdrawableFunds); _updateFundsTokenBalance(); } } /** * @dev Updates the current funds token balance * and returns the difference of new and previous funds token balances * @return A int256 representing the difference of the new and previous funds token balance */ function _updateFundsTokenBalance() internal virtual returns (int256) { uint256 _prevFundsTokenBalance = fundsTokenBalance; fundsTokenBalance = fundsToken.balanceOf(address(this)); return int256(fundsTokenBalance).sub(int256(_prevFundsTokenBalance)); } /** * @dev Register a payment of funds in tokens. May be called directly after a deposit is made. * @dev Calls _updateFundsTokenBalance(), whereby the contract computes the delta of the new and the previous * funds token balance and increments the total received funds (cumulative) by delta by calling _registerFunds() */ function updateFundsReceived() public virtual { int256 newFunds = _updateFundsTokenBalance(); if (newFunds > 0) { _distributeFunds(newFunds.toUint256Safe()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.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 guidelines: functions revert instead * of 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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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); _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 virtual 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 virtual 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 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); _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 virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _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 virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _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 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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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 to 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 { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title SignedSafeMath * @dev Signed math operations with safety checks that revert on error. */ library SignedSafeMath { int256 constant private _INT256_MIN = -2**255; /** * @dev Returns the multiplication of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { // 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; } require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow"); int256 c = a * b; require(c / a == b, "SignedSafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two signed 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(int256 a, int256 b) internal pure returns (int256) { require(b != 0, "SignedSafeMath: division by zero"); require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow"); int256 c = a / b; return c; } /** * @dev Returns the subtraction of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow"); return c; } /** * @dev Returns the addition of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow"); return c; } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; interface IERC2222 { /** * @dev Returns the total amount of funds a given address is able to withdraw currently. * @param owner Address of FDT holder * @return A uint256 representing the available funds for a given account */ function withdrawableFundsOf(address owner) external view returns (uint256); /** * @dev Withdraws all available funds for a FDT holder. */ function withdrawFunds() external; /** * @dev This event emits when new funds are distributed * @param by the address of the sender who distributed funds * @param fundsDistributed the amount of funds received for distribution */ event FundsDistributed(address indexed by, uint256 fundsDistributed); /** * @dev This event emits when distributed funds are withdrawn by a token holder. * @param by the address of the receiver of funds * @param fundsWithdrawn the amount of funds that were withdrawn * @param totalWithdrawn the total amount of funds that were withdrawn */ event FundsWithdrawn(address indexed by, uint256 fundsWithdrawn, uint256 totalWithdrawn); }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; library UintSafeMath { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; library IntSafeMath { function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"fundsToken","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":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundsDistributed","type":"uint256"}],"name":"FundsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundsWithdrawn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalWithdrawn","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"int256","name":"pointsCorrection","type":"int256"}],"name":"PointsCorrectionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"pointsPerShare","type":"uint256"}],"name":"PointsPerShareUpdated","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"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":"fundsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundsTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[],"name":"updateFundsReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"withdrawFundsOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200221a3803806200221a833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491849184918491620001c4916003919085019062000664565b508051620001da90600490602084019062000664565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff19909416601217939093169290921790915550506040514691508060526200218382396040805191829003605201822087516020808a0191909120848401845260018552603160f81b94820194909452825180820192909252818301939093527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808082018690523060a0808401919091528351808403909101815260c090920190925280519201919091209052506001600160a01b0382166200030c576040805162461bcd60e51b815260206004820152601e60248201527f4d61706c65546f6b656e3a494e56414c49445f46554e44535f544f4b454e0000604482015290519081900360640190fd5b6200032c336a084595161401484a0000006001600160e01b036200033616565b5050505062000709565b6200034d82826200040a60201b62000b591760201c565b620003af6200038262000371836007546200052260201b62000c551790919060201c565b6200058960201b62000cae1760201c565b6001600160a01b038416600090815260086020908152604090912054919062000cbe6200059a821b17901c565b6001600160a01b038316600081815260086020908152604091829020849055815192835282019290925281517ff694bebd33ada288ae2f4485315db76739e2d5501daf315e71c9d8f841aa7773929181900390910190a15050565b6001600160a01b03821662000466576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200047d600083836001600160e01b036200060416565b62000499816002546200060960201b62000d231790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620004cc91839062000d2362000609821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082620005335750600062000583565b828202828482816200054157fe5b0414620005805760405162461bcd60e51b8152600401808060200182810382526021815260200180620021d56021913960400191505060405180910390fd5b90505b92915050565b600081818112156200058357600080fd5b6000818303818312801590620005b05750838113155b80620005c75750600083128015620005c757508381135b620005805760405162461bcd60e51b8152600401808060200182810382526024815260200180620021f66024913960400191505060405180910390fd5b505050565b60008282018381101562000580576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006a757805160ff1916838001178555620006d7565b82800160010185558215620006d7579182015b82811115620006d7578251825591602001919060010190620006ba565b50620006e5929150620006e9565b5090565b6200070691905b80821115620006e55760008155600101620006f0565b90565b608051611a5a62000729600039806106865280610a045250611a5a6000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c806346c162de116100c357806395d89b411161007c57806395d89b41146103d2578063a457c2d7146103da578063a9059cbb14610406578063a9691f3f14610432578063d505accf1461043a578063dd62ed3e1461048b5761014c565b806346c162de1461030e5780634e97415f1461031657806361ec7bb51461033c57806363f04b151461036257806370a08231146103865780637ecebe00146103ac5761014c565b806324600fc31161011557806324600fc31461028457806330adf81f1461028e578063313ce567146102965780633644e515146102b457806339509351146102bc578063443bb293146102e85761014c565b806241c52c1461015157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd1461024e575b600080fd5b6101776004803603602081101561016757600080fd5b50356001600160a01b03166104b9565b60408051918252519081900360200190f35b6101916104d4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b03813516906020013561056a565b604080519115158252519081900360200190f35b610177610588565b6102326004803603606081101561026457600080fd5b506001600160a01b0381358116916020810135909116906040013561058e565b61028c61061c565b005b610177610657565b61029e61067b565b6040805160ff9092168252519081900360200190f35b610177610684565b610232600480360360408110156102d257600080fd5b506001600160a01b0381351690602001356106a8565b610177600480360360208110156102fe57600080fd5b50356001600160a01b03166106fc565b61028c61072e565b6101776004803603602081101561032c57600080fd5b50356001600160a01b0316610754565b61028c6004803603602081101561035257600080fd5b50356001600160a01b03166107bd565b61036a6107f9565b604080516001600160a01b039092168252519081900360200190f35b6101776004803603602081101561039c57600080fd5b50356001600160a01b031661080d565b610177600480360360208110156103c257600080fd5b50356001600160a01b0316610828565b61019161083a565b610232600480360360408110156103f057600080fd5b506001600160a01b03813516906020013561089b565b6102326004803603604081101561041c57600080fd5b506001600160a01b038135169060200135610909565b61017761091d565b61028c600480360360e081101561045057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610923565b610177600480360360408110156104a157600080fd5b506001600160a01b0381358116916020013516610b2e565b6001600160a01b031660009081526009602052604090205490565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057e610577610d7d565b8484610d81565b5060015b92915050565b60025490565b600061059b848484610e6d565b610611846105a7610d7d565b61060c8560405180606001604052806028815260200161191c602891396001600160a01b038a166000908152600160205260408120906105e5610d7d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ff716565b610d81565b5060015b9392505050565b600061062661108e565b905080156106545760055461064a9061010090046001600160a01b03163383611113565b610652611165565b505b50565b7ffc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f81565b60055460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061057e6106b5610d7d565b8461060c85600160006106c6610d7d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610d2316565b6001600160a01b0381166000908152600960205260408120546105829061072284610754565b9063ffffffff61120016565b6000610738611165565b905060008113156106545761065461074f82611242565b611255565b6001600160a01b038116600090815260086020526040812054600160801b906107af906107aa9061079e61079961078a8861080d565b6007549063ffffffff610c5516565b610cae565b9063ffffffff61135416565b611242565b816107b657fe5b0492915050565b60006107c8826113b9565b90508015610652576005546107ec9061010090046001600160a01b03168383611113565b6107f4611165565b505050565b60055461010090046001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b600a6020526000908152604090205481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105605780601f1061053557610100808354040283529160200191610560565b600061057e6108a8610d7d565b8461060c856040518060600160405280602581526020016119db60259139600160006108d2610d7d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ff716565b600061057e610916610d7d565b8484610e6d565b60065481565b4284101561096d576040805162461bcd60e51b815260206004820152601260248201527113585c1b19551bdad95b8e9156141254915160721b604482015290519081900360640190fd5b6001600160a01b038088166000818152600a602090815260408083208054600180820190925582517ffc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f8186015280840196909652958c166060860152608085018b905260a085019590955260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f00000000000000000000000000000000000000000000000000000000000000006101028601526101228086019190915281518086039091018152610142850180835281519184019190912090849052610162850180835281905260ff89166101828601526101a285018890526101c285018790529051909492936101e28082019392601f1981019281900390910190855afa158015610aa6573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614610b18576040805162461bcd60e51b815260206004820152601c60248201527f4d61706c65546f6b656e3a494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b610b23898989610d81565b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610bb4576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610bc0600083836107f4565b600254610bd3908263ffffffff610d2316565b6002556001600160a01b038216600090815260208190526040902054610bff908263ffffffff610d2316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082610c6457506000610582565b82820282848281610c7157fe5b04146106155760405162461bcd60e51b81526004018080602001828103825260218152602001806118fb6021913960400191505060405180910390fd5b6000818181121561058257600080fd5b6000818303818312801590610cd35750838113155b80610ce85750600083128015610ce857508381135b6106155760405162461bcd60e51b815260040180806020018281038252602481526020018061198d6024913960400191505060405180910390fd5b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038316610dc65760405162461bcd60e51b81526004018080602001828103825260248152602001806119696024913960400191505060405180910390fd5b6001600160a01b038216610e0b5760405162461bcd60e51b815260040180806020018281038252602281526020018061186c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216301415610eb55760405162461bcd60e51b8152600401808060200182810382526025815260200180611a006025913960400191505060405180910390fd5b610ec0838383611451565b6000610eda61079983600754610c5590919063ffffffff16565b6001600160a01b038516600090815260086020526040902054909150610f06908263ffffffff61135416565b6001600160a01b038086166000908152600860205260408082209390935590851681522054610f3b908263ffffffff610cbe16565b6001600160a01b03808516600090815260086020908152604080832094909455918716808252908390205483519182529181019190915281517ff694bebd33ada288ae2f4485315db76739e2d5501daf315e71c9d8f841aa7773929181900390910190a16001600160a01b0383166000818152600860209081526040918290205482519384529083015280517ff694bebd33ada288ae2f4485315db76739e2d5501daf315e71c9d8f841aa77739281900390910190a150505050565b600081848411156110865760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561104b578181015183820152602001611033565b50505050905090810190601f1680156110785780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008061109a336106fc565b336000908152600960205260409020549091506110bd908263ffffffff610d2316565b33600081815260096020908152604091829020849055815185815290810193909352805191927ffbc3a599b784fe88772fc5abcc07223f64ca0b13acc341f4fb1e46bef0510eb4929081900390910190a2905090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107f49084906115b8565b600654600554604080516370a0823160e01b815230600482015290516000939261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111b957600080fd5b505afa1580156111cd573d6000803e3d6000fd5b505050506040513d60208110156111e357600080fd5b505160068190556111fa908263ffffffff610cbe16565b91505090565b600061061583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff7565b60008082121561125157600080fd5b5090565b600061125f610588565b116112a6576040805162461bcd60e51b81526020600482015260126024820152714644543a535550504c595f45515f5a45524f60701b604482015290519081900360640190fd5b8015610654576112e36112b7610588565b6112cb83600160801b63ffffffff610c5516565b816112d257fe5b60075491900463ffffffff610d2316565b60075560408051828152905133917f26536799ace2c3dbe12e638ec3ade6b4173dcf1289be0a58d51a5003015649bd919081900360200190a260075460408051918252517f1f8d7705f31c3337a080803a8ad7e71946fb88d84738879be2bf402f97156e969181900360200190a150565b60008282018183128015906113695750838112155b8061137e575060008312801561137e57508381125b6106155760405162461bcd60e51b81526004018080602001828103825260218152602001806118b46021913960400191505060405180910390fd5b6000806113c5836106fc565b6001600160a01b0384166000908152600960205260409020549091506113f1908263ffffffff610d2316565b6001600160a01b038416600081815260096020908152604091829020849055815185815290810193909352805191927ffbc3a599b784fe88772fc5abcc07223f64ca0b13acc341f4fb1e46bef0510eb4929081900390910190a292915050565b6001600160a01b0383166114965760405162461bcd60e51b81526004018080602001828103825260258152602001806119446025913960400191505060405180910390fd5b6001600160a01b0382166114db5760405162461bcd60e51b81526004018080602001828103825260238152602001806118496023913960400191505060405180910390fd5b6114e68383836107f4565b6115298160405180606001604052806026815260200161188e602691396001600160a01b038616600090815260208190526040902054919063ffffffff610ff716565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461155e908263ffffffff610d2316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b606061160d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116699092919063ffffffff16565b8051909150156107f45780806020019051602081101561162c57600080fd5b50516107f45760405162461bcd60e51b815260040180806020018281038252602a8152602001806119b1602a913960400191505060405180910390fd5b60606116788484600085611680565b949350505050565b6060824710156116c15760405162461bcd60e51b81526004018080602001828103825260268152602001806118d56026913960400191505060405180910390fd5b6116ca856117dc565b61171b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061175a5780518252601f19909201916020918201910161173b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117bc576040519150601f19603f3d011682016040523d82523d6000602084013e6117c1565b606091505b50915091506117d18282866117e2565b979650505050505050565b3b151590565b606083156117f1575081610615565b8251156118015782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561104b57818101518382015260200161103356fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655369676e6564536166654d6174683a206164646974696f6e206f766572666c6f77416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332303a207472616e7366657272696e6720746f20746f6b656e20636f6e7472616374a2646970667358221220e1f7186314416dc213f0b0734b92a0ddf0f48a9d53149bb87e0a8e37df4a216464736f6c634300060b0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000b4d61706c6520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d504c0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014c5760003560e01c806346c162de116100c357806395d89b411161007c57806395d89b41146103d2578063a457c2d7146103da578063a9059cbb14610406578063a9691f3f14610432578063d505accf1461043a578063dd62ed3e1461048b5761014c565b806346c162de1461030e5780634e97415f1461031657806361ec7bb51461033c57806363f04b151461036257806370a08231146103865780637ecebe00146103ac5761014c565b806324600fc31161011557806324600fc31461028457806330adf81f1461028e578063313ce567146102965780633644e515146102b457806339509351146102bc578063443bb293146102e85761014c565b806241c52c1461015157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd1461024e575b600080fd5b6101776004803603602081101561016757600080fd5b50356001600160a01b03166104b9565b60408051918252519081900360200190f35b6101916104d4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b03813516906020013561056a565b604080519115158252519081900360200190f35b610177610588565b6102326004803603606081101561026457600080fd5b506001600160a01b0381358116916020810135909116906040013561058e565b61028c61061c565b005b610177610657565b61029e61067b565b6040805160ff9092168252519081900360200190f35b610177610684565b610232600480360360408110156102d257600080fd5b506001600160a01b0381351690602001356106a8565b610177600480360360208110156102fe57600080fd5b50356001600160a01b03166106fc565b61028c61072e565b6101776004803603602081101561032c57600080fd5b50356001600160a01b0316610754565b61028c6004803603602081101561035257600080fd5b50356001600160a01b03166107bd565b61036a6107f9565b604080516001600160a01b039092168252519081900360200190f35b6101776004803603602081101561039c57600080fd5b50356001600160a01b031661080d565b610177600480360360208110156103c257600080fd5b50356001600160a01b0316610828565b61019161083a565b610232600480360360408110156103f057600080fd5b506001600160a01b03813516906020013561089b565b6102326004803603604081101561041c57600080fd5b506001600160a01b038135169060200135610909565b61017761091d565b61028c600480360360e081101561045057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610923565b610177600480360360408110156104a157600080fd5b506001600160a01b0381358116916020013516610b2e565b6001600160a01b031660009081526009602052604090205490565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057e610577610d7d565b8484610d81565b5060015b92915050565b60025490565b600061059b848484610e6d565b610611846105a7610d7d565b61060c8560405180606001604052806028815260200161191c602891396001600160a01b038a166000908152600160205260408120906105e5610d7d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ff716565b610d81565b5060015b9392505050565b600061062661108e565b905080156106545760055461064a9061010090046001600160a01b03163383611113565b610652611165565b505b50565b7ffc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f81565b60055460ff1690565b7f96c50582b341aa02ec36be3dd2913f462eca84a2c372944efe122034f142fd2b81565b600061057e6106b5610d7d565b8461060c85600160006106c6610d7d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610d2316565b6001600160a01b0381166000908152600960205260408120546105829061072284610754565b9063ffffffff61120016565b6000610738611165565b905060008113156106545761065461074f82611242565b611255565b6001600160a01b038116600090815260086020526040812054600160801b906107af906107aa9061079e61079961078a8861080d565b6007549063ffffffff610c5516565b610cae565b9063ffffffff61135416565b611242565b816107b657fe5b0492915050565b60006107c8826113b9565b90508015610652576005546107ec9061010090046001600160a01b03168383611113565b6107f4611165565b505050565b60055461010090046001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b600a6020526000908152604090205481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105605780601f1061053557610100808354040283529160200191610560565b600061057e6108a8610d7d565b8461060c856040518060600160405280602581526020016119db60259139600160006108d2610d7d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ff716565b600061057e610916610d7d565b8484610e6d565b60065481565b4284101561096d576040805162461bcd60e51b815260206004820152601260248201527113585c1b19551bdad95b8e9156141254915160721b604482015290519081900360640190fd5b6001600160a01b038088166000818152600a602090815260408083208054600180820190925582517ffc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f8186015280840196909652958c166060860152608085018b905260a085019590955260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f96c50582b341aa02ec36be3dd2913f462eca84a2c372944efe122034f142fd2b6101028601526101228086019190915281518086039091018152610142850180835281519184019190912090849052610162850180835281905260ff89166101828601526101a285018890526101c285018790529051909492936101e28082019392601f1981019281900390910190855afa158015610aa6573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614610b18576040805162461bcd60e51b815260206004820152601c60248201527f4d61706c65546f6b656e3a494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b610b23898989610d81565b505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610bb4576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610bc0600083836107f4565b600254610bd3908263ffffffff610d2316565b6002556001600160a01b038216600090815260208190526040902054610bff908263ffffffff610d2316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082610c6457506000610582565b82820282848281610c7157fe5b04146106155760405162461bcd60e51b81526004018080602001828103825260218152602001806118fb6021913960400191505060405180910390fd5b6000818181121561058257600080fd5b6000818303818312801590610cd35750838113155b80610ce85750600083128015610ce857508381135b6106155760405162461bcd60e51b815260040180806020018281038252602481526020018061198d6024913960400191505060405180910390fd5b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038316610dc65760405162461bcd60e51b81526004018080602001828103825260248152602001806119696024913960400191505060405180910390fd5b6001600160a01b038216610e0b5760405162461bcd60e51b815260040180806020018281038252602281526020018061186c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216301415610eb55760405162461bcd60e51b8152600401808060200182810382526025815260200180611a006025913960400191505060405180910390fd5b610ec0838383611451565b6000610eda61079983600754610c5590919063ffffffff16565b6001600160a01b038516600090815260086020526040902054909150610f06908263ffffffff61135416565b6001600160a01b038086166000908152600860205260408082209390935590851681522054610f3b908263ffffffff610cbe16565b6001600160a01b03808516600090815260086020908152604080832094909455918716808252908390205483519182529181019190915281517ff694bebd33ada288ae2f4485315db76739e2d5501daf315e71c9d8f841aa7773929181900390910190a16001600160a01b0383166000818152600860209081526040918290205482519384529083015280517ff694bebd33ada288ae2f4485315db76739e2d5501daf315e71c9d8f841aa77739281900390910190a150505050565b600081848411156110865760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561104b578181015183820152602001611033565b50505050905090810190601f1680156110785780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008061109a336106fc565b336000908152600960205260409020549091506110bd908263ffffffff610d2316565b33600081815260096020908152604091829020849055815185815290810193909352805191927ffbc3a599b784fe88772fc5abcc07223f64ca0b13acc341f4fb1e46bef0510eb4929081900390910190a2905090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107f49084906115b8565b600654600554604080516370a0823160e01b815230600482015290516000939261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111b957600080fd5b505afa1580156111cd573d6000803e3d6000fd5b505050506040513d60208110156111e357600080fd5b505160068190556111fa908263ffffffff610cbe16565b91505090565b600061061583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff7565b60008082121561125157600080fd5b5090565b600061125f610588565b116112a6576040805162461bcd60e51b81526020600482015260126024820152714644543a535550504c595f45515f5a45524f60701b604482015290519081900360640190fd5b8015610654576112e36112b7610588565b6112cb83600160801b63ffffffff610c5516565b816112d257fe5b60075491900463ffffffff610d2316565b60075560408051828152905133917f26536799ace2c3dbe12e638ec3ade6b4173dcf1289be0a58d51a5003015649bd919081900360200190a260075460408051918252517f1f8d7705f31c3337a080803a8ad7e71946fb88d84738879be2bf402f97156e969181900360200190a150565b60008282018183128015906113695750838112155b8061137e575060008312801561137e57508381125b6106155760405162461bcd60e51b81526004018080602001828103825260218152602001806118b46021913960400191505060405180910390fd5b6000806113c5836106fc565b6001600160a01b0384166000908152600960205260409020549091506113f1908263ffffffff610d2316565b6001600160a01b038416600081815260096020908152604091829020849055815185815290810193909352805191927ffbc3a599b784fe88772fc5abcc07223f64ca0b13acc341f4fb1e46bef0510eb4929081900390910190a292915050565b6001600160a01b0383166114965760405162461bcd60e51b81526004018080602001828103825260258152602001806119446025913960400191505060405180910390fd5b6001600160a01b0382166114db5760405162461bcd60e51b81526004018080602001828103825260238152602001806118496023913960400191505060405180910390fd5b6114e68383836107f4565b6115298160405180606001604052806026815260200161188e602691396001600160a01b038616600090815260208190526040902054919063ffffffff610ff716565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461155e908263ffffffff610d2316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b606061160d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116699092919063ffffffff16565b8051909150156107f45780806020019051602081101561162c57600080fd5b50516107f45760405162461bcd60e51b815260040180806020018281038252602a8152602001806119b1602a913960400191505060405180910390fd5b60606116788484600085611680565b949350505050565b6060824710156116c15760405162461bcd60e51b81526004018080602001828103825260268152602001806118d56026913960400191505060405180910390fd5b6116ca856117dc565b61171b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061175a5780518252601f19909201916020918201910161173b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117bc576040519150601f19603f3d011682016040523d82523d6000602084013e6117c1565b606091505b50915091506117d18282866117e2565b979650505050505050565b3b151590565b606083156117f1575081610615565b8251156118015782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561104b57818101518382015260200161103356fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655369676e6564536166654d6174683a206164646974696f6e206f766572666c6f77416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332303a207472616e7366657272696e6720746f20746f6b656e20636f6e7472616374a2646970667358221220e1f7186314416dc213f0b0734b92a0ddf0f48a9d53149bb87e0a8e37df4a216464736f6c634300060b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000b4d61706c6520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d504c0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Maple Token
Arg [1] : symbol (string): MPL
Arg [2] : fundsToken (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 4d61706c6520546f6b656e000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4d504c0000000000000000000000000000000000000000000000000000000000
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.