ERC-20
Finance
Overview
Max Total Supply
178,273.489994967 REB2
Holders
113 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
17.276691656 REB2Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RebasedV2
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-10 */ // SPDX-License-Identifier: MIT /* MIT License Copyright (c) 2018 requestnetwork Copyright (c) 2018 Fragments, Inc. Copyright (c) 2020 Rebased Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity 0.5.17; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two numbers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); event Transfer( address indexed from, address indexed to, uint256 value ); event Approval( address indexed owner, address indexed spender, uint256 value ); } contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } } /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } } /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { _owner = msg.sender; } /** * @return the address of the owner. */ function owner() public view returns(address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner()); _; } /** * @return true if `msg.sender` is the owner of the contract. */ function isOwner() public view returns(bool) { return msg.sender == _owner; } /** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */ function renounceOwnership() public onlyOwner { emit OwnershipRenounced(_owner); _owner = address(0); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @title Rebased V2 ERC20 token * @dev Rebased is based on the uFragments protocol first debuted by Ampleforth. * uFragments is a normal ERC20 token, but its supply can be adjusted by splitting and * combining tokens proportionally across all wallets. * * uFragment balances are internally represented with a hidden denomination, 'gons'. * We support splitting the currency in expansion and combining the currency on contraction by * changing the exchange rate between the hidden 'gons' and the public 'fragments'. */ contract RebasedV2 is ERC20Detailed, Ownable { using SafeMath for uint256; using SafeMathInt for int256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); // Used for authentication address public controller; modifier onlyController() { require(msg.sender == controller); _; } modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; } uint256 private constant DECIMALS = 9; uint256 private constant MAX_UINT256 = ~uint256(0); uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 2082412747493439; // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment is an integer. // Use the highest value that fits in a uint256 for max granularity. uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY); // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2 uint256 private constant MAX_SUPPLY = ~uint128(0); // (2^128) - 1 uint256 private _totalSupply; uint256 private _gonsPerFragment; mapping(address => uint256) private _gonBalances; // This is denominated in Fragments, because the gons-fragments conversion might change before // it's fully paid. mapping (address => mapping (address => uint256)) private _allowedFragments; /** * @dev Notifies Fragments contract about a new rebase cycle. * @param supplyDelta The number of new fragment tokens to add into circulation via expansion. * @return The total number of fragments after the supply adjustment. */ function rebase(uint256 epoch, int256 supplyDelta) external onlyController returns (uint256) { if (supplyDelta == 0) { emit LogRebase(epoch, _totalSupply); return _totalSupply; } if (supplyDelta < 0) { _totalSupply = _totalSupply.sub(uint256(supplyDelta.abs())); } else { _totalSupply = _totalSupply.add(uint256(supplyDelta)); } if (_totalSupply > MAX_SUPPLY) { _totalSupply = MAX_SUPPLY; } _gonsPerFragment = TOTAL_GONS.div(_totalSupply); emit LogRebase(epoch, _totalSupply); return _totalSupply; } constructor() ERC20Detailed("Rebased v2", "REB2", uint8(DECIMALS)) public { _totalSupply = INITIAL_FRAGMENTS_SUPPLY; _gonBalances[msg.sender] = TOTAL_GONS; _gonsPerFragment = TOTAL_GONS.div(_totalSupply); emit Transfer(address(0x0), msg.sender, _totalSupply); } /** * @notice Sets a new controller */ function setController(address _controller) external onlyOwner returns (uint256) { controller = _controller; } /** * @return The total number of fragments. */ function totalSupply() external view returns (uint256) { return _totalSupply; } /** * @param who The address to query. * @return The balance of the specified address. */ function balanceOf(address who) external view returns (uint256) { return _gonBalances[who].div(_gonsPerFragment); } /** * @dev Transfer tokens to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. * @return True on success, false otherwise. */ function transfer(address to, uint256 value) external validRecipient(to) returns (bool) { uint256 gonValue = value.mul(_gonsPerFragment); _gonBalances[msg.sender] = _gonBalances[msg.sender].sub(gonValue); _gonBalances[to] = _gonBalances[to].add(gonValue); emit Transfer(msg.sender, to, value); return true; } /** * @dev Function to check the amount of tokens that an owner has allowed to a spender. * @param owner_ The address which owns the funds. * @param spender The address which will spend the funds. * @return The number of tokens still available for the spender. */ function allowance(address owner_, address spender) external view returns (uint256) { return _allowedFragments[owner_][spender]; } /** * @dev Transfer tokens from one address to another. * @param from The address you want to send tokens from. * @param to The address you want to transfer to. * @param value The amount of tokens to be transferred. */ function transferFrom(address from, address to, uint256 value) external validRecipient(to) returns (bool) { _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value); uint256 gonValue = value.mul(_gonsPerFragment); _gonBalances[from] = _gonBalances[from].sub(gonValue); _gonBalances[to] = _gonBalances[to].add(gonValue); emit Transfer(from, to, value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of * msg.sender. This method is included for ERC20 compatibility. * increaseAllowance and decreaseAllowance should be used instead. * Changing an allowance with this method brings the risk that someone may transfer both * the old and the new allowance - if they are both greater than zero - if a transfer * transaction is mined before the later approve() call is mined. * * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) external returns (bool) { _allowedFragments[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } /** * @dev Increase the amount of tokens that an owner has allowed to a spender. * This method should be used instead of approve() to avoid the double approval vulnerability * described above. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } /** * @dev Decrease the amount of tokens that an owner has allowed to a spender. * * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { uint256 oldValue = _allowedFragments[msg.sender][spender]; if (subtractedValue >= oldValue) { _allowedFragments[msg.sender][spender] = 0; } else { _allowedFragments[msg.sender][spender] = oldValue.sub(subtractedValue); } emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"int256","name":"supplyDelta","type":"int256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600a8152692932b130b9b2b2103b1960b11b6020808301918252835180850190945260048452632922a11960e11b9084015281519192916009916200006491600091906200015a565b5081516200007a9060019060208501906200015a565b506002805460ff191660ff9290921691909117610100600160a81b03191661010033021790555050660765f18017103f6004819055600019336000908152600660205260409020919006199055600454620000f390660765f18017103f60001906600019036200013660201b62000bd41790919060201c565b600555600454604080519182525133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3620001ff565b60008082116200014557600080fd5b60008284816200015157fe5b04949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200019d57805160ff1916838001178555620001cd565b82800160010185558215620001cd579182015b82811115620001cd578251825591602001919060010190620001b0565b50620001db929150620001df565b5090565b620001fc91905b80821115620001db5760008155600101620001e6565b90565b610ccd806200020f6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063a457c2d711610071578063a457c2d71461031f578063a9059cbb1461034b578063dd62ed3e14610377578063f2fde38b146103a5578063f77c4791146103cb57610116565b80638da5cb5b146102c55780638f32d59b146102e957806392eefe9b146102f157806395d89b411461031757610116565b8063313ce567116100e9578063313ce56714610228578063395093511461024657806370a0823114610272578063715018a6146102985780637a43e23f146102a257610116565b806306fdde031461011b578063095ea7b31461019857806318160ddd146101d857806323b872dd146101f2575b600080fd5b6101236103d3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c4600480360360408110156101ae57600080fd5b506001600160a01b038135169060200135610469565b604080519115158252519081900360200190f35b6101e06104d0565b60408051918252519081900360200190f35b6101c46004803603606081101561020857600080fd5b506001600160a01b038135811691602081013590911690604001356104d6565b610230610635565b6040805160ff9092168252519081900360200190f35b6101c46004803603604081101561025c57600080fd5b506001600160a01b03813516906020013561063e565b6101e06004803603602081101561028857600080fd5b50356001600160a01b03166106d7565b6102a0610705565b005b6101e0600480360360408110156102b857600080fd5b5080359060200135610765565b6102cd610880565b604080516001600160a01b039092168252519081900360200190f35b6101c4610894565b6101e06004803603602081101561030757600080fd5b50356001600160a01b03166108aa565b6101236108e1565b6101c46004803603604081101561033557600080fd5b506001600160a01b038135169060200135610941565b6101c46004803603604081101561036157600080fd5b506001600160a01b038135169060200135610a30565b6101e06004803603604081101561038d57600080fd5b506001600160a01b0381358116916020013516610b28565b6102a0600480360360208110156103bb57600080fd5b50356001600160a01b0316610b53565b6102cd610b70565b60008054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561045f5780601f106104345761010080835404028352916020019161045f565b820191906000526020600020905b81548152906001019060200180831161044257829003601f168201915b5050505050905090565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60045490565b6000826001600160a01b0381166104ec57600080fd5b6001600160a01b03811630141561050257600080fd5b6001600160a01b0385166000908152600760209081526040808320338452909152902054610536908463ffffffff610b7f16565b6001600160a01b038616600090815260076020908152604080832033845290915281209190915560055461057190859063ffffffff610b9416565b6001600160a01b03871660009081526006602052604090205490915061059d908263ffffffff610b7f16565b6001600160a01b0380881660009081526006602052604080822093909355908716815220546105d2908263ffffffff610bc216565b6001600160a01b0380871660008181526006602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b60025460ff1690565b3360009081526007602090815260408083206001600160a01b0386168452909152812054610672908363ffffffff610bc216565b3360008181526007602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6005546001600160a01b03821660009081526006602052604081205490916104ca919063ffffffff610bd416565b61070d610894565b61071657600080fd5b6002546040516101009091046001600160a01b0316907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a260028054610100600160a81b0319169055565b6003546000906001600160a01b0316331461077f57600080fd5b816107c557600454604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a2506004546104ca565b60008212156107f1576107e96107da83610bf6565b6004549063ffffffff610b7f16565b600455610808565b600454610804908363ffffffff610bc216565b6004555b6004546001600160801b031015610825576001600160801b036004555b60045461083b90660661c3dd943e811990610bd4565b600555600454604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25060045492915050565b60025461010090046001600160a01b031690565b60025461010090046001600160a01b0316331490565b60006108b4610894565b6108bd57600080fd5b600380546001600160a01b0319166001600160a01b03939093169290921790915590565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561045f5780601f106104345761010080835404028352916020019161045f565b3360009081526007602090815260408083206001600160a01b0386168452909152812054808310610995573360009081526007602090815260408083206001600160a01b03881684529091528120556109ca565b6109a5818463ffffffff610b7f16565b3360009081526007602090815260408083206001600160a01b03891684529091529020555b3360008181526007602090815260408083206001600160a01b0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b6000826001600160a01b038116610a4657600080fd5b6001600160a01b038116301415610a5c57600080fd5b6000610a7360055485610b9490919063ffffffff16565b33600090815260066020526040902054909150610a96908263ffffffff610b7f16565b33600090815260066020526040808220929092556001600160a01b03871681522054610ac8908263ffffffff610bc216565b6001600160a01b0386166000818152600660209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b610b5b610894565b610b6457600080fd5b610b6d81610c1e565b50565b6003546001600160a01b031681565b600082821115610b8e57600080fd5b50900390565b600082610ba3575060006104ca565b82820282848281610bb057fe5b0414610bbb57600080fd5b9392505050565b600082820183811015610bbb57600080fd5b6000808211610be257600080fd5b6000828481610bed57fe5b04949350505050565b6000600160ff1b821415610c0957600080fd5b60008212610c1757816104ca565b5060000390565b6001600160a01b038116610c3157600080fd5b6002546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0390921661010002610100600160a81b031990921691909117905556fea265627a7a723158209634930f29a73d605f08981c7884c67e5bc47292d3054dd63095b910092e481b64736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063a457c2d711610071578063a457c2d71461031f578063a9059cbb1461034b578063dd62ed3e14610377578063f2fde38b146103a5578063f77c4791146103cb57610116565b80638da5cb5b146102c55780638f32d59b146102e957806392eefe9b146102f157806395d89b411461031757610116565b8063313ce567116100e9578063313ce56714610228578063395093511461024657806370a0823114610272578063715018a6146102985780637a43e23f146102a257610116565b806306fdde031461011b578063095ea7b31461019857806318160ddd146101d857806323b872dd146101f2575b600080fd5b6101236103d3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c4600480360360408110156101ae57600080fd5b506001600160a01b038135169060200135610469565b604080519115158252519081900360200190f35b6101e06104d0565b60408051918252519081900360200190f35b6101c46004803603606081101561020857600080fd5b506001600160a01b038135811691602081013590911690604001356104d6565b610230610635565b6040805160ff9092168252519081900360200190f35b6101c46004803603604081101561025c57600080fd5b506001600160a01b03813516906020013561063e565b6101e06004803603602081101561028857600080fd5b50356001600160a01b03166106d7565b6102a0610705565b005b6101e0600480360360408110156102b857600080fd5b5080359060200135610765565b6102cd610880565b604080516001600160a01b039092168252519081900360200190f35b6101c4610894565b6101e06004803603602081101561030757600080fd5b50356001600160a01b03166108aa565b6101236108e1565b6101c46004803603604081101561033557600080fd5b506001600160a01b038135169060200135610941565b6101c46004803603604081101561036157600080fd5b506001600160a01b038135169060200135610a30565b6101e06004803603604081101561038d57600080fd5b506001600160a01b0381358116916020013516610b28565b6102a0600480360360208110156103bb57600080fd5b50356001600160a01b0316610b53565b6102cd610b70565b60008054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561045f5780601f106104345761010080835404028352916020019161045f565b820191906000526020600020905b81548152906001019060200180831161044257829003601f168201915b5050505050905090565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60045490565b6000826001600160a01b0381166104ec57600080fd5b6001600160a01b03811630141561050257600080fd5b6001600160a01b0385166000908152600760209081526040808320338452909152902054610536908463ffffffff610b7f16565b6001600160a01b038616600090815260076020908152604080832033845290915281209190915560055461057190859063ffffffff610b9416565b6001600160a01b03871660009081526006602052604090205490915061059d908263ffffffff610b7f16565b6001600160a01b0380881660009081526006602052604080822093909355908716815220546105d2908263ffffffff610bc216565b6001600160a01b0380871660008181526006602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b60025460ff1690565b3360009081526007602090815260408083206001600160a01b0386168452909152812054610672908363ffffffff610bc216565b3360008181526007602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6005546001600160a01b03821660009081526006602052604081205490916104ca919063ffffffff610bd416565b61070d610894565b61071657600080fd5b6002546040516101009091046001600160a01b0316907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a260028054610100600160a81b0319169055565b6003546000906001600160a01b0316331461077f57600080fd5b816107c557600454604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a2506004546104ca565b60008212156107f1576107e96107da83610bf6565b6004549063ffffffff610b7f16565b600455610808565b600454610804908363ffffffff610bc216565b6004555b6004546001600160801b031015610825576001600160801b036004555b60045461083b90660661c3dd943e811990610bd4565b600555600454604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a25060045492915050565b60025461010090046001600160a01b031690565b60025461010090046001600160a01b0316331490565b60006108b4610894565b6108bd57600080fd5b600380546001600160a01b0319166001600160a01b03939093169290921790915590565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561045f5780601f106104345761010080835404028352916020019161045f565b3360009081526007602090815260408083206001600160a01b0386168452909152812054808310610995573360009081526007602090815260408083206001600160a01b03881684529091528120556109ca565b6109a5818463ffffffff610b7f16565b3360009081526007602090815260408083206001600160a01b03891684529091529020555b3360008181526007602090815260408083206001600160a01b0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b6000826001600160a01b038116610a4657600080fd5b6001600160a01b038116301415610a5c57600080fd5b6000610a7360055485610b9490919063ffffffff16565b33600090815260066020526040902054909150610a96908263ffffffff610b7f16565b33600090815260066020526040808220929092556001600160a01b03871681522054610ac8908263ffffffff610bc216565b6001600160a01b0386166000818152600660209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b610b5b610894565b610b6457600080fd5b610b6d81610c1e565b50565b6003546001600160a01b031681565b600082821115610b8e57600080fd5b50900390565b600082610ba3575060006104ca565b82820282848281610bb057fe5b0414610bbb57600080fd5b9392505050565b600082820183811015610bbb57600080fd5b6000808211610be257600080fd5b6000828481610bed57fe5b04949350505050565b6000600160ff1b821415610c0957600080fd5b60008212610c1757816104ca565b5060000390565b6001600160a01b038116610c3157600080fd5b6002546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0390921661010002610100600160a81b031990921691909117905556fea265627a7a723158209634930f29a73d605f08981c7884c67e5bc47292d3054dd63095b910092e481b64736f6c63430005110032
Deployed Bytecode Sourcemap
9707:7664:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9707:7664:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4270:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4270:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15639:235;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15639:235:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;12740:125;;;:::i;:::-;;;;;;;;;;;;;;;;14508:489;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14508:489:0;;;;;;;;;;;;;;;;;:::i;5122:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16247:345;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;16247:345:0;;;;;;;;:::i;12986:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12986:161:0;-1:-1:-1;;;;;12986:161:0;;:::i;8435:116::-;;;:::i;:::-;;11403:699;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11403:699:0;;;;;;;:::i;7776:72::-;;;:::i;:::-;;;;-1:-1:-1;;;;;7776:72:0;;;;;;;;;;;;;;8078:85;;;:::i;12509:156::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12509:156:0;-1:-1:-1;;;;;12509:156:0;;:::i;4472:87::-;;;:::i;16854:514::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;16854:514:0;;;;;;;;:::i;13373:390::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;13373:390:0;;;;;;;;:::i;14070:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14070:176:0;;;;;;;;;;:::i;8718:103::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8718:103:0;-1:-1:-1;;;;;8718:103:0;;:::i;9929:25::-;;;:::i;4270:83::-;4340:5;4333:12;;;;;;;;-1:-1:-1;;4333:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4307:13;;4333:12;;4340:5;;4333:12;;4340:5;4333:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4270:83;:::o;15639:235::-;15764:10;15724:4;15746:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;15746:38:0;;;;;;;;;;;:46;;;15808:36;;;;;;;15724:4;;15746:38;;15764:10;;15808:36;;;;;;;;-1:-1:-1;15862:4:0;15639:235;;;;;:::o;12740:125::-;12845:12;;12740:125;:::o;14508:489::-;14635:4;14613:2;-1:-1:-1;;;;;10116:18:0;;10108:27;;;;;;-1:-1:-1;;;;;10154:19:0;;10168:4;10154:19;;10146:28;;;;;;-1:-1:-1;;;;;14695:23:0;;;;;;:17;:23;;;;;;;;14719:10;14695:35;;;;;;;;:46;;14735:5;14695:46;:39;:46;:::i;:::-;-1:-1:-1;;;;;14657:23:0;;;;;;:17;:23;;;;;;;;14681:10;14657:35;;;;;;;:84;;;;14783:16;;14773:27;;:5;;:27;:9;:27;:::i;:::-;-1:-1:-1;;;;;14832:18:0;;;;;;:12;:18;;;;;;14754:46;;-1:-1:-1;14832:32:0;;14754:46;14832:32;:22;:32;:::i;:::-;-1:-1:-1;;;;;14811:18:0;;;;;;;:12;:18;;;;;;:53;;;;14894:16;;;;;;;:30;;14915:8;14894:30;:20;:30;:::i;:::-;-1:-1:-1;;;;;14875:16:0;;;;;;;:12;:16;;;;;;;;;:49;;;;14940:25;;;;;;;14875:16;;14940:25;;;;;;;;;;;;;-1:-1:-1;14985:4:0;;14508:489;-1:-1:-1;;;;;14508:489:0:o;5122:83::-;5188:9;;;;5122:83;:::o;16247:345::-;16441:10;16347:4;16423:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;16423:38:0;;;;;;;;;;:54;;16466:10;16423:54;:42;:54;:::i;:::-;16387:10;16369:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;16369:38:0;;;;;;;;;;;;:108;;;16493:69;;;;;;16369:38;;16493:69;;;;;;;;;;;-1:-1:-1;16580:4:0;16247:345;;;;:::o;12986:161::-;13122:16;;-1:-1:-1;;;;;13100:17:0;;13068:7;13100:17;;;:12;:17;;;;;;13068:7;;13100:39;;:17;:39;:21;:39;:::i;8435:116::-;7969:9;:7;:9::i;:::-;7961:18;;;;;;8512:6;;8493:26;;8512:6;;;;-1:-1:-1;;;;;8512:6:0;;8493:26;;;;;8526:6;:19;;-1:-1:-1;;;;;;8526:19:0;;;8435:116::o;11403:699::-;10022:10;;11514:7;;-1:-1:-1;;;;;10022:10:0;10008;:24;10000:33;;;;;;11543:16;11539:118;;11598:12;;11581:30;;;;;;;11591:5;;11581:30;;;;;;;;;;-1:-1:-1;11633:12:0;;11626:19;;11539:118;11687:1;11673:11;:15;11669:193;;;11720:44;11745:17;:11;:15;:17::i;:::-;11720:12;;;:44;:16;:44;:::i;:::-;11705:12;:59;11669:193;;;11812:12;;:38;;11837:11;11812:38;:16;:38;:::i;:::-;11797:12;:53;11669:193;11878:12;;-1:-1:-1;;;;;;11874:83:0;;;-1:-1:-1;;;;;11920:12:0;:25;11874:83;12003:12;;11988:28;;-1:-1:-1;;10594:54:0;11988:14;:28::i;:::-;11969:16;:47;12051:12;;12034:30;;;;;;;12044:5;;12034:30;;;;;;;;;;-1:-1:-1;12082:12:0;;11403:699;;;;:::o;7776:72::-;7836:6;;;;;-1:-1:-1;;;;;7836:6:0;;7776:72::o;8078:85::-;8151:6;;;;;-1:-1:-1;;;;;8151:6:0;8137:10;:20;;8078:85::o;12509:156::-;12608:7;7969:9;:7;:9::i;:::-;7961:18;;;;;;12633:10;:24;;-1:-1:-1;;;;;;12633:24:0;-1:-1:-1;;;;;12633:24:0;;;;;;;;;;;;12509:156::o;4472:87::-;4544:7;4537:14;;;;;;;;-1:-1:-1;;4537:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4511:13;;4537:14;;4544:7;;4537:14;;4544:7;4537:14;;;;;;;;;;;;;;;;;;;;;;;;16854:514;17018:10;16959:4;17000:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;17000:38:0;;;;;;;;;;17053:27;;;17049:205;;17115:10;17138:1;17097:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;17097:38:0;;;;;;;;;:42;17049:205;;;17213:29;:8;17226:15;17213:29;:12;:29;:::i;:::-;17190:10;17172:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;17172:38:0;;;;;;;;;:70;17049:205;17278:10;17299:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;17269:69:0;;17299:38;;;;;;;;;;;17269:69;;;;;;;;;17278:10;17269:69;;;;;;;;;;;-1:-1:-1;17356:4:0;;16854:514;-1:-1:-1;;;16854:514:0:o;13373:390::-;13482:4;13460:2;-1:-1:-1;;;;;10116:18:0;;10108:27;;;;;;-1:-1:-1;;;;;10154:19:0;;10168:4;10154:19;;10146:28;;;;;;13504:16;13523:27;13533:16;;13523:5;:9;;:27;;;;:::i;:::-;13601:10;13588:24;;;;:12;:24;;;;;;13504:46;;-1:-1:-1;13588:38:0;;13504:46;13588:38;:28;:38;:::i;:::-;13574:10;13561:24;;;;:12;:24;;;;;;:65;;;;-1:-1:-1;;;;;13656:16:0;;;;;;:30;;13677:8;13656:30;:20;:30;:::i;:::-;-1:-1:-1;;;;;13637:16:0;;;;;;:12;:16;;;;;;;;;:49;;;;13702:31;;;;;;;13637:16;;13711:10;;13702:31;;;;;;;;;;-1:-1:-1;13751:4:0;;13373:390;-1:-1:-1;;;;13373:390:0:o;14070:176::-;-1:-1:-1;;;;;14204:25:0;;;14172:7;14204:25;;;:17;:25;;;;;;;;:34;;;;;;;;;;;;;14070:176::o;8718:103::-;7969:9;:7;:9::i;:::-;7961:18;;;;;;8787:28;8806:8;8787:18;:28::i;:::-;8718:103;:::o;9929:25::-;;;-1:-1:-1;;;;;9929:25:0;;:::o;2317:136::-;2375:7;2404:1;2399;:6;;2391:15;;;;;;-1:-1:-1;2425:5:0;;;2317:136::o;1415:393::-;1473:7;1701:6;1697:37;;-1:-1:-1;1725:1:0;1718:8;;1697:37;1754:5;;;1758:1;1754;:5;:1;1774:5;;;;;:10;1766:19;;;;;;1801:1;1415:393;-1:-1:-1;;;1415:393:0:o;2521:136::-;2579:7;2607:5;;;2627:6;;;;2619:15;;;;;1923:276;1981:7;2009:1;2005;:5;1997:14;;;;;;2076:9;2092:1;2088;:5;;;;;;;1923:276;-1:-1:-1;;;;1923:276:0:o;6956:161::-;7029:6;-1:-1:-1;;;7061:15:0;;;7053:24;;;;;;7099:1;7095;:5;:14;;7108:1;7095:14;;;-1:-1:-1;7103:2:0;;;6956:161::o;8961:173::-;-1:-1:-1;;;;;9031:22:0;;9023:31;;;;;;9087:6;;9066:38;;-1:-1:-1;;;;;9066:38:0;;;;9087:6;;;;;9066:38;;;;;9111:6;:17;;-1:-1:-1;;;;;9111:17:0;;;;;-1:-1:-1;;;;;;9111:17:0;;;;;;;;;8961:173::o
Swarm Source
bzzr://9634930f29a73d605f08981c7884c67e5bc47292d3054dd63095b910092e481b
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.