Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RariFundToken
Compiler Version
v0.5.17+commit.d19bba13
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** * COPYRIGHT © 2020 RARI CAPITAL, INC. ALL RIGHTS RESERVED. * Anyone is free to integrate the public (i.e., non-administrative) application programming interfaces (APIs) of the official Ethereum smart contract instances deployed by Rari Capital, Inc. in any application (commercial or noncommercial and under any license), provided that the application does not abuse the APIs or act against the interests of Rari Capital, Inc. * Anyone is free to study, review, and analyze the source code contained in this package. * Reuse (including deployment of smart contracts other than private testing on a private network), modification, redistribution, or sublicensing of any source code contained in this package is not permitted without the explicit permission of David Lucid of Rari Capital, Inc. * No one is permitted to use the software for any purpose other than those allowed by this license. * This license is liable to change at any time at the sole discretion of David Lucid of Rari Capital, Inc. */ pragma solidity 0.5.17; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Detailed.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Mintable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Burnable.sol"; import "./interfaces/IRariGovernanceTokenDistributor.sol"; /** * @title RariFundToken * @author David Lucid <[email protected]> (https://github.com/davidlucid) * @notice RariFundToken is the ERC20 token contract accounting for the ownership of RariFundController's funds. */ contract RariFundToken is Initializable, ERC20, ERC20Detailed, ERC20Mintable, ERC20Burnable { using SafeMath for uint256; /** * @dev Initializer for RariFundToken. */ function initialize() public initializer { ERC20Detailed.initialize("Rari Stable Pool Token", "RSPT", 18); ERC20Mintable.initialize(msg.sender); } /** * @dev Contract of the RariGovernanceTokenDistributor. */ IRariGovernanceTokenDistributor public rariGovernanceTokenDistributor; /** * @dev Emitted when the GovernanceTokenDistributorSet of the RariFundManager is set or upgraded. */ event GovernanceTokenDistributorSet(address newContract); /** * @dev Sets or upgrades the RariGovernanceTokenDistributor of the RariFundToken. Caller must have the {MinterRole}. * @param newContract The address of the new RariGovernanceTokenDistributor contract. * @param force Boolean indicating if we should not revert on validation error. */ function setGovernanceTokenDistributor(address payable newContract, bool force) external onlyMinter { if (!force && address(rariGovernanceTokenDistributor) != address(0)) { require(rariGovernanceTokenDistributor.disabled(), "The old governance token distributor contract has not been disabled. (Set `force` to true to avoid this error.)"); require(newContract != address(0), "By default, the governance token distributor cannot be set to the zero address. (Set `force` to true to avoid this error.)"); } rariGovernanceTokenDistributor = IRariGovernanceTokenDistributor(newContract); if (newContract != address(0)) { if (!force) require(block.number <= rariGovernanceTokenDistributor.distributionStartBlock(), "The distribution period has already started. (Set `force` to true to avoid this error.)"); if (block.number < rariGovernanceTokenDistributor.distributionEndBlock()) rariGovernanceTokenDistributor.refreshDistributionSpeeds(IRariGovernanceTokenDistributor.RariPool.Stable); } emit GovernanceTokenDistributorSet(newContract); } /* * @notice Moves `amount` tokens from the caller's account to `recipient`. * @dev Claims RGT earned by the sender and `recipient` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new RSPT balances). * @return A boolean value indicating whether the operation succeeded. */ function transfer(address recipient, uint256 amount) public returns (bool) { // Claim RGT/set timestamp for initial transfer of RSPT to `recipient` if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) { rariGovernanceTokenDistributor.distributeRgt(_msgSender(), IRariGovernanceTokenDistributor.RariPool.Stable); if (balanceOf(recipient) > 0) rariGovernanceTokenDistributor.distributeRgt(recipient, IRariGovernanceTokenDistributor.RariPool.Stable); else rariGovernanceTokenDistributor.beforeFirstPoolTokenTransferIn(recipient, IRariGovernanceTokenDistributor.RariPool.Stable); } // Transfer RSPT and returns true _transfer(_msgSender(), recipient, amount); return true; } /* * @notice Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. * @dev Claims RGT earned by `sender` and `recipient` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new RSPT balances). * @return A boolean value indicating whether the operation succeeded. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) { // Claim RGT/set timestamp for initial transfer of RSPT to `recipient` rariGovernanceTokenDistributor.distributeRgt(sender, IRariGovernanceTokenDistributor.RariPool.Stable); if (balanceOf(recipient) > 0) rariGovernanceTokenDistributor.distributeRgt(recipient, IRariGovernanceTokenDistributor.RariPool.Stable); else rariGovernanceTokenDistributor.beforeFirstPoolTokenTransferIn(recipient, IRariGovernanceTokenDistributor.RariPool.Stable); } // Transfer RSPT, deduct from allowance, and return true _transfer(sender, recipient, amount); _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Caller must have the {MinterRole}. * @dev Claims RGT earned by `account` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new RSPT balance of the caller). */ function mint(address account, uint256 amount) public onlyMinter returns (bool) { if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) { // Claim RGT/set timestamp for initial transfer of RSPT to `account` if (balanceOf(account) > 0) rariGovernanceTokenDistributor.distributeRgt(account, IRariGovernanceTokenDistributor.RariPool.Stable); else rariGovernanceTokenDistributor.beforeFirstPoolTokenTransferIn(account, IRariGovernanceTokenDistributor.RariPool.Stable); } // Mint RSPT and return true _mint(account, amount); return true; } /* * @notice Destroys `amount` tokens from the caller, reducing the total supply. * @dev Claims RGT earned by `account` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new RSPT balance of the caller). */ function burn(uint256 amount) public { // Claim RGT, then burn RSPT if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) rariGovernanceTokenDistributor.distributeRgt(_msgSender(), IRariGovernanceTokenDistributor.RariPool.Stable); _burn(_msgSender(), amount); } /* * @notice Destroys `amount` tokens from `account`. `amount` is then deducted from the caller's allowance. * @dev Claims RGT earned by `account` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new RSPT balance of `account`). */ function burnFrom(address account, uint256 amount) public { // Claim RGT, then burn RSPT if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) rariGovernanceTokenDistributor.distributeRgt(account, IRariGovernanceTokenDistributor.RariPool.Stable); _burnFrom(account, amount); } /* * @dev Destroys `amount` tokens from `account`. Caller must have the {MinterRole}. */ function fundManagerBurnFrom(address account, uint256 amount) public onlyMinter { // Claim RGT, then burn RSPT if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) rariGovernanceTokenDistributor.distributeRgt(account, IRariGovernanceTokenDistributor.RariPool.Stable); _burn(account, amount); } }
pragma solidity 0.5.17; /** * COPYRIGHT © 2020 RARI CAPITAL, INC. ALL RIGHTS RESERVED. * Anyone is free to integrate the public (i.e., non-administrative) application programming interfaces (APIs) of the official Ethereum smart contract instances deployed by Rari Capital, Inc. in any application (commercial or noncommercial and under any license), provided that the application does not abuse the APIs or act against the interests of Rari Capital, Inc. * Anyone is free to study, review, and analyze the source code contained in this package. * Reuse (including deployment of smart contracts other than private testing on a private network), modification, redistribution, or sublicensing of any source code contained in this package is not permitted without the explicit permission of David Lucid of Rari Capital, Inc. * No one is permitted to use the software for any purpose other than those allowed by this license. * This license is liable to change at any time at the sole discretion of David Lucid of Rari Capital, Inc. */ /** * @title IRariGovernanceTokenDistributor * @author David Lucid <[email protected]> (https://github.com/davidlucid) * @notice IRariGovernanceTokenDistributor is a simple interface for RariGovernanceTokenDistributor used by RariFundManager and RariFundToken. */ interface IRariGovernanceTokenDistributor { /** * @notice Enum for the Rari pools to which distributions are rewarded. */ enum RariPool { Stable, Yield, Ethereum } /** * @notice Boolean indicating if this contract is disabled. */ function disabled() external returns (bool); /** * @notice Starting block number of the distribution. */ function distributionStartBlock() external returns (uint256); /** * @notice Ending block number of the distribution. */ function distributionEndBlock() external returns (uint256); /** * @dev Updates RGT distribution speeds for each pool given one `pool` and its `newBalance` (only accessible by the RariFundManager corresponding to `pool`). * @param pool The pool whose balance should be refreshed. * @param newBalance The new balance of the pool to be refreshed. */ function refreshDistributionSpeeds(RariPool pool, uint256 newBalance) external; /** * @notice Updates RGT distribution speeds for each pool given one `pool` whose balance should be refreshed. * @param pool The pool whose balance should be refreshed. */ function refreshDistributionSpeeds(RariPool pool) external; /** * @dev Distributes all undistributed RGT earned by `holder` in `pool` (without reverting if no RGT is available to distribute). * @param holder The holder of RSPT, RYPT, or REPT whose RGT is to be distributed. * @param pool The Rari pool for which to distribute RGT. * @return The quantity of RGT distributed. */ function distributeRgt(address holder, RariPool pool) external returns (uint256); /** * @dev Stores the RGT distributed per RSPT/RYPT/REPT right before `holder`'s first incoming RSPT/RYPT/REPT transfer since having a zero balance. * @param holder The holder of RSPT, RYPT, and/or REPT. * @param pool The Rari pool of the pool token. */ function beforeFirstPoolTokenTransferIn(address holder, RariPool pool) external; }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
pragma solidity ^0.5.0; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "../../GSN/Context.sol"; import "../Roles.sol"; contract MinterRole is Initializable, Context { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; function initialize(address sender) public initializer { if (!isMinter(sender)) { _addMinter(sender); } } modifier onlyMinter() { require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role"); _; } function isMinter(address account) public view returns (bool) { return _minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(_msgSender()); } function _addMinter(address account) internal { _minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { _minters.remove(account); emit MinterRemoved(account); } uint256[50] private ______gap; }
pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Initializable, Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } uint256[50] private ______gap; }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "../../GSN/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ contract ERC20Burnable is Initializable, Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _burn(_msgSender(), amount); } /** * @dev See {ERC20-_burnFrom}. */ function burnFrom(address account, uint256 amount) public { _burnFrom(account, amount); } uint256[50] private ______gap; }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "./IERC20.sol"; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is Initializable, 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. */ function initialize(string memory name, string memory symbol, uint8 decimals) public initializer { _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; } uint256[50] private ______gap; }
pragma solidity ^0.5.0; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "./ERC20.sol"; import "../../access/roles/MinterRole.sol"; /** * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole}, * which have permission to mint (create) new tokens as they see fit. * * At construction, the deployer of the contract is the only minter. */ contract ERC20Mintable is Initializable, ERC20, MinterRole { function initialize(address sender) public initializer { MinterRole.initialize(sender); } /** * @dev See {ERC20-_mint}. * * Requirements: * * - the caller must have the {MinterRole}. */ function mint(address account, uint256 amount) public onlyMinter returns (bool) { _mint(account, amount); return true; } uint256[50] private ______gap; }
pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"address","name":"newContract","type":"address"}],"name":"GovernanceTokenDistributorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","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":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fundManagerBurnFrom","outputs":[],"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":false,"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rariGovernanceTokenDistributor","outputs":[{"internalType":"contract IRariGovernanceTokenDistributor","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newContract","type":"address"},{"internalType":"bool","name":"force","type":"bool"}],"name":"setGovernanceTokenDistributor","outputs":[],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612613806100136000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80638129fc1c116100c3578063a9059cbb1161007c578063a9059cbb14610510578063aa271e1a1461053c578063b6830ff114610562578063bc9ce68e1461058e578063c4d66de8146105b2578063dd62ed3e146105d85761014d565b80638129fc1c146104785780638fd7c85c1461048057806395d89b41146104ae578063983b2d56146104b657806398650275146104dc578063a457c2d7146104e45761014d565b8063313ce56711610115578063313ce5671461039357806339509351146103b157806340c10f19146103dd57806342966c681461040957806370a082311461042657806379cc67901461044c5761014d565b806306fdde0314610152578063095ea7b3146101cf5780631624f6c61461020f57806318160ddd1461034357806323b872dd1461035d575b600080fd5b61015a610606565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360408110156101e557600080fd5b506001600160a01b03813516906020013561069d565b604080519115158252519081900360200190f35b6103416004803603606081101561022557600080fd5b81019060208101813564010000000081111561024057600080fd5b82018360208201111561025257600080fd5b8035906020019184600183028401116401000000008311171561027457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102c757600080fd5b8201836020820111156102d957600080fd5b803590602001918460018302840111640100000000831117156102fb57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506106ba9050565b005b61034b610796565b60408051918252519081900360200190f35b6101fb6004803603606081101561037357600080fd5b506001600160a01b0381358116916020810135909116906040013561079c565b61039b610a2e565b6040805160ff9092168252519081900360200190f35b6101fb600480360360408110156103c757600080fd5b506001600160a01b038135169060200135610a37565b6101fb600480360360408110156103f357600080fd5b506001600160a01b038135169060200135610a8b565b6103416004803603602081101561041f57600080fd5b5035610c88565b61034b6004803603602081101561043c57600080fd5b50356001600160a01b0316610dd0565b6103416004803603604081101561046257600080fd5b506001600160a01b038135169060200135610deb565b610341610f1c565b6103416004803603604081101561049657600080fd5b506001600160a01b038135169060200135151561101c565b61015a61138e565b610341600480360360208110156104cc57600080fd5b50356001600160a01b03166113ef565b61034161143e565b6101fb600480360360408110156104fa57600080fd5b506001600160a01b038135169060200135611450565b6101fb6004803603604081101561052657600080fd5b506001600160a01b0381351690602001356114be565b6101fb6004803603602081101561055257600080fd5b50356001600160a01b0316611712565b6103416004803603604081101561057857600080fd5b506001600160a01b03813516906020013561172b565b61059661189e565b604080516001600160a01b039092168252519081900360200190f35b610341600480360360208110156105c857600080fd5b50356001600160a01b03166118ae565b61034b600480360360408110156105ee57600080fd5b506001600160a01b0381358116916020013516611959565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b505050505090505b90565b60006106b16106aa611984565b8484611988565b50600192915050565b600054610100900460ff16806106d357506106d3611a74565b806106e1575060005460ff16155b61071c5760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff16158015610747576000805460ff1961ff0019909116610100171660011790555b835161075a9060689060208701906121fd565b50825161076e9060699060208601906121fd565b50606a805460ff191660ff84161790558015610790576000805461ff00191690555b50505050565b60355490565b610134546000906001600160a01b031615801590610835575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050506040513d602081101561083057600080fd5b505143115b156109cd576101345460405163bdfb130360e01b81526001600160a01b038681166004830190815292169163bdfb13039187916000916024018260ff16815260200192505050602060405180830381600087803b15801561089557600080fd5b505af11580156108a9573d6000803e3d6000fd5b505050506040513d60208110156108bf57600080fd5b50600090506108cd84610dd0565b1115610960576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b15801561092e57600080fd5b505af1158015610942573d6000803e3d6000fd5b505050506040513d602081101561095857600080fd5b506109cd9050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b1580156109b457600080fd5b505af11580156109c8573d6000803e3d6000fd5b505050505b6109d8848484611a7a565b610a24846109e4611984565b610a1f8560405180606001604052806028815260200161243a60289139610a128a610a0d611984565b611959565b919063ffffffff611bd816565b611988565b5060019392505050565b606a5460ff1690565b60006106b1610a44611984565b84610a1f8560346000610a55611984565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c6f16565b6000610a9d610a98611984565b611712565b610ad85760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610134546001600160a01b031615801590610b6e575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610b3f57600080fd5b505af1158015610b53573d6000803e3d6000fd5b505050506040513d6020811015610b6957600080fd5b505143115b15610c7e576000610b7e84610dd0565b1115610c11576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b158015610bdf57600080fd5b505af1158015610bf3573d6000803e3d6000fd5b505050506040513d6020811015610c0957600080fd5b50610c7e9050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b158015610c6557600080fd5b505af1158015610c79573d6000803e3d6000fd5b505050505b6106b18383611cd0565b610134546001600160a01b031615801590610d1e575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b505050506040513d6020811015610d1957600080fd5b505143115b15610dbc57610134546001600160a01b031663bdfb1303610d3d611984565b6040516001600160e01b031960e084901b1681526001600160a01b038216600482019081526000916024018260ff16815260200192505050602060405180830381600087803b158015610d8f57600080fd5b505af1158015610da3573d6000803e3d6000fd5b505050506040513d6020811015610db957600080fd5b50505b610dcd610dc7611984565b82611dc2565b50565b6001600160a01b031660009081526033602052604090205490565b610134546001600160a01b031615801590610e81575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e5257600080fd5b505af1158015610e66573d6000803e3d6000fd5b505050506040513d6020811015610e7c57600080fd5b505143115b15610f0e576101345460405163bdfb130360e01b81526001600160a01b038481166004830190815292169163bdfb13039185916000916024018260ff16815260200192505050602060405180830381600087803b158015610ee157600080fd5b505af1158015610ef5573d6000803e3d6000fd5b505050506040513d6020811015610f0b57600080fd5b50505b610f188282611ebe565b5050565b600054610100900460ff1680610f355750610f35611a74565b80610f43575060005460ff16155b610f7e5760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff16158015610fa9576000805460ff1961ff0019909116610100171660011790555b610fff604051806040016040528060168152602001752930b9349029ba30b13632902837b7b6102a37b5b2b760511b815250604051806040016040528060048152602001631494d41560e21b81525060126106ba565b611008336118ae565b8015610dcd576000805461ff001916905550565b611027610a98611984565b6110625760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b8015801561107b5750610134546001600160a01b031615155b1561117d5761013460009054906101000a90046001600160a01b03166001600160a01b031663ee0708056040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b505050506040513d60208110156110fb57600080fd5b50516111385760405162461bcd60e51b815260040180806020018281038252606f8152602001806123cb606f913960800191505060405180910390fd5b6001600160a01b03821661117d5760405162461bcd60e51b815260040180806020018281038252607a815260200180612540607a913960800191505060405180910390fd5b61013480546001600160a01b0319166001600160a01b0384169081179091551561134e57806112615761013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156111f757600080fd5b505af115801561120b573d6000803e3d6000fd5b505050506040513d602081101561122157600080fd5b50514311156112615760405162461bcd60e51b81526004018080602001828103825260578152602001806122fd6057913960600191505060405180910390fd5b61013460009054906101000a90046001600160a01b03166001600160a01b031663735c6f596040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112b257600080fd5b505af11580156112c6573d6000803e3d6000fd5b505050506040513d60208110156112dc57600080fd5b505143101561134e57610134546040516379636c5760e01b81526001600160a01b03909116906379636c5790600090600401808260ff168152602001915050600060405180830381600087803b15801561133557600080fd5b505af1158015611349573d6000803e3d6000fd5b505050505b604080516001600160a01b038416815290517f2d9bf4c5423d6aa7fc38a3bed46108e05ebf18c2dff7a82c05d4625f220390149181900360200190a15050565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106925780601f1061066757610100808354040283529160200191610692565b6113fa610a98611984565b6114355760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610dcd81611f39565b61144e611449611984565b611f81565b565b60006106b161145d611984565b84610a1f856040518060600160405280602581526020016125ba6025913960346000611487611984565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611bd816565b610134546000906001600160a01b031615801590611557575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561152857600080fd5b505af115801561153c573d6000803e3d6000fd5b505050506040513d602081101561155257600080fd5b505143115b1561170057610134546001600160a01b031663bdfb1303611576611984565b6040516001600160e01b031960e084901b1681526001600160a01b038216600482019081526000916024018260ff16815260200192505050602060405180830381600087803b1580156115c857600080fd5b505af11580156115dc573d6000803e3d6000fd5b505050506040513d60208110156115f257600080fd5b506000905061160084610dd0565b1115611693576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b15801561166157600080fd5b505af1158015611675573d6000803e3d6000fd5b505050506040513d602081101561168b57600080fd5b506117009050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b1580156116e757600080fd5b505af11580156116fb573d6000803e3d6000fd5b505050505b6106b161170b611984565b8484611a7a565b6000611725609d8363ffffffff611fc916565b92915050565b611736610a98611984565b6117715760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610134546001600160a01b031615801590611807575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117d857600080fd5b505af11580156117ec573d6000803e3d6000fd5b505050506040513d602081101561180257600080fd5b505143115b15611894576101345460405163bdfb130360e01b81526001600160a01b038481166004830190815292169163bdfb13039185916000916024018260ff16815260200192505050602060405180830381600087803b15801561186757600080fd5b505af115801561187b573d6000803e3d6000fd5b505050506040513d602081101561189157600080fd5b50505b610f188282611dc2565b610134546001600160a01b031681565b600054610100900460ff16806118c757506118c7611a74565b806118d5575060005460ff16155b6119105760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff1615801561193b576000805460ff1961ff0019909116610100171660011790555b61194482612030565b8015610f18576000805461ff00191690555050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166119cd5760405162461bcd60e51b815260040180806020018281038252602481526020018061251c6024913960400191505060405180910390fd5b6001600160a01b038216611a125760405162461bcd60e51b81526004018080602001828103825260228152602001806122db6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b303b1590565b6001600160a01b038316611abf5760405162461bcd60e51b81526004018080602001828103825260258152602001806124f76025913960400191505060405180910390fd5b6001600160a01b038216611b045760405162461bcd60e51b81526004018080602001828103825260238152602001806122966023913960400191505060405180910390fd5b611b4781604051806060016040528060268152602001612354602691396001600160a01b038616600090815260336020526040902054919063ffffffff611bd816565b6001600160a01b038085166000908152603360205260408082209390935590841681522054611b7c908263ffffffff611c6f16565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611c675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c2c578181015183820152602001611c14565b50505050905090810190601f168015611c595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611cc9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611d2b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b603554611d3e908263ffffffff611c6f16565b6035556001600160a01b038216600090815260336020526040902054611d6a908263ffffffff611c6f16565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611e075760405162461bcd60e51b81526004018080602001828103825260218152602001806124d66021913960400191505060405180910390fd5b611e4a816040518060600160405280602281526020016122b9602291396001600160a01b038516600090815260336020526040902054919063ffffffff611bd816565b6001600160a01b038316600090815260336020526040902055603554611e76908263ffffffff6120d316565b6035556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b611ec88282611dc2565b610f1882611ed4611984565b610a1f846040518060600160405280602481526020016124b2602491396001600160a01b038816600090815260346020526040812090611f12611984565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611bd816565b611f4a609d8263ffffffff61211516565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b611f92609d8263ffffffff61219616565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b0382166120105760405162461bcd60e51b81526004018080602001828103825260228152602001806124626022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b600054610100900460ff16806120495750612049611a74565b80612057575060005460ff16155b6120925760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff161580156120bd576000805460ff1961ff0019909116610100171660011790555b6120c682611712565b6119445761194482611f39565b6000611cc983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bd8565b61211f8282611fc9565b15612171576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6121a08282611fc9565b6121db5760405162461bcd60e51b81526004018080602001828103825260218152602001806123aa6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061223e57805160ff191683800117855561226b565b8280016001018555821561226b579182015b8281111561226b578251825591602001919060010190612250565b5061227792915061227b565b5090565b61069a91905b80821115612277576000815560010161228156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737354686520646973747269627574696f6e20706572696f642068617320616c726561647920737461727465642e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65546865206f6c6420676f7665726e616e636520746f6b656e206469737472696275746f7220636f6e747261637420686173206e6f74206265656e2064697361626c65642e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737342792064656661756c742c2074686520676f7665726e616e636520746f6b656e206469737472696275746f722063616e6e6f742062652073657420746f20746865207a65726f20616464726573732e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582068789bff5631c52815b75a658423d58c69a9dc8d9e47b496212c4077d197a21764736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80638129fc1c116100c3578063a9059cbb1161007c578063a9059cbb14610510578063aa271e1a1461053c578063b6830ff114610562578063bc9ce68e1461058e578063c4d66de8146105b2578063dd62ed3e146105d85761014d565b80638129fc1c146104785780638fd7c85c1461048057806395d89b41146104ae578063983b2d56146104b657806398650275146104dc578063a457c2d7146104e45761014d565b8063313ce56711610115578063313ce5671461039357806339509351146103b157806340c10f19146103dd57806342966c681461040957806370a082311461042657806379cc67901461044c5761014d565b806306fdde0314610152578063095ea7b3146101cf5780631624f6c61461020f57806318160ddd1461034357806323b872dd1461035d575b600080fd5b61015a610606565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360408110156101e557600080fd5b506001600160a01b03813516906020013561069d565b604080519115158252519081900360200190f35b6103416004803603606081101561022557600080fd5b81019060208101813564010000000081111561024057600080fd5b82018360208201111561025257600080fd5b8035906020019184600183028401116401000000008311171561027457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102c757600080fd5b8201836020820111156102d957600080fd5b803590602001918460018302840111640100000000831117156102fb57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506106ba9050565b005b61034b610796565b60408051918252519081900360200190f35b6101fb6004803603606081101561037357600080fd5b506001600160a01b0381358116916020810135909116906040013561079c565b61039b610a2e565b6040805160ff9092168252519081900360200190f35b6101fb600480360360408110156103c757600080fd5b506001600160a01b038135169060200135610a37565b6101fb600480360360408110156103f357600080fd5b506001600160a01b038135169060200135610a8b565b6103416004803603602081101561041f57600080fd5b5035610c88565b61034b6004803603602081101561043c57600080fd5b50356001600160a01b0316610dd0565b6103416004803603604081101561046257600080fd5b506001600160a01b038135169060200135610deb565b610341610f1c565b6103416004803603604081101561049657600080fd5b506001600160a01b038135169060200135151561101c565b61015a61138e565b610341600480360360208110156104cc57600080fd5b50356001600160a01b03166113ef565b61034161143e565b6101fb600480360360408110156104fa57600080fd5b506001600160a01b038135169060200135611450565b6101fb6004803603604081101561052657600080fd5b506001600160a01b0381351690602001356114be565b6101fb6004803603602081101561055257600080fd5b50356001600160a01b0316611712565b6103416004803603604081101561057857600080fd5b506001600160a01b03813516906020013561172b565b61059661189e565b604080516001600160a01b039092168252519081900360200190f35b610341600480360360208110156105c857600080fd5b50356001600160a01b03166118ae565b61034b600480360360408110156105ee57600080fd5b506001600160a01b0381358116916020013516611959565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b505050505090505b90565b60006106b16106aa611984565b8484611988565b50600192915050565b600054610100900460ff16806106d357506106d3611a74565b806106e1575060005460ff16155b61071c5760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff16158015610747576000805460ff1961ff0019909116610100171660011790555b835161075a9060689060208701906121fd565b50825161076e9060699060208601906121fd565b50606a805460ff191660ff84161790558015610790576000805461ff00191690555b50505050565b60355490565b610134546000906001600160a01b031615801590610835575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050506040513d602081101561083057600080fd5b505143115b156109cd576101345460405163bdfb130360e01b81526001600160a01b038681166004830190815292169163bdfb13039187916000916024018260ff16815260200192505050602060405180830381600087803b15801561089557600080fd5b505af11580156108a9573d6000803e3d6000fd5b505050506040513d60208110156108bf57600080fd5b50600090506108cd84610dd0565b1115610960576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b15801561092e57600080fd5b505af1158015610942573d6000803e3d6000fd5b505050506040513d602081101561095857600080fd5b506109cd9050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b1580156109b457600080fd5b505af11580156109c8573d6000803e3d6000fd5b505050505b6109d8848484611a7a565b610a24846109e4611984565b610a1f8560405180606001604052806028815260200161243a60289139610a128a610a0d611984565b611959565b919063ffffffff611bd816565b611988565b5060019392505050565b606a5460ff1690565b60006106b1610a44611984565b84610a1f8560346000610a55611984565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c6f16565b6000610a9d610a98611984565b611712565b610ad85760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610134546001600160a01b031615801590610b6e575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610b3f57600080fd5b505af1158015610b53573d6000803e3d6000fd5b505050506040513d6020811015610b6957600080fd5b505143115b15610c7e576000610b7e84610dd0565b1115610c11576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b158015610bdf57600080fd5b505af1158015610bf3573d6000803e3d6000fd5b505050506040513d6020811015610c0957600080fd5b50610c7e9050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b158015610c6557600080fd5b505af1158015610c79573d6000803e3d6000fd5b505050505b6106b18383611cd0565b610134546001600160a01b031615801590610d1e575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b505050506040513d6020811015610d1957600080fd5b505143115b15610dbc57610134546001600160a01b031663bdfb1303610d3d611984565b6040516001600160e01b031960e084901b1681526001600160a01b038216600482019081526000916024018260ff16815260200192505050602060405180830381600087803b158015610d8f57600080fd5b505af1158015610da3573d6000803e3d6000fd5b505050506040513d6020811015610db957600080fd5b50505b610dcd610dc7611984565b82611dc2565b50565b6001600160a01b031660009081526033602052604090205490565b610134546001600160a01b031615801590610e81575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e5257600080fd5b505af1158015610e66573d6000803e3d6000fd5b505050506040513d6020811015610e7c57600080fd5b505143115b15610f0e576101345460405163bdfb130360e01b81526001600160a01b038481166004830190815292169163bdfb13039185916000916024018260ff16815260200192505050602060405180830381600087803b158015610ee157600080fd5b505af1158015610ef5573d6000803e3d6000fd5b505050506040513d6020811015610f0b57600080fd5b50505b610f188282611ebe565b5050565b600054610100900460ff1680610f355750610f35611a74565b80610f43575060005460ff16155b610f7e5760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff16158015610fa9576000805460ff1961ff0019909116610100171660011790555b610fff604051806040016040528060168152602001752930b9349029ba30b13632902837b7b6102a37b5b2b760511b815250604051806040016040528060048152602001631494d41560e21b81525060126106ba565b611008336118ae565b8015610dcd576000805461ff001916905550565b611027610a98611984565b6110625760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b8015801561107b5750610134546001600160a01b031615155b1561117d5761013460009054906101000a90046001600160a01b03166001600160a01b031663ee0708056040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b505050506040513d60208110156110fb57600080fd5b50516111385760405162461bcd60e51b815260040180806020018281038252606f8152602001806123cb606f913960800191505060405180910390fd5b6001600160a01b03821661117d5760405162461bcd60e51b815260040180806020018281038252607a815260200180612540607a913960800191505060405180910390fd5b61013480546001600160a01b0319166001600160a01b0384169081179091551561134e57806112615761013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156111f757600080fd5b505af115801561120b573d6000803e3d6000fd5b505050506040513d602081101561122157600080fd5b50514311156112615760405162461bcd60e51b81526004018080602001828103825260578152602001806122fd6057913960600191505060405180910390fd5b61013460009054906101000a90046001600160a01b03166001600160a01b031663735c6f596040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112b257600080fd5b505af11580156112c6573d6000803e3d6000fd5b505050506040513d60208110156112dc57600080fd5b505143101561134e57610134546040516379636c5760e01b81526001600160a01b03909116906379636c5790600090600401808260ff168152602001915050600060405180830381600087803b15801561133557600080fd5b505af1158015611349573d6000803e3d6000fd5b505050505b604080516001600160a01b038416815290517f2d9bf4c5423d6aa7fc38a3bed46108e05ebf18c2dff7a82c05d4625f220390149181900360200190a15050565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106925780601f1061066757610100808354040283529160200191610692565b6113fa610a98611984565b6114355760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610dcd81611f39565b61144e611449611984565b611f81565b565b60006106b161145d611984565b84610a1f856040518060600160405280602581526020016125ba6025913960346000611487611984565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611bd816565b610134546000906001600160a01b031615801590611557575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561152857600080fd5b505af115801561153c573d6000803e3d6000fd5b505050506040513d602081101561155257600080fd5b505143115b1561170057610134546001600160a01b031663bdfb1303611576611984565b6040516001600160e01b031960e084901b1681526001600160a01b038216600482019081526000916024018260ff16815260200192505050602060405180830381600087803b1580156115c857600080fd5b505af11580156115dc573d6000803e3d6000fd5b505050506040513d60208110156115f257600080fd5b506000905061160084610dd0565b1115611693576101345460405163bdfb130360e01b81526001600160a01b038581166004830190815292169163bdfb13039186916000916024018260ff16815260200192505050602060405180830381600087803b15801561166157600080fd5b505af1158015611675573d6000803e3d6000fd5b505050506040513d602081101561168b57600080fd5b506117009050565b6101345460408051630674c8db60e51b81526001600160a01b038681166004830152600060248301819052925193169263ce991b609260448084019391929182900301818387803b1580156116e757600080fd5b505af11580156116fb573d6000803e3d6000fd5b505050505b6106b161170b611984565b8484611a7a565b6000611725609d8363ffffffff611fc916565b92915050565b611736610a98611984565b6117715760405162461bcd60e51b815260040180806020018281038252603081526020018061237a6030913960400191505060405180910390fd5b610134546001600160a01b031615801590611807575061013460009054906101000a90046001600160a01b03166001600160a01b031663411c9e116040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117d857600080fd5b505af11580156117ec573d6000803e3d6000fd5b505050506040513d602081101561180257600080fd5b505143115b15611894576101345460405163bdfb130360e01b81526001600160a01b038481166004830190815292169163bdfb13039185916000916024018260ff16815260200192505050602060405180830381600087803b15801561186757600080fd5b505af115801561187b573d6000803e3d6000fd5b505050506040513d602081101561189157600080fd5b50505b610f188282611dc2565b610134546001600160a01b031681565b600054610100900460ff16806118c757506118c7611a74565b806118d5575060005460ff16155b6119105760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff1615801561193b576000805460ff1961ff0019909116610100171660011790555b61194482612030565b8015610f18576000805461ff00191690555050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166119cd5760405162461bcd60e51b815260040180806020018281038252602481526020018061251c6024913960400191505060405180910390fd5b6001600160a01b038216611a125760405162461bcd60e51b81526004018080602001828103825260228152602001806122db6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b303b1590565b6001600160a01b038316611abf5760405162461bcd60e51b81526004018080602001828103825260258152602001806124f76025913960400191505060405180910390fd5b6001600160a01b038216611b045760405162461bcd60e51b81526004018080602001828103825260238152602001806122966023913960400191505060405180910390fd5b611b4781604051806060016040528060268152602001612354602691396001600160a01b038616600090815260336020526040902054919063ffffffff611bd816565b6001600160a01b038085166000908152603360205260408082209390935590841681522054611b7c908263ffffffff611c6f16565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611c675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c2c578181015183820152602001611c14565b50505050905090810190601f168015611c595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611cc9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611d2b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b603554611d3e908263ffffffff611c6f16565b6035556001600160a01b038216600090815260336020526040902054611d6a908263ffffffff611c6f16565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611e075760405162461bcd60e51b81526004018080602001828103825260218152602001806124d66021913960400191505060405180910390fd5b611e4a816040518060600160405280602281526020016122b9602291396001600160a01b038516600090815260336020526040902054919063ffffffff611bd816565b6001600160a01b038316600090815260336020526040902055603554611e76908263ffffffff6120d316565b6035556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b611ec88282611dc2565b610f1882611ed4611984565b610a1f846040518060600160405280602481526020016124b2602491396001600160a01b038816600090815260346020526040812090611f12611984565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611bd816565b611f4a609d8263ffffffff61211516565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b611f92609d8263ffffffff61219616565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b0382166120105760405162461bcd60e51b81526004018080602001828103825260228152602001806124626022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b600054610100900460ff16806120495750612049611a74565b80612057575060005460ff16155b6120925760405162461bcd60e51b815260040180806020018281038252602e815260200180612484602e913960400191505060405180910390fd5b600054610100900460ff161580156120bd576000805460ff1961ff0019909116610100171660011790555b6120c682611712565b6119445761194482611f39565b6000611cc983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bd8565b61211f8282611fc9565b15612171576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6121a08282611fc9565b6121db5760405162461bcd60e51b81526004018080602001828103825260218152602001806123aa6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061223e57805160ff191683800117855561226b565b8280016001018555821561226b579182015b8281111561226b578251825591602001919060010190612250565b5061227792915061227b565b5090565b61069a91905b80821115612277576000815560010161228156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737354686520646973747269627574696f6e20706572696f642068617320616c726561647920737461727465642e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65546865206f6c6420676f7665726e616e636520746f6b656e206469737472696275746f7220636f6e747261637420686173206e6f74206265656e2064697361626c65642e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737342792064656661756c742c2074686520676f7665726e616e636520746f6b656e206469737472696275746f722063616e6e6f742062652073657420746f20746865207a65726f20616464726573732e20285365742060666f7263656020746f207472756520746f2061766f69642074686973206572726f722e2945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582068789bff5631c52815b75a658423d58c69a9dc8d9e47b496212c4077d197a21764736f6c63430005110032
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.