ERC-20
DeFi
Overview
Max Total Supply
371,830,718.2572655291517186 stSYRUP
Holders
2,049 ( 0.244%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
8,359.252265310520732547 stSYRUPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
xMPL
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-09-12 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity =0.8.7 ^0.8.7; // contracts/xMPL.sol // modules/mpl-migration/contracts/interfaces/Interfaces.sol interface IERC20Like_0 { function decimals() external view returns (uint8 decimals_); } // modules/mpl-migration/modules/erc20-helper/src/interfaces/IERC20Like.sol /// @title Interface of the ERC20 standard as needed by ERC20Helper. interface IERC20Like_1 { function approve(address spender_, uint256 amount_) external returns (bool success_); function transfer(address recipient_, uint256 amount_) external returns (bool success_); function transferFrom(address owner_, address recipient_, uint256 amount_) external returns (bool success_); } // modules/revenue-distribution-token/modules/erc20/contracts/interfaces/IERC20.sol /// @title Interface of the ERC20 standard as defined in the EIP, including EIP-2612 permit functionality. interface IERC20 { /**************/ /*** Events ***/ /**************/ /** * @dev Emitted when one account has set the allowance of another account over their tokens. * @param owner_ Account that tokens are approved from. * @param spender_ Account that tokens are approved for. * @param amount_ Amount of tokens that have been approved. */ event Approval(address indexed owner_, address indexed spender_, uint256 amount_); /** * @dev Emitted when tokens have moved from one account to another. * @param owner_ Account that tokens have moved from. * @param recipient_ Account that tokens have moved to. * @param amount_ Amount of tokens that have been transferred. */ event Transfer(address indexed owner_, address indexed recipient_, uint256 amount_); /**************************/ /*** External Functions ***/ /**************************/ /** * @dev Function that allows one account to set the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param amount_ Amount of tokens that have been approved. * @return success_ Boolean indicating whether the operation succeeded. */ function approve(address spender_, uint256 amount_) external returns (bool success_); /** * @dev Function that allows one account to decrease the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param subtractedAmount_ Amount to decrease approval by. * @return success_ Boolean indicating whether the operation succeeded. */ function decreaseAllowance(address spender_, uint256 subtractedAmount_) external returns (bool success_); /** * @dev Function that allows one account to increase the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param addedAmount_ Amount to increase approval by. * @return success_ Boolean indicating whether the operation succeeded. */ function increaseAllowance(address spender_, uint256 addedAmount_) external returns (bool success_); /** * @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_, uint amount_, uint deadline_, uint8 v_, bytes32 r_, bytes32 s_) external; /** * @dev Moves an amount of tokens from `msg.sender` to a specified account. * Emits a {Transfer} event. * @param recipient_ Account that receives tokens. * @param amount_ Amount of tokens that are transferred. * @return success_ Boolean indicating whether the operation succeeded. */ function transfer(address recipient_, uint256 amount_) external returns (bool success_); /** * @dev Moves a pre-approved amount of tokens from a sender to a specified account. * Emits a {Transfer} event. * Emits an {Approval} event. * @param owner_ Account that tokens are moving from. * @param recipient_ Account that receives tokens. * @param amount_ Amount of tokens that are transferred. * @return success_ Boolean indicating whether the operation succeeded. */ function transferFrom(address owner_, address recipient_, uint256 amount_) external returns (bool success_); /**********************/ /*** View Functions ***/ /**********************/ /** * @dev Returns the allowance that one account has given another over their tokens. * @param owner_ Account that tokens are approved from. * @param spender_ Account that tokens are approved for. * @return allowance_ Allowance that one account has given another over their tokens. */ function allowance(address owner_, address spender_) external view returns (uint256 allowance_); /** * @dev Returns the amount of tokens owned by a given account. * @param account_ Account that owns the tokens. * @return balance_ Amount of tokens owned by a given account. */ function balanceOf(address account_) external view returns (uint256 balance_); /** * @dev Returns the decimal precision used by the token. * @return decimals_ The decimal precision used by the token. */ function decimals() external view returns (uint8 decimals_); /** * @dev Returns the signature domain separator. * @return domainSeparator_ The signature domain separator. */ function DOMAIN_SEPARATOR() external view returns (bytes32 domainSeparator_); /** * @dev Returns the name of the token. * @return name_ The name of the token. */ function name() external view returns (string memory name_); /** * @dev Returns the nonce for the given owner. * @param owner_ The address of the owner account. * @return nonce_ The nonce for the given owner. */ function nonces(address owner_) external view returns (uint256 nonce_); /** * @dev Returns the permit type hash. * @return permitTypehash_ The permit type hash. */ function PERMIT_TYPEHASH() external view returns (bytes32 permitTypehash_); /** * @dev Returns the symbol of the token. * @return symbol_ The symbol of the token. */ function symbol() external view returns (string memory symbol_); /** * @dev Returns the total amount of tokens in existence. * @return totalSupply_ The total amount of tokens in existence. */ function totalSupply() external view returns (uint256 totalSupply_); } // modules/revenue-distribution-token/modules/erc20-helper/src/interfaces/IERC20Like.sol /// @title Interface of the ERC20 standard as needed by ERC20Helper. interface IERC20Like_2 { function approve(address spender_, uint256 amount_) external returns (bool success_); function transfer(address recipient_, uint256 amount_) external returns (bool success_); function transferFrom(address owner_, address recipient_, uint256 amount_) external returns (bool success_); } // modules/mpl-migration/modules/erc20-helper/src/ERC20Helper.sol /** * @title Small Library to standardize erc20 token interactions. */ library ERC20Helper_0 { /**************************/ /*** Internal Functions ***/ /**************************/ function transfer(address token_, address to_, uint256 amount_) internal returns (bool success_) { return _call(token_, abi.encodeWithSelector(IERC20Like_1.transfer.selector, to_, amount_)); } function transferFrom(address token_, address from_, address to_, uint256 amount_) internal returns (bool success_) { return _call(token_, abi.encodeWithSelector(IERC20Like_1.transferFrom.selector, from_, to_, amount_)); } function approve(address token_, address spender_, uint256 amount_) internal returns (bool success_) { // If setting approval to zero fails, return false. if (!_call(token_, abi.encodeWithSelector(IERC20Like_1.approve.selector, spender_, uint256(0)))) return false; // If `amount_` is zero, return true as the previous step already did this. if (amount_ == uint256(0)) return true; // Return the result of setting the approval to `amount_`. return _call(token_, abi.encodeWithSelector(IERC20Like_1.approve.selector, spender_, amount_)); } function _call(address token_, bytes memory data_) private returns (bool success_) { if (token_.code.length == uint256(0)) return false; bytes memory returnData; ( success_, returnData ) = token_.call(data_); return success_ && (returnData.length == uint256(0) || abi.decode(returnData, (bool))); } } // modules/revenue-distribution-token/contracts/interfaces/IERC4626.sol /// @title A standard for tokenized Vaults with a single underlying ERC-20 token. interface IERC4626 is IERC20 { /**************/ /*** Events ***/ /**************/ /** * @dev `caller_` has exchanged `assets_` for `shares_` and transferred them to `owner_`. * MUST be emitted when assets are deposited via the `deposit` or `mint` methods. * @param caller_ The caller of the function that emitted the `Deposit` event. * @param owner_ The owner of the shares. * @param assets_ The amount of assets deposited. * @param shares_ The amount of shares minted. */ event Deposit(address indexed caller_, address indexed owner_, uint256 assets_, uint256 shares_); /** * @dev `caller_` has exchanged `shares_`, owned by `owner_`, for `assets_`, and transferred them to `receiver_`. * MUST be emitted when assets are withdrawn via the `withdraw` or `redeem` methods. * @param caller_ The caller of the function that emitted the `Withdraw` event. * @param receiver_ The receiver of the assets. * @param owner_ The owner of the shares. * @param assets_ The amount of assets withdrawn. * @param shares_ The amount of shares burned. */ event Withdraw(address indexed caller_, address indexed receiver_, address indexed owner_, uint256 assets_, uint256 shares_); /***********************/ /*** State Variables ***/ /***********************/ /** * @dev The address of the underlying asset used by the Vault. * MUST be a contract that implements the ERC-20 standard. * MUST NOT revert. * @return asset_ The address of the underlying asset. */ function asset() external view returns (address asset_); /********************************/ /*** State Changing Functions ***/ /********************************/ /** * @dev Mints `shares_` to `receiver_` by depositing `assets_` into the Vault. * MUST emit the {Deposit} event. * MUST revert if all of the assets cannot be deposited (due to insufficient approval, deposit limits, slippage, etc). * @param assets_ The amount of assets to deposit. * @param receiver_ The receiver of the shares. * @return shares_ The amount of shares minted. */ function deposit(uint256 assets_, address receiver_) external returns (uint256 shares_); /** * @dev Mints `shares_` to `receiver_` by depositing `assets_` into the Vault. * MUST emit the {Deposit} event. * MUST revert if all of shares cannot be minted (due to insufficient approval, deposit limits, slippage, etc). * @param shares_ The amount of shares to mint. * @param receiver_ The receiver of the shares. * @return assets_ The amount of assets deposited. */ function mint(uint256 shares_, address receiver_) external returns (uint256 assets_); /** * @dev Burns `shares_` from `owner_` and sends `assets_` to `receiver_`. * MUST emit the {Withdraw} event. * MUST revert if all of the shares cannot be redeemed (due to insufficient shares, withdrawal limits, slippage, etc). * @param shares_ The amount of shares to redeem. * @param receiver_ The receiver of the assets. * @param owner_ The owner of the shares. * @return assets_ The amount of assets sent to the receiver. */ function redeem(uint256 shares_, address receiver_, address owner_) external returns (uint256 assets_); /** * @dev Burns `shares_` from `owner_` and sends `assets_` to `receiver_`. * MUST emit the {Withdraw} event. * MUST revert if all of the assets cannot be withdrawn (due to insufficient assets, withdrawal limits, slippage, etc). * @param assets_ The amount of assets to withdraw. * @param receiver_ The receiver of the assets. * @param owner_ The owner of the assets. * @return shares_ The amount of shares burned from the owner. */ function withdraw(uint256 assets_, address receiver_, address owner_) external returns (uint256 shares_); /**********************/ /*** View Functions ***/ /**********************/ /** * @dev The amount of `assets_` the `shares_` are currently equivalent to. * MUST NOT be inclusive of any fees that are charged against assets in the Vault. * MUST NOT reflect slippage or other on-chain conditions when performing the actual exchange. * MUST NOT show any variations depending on the caller. * MUST NOT revert. * @param shares_ The amount of shares to convert. * @return assets_ The amount of equivalent assets. */ function convertToAssets(uint256 shares_) external view returns (uint256 assets_); /** * @dev The amount of `shares_` the `assets_` are currently equivalent to. * MUST NOT be inclusive of any fees that are charged against assets in the Vault. * MUST NOT reflect slippage or other on-chain conditions when performing the actual exchange. * MUST NOT show any variations depending on the caller. * MUST NOT revert. * @param assets_ The amount of assets to convert. * @return shares_ The amount of equivalent shares. */ function convertToShares(uint256 assets_) external view returns (uint256 shares_); /** * @dev Maximum amount of `assets_` that can be deposited on behalf of the `receiver_` through a `deposit` call. * MUST return a limited value if the receiver is subject to any limits, or the maximum value otherwise. * MUST NOT revert. * @param receiver_ The receiver of the assets. * @return assets_ The maximum amount of assets that can be deposited. */ function maxDeposit(address receiver_) external view returns (uint256 assets_); /** * @dev Maximum amount of `shares_` that can be minted on behalf of the `receiver_` through a `mint` call. * MUST return a limited value if the receiver is subject to any limits, or the maximum value otherwise. * MUST NOT revert. * @param receiver_ The receiver of the shares. * @return shares_ The maximum amount of shares that can be minted. */ function maxMint(address receiver_) external view returns (uint256 shares_); /** * @dev Maximum amount of `shares_` that can be redeemed from the `owner_` through a `redeem` call. * MUST return a limited value if the owner is subject to any limits, or the total amount of owned shares otherwise. * MUST NOT revert. * @param owner_ The owner of the shares. * @return shares_ The maximum amount of shares that can be redeemed. */ function maxRedeem(address owner_) external view returns (uint256 shares_); /** * @dev Maximum amount of `assets_` that can be withdrawn from the `owner_` through a `withdraw` call. * MUST return a limited value if the owner is subject to any limits, or the total amount of owned assets otherwise. * MUST NOT revert. * @param owner_ The owner of the assets. * @return assets_ The maximum amount of assets that can be withdrawn. */ function maxWithdraw(address owner_) external view returns (uint256 assets_); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions. * MUST return as close to and no more than the exact amount of shares that would be minted in a `deposit` call in the same transaction. * MUST NOT account for deposit limits like those returned from `maxDeposit` and should always act as though the deposit would be accepted. * MUST NOT revert. * @param assets_ The amount of assets to deposit. * @return shares_ The amount of shares that would be minted. */ function previewDeposit(uint256 assets_) external view returns (uint256 shares_); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions. * MUST return as close to and no fewer than the exact amount of assets that would be deposited in a `mint` call in the same transaction. * MUST NOT account for mint limits like those returned from `maxMint` and should always act as though the minting would be accepted. * MUST NOT revert. * @param shares_ The amount of shares to mint. * @return assets_ The amount of assets that would be deposited. */ function previewMint(uint256 shares_) external view returns (uint256 assets_); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their redemption at the current block, given current on-chain conditions. * MUST return as close to and no more than the exact amount of assets that would be withdrawn in a `redeem` call in the same transaction. * MUST NOT account for redemption limits like those returned from `maxRedeem` and should always act as though the redemption would be accepted. * MUST NOT revert. * @param shares_ The amount of shares to redeem. * @return assets_ The amount of assets that would be withdrawn. */ function previewRedeem(uint256 shares_) external view returns (uint256 assets_); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions. * MUST return as close to and no fewer than the exact amount of shares that would be burned in a `withdraw` call in the same transaction. * MUST NOT account for withdrawal limits like those returned from `maxWithdraw` and should always act as though the withdrawal would be accepted. * MUST NOT revert. * @param assets_ The amount of assets to withdraw. * @return shares_ The amount of shares that would be redeemed. */ function previewWithdraw(uint256 assets_) external view returns (uint256 shares_); /** * @dev Total amount of the underlying asset that is managed by the Vault. * SHOULD include compounding that occurs from any yields. * MUST NOT revert. * @return totalAssets_ The total amount of assets the Vault manages. */ function totalAssets() external view returns (uint256 totalAssets_); } // modules/revenue-distribution-token/modules/erc20/contracts/ERC20.sol /* ███████╗██████╗ ██████╗ ██████╗ ██████╗ ██╔════╝██╔══██╗██╔════╝ ╚════██╗██╔═████╗ █████╗ ██████╔╝██║ █████╔╝██║██╔██║ ██╔══╝ ██╔══██╗██║ ██╔═══╝ ████╔╝██║ ███████╗██║ ██║╚██████╗ ███████╗╚██████╔╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ */ /** * @title Modern ERC-20 implementation. * @dev Acknowledgements to Solmate, OpenZeppelin, and DSS for inspiring this code. */ contract ERC20 is IERC20 { /**************/ /*** ERC-20 ***/ /**************/ string public override name; string public override symbol; uint8 public immutable override decimals; uint256 public override totalSupply; mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; /****************/ /*** ERC-2612 ***/ /****************/ // PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant override PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; mapping(address => uint256) public override nonces; /** * @param name_ The name of the token. * @param symbol_ The symbol of the token. * @param decimals_ The decimal precision used by the token. */ constructor(string memory name_, string memory symbol_, uint8 decimals_) { name = name_; symbol = symbol_; decimals = decimals_; } /**************************/ /*** External Functions ***/ /**************************/ function approve(address spender_, uint256 amount_) external override returns (bool success_) { _approve(msg.sender, spender_, amount_); return true; } function decreaseAllowance(address spender_, uint256 subtractedAmount_) external override returns (bool success_) { _decreaseAllowance(msg.sender, spender_, subtractedAmount_); return true; } function increaseAllowance(address spender_, uint256 addedAmount_) external override returns (bool success_) { _approve(msg.sender, spender_, allowance[msg.sender][spender_] + addedAmount_); return true; } function permit(address owner_, address spender_, uint256 amount_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_) external override { require(deadline_ >= block.timestamp, "ERC20:P:EXPIRED"); // Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. require( uint256(s_) <= uint256(0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) && (v_ == 27 || v_ == 28), "ERC20:P:MALLEABLE" ); // Nonce realistically cannot overflow. unchecked { 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_ && owner_ != address(0), "ERC20:P:INVALID_SIGNATURE"); } _approve(owner_, spender_, amount_); } function transfer(address recipient_, uint256 amount_) external override returns (bool success_) { _transfer(msg.sender, recipient_, amount_); return true; } function transferFrom(address owner_, address recipient_, uint256 amount_) external override returns (bool success_) { _decreaseAllowance(owner_, msg.sender, amount_); _transfer(owner_, recipient_, amount_); return true; } /**********************/ /*** View Functions ***/ /**********************/ function DOMAIN_SEPARATOR() public view override returns (bytes32 domainSeparator_) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256(bytes("1")), block.chainid, address(this) ) ); } /**************************/ /*** Internal Functions ***/ /**************************/ function _approve(address owner_, address spender_, uint256 amount_) internal { emit Approval(owner_, spender_, allowance[owner_][spender_] = amount_); } function _burn(address owner_, uint256 amount_) internal { balanceOf[owner_] -= amount_; // Cannot underflow because a user's balance will never be larger than the total supply. unchecked { totalSupply -= amount_; } emit Transfer(owner_, address(0), amount_); } function _decreaseAllowance(address owner_, address spender_, uint256 subtractedAmount_) internal { uint256 spenderAllowance = allowance[owner_][spender_]; // Cache to memory. if (spenderAllowance != type(uint256).max) { _approve(owner_, spender_, spenderAllowance - subtractedAmount_); } } function _mint(address recipient_, uint256 amount_) internal { totalSupply += amount_; // Cannot overflow because totalSupply would first overflow in the statement above. unchecked { balanceOf[recipient_] += amount_; } emit Transfer(address(0), recipient_, amount_); } function _transfer(address owner_, address recipient_, uint256 amount_) internal { balanceOf[owner_] -= amount_; // Cannot overflow because minting prevents overflow of totalSupply, and sum of user balances == totalSupply. unchecked { balanceOf[recipient_] += amount_; } emit Transfer(owner_, recipient_, amount_); } } // modules/revenue-distribution-token/modules/erc20-helper/src/ERC20Helper.sol /** * @title Small Library to standardize erc20 token interactions. */ library ERC20Helper_1 { /**************************/ /*** Internal Functions ***/ /**************************/ function transfer(address token_, address to_, uint256 amount_) internal returns (bool success_) { return _call(token_, abi.encodeWithSelector(IERC20Like_2.transfer.selector, to_, amount_)); } function transferFrom(address token_, address from_, address to_, uint256 amount_) internal returns (bool success_) { return _call(token_, abi.encodeWithSelector(IERC20Like_2.transferFrom.selector, from_, to_, amount_)); } function approve(address token_, address spender_, uint256 amount_) internal returns (bool success_) { // If setting approval to zero fails, return false. if (!_call(token_, abi.encodeWithSelector(IERC20Like_2.approve.selector, spender_, uint256(0)))) return false; // If `amount_` is zero, return true as the previous step already did this. if (amount_ == uint256(0)) return true; // Return the result of setting the approval to `amount_`. return _call(token_, abi.encodeWithSelector(IERC20Like_2.approve.selector, spender_, amount_)); } function _call(address token_, bytes memory data_) private returns (bool success_) { if (token_.code.length == uint256(0)) return false; bytes memory returnData; ( success_, returnData ) = token_.call(data_); return success_ && (returnData.length == uint256(0) || abi.decode(returnData, (bool))); } } // modules/revenue-distribution-token/contracts/interfaces/IRevenueDistributionToken.sol /// @title A token that represents ownership of future revenues distributed linearly over time. interface IRevenueDistributionToken is IERC20, IERC4626 { /**************/ /*** Events ***/ /**************/ /** * @dev Issuance parameters have been updated after a `_mint` or `_burn`. * @param freeAssets_ Resulting `freeAssets` (y-intercept) value after accounting update. * @param issuanceRate_ The new issuance rate of `asset` until `vestingPeriodFinish_`. */ event IssuanceParamsUpdated(uint256 freeAssets_, uint256 issuanceRate_); /** * @dev `newOwner_` has accepted the transferral of RDT ownership from `previousOwner_`. * @param previousOwner_ The previous RDT owner. * @param newOwner_ The new RDT owner. */ event OwnershipAccepted(address indexed previousOwner_, address indexed newOwner_); /** * @dev `owner_` has set the new pending owner of RDT to `pendingOwner_`. * @param owner_ The current RDT owner. * @param pendingOwner_ The new pending RDT owner. */ event PendingOwnerSet(address indexed owner_, address indexed pendingOwner_); /** * @dev `owner_` has updated the RDT vesting schedule to end at `vestingPeriodFinish_`. * @param owner_ The current RDT owner. * @param vestingPeriodFinish_ When the unvested balance will finish vesting. */ event VestingScheduleUpdated(address indexed owner_, uint256 vestingPeriodFinish_); /***********************/ /*** State Variables ***/ /***********************/ /** * @dev The total amount of the underlying asset that is currently unlocked and is not time-dependent. * Analogous to the y-intercept in a linear function. */ function freeAssets() external view returns (uint256 freeAssets_); /** * @dev The rate of issuance of the vesting schedule that is currently active. * Denominated as the amount of underlying assets vesting per second. */ function issuanceRate() external view returns (uint256 issuanceRate_); /** * @dev The timestamp of when the linear function was last recalculated. * Analogous to t0 in a linear function. */ function lastUpdated() external view returns (uint256 lastUpdated_); /** * @dev The address of the account that is allowed to update the vesting schedule. */ function owner() external view returns (address owner_); /** * @dev The next owner, nominated by the current owner. */ function pendingOwner() external view returns (address pendingOwner_); /** * @dev The precision at which the issuance rate is measured. */ function precision() external view returns (uint256 precision_); /** * @dev The end of the current vesting schedule. */ function vestingPeriodFinish() external view returns (uint256 vestingPeriodFinish_); /********************************/ /*** Administrative Functions ***/ /********************************/ /** * @dev Sets the pending owner as the new owner. * Can be called only by the pending owner, and only after their nomination by the current owner. */ function acceptOwnership() external; /** * @dev Sets a new address as the pending owner. * @param pendingOwner_ The address of the next potential owner. */ function setPendingOwner(address pendingOwner_) external; /** * @dev Updates the current vesting formula based on the amount of total unvested funds in the contract and the new `vestingPeriod_`. * @param vestingPeriod_ The amount of time over which all currently unaccounted underlying assets will be vested over. * @return issuanceRate_ The new issuance rate. * @return freeAssets_ The new amount of underlying assets that are unlocked. */ function updateVestingSchedule(uint256 vestingPeriod_) external returns (uint256 issuanceRate_, uint256 freeAssets_); /************************/ /*** Staker Functions ***/ /************************/ /** * @dev Does a ERC4626 `deposit` with a ERC-2612 `permit`. * @param assets_ The amount of `asset` to deposit. * @param receiver_ The receiver of the shares. * @param deadline_ The timestamp after which the `permit` signature is no longer valid. * @param v_ ECDSA signature v component. * @param r_ ECDSA signature r component. * @param s_ ECDSA signature s component. * @return shares_ The amount of shares minted. */ function depositWithPermit(uint256 assets_, address receiver_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_) external returns (uint256 shares_); /** * @dev Does a ERC4626 `mint` with a ERC-2612 `permit`. * @param shares_ The amount of `shares` to mint. * @param receiver_ The receiver of the shares. * @param maxAssets_ The maximum amount of assets that can be taken, as per the permit. * @param deadline_ The timestamp after which the `permit` signature is no longer valid. * @param v_ ECDSA signature v component. * @param r_ ECDSA signature r component. * @param s_ ECDSA signature s component. * @return assets_ The amount of shares deposited. */ function mintWithPermit(uint256 shares_, address receiver_, uint256 maxAssets_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_) external returns (uint256 assets_); /**********************/ /*** View Functions ***/ /**********************/ /** * @dev Returns the amount of underlying assets owned by the specified account. * @param account_ Address of the account. * @return assets_ Amount of assets owned. */ function balanceOfAssets(address account_) external view returns (uint256 assets_); } // contracts/interfaces/IxMPL.sol interface IxMPL is IRevenueDistributionToken { /**************/ /*** Events ***/ /**************/ /** * @dev Notifies that a scheduled migration was cancelled. */ event MigrationCancelled(); /** * @dev Notifies that a scheduled migration was executed. * @param fromAsset_ The address of the old asset. * @param toAsset_ The address of new asset migrated to. * @param amount_ The amount of tokens migrated. */ event MigrationPerformed(address indexed fromAsset_, address indexed toAsset_, uint256 amount_); /** * @dev Notifies that migration was scheduled. * @param fromAsset_ The current asset address. * @param toAsset_ The address of the asset to be migrated to. * @param migrator_ The address of the migrator contract. * @param migrationTime_ The earliest time the migration is scheduled for. */ event MigrationScheduled(address indexed fromAsset_, address indexed toAsset_, address indexed migrator_, uint256 migrationTime_); /********************************/ /*** Administrative Functions ***/ /********************************/ /** * @dev Cancel the scheduled migration */ function cancelMigration() external; /** * @dev Perform a migration of the asset. */ function performMigration() external; /** * @dev Schedule a migration to be executed after a delay. * @param migrator_ The address of the migrator contract. * @param newAsset_ The address of the new asset token. */ function scheduleMigration(address migrator_, address newAsset_) external; /**********************/ /*** View Functions ***/ /**********************/ /** * @dev Get the minimum delay that a scheduled transaction needs in order to be executed. * @return minimumMigrationDelay_ The delay in seconds. */ function MINIMUM_MIGRATION_DELAY() external pure returns (uint256 minimumMigrationDelay_); /** * @dev Get the timestamp that a migration is scheduled for. * @return scheduledMigrationTimestamp_ The timestamp of the migration. */ function scheduledMigrationTimestamp() external view returns (uint256 scheduledMigrationTimestamp_); /** * @dev The address of the migrator contract to be used during the scheduled migration. * @return scheduledMigrator_ The address of the migrator. */ function scheduledMigrator() external view returns (address scheduledMigrator_); /** * @dev The address of the new asset token to be migrated to during the scheduled migration. * @return scheduledNewAsset_ The address of the new asset token. */ function scheduledNewAsset() external view returns (address scheduledNewAsset_); } // modules/mpl-migration/contracts/Migrator.sol contract Migrator { address public immutable newToken; address public immutable oldToken; constructor(address oldToken_, address newToken_) { require(IERC20Like_0(newToken_).decimals() == IERC20Like_0(oldToken_).decimals(), "M:C:DECIMAL_MISMATCH"); oldToken = oldToken_; newToken = newToken_; } function migrate(uint256 amount_) external { migrate(msg.sender, amount_); } function migrate(address owner_, uint256 amount_) public { require(amount_ != uint256(0), "M:M:ZERO_AMOUNT"); require(ERC20Helper_0.transferFrom(oldToken, owner_, address(this), amount_), "M:M:TRANSFER_FROM_FAILED"); require(ERC20Helper_0.transfer(newToken, owner_, amount_), "M:M:TRANSFER_FAILED"); } } // modules/revenue-distribution-token/contracts/RevenueDistributionToken.sol /* ██████╗ ██████╗ ████████╗ ██╔══██╗██╔══██╗╚══██╔══╝ ██████╔╝██║ ██║ ██║ ██╔══██╗██║ ██║ ██║ ██║ ██║██████╔╝ ██║ ╚═╝ ╚═╝╚═════╝ ╚═╝ */ contract RevenueDistributionToken is IRevenueDistributionToken, ERC20 { uint256 public immutable override precision; // Precision of rates, equals max deposit amounts before rounding errors occur address public override asset; // Underlying ERC-20 asset used by ERC-4626 functionality. address public override owner; // Current owner of the contract, able to update the vesting schedule. address public override pendingOwner; // Pending owner of the contract, able to accept ownership. uint256 public override freeAssets; // Amount of assets unlocked regardless of time passed. uint256 public override issuanceRate; // asset/second rate dependent on aggregate vesting schedule. uint256 public override lastUpdated; // Timestamp of when issuance equation was last updated. uint256 public override vestingPeriodFinish; // Timestamp when current vesting schedule ends. uint256 private locked = 1; // Used in reentrancy check. /*****************/ /*** Modifiers ***/ /*****************/ modifier nonReentrant() { require(locked == 1, "RDT:LOCKED"); locked = 2; _; locked = 1; } constructor(string memory name_, string memory symbol_, address owner_, address asset_, uint256 precision_) ERC20(name_, symbol_, ERC20(asset_).decimals()) { require((owner = owner_) != address(0), "RDT:C:OWNER_ZERO_ADDRESS"); asset = asset_; // Don't need to check zero address as ERC20(asset_).decimals() will fail in ERC20 constructor. precision = precision_; } /********************************/ /*** Administrative Functions ***/ /********************************/ function acceptOwnership() external virtual override { require(msg.sender == pendingOwner, "RDT:AO:NOT_PO"); emit OwnershipAccepted(owner, msg.sender); owner = msg.sender; pendingOwner = address(0); } function setPendingOwner(address pendingOwner_) external virtual override { require(msg.sender == owner, "RDT:SPO:NOT_OWNER"); pendingOwner = pendingOwner_; emit PendingOwnerSet(msg.sender, pendingOwner_); } function updateVestingSchedule(uint256 vestingPeriod_) external virtual override returns (uint256 issuanceRate_, uint256 freeAssets_) { require(msg.sender == owner, "RDT:UVS:NOT_OWNER"); require(totalSupply != 0, "RDT:UVS:ZERO_SUPPLY"); // Update "y-intercept" to reflect current available asset. freeAssets_ = freeAssets = totalAssets(); // Calculate slope. issuanceRate_ = issuanceRate = ((ERC20(asset).balanceOf(address(this)) - freeAssets_) * precision) / vestingPeriod_; // Update timestamp and period finish. vestingPeriodFinish = (lastUpdated = block.timestamp) + vestingPeriod_; emit IssuanceParamsUpdated(freeAssets_, issuanceRate_); emit VestingScheduleUpdated(msg.sender, vestingPeriodFinish); } /************************/ /*** Staker Functions ***/ /************************/ function deposit(uint256 assets_, address receiver_) external virtual override nonReentrant returns (uint256 shares_) { _mint(shares_ = previewDeposit(assets_), assets_, receiver_, msg.sender); } function depositWithPermit( uint256 assets_, address receiver_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_ ) external virtual override nonReentrant returns (uint256 shares_) { ERC20(asset).permit(msg.sender, address(this), assets_, deadline_, v_, r_, s_); _mint(shares_ = previewDeposit(assets_), assets_, receiver_, msg.sender); } function mint(uint256 shares_, address receiver_) external virtual override nonReentrant returns (uint256 assets_) { _mint(shares_, assets_ = previewMint(shares_), receiver_, msg.sender); } function mintWithPermit( uint256 shares_, address receiver_, uint256 maxAssets_, uint256 deadline_, uint8 v_, bytes32 r_, bytes32 s_ ) external virtual override nonReentrant returns (uint256 assets_) { require((assets_ = previewMint(shares_)) <= maxAssets_, "RDT:MWP:INSUFFICIENT_PERMIT"); ERC20(asset).permit(msg.sender, address(this), maxAssets_, deadline_, v_, r_, s_); _mint(shares_, assets_, receiver_, msg.sender); } function redeem(uint256 shares_, address receiver_, address owner_) external virtual override nonReentrant returns (uint256 assets_) { _burn(shares_, assets_ = previewRedeem(shares_), receiver_, owner_, msg.sender); } function withdraw(uint256 assets_, address receiver_, address owner_) external virtual override nonReentrant returns (uint256 shares_) { _burn(shares_ = previewWithdraw(assets_), assets_, receiver_, owner_, msg.sender); } /**************************/ /*** Internal Functions ***/ /**************************/ function _mint(uint256 shares_, uint256 assets_, address receiver_, address caller_) internal { require(receiver_ != address(0), "RDT:M:ZERO_RECEIVER"); require(shares_ != uint256(0), "RDT:M:ZERO_SHARES"); require(assets_ != uint256(0), "RDT:M:ZERO_ASSETS"); _mint(receiver_, shares_); uint256 freeAssetsCache = freeAssets = totalAssets() + assets_; uint256 issuanceRate_ = _updateIssuanceParams(); emit Deposit(caller_, receiver_, assets_, shares_); emit IssuanceParamsUpdated(freeAssetsCache, issuanceRate_); require(ERC20Helper_1.transferFrom(asset, caller_, address(this), assets_), "RDT:M:TRANSFER_FROM"); } function _burn(uint256 shares_, uint256 assets_, address receiver_, address owner_, address caller_) internal { require(receiver_ != address(0), "RDT:B:ZERO_RECEIVER"); require(shares_ != uint256(0), "RDT:B:ZERO_SHARES"); require(assets_ != uint256(0), "RDT:B:ZERO_ASSETS"); if (caller_ != owner_) { _decreaseAllowance(owner_, caller_, shares_); } _burn(owner_, shares_); uint256 freeAssetsCache = freeAssets = totalAssets() - assets_; uint256 issuanceRate_ = _updateIssuanceParams(); emit Withdraw(caller_, receiver_, owner_, assets_, shares_); emit IssuanceParamsUpdated(freeAssetsCache, issuanceRate_); require(ERC20Helper_1.transfer(asset, receiver_, assets_), "RDT:B:TRANSFER"); } function _updateIssuanceParams() internal returns (uint256 issuanceRate_) { return issuanceRate = (lastUpdated = block.timestamp) > vestingPeriodFinish ? 0 : issuanceRate; } /**********************/ /*** View Functions ***/ /**********************/ function balanceOfAssets(address account_) public view virtual override returns (uint256 balanceOfAssets_) { return convertToAssets(balanceOf[account_]); } function convertToAssets(uint256 shares_) public view virtual override returns (uint256 assets_) { uint256 supply = totalSupply; // Cache to stack. assets_ = supply == 0 ? shares_ : (shares_ * totalAssets()) / supply; } function convertToShares(uint256 assets_) public view virtual override returns (uint256 shares_) { uint256 supply = totalSupply; // Cache to stack. shares_ = supply == 0 ? assets_ : (assets_ * supply) / totalAssets(); } function maxDeposit(address receiver_) external pure virtual override returns (uint256 maxAssets_) { receiver_; // Silence warning maxAssets_ = type(uint256).max; } function maxMint(address receiver_) external pure virtual override returns (uint256 maxShares_) { receiver_; // Silence warning maxShares_ = type(uint256).max; } function maxRedeem(address owner_) external view virtual override returns (uint256 maxShares_) { maxShares_ = balanceOf[owner_]; } function maxWithdraw(address owner_) external view virtual override returns (uint256 maxAssets_) { maxAssets_ = balanceOfAssets(owner_); } function previewDeposit(uint256 assets_) public view virtual override returns (uint256 shares_) { // As per https://eips.ethereum.org/EIPS/eip-4626#security-considerations, // it should round DOWN if it’s calculating the amount of shares to issue to a user, given an amount of assets provided. shares_ = convertToShares(assets_); } function previewMint(uint256 shares_) public view virtual override returns (uint256 assets_) { uint256 supply = totalSupply; // Cache to stack. // As per https://eips.ethereum.org/EIPS/eip-4626#security-considerations, // it should round UP if it’s calculating the amount of assets a user must provide, to be issued a given amount of shares. assets_ = supply == 0 ? shares_ : _divRoundUp(shares_ * totalAssets(), supply); } function previewRedeem(uint256 shares_) public view virtual override returns (uint256 assets_) { // As per https://eips.ethereum.org/EIPS/eip-4626#security-considerations, // it should round DOWN if it’s calculating the amount of assets to send to a user, given amount of shares returned. assets_ = convertToAssets(shares_); } function previewWithdraw(uint256 assets_) public view virtual override returns (uint256 shares_) { uint256 supply = totalSupply; // Cache to stack. // As per https://eips.ethereum.org/EIPS/eip-4626#security-considerations, // it should round UP if it’s calculating the amount of shares a user must return, to be sent a given amount of assets. shares_ = supply == 0 ? assets_ : _divRoundUp(assets_ * supply, totalAssets()); } function totalAssets() public view virtual override returns (uint256 totalManagedAssets_) { uint256 issuanceRate_ = issuanceRate; if (issuanceRate_ == 0) return freeAssets; uint256 vestingPeriodFinish_ = vestingPeriodFinish; uint256 lastUpdated_ = lastUpdated; uint256 vestingTimePassed = block.timestamp > vestingPeriodFinish_ ? vestingPeriodFinish_ - lastUpdated_ : block.timestamp - lastUpdated_; return ((issuanceRate_ * vestingTimePassed) / precision) + freeAssets; } /**************************/ /*** Internal Functions ***/ /**************************/ function _divRoundUp(uint256 numerator_, uint256 divisor_) internal pure returns (uint256 result_) { return (numerator_ / divisor_) + (numerator_ % divisor_ > 0 ? 1 : 0); } } // contracts/xMPL.sol /* ██╗ ██╗███╗ ███╗██████╗ ██╗ ╚██╗██╔╝████╗ ████║██╔══██╗██║ ╚███╔╝ ██╔████╔██║██████╔╝██║ ██╔██╗ ██║╚██╔╝██║██╔═══╝ ██║ ██╔╝ ██╗██║ ╚═╝ ██║██║ ███████╗ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝ */ contract xMPL is IxMPL, RevenueDistributionToken { uint256 public constant override MINIMUM_MIGRATION_DELAY = 10 days; address public override scheduledMigrator; address public override scheduledNewAsset; uint256 public override scheduledMigrationTimestamp; constructor(string memory name_, string memory symbol_, address owner_, address asset_, uint256 precision_) RevenueDistributionToken(name_, symbol_, owner_, asset_, precision_) { } /*****************/ /*** Modifiers ***/ /*****************/ modifier onlyOwner { require(msg.sender == owner, "xMPL:NOT_OWNER"); _; } /********************************/ /*** Administrative Functions ***/ /********************************/ function cancelMigration() external override onlyOwner { require(scheduledMigrationTimestamp != 0, "xMPL:CM:NOT_SCHEDULED"); _cleanupMigration(); emit MigrationCancelled(); } function performMigration() external override onlyOwner { uint256 migrationTimestamp = scheduledMigrationTimestamp; address migrator = scheduledMigrator; address oldAsset = asset; address newAsset = scheduledNewAsset; require(migrationTimestamp != 0, "xMPL:PM:NOT_SCHEDULED"); require(block.timestamp >= migrationTimestamp, "xMPL:PM:TOO_EARLY"); uint256 oldAssetBalanceBeforeMigration = ERC20(oldAsset).balanceOf(address(this)); uint256 newAssetBalanceBeforeMigration = ERC20(newAsset).balanceOf(address(this)); require(ERC20(oldAsset).approve(migrator, oldAssetBalanceBeforeMigration), "xMPL:PM:APPROVAL_FAILED"); Migrator(migrator).migrate(oldAssetBalanceBeforeMigration); require(ERC20(newAsset).balanceOf(address(this)) - newAssetBalanceBeforeMigration == oldAssetBalanceBeforeMigration, "xMPL:PM:WRONG_AMOUNT"); emit MigrationPerformed(oldAsset, newAsset, oldAssetBalanceBeforeMigration); asset = newAsset; _cleanupMigration(); } function scheduleMigration(address migrator_, address newAsset_) external override onlyOwner { require(migrator_ != address(0), "xMPL:SM:INVALID_MIGRATOR"); require(newAsset_ != address(0), "xMPL:SM:INVALID_NEW_ASSET"); scheduledMigrationTimestamp = block.timestamp + MINIMUM_MIGRATION_DELAY; scheduledMigrator = migrator_; scheduledNewAsset = newAsset_; emit MigrationScheduled(asset, newAsset_, migrator_, scheduledMigrationTimestamp); } /*************************/ /*** Utility Functions ***/ /*************************/ function _cleanupMigration() internal { delete scheduledMigrationTimestamp; delete scheduledMigrator; delete scheduledNewAsset; } }
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":"owner_","type":"address"},{"internalType":"address","name":"asset_","type":"address"},{"internalType":"uint256","name":"precision_","type":"uint256"}],"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":"amount_","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller_","type":"address"},{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets_","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"freeAssets_","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"issuanceRate_","type":"uint256"}],"name":"IssuanceParamsUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"MigrationCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromAsset_","type":"address"},{"indexed":true,"internalType":"address","name":"toAsset_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"MigrationPerformed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromAsset_","type":"address"},{"indexed":true,"internalType":"address","name":"toAsset_","type":"address"},{"indexed":true,"internalType":"address","name":"migrator_","type":"address"},{"indexed":false,"internalType":"uint256","name":"migrationTime_","type":"uint256"}],"name":"MigrationScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner_","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner_","type":"address"}],"name":"OwnershipAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"PendingOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"recipient_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":false,"internalType":"uint256","name":"vestingPeriodFinish_","type":"uint256"}],"name":"VestingScheduleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller_","type":"address"},{"indexed":true,"internalType":"address","name":"receiver_","type":"address"},{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets_","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"domainSeparator_","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_MIGRATION_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"balanceOfAssets","outputs":[{"internalType":"uint256","name":"balanceOfAssets_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares_","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":"subtractedAmount_","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"},{"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":"depositWithPermit","outputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"addedAmount_","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"issuanceRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"maxAssets_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"maxShares_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"maxShares_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"maxAssets_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint256","name":"maxAssets_","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":"mintWithPermit","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performMigration","outputs":[],"stateMutability":"nonpayable","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":"precision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"assets_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"migrator_","type":"address"},{"internalType":"address","name":"newAsset_","type":"address"}],"name":"scheduleMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scheduledMigrationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scheduledMigrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scheduledNewAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"totalManagedAssets_","type":"uint256"}],"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":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingPeriod_","type":"uint256"}],"name":"updateVestingSchedule","outputs":[{"internalType":"uint256","name":"issuanceRate_","type":"uint256"},{"internalType":"uint256","name":"freeAssets_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestingPeriodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526001600d553480156200001657600080fd5b5060405162002ab438038062002ab4833981016040819052620000399162000327565b84848484848484836001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200007a57600080fd5b505afa1580156200008f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b59190620003c0565b8251620000ca906000906020860190620001ad565b508151620000e0906001906020850190620001ad565b5060f81b7fff00000000000000000000000000000000000000000000000000000000000000166080525050600780546001600160a01b0319166001600160a01b0385169081179091556200017a5760405162461bcd60e51b815260206004820152601860248201527f5244543a433a4f574e45525f5a45524f5f414444524553530000000000000000604482015260640160405180910390fd5b600680546001600160a01b0319166001600160a01b03939093169290921790915560a052506200043f9650505050505050565b828054620001bb90620003ec565b90600052602060002090601f016020900481019282620001df57600085556200022a565b82601f10620001fa57805160ff19168380011785556200022a565b828001600101855582156200022a579182015b828111156200022a5782518255916020019190600101906200020d565b50620002389291506200023c565b5090565b5b808211156200023857600081556001016200023d565b80516001600160a01b03811681146200026b57600080fd5b919050565b600082601f8301126200028257600080fd5b81516001600160401b03808211156200029f576200029f62000429565b604051601f8301601f19908116603f01168101908282118183101715620002ca57620002ca62000429565b81604052838152602092508683858801011115620002e757600080fd5b600091505b838210156200030b5785820183015181830184015290820190620002ec565b838211156200031d5760008385830101525b9695505050505050565b600080600080600060a086880312156200034057600080fd5b85516001600160401b03808211156200035857600080fd5b6200036689838a0162000270565b965060208801519150808211156200037d57600080fd5b506200038c8882890162000270565b9450506200039d6040870162000253565b9250620003ad6060870162000253565b9150608086015190509295509295909350565b600060208284031215620003d357600080fd5b815160ff81168114620003e557600080fd5b9392505050565b600181811c908216806200040157607f821691505b602082108114156200042357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160f81c60a05161263e620004766000396000818161063a015281816107540152611818015260006103ca015261263e6000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c806379ba50971161019d578063ba087652116100e9578063d3b5dc3b116100a2578063dd62ed3e1161007c578063dd62ed3e14610698578063e13aa990146106c3578063e30c3978146106eb578063ef8b30f7146106fe57600080fd5b8063d3b5dc3b14610635578063d505accf1461065c578063d905777e1461066f57600080fd5b8063ba087652146105e0578063c42069ec146105f3578063c63d75b614610469578063c6e6f59214610606578063ce96cb7714610619578063d0b06f5d1461062c57600080fd5b806394bf804d11610156578063a9059cbb11610130578063a9059cbb14610594578063ab0b0fd3146105a7578063b3d7f6b9146105ba578063b460af94146105cd57600080fd5b806394bf804d1461056657806395d89b4114610579578063a457c2d71461058157600080fd5b806379ba5097146104fc5780637bb002d6146105045780637ecebe0014610517578063899d0c01146105375780638da5cb5b146105405780639159b2061461055357600080fd5b806336f8d3f11161025c5780634cdad506116102155780636109ff4b116101ef5780636109ff4b146104b75780636e2f2aca146104bf5780636e553f65146104c957806370a08231146104dc57600080fd5b80634cdad5061461047e57806350921b231461049157806360dd37d9146104a457600080fd5b806336f8d3f11461040657806338d52e0f1461043157806339509351146104445780633c2f7773146104575780633c9ae2ba14610460578063402d267d1461046957600080fd5b806311f240ac116102ae57806311f240ac1461037957806318160ddd1461038257806323b872dd1461038b57806330adf81f1461039e578063313ce567146103c55780633644e515146103fe57600080fd5b806301e1d114146102f657806306fdde031461031157806307a2d13a14610326578063095ea7b3146103395780630a28a4771461035c57806310639ea01461036f575b600080fd5b6102fe610711565b6040519081526020015b60405180910390f35b61031961079a565b6040516103089190612480565b6102fe610334366004612273565b610828565b61034c610347366004612227565b61085f565b6040519015158152602001610308565b6102fe61036a366004612273565b610876565b61037761089c565b005b6102fe60095481565b6102fe60025481565b61034c610399366004612181565b610967565b6102fe7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6103ec7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610308565b6102fe610989565b600f54610419906001600160a01b031681565b6040516001600160a01b039091168152602001610308565b600654610419906001600160a01b031681565b61034c610452366004612227565b610a38565b6102fe600c5481565b6102fe600a5481565b6102fe610477366004612133565b5060001990565b6102fe61048c366004612273565b610a74565b6102fe61049f36600461232f565b610a7f565b6102fe6104b2366004612304565b610b3c565b610377610c4a565b6102fe620d2f0081565b6102fe6104d73660046122a5565b611090565b6102fe6104ea366004612133565b60036020526000908152604090205481565b6103776110db565b600e54610419906001600160a01b031681565b6102fe610525366004612133565b60056020526000908152604090205481565b6102fe60105481565b600754610419906001600160a01b031681565b6102fe610561366004612133565b61117d565b6102fe6105743660046122a5565b61119f565b6103196111df565b61034c61058f366004612227565b6111ec565b61034c6105a2366004612227565b6111f9565b6103776105b536600461214e565b611206565b6102fe6105c8366004612273565b611362565b6102fe6105db3660046122c8565b611389565b6102fe6105ee3660046122c8565b6113d6565b610377610601366004612133565b611417565b6102fe610614366004612273565b6114b1565b6102fe610627366004612133565b6114cf565b6102fe600b5481565b6102fe7f000000000000000000000000000000000000000000000000000000000000000081565b61037761066a3660046121bd565b6114da565b6102fe61067d366004612133565b6001600160a01b031660009081526003602052604090205490565b6102fe6106a636600461214e565b600460209081526000928352604080842090915290825290205481565b6106d66106d1366004612273565b611756565b60408051928352602083019190915201610308565b600854610419906001600160a01b031681565b6102fe61070c366004612273565b61194e565b600a546000908061072457505060095490565b600c54600b5460004283106107425761073d824261254a565b61074c565b61074c828461254a565b6009549091507f000000000000000000000000000000000000000000000000000000000000000061077d838761252b565b6107879190612517565b61079191906124ff565b94505050505090565b600080546107a79061258d565b80601f01602080910402602001604051908101604052809291908181526020018280546107d39061258d565b80156108205780601f106107f557610100808354040283529160200191610820565b820191906000526020600020905b81548152906001019060200180831161080357829003601f168201915b505050505081565b6002546000908015610856578061083d610711565b610847908561252b565b6108519190612517565b610858565b825b9392505050565b600061086c338484611959565b5060015b92915050565b60025460009080156108565761085161088f828561252b565b610897610711565b6119bb565b6007546001600160a01b031633146108cf5760405162461bcd60e51b81526004016108c6906124d7565b60405180910390fd5b6010546109165760405162461bcd60e51b81526020600482015260156024820152741e1354130e90d34e9393d517d4d0d2115115531151605a1b60448201526064016108c6565b61093c6000601055600e80546001600160a01b0319908116909155600f80549091169055565b6040517f29183829efed7c15f37ba982c36934966b558232f770f334108ac30e4301333a90600090a1565b60006109748433846119ee565b61097f848484611a32565b5060019392505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516109bb91906123a3565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b3360008181526004602090815260408083206001600160a01b0387168452909152812054909161086c918590610a6f9086906124ff565b611959565b600061087082610828565b6000600d54600114610aa35760405162461bcd60e51b81526004016108c6906124b3565b6002600d5560065460405163d505accf60e01b81526001600160a01b039091169063d505accf90610ae490339030908c908b908b908b908b9060040161243f565b600060405180830381600087803b158015610afe57600080fd5b505af1158015610b12573d6000803e3d6000fd5b50505050610b2d610b228861194e565b915081888833611ab5565b6001600d559695505050505050565b6000600d54600114610b605760405162461bcd60e51b81526004016108c6906124b3565b6002600d5585610b6f89611362565b9150811115610bc05760405162461bcd60e51b815260206004820152601b60248201527f5244543a4d57503a494e53554646494349454e545f5045524d4954000000000060448201526064016108c6565b60065460405163d505accf60e01b81526001600160a01b039091169063d505accf90610bfc90339030908b908b908b908b908b9060040161243f565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b50505050610c3a88828933611ab5565b6001600d55979650505050505050565b6007546001600160a01b03163314610c745760405162461bcd60e51b81526004016108c6906124d7565b601054600e54600654600f546001600160a01b0392831692918216911683610cd65760405162461bcd60e51b81526020600482015260156024820152741e1354130e94134e9393d517d4d0d2115115531151605a1b60448201526064016108c6565b83421015610d1a5760405162461bcd60e51b8152602060048201526011602482015270784d504c3a504d3a544f4f5f4541524c5960781b60448201526064016108c6565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b158015610d5c57600080fd5b505afa158015610d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d94919061228c565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610dd957600080fd5b505afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e11919061228c565b60405163095ea7b360e01b81526001600160a01b038781166004830152602482018590529192509085169063095ea7b390604401602060405180830381600087803b158015610e5f57600080fd5b505af1158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e979190612251565b610ee35760405162461bcd60e51b815260206004820152601760248201527f784d504c3a504d3a415050524f56414c5f4641494c454400000000000000000060448201526064016108c6565b6040516308a960c160e31b8152600481018390526001600160a01b0386169063454b060890602401600060405180830381600087803b158015610f2557600080fd5b505af1158015610f39573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528492508391506001600160a01b038616906370a082319060240160206040518083038186803b158015610f8057600080fd5b505afa158015610f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb8919061228c565b610fc2919061254a565b146110065760405162461bcd60e51b81526020600482015260146024820152731e1354130e94134e95d493d391d7d05353d5539560621b60448201526064016108c6565b826001600160a01b0316846001600160a01b03167fd2b4bfa00cffc450ec3f60db3c511bebc1e88911c9c7b25ef8b294c934fa116c8460405161104b91815260200190565b60405180910390a3600680546001600160a01b03199081166001600160a01b038616179091556000601055600e805482169055600f805490911690555b505050505050565b6000600d546001146110b45760405162461bcd60e51b81526004016108c6906124b3565b6002600d556110d06110c58461194e565b915081848433611ab5565b6001600d5592915050565b6008546001600160a01b031633146111255760405162461bcd60e51b815260206004820152600d60248201526c5244543a414f3a4e4f545f504f60981b60448201526064016108c6565b60075460405133916001600160a01b0316907f357bdeb5828fa83945f38a88510ce5cd7d628dafb346d767efbc693149fdd97c90600090a3600780546001600160a01b03199081163317909155600880549091169055565b6001600160a01b03811660009081526003602052604081205461087090610828565b6000600d546001146111c35760405162461bcd60e51b81526004016108c6906124b3565b6002600d556110d0836111d581611362565b9250828433611ab5565b600180546107a79061258d565b600061086c3384846119ee565b600061086c338484611a32565b6007546001600160a01b031633146112305760405162461bcd60e51b81526004016108c6906124d7565b6001600160a01b0382166112865760405162461bcd60e51b815260206004820152601860248201527f784d504c3a534d3a494e56414c49445f4d49475241544f52000000000000000060448201526064016108c6565b6001600160a01b0381166112dc5760405162461bcd60e51b815260206004820152601960248201527f784d504c3a534d3a494e56414c49445f4e45575f41535345540000000000000060448201526064016108c6565b6112e9620d2f00426124ff565b6010819055600e80546001600160a01b038086166001600160a01b03199283168117909355600f8054868316931683179055600654604051939492939116917ffc384cf40fadcb79796c4f6b26dab65f122020fbffaa19c2ad28bf4da410cded9161135691815260200190565b60405180910390a45050565b600254600090801561085657610851611379610711565b611383908561252b565b826119bb565b6000600d546001146113ad5760405162461bcd60e51b81526004016108c6906124b3565b6002600d556113ca6113be85610876565b91508185858533611c9e565b6001600d559392505050565b6000600d546001146113fa5760405162461bcd60e51b81526004016108c6906124b3565b6002600d556113ca8461140c81610a74565b925082858533611c9e565b6007546001600160a01b031633146114655760405162461bcd60e51b815260206004820152601160248201527029222a1d29a8279d2727aa2fa7aba722a960791b60448201526064016108c6565b600880546001600160a01b0319166001600160a01b03831690811790915560405133907fa86864fa6b65f969d5ac8391ddaac6a0eba3f41386cbf6e78c3e4d6c59eb115f90600090a350565b6002546000908015610856576114c5610711565b610847828561252b565b60006108708261117d565b4284101561151c5760405162461bcd60e51b815260206004820152600f60248201526e115490cc8c0e940e91561412549151608a1b60448201526064016108c6565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0811180159061155c57508260ff16601b148061155c57508260ff16601c145b61159c5760405162461bcd60e51b815260206004820152601160248201527045524332303a503a4d414c4c4541424c4560781b60448201526064016108c6565b60006115a6610989565b6001600160a01b0389811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938c166060840152608083018b905260a083019390935260c08083018a90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156116bf573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b03161480156116f457506001600160a01b03891615155b6117405760405162461bcd60e51b815260206004820152601960248201527f45524332303a503a494e56414c49445f5349474e41545552450000000000000060448201526064016108c6565b505061174d878787611959565b50505050505050565b60075460009081906001600160a01b031633146117a95760405162461bcd60e51b815260206004820152601160248201527029222a1d2aab299d2727aa2fa7aba722a960791b60448201526064016108c6565b6002546117ee5760405162461bcd60e51b81526020600482015260136024820152725244543a5556533a5a45524f5f535550504c5960681b60448201526064016108c6565b6117f6610711565b60098190556006546040516370a0823160e01b815230600482015291925084917f00000000000000000000000000000000000000000000000000000000000000009184916001600160a01b03909116906370a082319060240160206040518083038186803b15801561186757600080fd5b505afa15801561187b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189f919061228c565b6118a9919061254a565b6118b3919061252b565b6118bd9190612517565b600a81905591508242600b8190556118d591906124ff565b600c5560408051828152602081018490527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600c5460405190815233907f8c84e3b4df93f5b7c8d4ab6647708f5b14cacc124e22908187e30695ec54bab39060200160405180910390a2915091565b6000610870826114b1565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000806119c883856125c8565b116119d45760006119d7565b60015b60ff166119e48385612517565b61085891906124ff565b6001600160a01b038084166000908152600460209081526040808320938616835292905220546000198114611a2c57611a2c8484610a6f858561254a565b50505050565b6001600160a01b03831660009081526003602052604081208054839290611a5a90849061254a565b90915550506001600160a01b03808316600081815260036020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119ae9085815260200190565b6001600160a01b038216611b015760405162461bcd60e51b815260206004820152601360248201527229222a1d269d2d22a927afa922a1a2a4ab22a960691b60448201526064016108c6565b83611b425760405162461bcd60e51b81526020600482015260116024820152705244543a4d3a5a45524f5f53484152455360781b60448201526064016108c6565b82611b835760405162461bcd60e51b81526020600482015260116024820152705244543a4d3a5a45524f5f41535345545360781b60448201526064016108c6565b611b8d8285611eaf565b600083611b98610711565b611ba291906124ff565b600981905590506000611bb3611f1b565b9050836001600160a01b0316836001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78789604051611c03929190918252602082015260400190565b60405180910390a360408051838152602081018390527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600654611c5c906001600160a01b0316843088611f40565b6110885760405162461bcd60e51b81526020600482015260136024820152725244543a4d3a5452414e534645525f46524f4d60681b60448201526064016108c6565b6001600160a01b038316611cea5760405162461bcd60e51b815260206004820152601360248201527229222a1d211d2d22a927afa922a1a2a4ab22a960691b60448201526064016108c6565b84611d2b5760405162461bcd60e51b81526020600482015260116024820152705244543a423a5a45524f5f53484152455360781b60448201526064016108c6565b83611d6c5760405162461bcd60e51b81526020600482015260116024820152705244543a423a5a45524f5f41535345545360781b60448201526064016108c6565b816001600160a01b0316816001600160a01b031614611d9057611d908282876119ee565b611d9a8286611fb7565b600084611da5610711565b611daf919061254a565b600981905590506000611dc0611f1b565b9050836001600160a01b0316856001600160a01b0316846001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db898b604051611e1a929190918252602082015260400190565b60405180910390a460408051838152602081018390527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600654611e72906001600160a01b0316868861202b565b61174d5760405162461bcd60e51b815260206004820152600e60248201526d29222a1d211d2a2920a729a322a960911b60448201526064016108c6565b8060026000828254611ec191906124ff565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6000600c5442600b81905511611f3357600a54611f36565b60005b600a819055905090565b6040516001600160a01b0380851660248301528316604482015260648101829052600090611fae9086906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612066565b95945050505050565b6001600160a01b03821660009081526003602052604081208054839290611fdf90849061254a565b90915550506002805482900390556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f0f565b6040516001600160a01b03831660248201526044810182905260009061205e90859063a9059cbb60e01b90606401611f77565b949350505050565b60006001600160a01b0383163b61207f57506000610870565b6060836001600160a01b0316836040516120999190612387565b6000604051808303816000865af19150503d80600081146120d6576040519150601f19603f3d011682016040523d82523d6000602084013e6120db565b606091505b50909250905081801561205e57508051158061205e57508080602001905181019061205e9190612251565b80356001600160a01b038116811461211d57600080fd5b919050565b803560ff8116811461211d57600080fd5b60006020828403121561214557600080fd5b61085882612106565b6000806040838503121561216157600080fd5b61216a83612106565b915061217860208401612106565b90509250929050565b60008060006060848603121561219657600080fd5b61219f84612106565b92506121ad60208501612106565b9150604084013590509250925092565b600080600080600080600060e0888a0312156121d857600080fd5b6121e188612106565b96506121ef60208901612106565b9550604088013594506060880135935061220b60808901612122565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561223a57600080fd5b61224383612106565b946020939093013593505050565b60006020828403121561226357600080fd5b8151801515811461085857600080fd5b60006020828403121561228557600080fd5b5035919050565b60006020828403121561229e57600080fd5b5051919050565b600080604083850312156122b857600080fd5b8235915061217860208401612106565b6000806000606084860312156122dd57600080fd5b833592506122ed60208501612106565b91506122fb60408501612106565b90509250925092565b600080600080600080600060e0888a03121561231f57600080fd5b873596506121ef60208901612106565b60008060008060008060c0878903121561234857600080fd5b8635955061235860208801612106565b94506040870135935061236d60608801612122565b92506080870135915060a087013590509295509295509295565b60008251612399818460208701612561565b9190910192915050565b600080835481600182811c9150808316806123bf57607f831692505b60208084108214156123df57634e487b7160e01b86526022600452602486fd5b8180156123f3576001811461240457612431565b60ff19861689528489019650612431565b60008a81526020902060005b868110156124295781548b820152908501908301612410565b505084890196505b509498975050505050505050565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b602081526000825180602084015261249f816040850160208701612561565b601f01601f19169190910160400192915050565b6020808252600a90820152691491150e9313d0d2d15160b21b604082015260600190565b6020808252600e908201526d3c26a8261d2727aa2fa7aba722a960911b604082015260600190565b60008219821115612512576125126125dc565b500190565b600082612526576125266125f2565b500490565b6000816000190483118215151615612545576125456125dc565b500290565b60008282101561255c5761255c6125dc565b500390565b60005b8381101561257c578181015183820152602001612564565b83811115611a2c5750506000910152565b600181811c908216806125a157607f821691505b602082108114156125c257634e487b7160e01b600052602260045260246000fd5b50919050565b6000826125d7576125d76125f2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea2646970667358221220b2092a65ff720a2df74717e8fe2c89bc8951e9bd5e864ccf3295bdd3dc24566464736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196000000000000000000000000643c4e15d7d62ad0abec4a9bd4b001aa3ef52d660000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000c5374616b6564205379727570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077374535952555000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102f15760003560e01c806379ba50971161019d578063ba087652116100e9578063d3b5dc3b116100a2578063dd62ed3e1161007c578063dd62ed3e14610698578063e13aa990146106c3578063e30c3978146106eb578063ef8b30f7146106fe57600080fd5b8063d3b5dc3b14610635578063d505accf1461065c578063d905777e1461066f57600080fd5b8063ba087652146105e0578063c42069ec146105f3578063c63d75b614610469578063c6e6f59214610606578063ce96cb7714610619578063d0b06f5d1461062c57600080fd5b806394bf804d11610156578063a9059cbb11610130578063a9059cbb14610594578063ab0b0fd3146105a7578063b3d7f6b9146105ba578063b460af94146105cd57600080fd5b806394bf804d1461056657806395d89b4114610579578063a457c2d71461058157600080fd5b806379ba5097146104fc5780637bb002d6146105045780637ecebe0014610517578063899d0c01146105375780638da5cb5b146105405780639159b2061461055357600080fd5b806336f8d3f11161025c5780634cdad506116102155780636109ff4b116101ef5780636109ff4b146104b75780636e2f2aca146104bf5780636e553f65146104c957806370a08231146104dc57600080fd5b80634cdad5061461047e57806350921b231461049157806360dd37d9146104a457600080fd5b806336f8d3f11461040657806338d52e0f1461043157806339509351146104445780633c2f7773146104575780633c9ae2ba14610460578063402d267d1461046957600080fd5b806311f240ac116102ae57806311f240ac1461037957806318160ddd1461038257806323b872dd1461038b57806330adf81f1461039e578063313ce567146103c55780633644e515146103fe57600080fd5b806301e1d114146102f657806306fdde031461031157806307a2d13a14610326578063095ea7b3146103395780630a28a4771461035c57806310639ea01461036f575b600080fd5b6102fe610711565b6040519081526020015b60405180910390f35b61031961079a565b6040516103089190612480565b6102fe610334366004612273565b610828565b61034c610347366004612227565b61085f565b6040519015158152602001610308565b6102fe61036a366004612273565b610876565b61037761089c565b005b6102fe60095481565b6102fe60025481565b61034c610399366004612181565b610967565b6102fe7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6103ec7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610308565b6102fe610989565b600f54610419906001600160a01b031681565b6040516001600160a01b039091168152602001610308565b600654610419906001600160a01b031681565b61034c610452366004612227565b610a38565b6102fe600c5481565b6102fe600a5481565b6102fe610477366004612133565b5060001990565b6102fe61048c366004612273565b610a74565b6102fe61049f36600461232f565b610a7f565b6102fe6104b2366004612304565b610b3c565b610377610c4a565b6102fe620d2f0081565b6102fe6104d73660046122a5565b611090565b6102fe6104ea366004612133565b60036020526000908152604090205481565b6103776110db565b600e54610419906001600160a01b031681565b6102fe610525366004612133565b60056020526000908152604090205481565b6102fe60105481565b600754610419906001600160a01b031681565b6102fe610561366004612133565b61117d565b6102fe6105743660046122a5565b61119f565b6103196111df565b61034c61058f366004612227565b6111ec565b61034c6105a2366004612227565b6111f9565b6103776105b536600461214e565b611206565b6102fe6105c8366004612273565b611362565b6102fe6105db3660046122c8565b611389565b6102fe6105ee3660046122c8565b6113d6565b610377610601366004612133565b611417565b6102fe610614366004612273565b6114b1565b6102fe610627366004612133565b6114cf565b6102fe600b5481565b6102fe7f000000000000000000000000000000000000000000000000000000000000001281565b61037761066a3660046121bd565b6114da565b6102fe61067d366004612133565b6001600160a01b031660009081526003602052604090205490565b6102fe6106a636600461214e565b600460209081526000928352604080842090915290825290205481565b6106d66106d1366004612273565b611756565b60408051928352602083019190915201610308565b600854610419906001600160a01b031681565b6102fe61070c366004612273565b61194e565b600a546000908061072457505060095490565b600c54600b5460004283106107425761073d824261254a565b61074c565b61074c828461254a565b6009549091507f000000000000000000000000000000000000000000000000000000000000001261077d838761252b565b6107879190612517565b61079191906124ff565b94505050505090565b600080546107a79061258d565b80601f01602080910402602001604051908101604052809291908181526020018280546107d39061258d565b80156108205780601f106107f557610100808354040283529160200191610820565b820191906000526020600020905b81548152906001019060200180831161080357829003601f168201915b505050505081565b6002546000908015610856578061083d610711565b610847908561252b565b6108519190612517565b610858565b825b9392505050565b600061086c338484611959565b5060015b92915050565b60025460009080156108565761085161088f828561252b565b610897610711565b6119bb565b6007546001600160a01b031633146108cf5760405162461bcd60e51b81526004016108c6906124d7565b60405180910390fd5b6010546109165760405162461bcd60e51b81526020600482015260156024820152741e1354130e90d34e9393d517d4d0d2115115531151605a1b60448201526064016108c6565b61093c6000601055600e80546001600160a01b0319908116909155600f80549091169055565b6040517f29183829efed7c15f37ba982c36934966b558232f770f334108ac30e4301333a90600090a1565b60006109748433846119ee565b61097f848484611a32565b5060019392505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516109bb91906123a3565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b3360008181526004602090815260408083206001600160a01b0387168452909152812054909161086c918590610a6f9086906124ff565b611959565b600061087082610828565b6000600d54600114610aa35760405162461bcd60e51b81526004016108c6906124b3565b6002600d5560065460405163d505accf60e01b81526001600160a01b039091169063d505accf90610ae490339030908c908b908b908b908b9060040161243f565b600060405180830381600087803b158015610afe57600080fd5b505af1158015610b12573d6000803e3d6000fd5b50505050610b2d610b228861194e565b915081888833611ab5565b6001600d559695505050505050565b6000600d54600114610b605760405162461bcd60e51b81526004016108c6906124b3565b6002600d5585610b6f89611362565b9150811115610bc05760405162461bcd60e51b815260206004820152601b60248201527f5244543a4d57503a494e53554646494349454e545f5045524d4954000000000060448201526064016108c6565b60065460405163d505accf60e01b81526001600160a01b039091169063d505accf90610bfc90339030908b908b908b908b908b9060040161243f565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b50505050610c3a88828933611ab5565b6001600d55979650505050505050565b6007546001600160a01b03163314610c745760405162461bcd60e51b81526004016108c6906124d7565b601054600e54600654600f546001600160a01b0392831692918216911683610cd65760405162461bcd60e51b81526020600482015260156024820152741e1354130e94134e9393d517d4d0d2115115531151605a1b60448201526064016108c6565b83421015610d1a5760405162461bcd60e51b8152602060048201526011602482015270784d504c3a504d3a544f4f5f4541524c5960781b60448201526064016108c6565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b158015610d5c57600080fd5b505afa158015610d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d94919061228c565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610dd957600080fd5b505afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e11919061228c565b60405163095ea7b360e01b81526001600160a01b038781166004830152602482018590529192509085169063095ea7b390604401602060405180830381600087803b158015610e5f57600080fd5b505af1158015610e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e979190612251565b610ee35760405162461bcd60e51b815260206004820152601760248201527f784d504c3a504d3a415050524f56414c5f4641494c454400000000000000000060448201526064016108c6565b6040516308a960c160e31b8152600481018390526001600160a01b0386169063454b060890602401600060405180830381600087803b158015610f2557600080fd5b505af1158015610f39573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528492508391506001600160a01b038616906370a082319060240160206040518083038186803b158015610f8057600080fd5b505afa158015610f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb8919061228c565b610fc2919061254a565b146110065760405162461bcd60e51b81526020600482015260146024820152731e1354130e94134e95d493d391d7d05353d5539560621b60448201526064016108c6565b826001600160a01b0316846001600160a01b03167fd2b4bfa00cffc450ec3f60db3c511bebc1e88911c9c7b25ef8b294c934fa116c8460405161104b91815260200190565b60405180910390a3600680546001600160a01b03199081166001600160a01b038616179091556000601055600e805482169055600f805490911690555b505050505050565b6000600d546001146110b45760405162461bcd60e51b81526004016108c6906124b3565b6002600d556110d06110c58461194e565b915081848433611ab5565b6001600d5592915050565b6008546001600160a01b031633146111255760405162461bcd60e51b815260206004820152600d60248201526c5244543a414f3a4e4f545f504f60981b60448201526064016108c6565b60075460405133916001600160a01b0316907f357bdeb5828fa83945f38a88510ce5cd7d628dafb346d767efbc693149fdd97c90600090a3600780546001600160a01b03199081163317909155600880549091169055565b6001600160a01b03811660009081526003602052604081205461087090610828565b6000600d546001146111c35760405162461bcd60e51b81526004016108c6906124b3565b6002600d556110d0836111d581611362565b9250828433611ab5565b600180546107a79061258d565b600061086c3384846119ee565b600061086c338484611a32565b6007546001600160a01b031633146112305760405162461bcd60e51b81526004016108c6906124d7565b6001600160a01b0382166112865760405162461bcd60e51b815260206004820152601860248201527f784d504c3a534d3a494e56414c49445f4d49475241544f52000000000000000060448201526064016108c6565b6001600160a01b0381166112dc5760405162461bcd60e51b815260206004820152601960248201527f784d504c3a534d3a494e56414c49445f4e45575f41535345540000000000000060448201526064016108c6565b6112e9620d2f00426124ff565b6010819055600e80546001600160a01b038086166001600160a01b03199283168117909355600f8054868316931683179055600654604051939492939116917ffc384cf40fadcb79796c4f6b26dab65f122020fbffaa19c2ad28bf4da410cded9161135691815260200190565b60405180910390a45050565b600254600090801561085657610851611379610711565b611383908561252b565b826119bb565b6000600d546001146113ad5760405162461bcd60e51b81526004016108c6906124b3565b6002600d556113ca6113be85610876565b91508185858533611c9e565b6001600d559392505050565b6000600d546001146113fa5760405162461bcd60e51b81526004016108c6906124b3565b6002600d556113ca8461140c81610a74565b925082858533611c9e565b6007546001600160a01b031633146114655760405162461bcd60e51b815260206004820152601160248201527029222a1d29a8279d2727aa2fa7aba722a960791b60448201526064016108c6565b600880546001600160a01b0319166001600160a01b03831690811790915560405133907fa86864fa6b65f969d5ac8391ddaac6a0eba3f41386cbf6e78c3e4d6c59eb115f90600090a350565b6002546000908015610856576114c5610711565b610847828561252b565b60006108708261117d565b4284101561151c5760405162461bcd60e51b815260206004820152600f60248201526e115490cc8c0e940e91561412549151608a1b60448201526064016108c6565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0811180159061155c57508260ff16601b148061155c57508260ff16601c145b61159c5760405162461bcd60e51b815260206004820152601160248201527045524332303a503a4d414c4c4541424c4560781b60448201526064016108c6565b60006115a6610989565b6001600160a01b0389811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938c166060840152608083018b905260a083019390935260c08083018a90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156116bf573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b03161480156116f457506001600160a01b03891615155b6117405760405162461bcd60e51b815260206004820152601960248201527f45524332303a503a494e56414c49445f5349474e41545552450000000000000060448201526064016108c6565b505061174d878787611959565b50505050505050565b60075460009081906001600160a01b031633146117a95760405162461bcd60e51b815260206004820152601160248201527029222a1d2aab299d2727aa2fa7aba722a960791b60448201526064016108c6565b6002546117ee5760405162461bcd60e51b81526020600482015260136024820152725244543a5556533a5a45524f5f535550504c5960681b60448201526064016108c6565b6117f6610711565b60098190556006546040516370a0823160e01b815230600482015291925084917f00000000000000000000000000000000000000000000000000000000000000129184916001600160a01b03909116906370a082319060240160206040518083038186803b15801561186757600080fd5b505afa15801561187b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189f919061228c565b6118a9919061254a565b6118b3919061252b565b6118bd9190612517565b600a81905591508242600b8190556118d591906124ff565b600c5560408051828152602081018490527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600c5460405190815233907f8c84e3b4df93f5b7c8d4ab6647708f5b14cacc124e22908187e30695ec54bab39060200160405180910390a2915091565b6000610870826114b1565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000806119c883856125c8565b116119d45760006119d7565b60015b60ff166119e48385612517565b61085891906124ff565b6001600160a01b038084166000908152600460209081526040808320938616835292905220546000198114611a2c57611a2c8484610a6f858561254a565b50505050565b6001600160a01b03831660009081526003602052604081208054839290611a5a90849061254a565b90915550506001600160a01b03808316600081815260036020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119ae9085815260200190565b6001600160a01b038216611b015760405162461bcd60e51b815260206004820152601360248201527229222a1d269d2d22a927afa922a1a2a4ab22a960691b60448201526064016108c6565b83611b425760405162461bcd60e51b81526020600482015260116024820152705244543a4d3a5a45524f5f53484152455360781b60448201526064016108c6565b82611b835760405162461bcd60e51b81526020600482015260116024820152705244543a4d3a5a45524f5f41535345545360781b60448201526064016108c6565b611b8d8285611eaf565b600083611b98610711565b611ba291906124ff565b600981905590506000611bb3611f1b565b9050836001600160a01b0316836001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78789604051611c03929190918252602082015260400190565b60405180910390a360408051838152602081018390527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600654611c5c906001600160a01b0316843088611f40565b6110885760405162461bcd60e51b81526020600482015260136024820152725244543a4d3a5452414e534645525f46524f4d60681b60448201526064016108c6565b6001600160a01b038316611cea5760405162461bcd60e51b815260206004820152601360248201527229222a1d211d2d22a927afa922a1a2a4ab22a960691b60448201526064016108c6565b84611d2b5760405162461bcd60e51b81526020600482015260116024820152705244543a423a5a45524f5f53484152455360781b60448201526064016108c6565b83611d6c5760405162461bcd60e51b81526020600482015260116024820152705244543a423a5a45524f5f41535345545360781b60448201526064016108c6565b816001600160a01b0316816001600160a01b031614611d9057611d908282876119ee565b611d9a8286611fb7565b600084611da5610711565b611daf919061254a565b600981905590506000611dc0611f1b565b9050836001600160a01b0316856001600160a01b0316846001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db898b604051611e1a929190918252602082015260400190565b60405180910390a460408051838152602081018390527f68b521a89bf844ff03e484d89fd64ce292a698ec522170f0dad7ecd11c2dc8fa910160405180910390a1600654611e72906001600160a01b0316868861202b565b61174d5760405162461bcd60e51b815260206004820152600e60248201526d29222a1d211d2a2920a729a322a960911b60448201526064016108c6565b8060026000828254611ec191906124ff565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6000600c5442600b81905511611f3357600a54611f36565b60005b600a819055905090565b6040516001600160a01b0380851660248301528316604482015260648101829052600090611fae9086906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612066565b95945050505050565b6001600160a01b03821660009081526003602052604081208054839290611fdf90849061254a565b90915550506002805482900390556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f0f565b6040516001600160a01b03831660248201526044810182905260009061205e90859063a9059cbb60e01b90606401611f77565b949350505050565b60006001600160a01b0383163b61207f57506000610870565b6060836001600160a01b0316836040516120999190612387565b6000604051808303816000865af19150503d80600081146120d6576040519150601f19603f3d011682016040523d82523d6000602084013e6120db565b606091505b50909250905081801561205e57508051158061205e57508080602001905181019061205e9190612251565b80356001600160a01b038116811461211d57600080fd5b919050565b803560ff8116811461211d57600080fd5b60006020828403121561214557600080fd5b61085882612106565b6000806040838503121561216157600080fd5b61216a83612106565b915061217860208401612106565b90509250929050565b60008060006060848603121561219657600080fd5b61219f84612106565b92506121ad60208501612106565b9150604084013590509250925092565b600080600080600080600060e0888a0312156121d857600080fd5b6121e188612106565b96506121ef60208901612106565b9550604088013594506060880135935061220b60808901612122565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561223a57600080fd5b61224383612106565b946020939093013593505050565b60006020828403121561226357600080fd5b8151801515811461085857600080fd5b60006020828403121561228557600080fd5b5035919050565b60006020828403121561229e57600080fd5b5051919050565b600080604083850312156122b857600080fd5b8235915061217860208401612106565b6000806000606084860312156122dd57600080fd5b833592506122ed60208501612106565b91506122fb60408501612106565b90509250925092565b600080600080600080600060e0888a03121561231f57600080fd5b873596506121ef60208901612106565b60008060008060008060c0878903121561234857600080fd5b8635955061235860208801612106565b94506040870135935061236d60608801612122565b92506080870135915060a087013590509295509295509295565b60008251612399818460208701612561565b9190910192915050565b600080835481600182811c9150808316806123bf57607f831692505b60208084108214156123df57634e487b7160e01b86526022600452602486fd5b8180156123f3576001811461240457612431565b60ff19861689528489019650612431565b60008a81526020902060005b868110156124295781548b820152908501908301612410565b505084890196505b509498975050505050505050565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b602081526000825180602084015261249f816040850160208701612561565b601f01601f19169190910160400192915050565b6020808252600a90820152691491150e9313d0d2d15160b21b604082015260600190565b6020808252600e908201526d3c26a8261d2727aa2fa7aba722a960911b604082015260600190565b60008219821115612512576125126125dc565b500190565b600082612526576125266125f2565b500490565b6000816000190483118215151615612545576125456125dc565b500290565b60008282101561255c5761255c6125dc565b500390565b60005b8381101561257c578181015183820152602001612564565b83811115611a2c5750506000910152565b600181811c908216806125a157607f821691505b602082108114156125c257634e487b7160e01b600052602260045260246000fd5b50919050565b6000826125d7576125d76125f2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea2646970667358221220b2092a65ff720a2df74717e8fe2c89bc8951e9bd5e864ccf3295bdd3dc24566464736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196000000000000000000000000643c4e15d7d62ad0abec4a9bd4b001aa3ef52d660000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000c5374616b6564205379727570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077374535952555000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Staked Syrup
Arg [1] : symbol_ (string): stSYRUP
Arg [2] : owner_ (address): 0xd6d4Bcde6c816F17889f1Dd3000aF0261B03a196
Arg [3] : asset_ (address): 0x643C4E15d7d62Ad0aBeC4a9BD4b001aA3Ef52d66
Arg [4] : precision_ (uint256): 18
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196
Arg [3] : 000000000000000000000000643c4e15d7d62ad0abec4a9bd4b001aa3ef52d66
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 5374616b65642053797275700000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 7374535952555000000000000000000000000000000000000000000000000000
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.