Overview
POL Balance
0 POL
POL Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Contract Name:
WMATICV2
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IERC20} from "./interfaces/IERC20.sol"; import {IWMATIC} from "./interfaces/IWMATIC.sol"; import {IWMATICV2} from "./interfaces/IWMATICV2.sol"; import {IUniswapV2Pair} from "./interfaces/IUniswapV2Pair.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./libraries/TransferHelper.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @title The core logic for the WMATICV2 contract contract WMATICV2 is IWMATICV2, ReentrancyGuard, Ownable { /* ======== Verilog CTF - Web3Dubai Conference @ 2022 =============================== This is our newly designed WMATICV2 token, unlike the old version of the WMATIC the new contract will be more stylish with supports of depositing multi MATIC derivative assets to convert into WMATICV2 token. Scenarios: deposit MATIC -> mint WMATICV2 token deposit WMATIC -> mint WMATICV2 token deposit WMATIC <> WMATICV2 LP -> mint WMATICV2 token (early stage incentive for switching) Besides, our team designed a early stage bounty insurance contract to monitor the safety of the WMATICV2. Find your way to hack around ! But I am sure its really safe. */ string public name = "Wrapped Matic Version 2"; string public symbol = "WMATICV2"; uint8 public decimals = 18; uint256 private _totalSupply; uint256 private _balanceOfMatic; address public WMATIC; address public LP; event Approval(address indexed src, address indexed guy, uint256 wad); event Transfer(address indexed src, address indexed dst, uint256 wad); event Deposit(address indexed dst, uint256 wad); event Withdrawal(address indexed src, uint256 wad); mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; constructor(address _wmatic) { WMATIC = _wmatic; } // errors error CallFailed(); receive() external payable { _depositMATIC(msg.sender); } function setLP(address _lpToken) external onlyOwner { require(_lpToken != address(0), "NON ZERO ADDRESS"); LP = _lpToken; } function depositMATIC() public payable nonReentrant { _depositMATIC(msg.sender); } function depositWMATIC(uint256 amount) external nonReentrant { _depositWMATIC(amount); } ///@notice need to approve both LP token & WMATIC token to the contract function depositLP(uint256 amount) external nonReentrant { require(LP != address(0), "SET LP"); require(IERC20(LP).balanceOf(msg.sender) >= amount, "NO ENOUGH BALANCE"); uint256 beforeBalance = IERC20(LP).balanceOf(address(this)); IERC20(LP).transferFrom(msg.sender, address(this), amount); uint256 afterBalance = IERC20(LP).balanceOf(address(this)); require(afterBalance - beforeBalance >= amount, "TRANSFER NOT ENOUGH"); // redeem back WMATIC & WMATICV2 back to user IUniswapV2Pair(LP).transferFrom(msg.sender, LP, amount); (uint256 amount0, uint256 amount1) = IUniswapV2Pair(LP).burn(msg.sender); // transfer the WMATIC to this address and convert it to V2 if (IUniswapV2Pair(LP).token0() == address(this)) { // if token0 is WMATICV2 -> amount1 is WMATIC _depositWMATIC(amount1); transfer(msg.sender, amount0); } else { // if token0 is WMATIC -> amount1 is WMATICV2 _depositWMATIC(amount0); transfer(msg.sender, amount1); } } function redeem(uint256 amount) public nonReentrant { require(balanceOf[msg.sender] >= amount, "NO ENOUGH BALANCE"); balanceOf[msg.sender] -= amount; _totalSupply -= amount; (bool success,) = payable(msg.sender).call{value: amount}(""); if (!success) { revert CallFailed(); } _updateBalanceOfMatic(amount, false); emit Withdrawal(msg.sender, amount); } function redeemWMATIC(uint256 amount) public nonReentrant { require(balanceOf[msg.sender] >= amount, "NO ENOUGH BALANCE"); balanceOf[msg.sender] -= amount; _totalSupply -= amount; TransferHelper.safeTransfer(WMATIC, msg.sender, amount); _updateBalanceOfMatic(amount, false); emit Withdrawal(msg.sender, amount); } function totalSupply() external view override returns (uint256) { return _totalSupply; } function balance() external view override returns (uint256) { return _balanceOfMatic; } function approve(address guy, uint256 wad) public returns (bool) { allowance[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function transfer(address dst, uint256 wad) public returns (bool) { return transferFrom(msg.sender, dst, wad); } function transferFrom(address src, address dst, uint256 wad) public returns (bool) { require(balanceOf[src] >= wad); if (src != msg.sender && allowance[src][msg.sender] != type(uint256).max) { require(allowance[src][msg.sender] >= wad); allowance[src][msg.sender] -= wad; } balanceOf[src] -= wad; balanceOf[dst] += wad; emit Transfer(src, dst, wad); return true; } function _depositMATIC(address to) internal { if (to != WMATIC) { balanceOf[to] += msg.value; } _totalSupply += msg.value; _updateBalanceOfMatic(msg.value, true); emit Deposit(to, msg.value); } function _depositWMATIC(uint256 amount) internal { require(IERC20(WMATIC).balanceOf(msg.sender) >= amount, "NO ENOUGH BALANCE"); uint256 beforeBalance = IERC20(WMATIC).balanceOf(address(this)); IERC20(WMATIC).transferFrom(msg.sender, address(this), amount); uint256 afterBalance = IERC20(WMATIC).balanceOf(address(this)); require(afterBalance - beforeBalance >= amount, "TRANSFER NOT ENOUGH"); balanceOf[msg.sender] += amount; _totalSupply += amount; _updateBalanceOfMatic(amount, true); } function _updateBalanceOfMatic(uint256 amount, bool add) internal { _balanceOfMatic = add ? _balanceOfMatic += amount : _balanceOfMatic -= amount; } /// @notice owner can withdraw all the funds after 2022 Nov 20 12:00 PM /// @notice This function is not witnin the CTF attack surface, only for admin purposes function withdraw(address token) external onlyOwner { require(block.timestamp >= 1668974400, "POOL NOT EXPIRED"); if (token == address(0)) { TransferHelper.safeTransferETH(msg.sender, address(this).balance); } else { TransferHelper.safeTransfer(token, msg.sender, IERC20(token).balanceOf(address(this))); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity 0.8.10; interface IWMATIC { function withdraw(uint256 wad) external; }
pragma solidity 0.8.10; interface IWMATICV2 { function totalSupply() external view returns (uint256); function balance() external view returns (uint256); }
pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeApprove: approve failed" ); } function safeTransfer(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeTransfer: transfer failed" ); } function safeTransferFrom(address token, address from, address to, uint256 value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::transferFrom: transferFrom failed" ); } function safeTransferETH(address to, uint256 value) internal { (bool success,) = to.call{value: value}(new bytes(0)); require(success, "TransferHelper::safeTransferETH: ETH transfer failed"); } }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_wmatic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"LP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WMATIC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositMATIC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositWMATIC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemWMATIC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"}],"name":"setLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052601760808190527f57726170706564204d617469632056657273696f6e203200000000000000000060a090815262000040916002919062000138565b50604080518082019091526008808252672ba6a0aa24a1ab1960c11b6020909201918252620000729160039162000138565b506004805460ff191660121790553480156200008d57600080fd5b5060405162001acc38038062001acc833981016040819052620000b091620001de565b6001600055620000c033620000e6565b600780546001600160a01b0319166001600160a01b03929092169190911790556200024d565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001469062000210565b90600052602060002090601f0160209004810192826200016a5760008555620001b5565b82601f106200018557805160ff1916838001178555620001b5565b82800160010185558215620001b5579182015b82811115620001b557825182559160200191906001019062000198565b50620001c3929150620001c7565b5090565b5b80821115620001c35760008155600101620001c8565b600060208284031215620001f157600080fd5b81516001600160a01b03811681146200020957600080fd5b9392505050565b600181811c908216806200022557607f821691505b602082108114156200024757634e487b7160e01b600052602260045260246000fd5b50919050565b61186f806200025d6000396000f3fe6080604052600436106101395760003560e01c8063715018a6116100ab578063b6fccf8a1161006f578063b6fccf8a1461035e578063db006a751461037e578063dd62ed3e1461039e578063eb37acfc146103d6578063f2fde38b146103f6578063fec362351461041657600080fd5b8063715018a6146102e15780638da5cb5b146102f657806395d89b4114610314578063a9059cbb14610329578063b69ef8a81461034957600080fd5b80632f34d282116100fd5780632f34d282146101f057806330d5baea14610210578063313ce567146102305780634d95cad91461025c57806351cff8d91461029457806370a08231146102b457600080fd5b806306fdde031461014e578063095ea7b31461017957806318160ddd146101a95780631d9053e0146101c857806323b872dd146101d057600080fd5b366101495761014733610436565b005b600080fd5b34801561015a57600080fd5b506101636104e2565b60405161017091906115d2565b60405180910390f35b34801561018557600080fd5b5061019961019436600461161a565b610570565b6040519015158152602001610170565b3480156101b557600080fd5b506005545b604051908152602001610170565b6101476105dc565b3480156101dc57600080fd5b506101996101eb366004611646565b6105f9565b3480156101fc57600080fd5b5061014761020b366004611687565b61077d565b34801561021c57600080fd5b5061014761022b3660046116a4565b6107f5565b34801561023c57600080fd5b5060045461024a9060ff1681565b60405160ff9091168152602001610170565b34801561026857600080fd5b5060075461027c906001600160a01b031681565b6040516001600160a01b039091168152602001610170565b3480156102a057600080fd5b506101476102af366004611687565b6108cd565b3480156102c057600080fd5b506101ba6102cf366004611687565b60096020526000908152604090205481565b3480156102ed57600080fd5b506101476109a9565b34801561030257600080fd5b506001546001600160a01b031661027c565b34801561032057600080fd5b506101636109bb565b34801561033557600080fd5b5061019961034436600461161a565b6109c8565b34801561035557600080fd5b506006546101ba565b34801561036a57600080fd5b5060085461027c906001600160a01b031681565b34801561038a57600080fd5b506101476103993660046116a4565b6109dc565b3480156103aa57600080fd5b506101ba6103b93660046116bd565b600a60209081526000928352604080842090915290825290205481565b3480156103e257600080fd5b506101476103f13660046116a4565b610b04565b34801561040257600080fd5b50610147610411366004611687565b610f3e565b34801561042257600080fd5b506101476104313660046116a4565b610fb4565b6007546001600160a01b03828116911614610479576001600160a01b0381166000908152600960205260408120805434929061047390849061170c565b90915550505b346005600082825461048b919061170c565b9091555061049c9050346001610fcf565b806001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516104d791815260200190565b60405180910390a250565b600280546104ef90611724565b80601f016020809104026020016040519081016040528092919081815260200182805461051b90611724565b80156105685780601f1061053d57610100808354040283529160200191610568565b820191906000526020600020905b81548152906001019060200180831161054b57829003601f168201915b505050505081565b336000818152600a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105cb9086815260200190565b60405180910390a350600192915050565b6105e4611011565b6105ed33610436565b6105f76001600055565b565b6001600160a01b03831660009081526009602052604081205482111561061e57600080fd5b6001600160a01b038416331480159061065c57506001600160a01b0384166000908152600a6020908152604080832033845290915290205460001914155b156106ca576001600160a01b0384166000908152600a6020908152604080832033845290915290205482111561069157600080fd5b6001600160a01b0384166000908152600a60209081526040808320338452909152812080548492906106c490849061175f565b90915550505b6001600160a01b038416600090815260096020526040812080548492906106f290849061175f565b90915550506001600160a01b0383166000908152600960205260408120805484929061071f90849061170c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161076b91815260200190565b60405180910390a35060019392505050565b61078561106b565b6001600160a01b0381166107d35760405162461bcd60e51b815260206004820152601060248201526f4e4f4e205a45524f204144445245535360801b60448201526064015b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6107fd611011565b3360009081526009602052604090205481111561082c5760405162461bcd60e51b81526004016107ca90611776565b336000908152600960205260408120805483929061084b90849061175f565b925050819055508060056000828254610864919061175f565b9091555050600754610880906001600160a01b031633836110c5565b61088b816000610fcf565b60405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a26108ca6001600055565b50565b6108d561106b565b63637a874042101561091c5760405162461bcd60e51b815260206004820152601060248201526f1413d3d3081393d5081156141254915160821b60448201526064016107ca565b6001600160a01b038116610934576108ca33476111f6565b6040516370a0823160e01b81523060048201526108ca90829033906001600160a01b038316906370a0823190602401602060405180830381865afa158015610980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a491906117a1565b6110c5565b6109b161106b565b6105f760006112d5565b600380546104ef90611724565b60006109d53384846105f9565b9392505050565b6109e4611011565b33600090815260096020526040902054811115610a135760405162461bcd60e51b81526004016107ca90611776565b3360009081526009602052604081208054839290610a3290849061175f565b925050819055508060056000828254610a4b919061175f565b9091555050604051600090339083908381818185875af1925050503d8060008114610a92576040519150601f19603f3d011682016040523d82523d6000602084013e610a97565b606091505b5050905080610ab957604051633204506f60e01b815260040160405180910390fd5b610ac4826000610fcf565b60405182815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a2506108ca6001600055565b610b0c611011565b6008546001600160a01b0316610b4d5760405162461bcd60e51b81526020600482015260066024820152650534554204c560d41b60448201526064016107ca565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb991906117a1565b1015610bd75760405162461bcd60e51b81526004016107ca90611776565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4491906117a1565b6008546040516323b872dd60e01b8152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc091906117ba565b506008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e91906117a1565b905082610d3b838361175f565b1015610d7f5760405162461bcd60e51b81526020600482015260136024820152720a8a4829ca68c8aa4409c9ea8408a9c9eaa8e9606b1b60448201526064016107ca565b6008546040516323b872dd60e01b81523360048201526001600160a01b039091166024820181905260448201859052906323b872dd906064016020604051808303816000875af1158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfb91906117ba565b5060085460405163226bf2d160e21b815233600482015260009182916001600160a01b03909116906389afcb449060240160408051808303816000875af1158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6e91906117dc565b91509150306001600160a01b0316600860009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef39190611800565b6001600160a01b03161415610f1b57610f0b81611327565b610f1533836109c8565b50610f30565b610f2482611327565b610f2e33826109c8565b505b505050506108ca6001600055565b610f4661106b565b6001600160a01b038116610fab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ca565b6108ca816112d5565b610fbc611011565b610fc581611327565b6108ca6001600055565b80610ff1578160066000828254610fe6919061175f565b92505081905561100a565b8160066000828254611003919061170c565b9250508190555b6006555050565b600260005414156110645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107ca565b6002600055565b6001546001600160a01b031633146105f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ca565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611121919061181d565b6000604051808303816000865af19150503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b509150915081801561118d57508051158061118d57508080602001905181019061118d91906117ba565b6111ef5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b60648201526084016107ca565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051611220919061181d565b60006040518083038185875af1925050503d806000811461125d576040519150601f19603f3d011682016040523d82523d6000602084013e611262565b606091505b50509050806112d05760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b60648201526084016107ca565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139391906117a1565b10156113b15760405162461bcd60e51b81526004016107ca90611776565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156113fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141e91906117a1565b6007546040516323b872dd60e01b8152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015611476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a91906117ba565b506007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150891906117a1565b905082611515838361175f565b10156115595760405162461bcd60e51b81526020600482015260136024820152720a8a4829ca68c8aa4409c9ea8408a9c9eaa8e9606b1b60448201526064016107ca565b336000908152600960205260408120805485929061157890849061170c565b925050819055508260056000828254611591919061170c565b909155506112d09050836001610fcf565b60005b838110156115bd5781810151838201526020016115a5565b838111156115cc576000848401525b50505050565b60208152600082518060208401526115f18160408501602087016115a2565b601f01601f19169190910160400192915050565b6001600160a01b03811681146108ca57600080fd5b6000806040838503121561162d57600080fd5b823561163881611605565b946020939093013593505050565b60008060006060848603121561165b57600080fd5b833561166681611605565b9250602084013561167681611605565b929592945050506040919091013590565b60006020828403121561169957600080fd5b81356109d581611605565b6000602082840312156116b657600080fd5b5035919050565b600080604083850312156116d057600080fd5b82356116db81611605565b915060208301356116eb81611605565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561171f5761171f6116f6565b500190565b600181811c9082168061173857607f821691505b6020821081141561175957634e487b7160e01b600052602260045260246000fd5b50919050565b600082821015611771576117716116f6565b500390565b6020808252601190820152704e4f20454e4f5547482042414c414e434560781b604082015260600190565b6000602082840312156117b357600080fd5b5051919050565b6000602082840312156117cc57600080fd5b815180151581146109d557600080fd5b600080604083850312156117ef57600080fd5b505080516020909101519092909150565b60006020828403121561181257600080fd5b81516109d581611605565b6000825161182f8184602087016115a2565b919091019291505056fea2646970667358221220b9216a219819fff3398750dcd8547a3d24f16c386122922294dc501a8b0d549864736f6c634300080a00330000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Deployed Bytecode
0x6080604052600436106101395760003560e01c8063715018a6116100ab578063b6fccf8a1161006f578063b6fccf8a1461035e578063db006a751461037e578063dd62ed3e1461039e578063eb37acfc146103d6578063f2fde38b146103f6578063fec362351461041657600080fd5b8063715018a6146102e15780638da5cb5b146102f657806395d89b4114610314578063a9059cbb14610329578063b69ef8a81461034957600080fd5b80632f34d282116100fd5780632f34d282146101f057806330d5baea14610210578063313ce567146102305780634d95cad91461025c57806351cff8d91461029457806370a08231146102b457600080fd5b806306fdde031461014e578063095ea7b31461017957806318160ddd146101a95780631d9053e0146101c857806323b872dd146101d057600080fd5b366101495761014733610436565b005b600080fd5b34801561015a57600080fd5b506101636104e2565b60405161017091906115d2565b60405180910390f35b34801561018557600080fd5b5061019961019436600461161a565b610570565b6040519015158152602001610170565b3480156101b557600080fd5b506005545b604051908152602001610170565b6101476105dc565b3480156101dc57600080fd5b506101996101eb366004611646565b6105f9565b3480156101fc57600080fd5b5061014761020b366004611687565b61077d565b34801561021c57600080fd5b5061014761022b3660046116a4565b6107f5565b34801561023c57600080fd5b5060045461024a9060ff1681565b60405160ff9091168152602001610170565b34801561026857600080fd5b5060075461027c906001600160a01b031681565b6040516001600160a01b039091168152602001610170565b3480156102a057600080fd5b506101476102af366004611687565b6108cd565b3480156102c057600080fd5b506101ba6102cf366004611687565b60096020526000908152604090205481565b3480156102ed57600080fd5b506101476109a9565b34801561030257600080fd5b506001546001600160a01b031661027c565b34801561032057600080fd5b506101636109bb565b34801561033557600080fd5b5061019961034436600461161a565b6109c8565b34801561035557600080fd5b506006546101ba565b34801561036a57600080fd5b5060085461027c906001600160a01b031681565b34801561038a57600080fd5b506101476103993660046116a4565b6109dc565b3480156103aa57600080fd5b506101ba6103b93660046116bd565b600a60209081526000928352604080842090915290825290205481565b3480156103e257600080fd5b506101476103f13660046116a4565b610b04565b34801561040257600080fd5b50610147610411366004611687565b610f3e565b34801561042257600080fd5b506101476104313660046116a4565b610fb4565b6007546001600160a01b03828116911614610479576001600160a01b0381166000908152600960205260408120805434929061047390849061170c565b90915550505b346005600082825461048b919061170c565b9091555061049c9050346001610fcf565b806001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516104d791815260200190565b60405180910390a250565b600280546104ef90611724565b80601f016020809104026020016040519081016040528092919081815260200182805461051b90611724565b80156105685780601f1061053d57610100808354040283529160200191610568565b820191906000526020600020905b81548152906001019060200180831161054b57829003601f168201915b505050505081565b336000818152600a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105cb9086815260200190565b60405180910390a350600192915050565b6105e4611011565b6105ed33610436565b6105f76001600055565b565b6001600160a01b03831660009081526009602052604081205482111561061e57600080fd5b6001600160a01b038416331480159061065c57506001600160a01b0384166000908152600a6020908152604080832033845290915290205460001914155b156106ca576001600160a01b0384166000908152600a6020908152604080832033845290915290205482111561069157600080fd5b6001600160a01b0384166000908152600a60209081526040808320338452909152812080548492906106c490849061175f565b90915550505b6001600160a01b038416600090815260096020526040812080548492906106f290849061175f565b90915550506001600160a01b0383166000908152600960205260408120805484929061071f90849061170c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161076b91815260200190565b60405180910390a35060019392505050565b61078561106b565b6001600160a01b0381166107d35760405162461bcd60e51b815260206004820152601060248201526f4e4f4e205a45524f204144445245535360801b60448201526064015b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6107fd611011565b3360009081526009602052604090205481111561082c5760405162461bcd60e51b81526004016107ca90611776565b336000908152600960205260408120805483929061084b90849061175f565b925050819055508060056000828254610864919061175f565b9091555050600754610880906001600160a01b031633836110c5565b61088b816000610fcf565b60405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a26108ca6001600055565b50565b6108d561106b565b63637a874042101561091c5760405162461bcd60e51b815260206004820152601060248201526f1413d3d3081393d5081156141254915160821b60448201526064016107ca565b6001600160a01b038116610934576108ca33476111f6565b6040516370a0823160e01b81523060048201526108ca90829033906001600160a01b038316906370a0823190602401602060405180830381865afa158015610980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a491906117a1565b6110c5565b6109b161106b565b6105f760006112d5565b600380546104ef90611724565b60006109d53384846105f9565b9392505050565b6109e4611011565b33600090815260096020526040902054811115610a135760405162461bcd60e51b81526004016107ca90611776565b3360009081526009602052604081208054839290610a3290849061175f565b925050819055508060056000828254610a4b919061175f565b9091555050604051600090339083908381818185875af1925050503d8060008114610a92576040519150601f19603f3d011682016040523d82523d6000602084013e610a97565b606091505b5050905080610ab957604051633204506f60e01b815260040160405180910390fd5b610ac4826000610fcf565b60405182815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a2506108ca6001600055565b610b0c611011565b6008546001600160a01b0316610b4d5760405162461bcd60e51b81526020600482015260066024820152650534554204c560d41b60448201526064016107ca565b6008546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb991906117a1565b1015610bd75760405162461bcd60e51b81526004016107ca90611776565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4491906117a1565b6008546040516323b872dd60e01b8152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc091906117ba565b506008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e91906117a1565b905082610d3b838361175f565b1015610d7f5760405162461bcd60e51b81526020600482015260136024820152720a8a4829ca68c8aa4409c9ea8408a9c9eaa8e9606b1b60448201526064016107ca565b6008546040516323b872dd60e01b81523360048201526001600160a01b039091166024820181905260448201859052906323b872dd906064016020604051808303816000875af1158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfb91906117ba565b5060085460405163226bf2d160e21b815233600482015260009182916001600160a01b03909116906389afcb449060240160408051808303816000875af1158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6e91906117dc565b91509150306001600160a01b0316600860009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef39190611800565b6001600160a01b03161415610f1b57610f0b81611327565b610f1533836109c8565b50610f30565b610f2482611327565b610f2e33826109c8565b505b505050506108ca6001600055565b610f4661106b565b6001600160a01b038116610fab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ca565b6108ca816112d5565b610fbc611011565b610fc581611327565b6108ca6001600055565b80610ff1578160066000828254610fe6919061175f565b92505081905561100a565b8160066000828254611003919061170c565b9250508190555b6006555050565b600260005414156110645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107ca565b6002600055565b6001546001600160a01b031633146105f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ca565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611121919061181d565b6000604051808303816000865af19150503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b509150915081801561118d57508051158061118d57508080602001905181019061118d91906117ba565b6111ef5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b60648201526084016107ca565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051611220919061181d565b60006040518083038185875af1925050503d806000811461125d576040519150601f19603f3d011682016040523d82523d6000602084013e611262565b606091505b50509050806112d05760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b60648201526084016107ca565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139391906117a1565b10156113b15760405162461bcd60e51b81526004016107ca90611776565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156113fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141e91906117a1565b6007546040516323b872dd60e01b8152336004820152306024820152604481018590529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015611476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149a91906117ba565b506007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150891906117a1565b905082611515838361175f565b10156115595760405162461bcd60e51b81526020600482015260136024820152720a8a4829ca68c8aa4409c9ea8408a9c9eaa8e9606b1b60448201526064016107ca565b336000908152600960205260408120805485929061157890849061170c565b925050819055508260056000828254611591919061170c565b909155506112d09050836001610fcf565b60005b838110156115bd5781810151838201526020016115a5565b838111156115cc576000848401525b50505050565b60208152600082518060208401526115f18160408501602087016115a2565b601f01601f19169190910160400192915050565b6001600160a01b03811681146108ca57600080fd5b6000806040838503121561162d57600080fd5b823561163881611605565b946020939093013593505050565b60008060006060848603121561165b57600080fd5b833561166681611605565b9250602084013561167681611605565b929592945050506040919091013590565b60006020828403121561169957600080fd5b81356109d581611605565b6000602082840312156116b657600080fd5b5035919050565b600080604083850312156116d057600080fd5b82356116db81611605565b915060208301356116eb81611605565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561171f5761171f6116f6565b500190565b600181811c9082168061173857607f821691505b6020821081141561175957634e487b7160e01b600052602260045260246000fd5b50919050565b600082821015611771576117716116f6565b500390565b6020808252601190820152704e4f20454e4f5547482042414c414e434560781b604082015260600190565b6000602082840312156117b357600080fd5b5051919050565b6000602082840312156117cc57600080fd5b815180151581146109d557600080fd5b600080604083850312156117ef57600080fd5b505080516020909101519092909150565b60006020828403121561181257600080fd5b81516109d581611605565b6000825161182f8184602087016115a2565b919091019291505056fea2646970667358221220b9216a219819fff3398750dcd8547a3d24f16c386122922294dc501a8b0d549864736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
-----Decoded View---------------
Arg [0] : _wmatic (address): 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.