Contract Address Details

0x755Bc6e2e2c00a93a0B0757C85A7fe9a859E1507

Token
SilverStarter (SST)
Creator
0x777e22–6417f9 at 0x65230f–4cd841
Balance
0 ELA
Tokens
Fetching tokens...
Transactions
Transfers
Gas Used
Last Balance Update
25566446
Contract name:
SST




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
200
EVM Version
default




Verified at
2022-03-02 13:56:57.910840Z

Contract source code

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @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;
}
/*
* @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 ContextUpgradeSafe is Initializable {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
function __Context_init() internal initializer {
__Context_init_unchained();
}
function __Context_init_unchained() internal initializer {
}
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
uint256[50] private __gap;
}
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function sub0(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a - b : 0;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// 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.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @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 {ERC20MinterPauser}.
*
* 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 ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name, string memory symbol) internal initializer {
__Context_init_unchained();
__ERC20_init_unchained(name, symbol);
}
function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer {
_name = name;
_symbol = symbol;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
if(sender != _msgSender() && _allowances[sender][_msgSender()] != uint(-1))
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This 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 virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
uint256[44] private __gap;
}
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20CappedUpgradeSafe is Initializable, ERC20UpgradeSafe {
uint256 private _cap;
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
function __ERC20Capped_init(uint256 cap) internal initializer {
__Context_init_unchained();
__ERC20Capped_init_unchained(cap);
}
function __ERC20Capped_init_unchained(uint256 cap) internal initializer {
require(cap > 0, "ERC20Capped: cap is 0");
_cap = cap;
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view returns (uint256) {
return _cap;
}
/**
* @dev See {ERC20-_beforeTokenTransfer}.
*
* Requirements:
*
* - minted tokens must not cause the total supply to go over the cap.
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
if (from == address(0)) { // When minting tokens
require(totalSupply().add(amount) <= _cap, "ERC20Capped: cap exceeded");
}
}
uint256[49] private __gap;
}
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checked to verify it contains contract code
// 2. The call itself is made, and success asserted
// 3. The return value is decoded, which in turn checks the size of the returned data.
// solhint-disable-next-line max-line-length
require(address(token).isContract(), "SafeERC20: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = address(token).call(data);
require(success, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
contract Governable is Initializable {
address public governor;
event GovernorshipTransferred(address indexed previousGovernor, address indexed newGovernor);
/**
* @dev Contract initializer.
* called once by the factory at time of deployment
*/
function __Governable_init_unchained(address governor_) virtual public initializer {
governor = governor_;
emit GovernorshipTransferred(address(0), governor);
}
modifier governance() {
require(msg.sender == governor);
_;
}
/**
* @dev Allows the current governor to relinquish control of the contract.
* @notice Renouncing to governorship will leave the contract without an governor.
* It will not be possible to call the functions with the `governance`
* modifier anymore.
*/
function renounceGovernorship() public governance {
emit GovernorshipTransferred(governor, address(0));
governor = address(0);
}
/**
* @dev Allows the current governor to transfer control of the contract to a newGovernor.
* @param newGovernor The address to transfer governorship to.
*/
function transferGovernorship(address newGovernor) public governance {
_transferGovernorship(newGovernor);
}
/**
* @dev Transfers control of the contract to a newGovernor.
* @param newGovernor The address to transfer governorship to.
*/
function _transferGovernorship(address newGovernor) internal {
require(newGovernor != address(0));
emit GovernorshipTransferred(governor, newGovernor);
governor = newGovernor;
}
}
contract Configurable is Governable {
mapping (bytes32 => uint) internal config;
function getConfig(bytes32 key) public view returns (uint) {
return config[key];
}
function getConfigI(bytes32 key, uint index) public view returns (uint) {
return config[bytes32(uint(key) ^ index)];
}
function getConfigA(bytes32 key, address addr) public view returns (uint) {
return config[bytes32(uint(key) ^ uint(addr))];
}
function _setConfig(bytes32 key, uint value) internal {
if(config[key] != value)
config[key] = value;
}
function _setConfigI(bytes32 key, uint index, uint value) internal {
_setConfig(bytes32(uint(key) ^ index), value);
}
function _setConfigA(bytes32 key, address addr, uint value) internal {
_setConfig(bytes32(uint(key) ^ uint(addr)), value);
}
function setConfig(bytes32 key, uint value) external governance {
_setConfig(key, value);
}
function setConfigI(bytes32 key, uint index, uint value) external governance {
_setConfig(bytes32(uint(key) ^ index), value);
}
function setConfigA(bytes32 key, address addr, uint value) public governance {
_setConfig(bytes32(uint(key) ^ uint(addr)), value);
}
}
contract Offering is Configurable {
using SafeMath for uint;
using SafeERC20 for IERC20;
bytes32 internal constant _quota_ = 'quota';
bytes32 internal constant _volume_ = 'volume';
bytes32 internal constant _unlocked_ = 'unlocked';
bytes32 internal constant _ratioUnlockFirst_= 'ratioUnlockFirst';
bytes32 internal constant _ratio_ = 'ratio';
bytes32 internal constant _isSeed_ = 'isSeed';
bytes32 internal constant _public_ = 'public';
bytes32 internal constant _recipient_ = 'recipient';
bytes32 internal constant _time_ = 'time';
uint internal constant _timeOfferBegin_ = 0;
uint internal constant _timeOfferEnd_ = 1;
uint internal constant _timeUnlockFirst_ = 2;
uint internal constant _timeUnlockBegin_ = 3;
uint internal constant _timeUnlockEnd_ = 4;
IERC20 public currency;
IERC20 public token;
function __Offering_init(address governor_, address currency_, address token_, address public_, address recipient_, uint[5] memory times_) external initializer {
__Governable_init_unchained(governor_);
__Offering_init_unchained(currency_, token_, public_, recipient_, times_);
}
function __Offering_init_unchained(address currency_, address token_, address public_, address recipient_, uint[5] memory times_) public governance {
currency = IERC20(currency_);
token = IERC20(token_);
_setConfigI(_ratio_, 0, 30000000000000); // for kol
_setConfigI(_ratio_, 1, 40000000000000); // for seed
_setConfig(_public_, uint(public_));
_setConfig(_recipient_, uint(recipient_));
_setConfig(_ratioUnlockFirst_, 0.25 ether); // 25%
for(uint i=0; i<times_.length; i++)
_setConfigI(_time_, i, times_[i]);
}
function fixTotalVolume(uint total_1, uint total0) external governance {
_setConfigA(_volume_, address(-1), total_1);
_setConfigA(_volume_, address(0), total0);
}
function setQuota(address addr, uint amount, bool isSeed) public governance {
uint oldVol = getConfigA(_quota_, addr).mul(getConfigI(_ratio_, getConfigA(_isSeed_, addr)));
_setConfigA(_quota_, addr, amount);
if(isSeed)
_setConfigA(_isSeed_, addr, 1);
uint volume = amount.mul(getConfigI(_ratio_, isSeed ? 1 : 0));
uint totalVolume = getConfigA(_volume_, address(-1)).add(volume).sub(oldVol);
require(totalVolume <= token.balanceOf(address(this)), 'out of quota');
_setConfigA(_volume_, address(-1), totalVolume);
}
function setQuotas(address[] memory addrs, uint[] memory amounts, bool isSeed) public {
for(uint i=0; i<addrs.length; i++)
setQuota(addrs[i], amounts[i], isSeed);
}
function getQuota(address addr) public view returns (uint) {
return getConfigA(_quota_, addr);
}
function offer() external {
require(now >= getConfigI(_time_, _timeOfferBegin_), 'Not begin');
require(now <= getConfigI(_time_, _timeOfferEnd_), 'EXPIRED');
uint quota = getConfigA(_quota_, msg.sender);
require(quota > 0, 'no quota');
require(currency.allowance(msg.sender, address(this)) >= quota, 'allowance not enough');
require(currency.balanceOf(msg.sender) >= quota, 'balance not enough');
require(getConfigA(_volume_, msg.sender) == 0, 'offered already');
currency.safeTransferFrom(msg.sender, address(config[_recipient_]), quota);
uint volume = quota.mul(getConfigI(_ratio_, getConfigA(_isSeed_, msg.sender)));
_setConfigA(_volume_, msg.sender, volume);
_setConfigA(_volume_, address(0), volume.add(getConfigA(_volume_, address(0))));
}
function settleRemain() external {
require(now > getConfigI(_time_, _timeOfferEnd_), 'It is not time');
token.safeTransfer(address(config[_public_]), token.balanceOf(address(this)).add(getConfigA(_unlocked_, address(0))).sub(getConfigA(_volume_, address(0))));
}
function getVolume(address addr) public view returns (uint) {
return getConfigA(_volume_, addr);
}
function unlockCapacity(address addr) public view returns (uint c) {
uint timeUnlockFirst = getConfigI(_time_, _timeUnlockFirst_);
if(timeUnlockFirst == 0 || now < timeUnlockFirst)
return 0;
uint timeUnlockBegin = getConfigI(_time_, _timeUnlockBegin_);
uint timeUnlockEnd = getConfigI(_time_, _timeUnlockEnd_);
uint volume = getConfigA(_volume_, addr);
uint ratioUnlockFirst = getConfig(_ratioUnlockFirst_);
c = volume.mul(ratioUnlockFirst).div(1e18);
if(now >= timeUnlockEnd)
c = volume;
else if(now > timeUnlockBegin)
c = volume.sub(c).mul(now.sub(timeUnlockBegin)).div(timeUnlockEnd.sub(timeUnlockBegin)).add(c);
return c.sub(getConfigA(_unlocked_, addr));
}
function unlock() public {
uint c = unlockCapacity(msg.sender);
_setConfigA(_unlocked_, msg.sender, getConfigA(_unlocked_, msg.sender).add(c));
_setConfigA(_unlocked_, address(0), getConfigA(_unlocked_, address(0)).add(c));
token.safeTransfer(msg.sender, c);
}
function unlocked(address addr) public view returns (uint) {
return getConfigA(_unlocked_, addr);
}
fallback() external {
unlock();
}
}
contract Timelock is Configurable {
using SafeMath for uint;
using SafeERC20 for IERC20;
IERC20 public token;
address public recipient;
uint public begin;
uint public span;
uint public times;
uint public total;
function start(address _token, address _recipient, uint _begin, uint _span, uint _times) external governance {
require(address(token) == address(0), 'already start');
token = IERC20(_token);
recipient = _recipient;
begin = _begin;
span = _span;
times = _times;
total = token.balanceOf(address(this));
}
function unlockCapacity() public view returns (uint) {
if(begin == 0 || now < begin)
return 0;
for(uint i=1; i<=times; i++)
if(now < span.mul(i).div(times).add(begin))
return token.balanceOf(address(this)).sub(total.mul(times.sub(i)).div(times));
return token.balanceOf(address(this));
}
function unlock() public {
token.safeTransfer(recipient, unlockCapacity());
}
fallback() external {
unlock();
}
}
contract Constants {
bytes32 internal constant _TokenMapped_ = 'TokenMapped';
bytes32 internal constant _MappableToken_ = 'MappableToken';
bytes32 internal constant _MappingToken_ = 'MappingToken';
bytes32 internal constant _fee_ = 'fee';
bytes32 internal constant _feeCreate_ = 'feeCreate';
bytes32 internal constant _feeTo_ = 'feeTo';
bytes32 internal constant _minSignatures_ = 'minSignatures';
bytes32 internal constant _uniswapRounter_ = 'uniswapRounter';
function _chainId() internal pure returns (uint id) {
assembly { id := chainid() }
}
}
struct Signature {
address signatory;
uint8 v;
bytes32 r;
bytes32 s;
}
abstract contract MappingBase is ContextUpgradeSafe, Constants {
using SafeMath for uint;
bytes32 public constant RECEIVE_TYPEHASH = keccak256("Receive(uint256 fromChainId,address to,uint256 nonce,uint256 volume,address signatory)");
bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
bytes32 internal _DOMAIN_SEPARATOR;
function DOMAIN_SEPARATOR() virtual public view returns (bytes32) { return _DOMAIN_SEPARATOR; }
address public factory;
uint256 public mainChainId;
address public token;
address public creator;
mapping (address => uint) public authQuotaOf; // signatory => quota
mapping (uint => mapping (address => uint)) public sentCount; // toChainId => to => sentCount
mapping (uint => mapping (address => mapping (uint => uint))) public sent; // toChainId => to => nonce => volume
mapping (uint => mapping (address => mapping (uint => uint))) public received; // fromChainId => to => nonce => volume
modifier onlyFactory {
require(msg.sender == factory, 'Only called by Factory');
_;
}
function increaseAuthQuotas(address[] memory signatorys, uint[] memory increments) virtual external returns (uint[] memory quotas) {
require(signatorys.length == increments.length, 'two array lenth not equal');
quotas = new uint[](signatorys.length);
for(uint i=0; i<signatorys.length; i++)
quotas[i] = increaseAuthQuota(signatorys[i], increments[i]);
}
function increaseAuthQuota(address signatory, uint increment) virtual public onlyFactory returns (uint quota) {
quota = authQuotaOf[signatory].add(increment);
authQuotaOf[signatory] = quota;
emit IncreaseAuthQuota(signatory, increment, quota);
}
event IncreaseAuthQuota(address indexed signatory, uint increment, uint quota);
function decreaseAuthQuotas(address[] memory signatorys, uint[] memory decrements) virtual external returns (uint[] memory quotas) {
require(signatorys.length == decrements.length, 'two array lenth not equal');
quotas = new uint[](signatorys.length);
for(uint i=0; i<signatorys.length; i++)
quotas[i] = decreaseAuthQuota(signatorys[i], decrements[i]);
}
function decreaseAuthQuota(address signatory, uint decrement) virtual public onlyFactory returns (uint quota) {
quota = authQuotaOf[signatory];
if(quota < decrement)
decrement = quota;
return _decreaseAuthQuota(signatory, decrement);
}
function _decreaseAuthQuota(address signatory, uint decrement) virtual internal returns (uint quota) {
quota = authQuotaOf[signatory].sub(decrement);
authQuotaOf[signatory] = quota;
emit DecreaseAuthQuota(signatory, decrement, quota);
}
event DecreaseAuthQuota(address indexed signatory, uint decrement, uint quota);
function needApprove() virtual public pure returns (bool);
function send(uint toChainId, address to, uint volume) virtual external payable returns (uint nonce) {
return sendFrom(_msgSender(), toChainId, to, volume);
}
function sendFrom(address from, uint toChainId, address to, uint volume) virtual public payable returns (uint nonce) {
_chargeFee();
_sendFrom(from, volume);
nonce = sentCount[toChainId][to]++;
sent[toChainId][to][nonce] = volume;
emit Send(from, toChainId, to, nonce, volume);
}
event Send(address indexed from, uint indexed toChainId, address indexed to, uint nonce, uint volume);
function _sendFrom(address from, uint volume) virtual internal;
function receive(uint256 fromChainId, address to, uint256 nonce, uint256 volume, Signature[] memory signatures) virtual external payable {
_chargeFee();
require(received[fromChainId][to][nonce] == 0, 'withdrawn already');
uint N = signatures.length;
require(N >= Configurable(factory).getConfig(_minSignatures_), 'too few signatures');
for(uint i=0; i<N; i++) {
for(uint j=0; j<i; j++)
require(signatures[i].signatory != signatures[j].signatory, 'repetitive signatory');
bytes32 structHash = keccak256(abi.encode(RECEIVE_TYPEHASH, fromChainId, to, nonce, volume, signatures[i].signatory));
bytes32 digest = keccak256(abi.encodePacked("\x19\x01", _DOMAIN_SEPARATOR, structHash));
address signatory = ecrecover(digest, signatures[i].v, signatures[i].r, signatures[i].s);
require(signatory != address(0), "invalid signature");
require(signatory == signatures[i].signatory, "unauthorized");
_decreaseAuthQuota(signatures[i].signatory, volume);
emit Authorize(fromChainId, to, nonce, volume, signatory);
}
received[fromChainId][to][nonce] = volume;
_receive(to, volume);
emit Receive(fromChainId, to, nonce, volume);
}
event Receive(uint256 indexed fromChainId, address indexed to, uint256 indexed nonce, uint256 volume);
event Authorize(uint256 fromChainId, address indexed to, uint256 indexed nonce, uint256 volume, address indexed signatory);
function _receive(address to, uint256 volume) virtual internal;
function _chargeFee() virtual internal {
require(msg.value >= Configurable(factory).getConfig(_fee_), 'fee is too low');
address payable feeTo = address(Configurable(factory).getConfig(_feeTo_));
if(feeTo == address(0))
feeTo = address(uint160(factory));
feeTo.transfer(msg.value);
emit ChargeFee(_msgSender(), feeTo, msg.value);
}
event ChargeFee(address indexed from, address indexed to, uint value);
uint256[50] private __gap;
}
abstract contract Permit {
// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
function DOMAIN_SEPARATOR() virtual public view returns (bytes32);
mapping (address => uint) public nonces;
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
require(deadline >= block.timestamp, 'permit EXPIRED');
bytes32 digest = keccak256(
abi.encodePacked(
'\x19\x01',
DOMAIN_SEPARATOR(),
keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(recoveredAddress != address(0) && recoveredAddress == owner, 'permit INVALID_SIGNATURE');
_approve(owner, spender, value);
}
function _approve(address owner, address spender, uint256 amount) internal virtual;
uint256[50] private __gap;
}
contract MappableToken is Permit, ERC20UpgradeSafe, MappingBase {
function __MappableToken_init(address factory_, address creator_, string memory name_, string memory symbol_, uint8 decimals_, uint256 totalSupply_) external initializer {
__Context_init_unchained();
__ERC20_init_unchained(name_, symbol_);
_setupDecimals(decimals_);
_mint(creator_, totalSupply_);
__MappableToken_init_unchained(factory_, creator_);
}
function __MappableToken_init_unchained(address factory_, address creator_) public initializer {
factory = factory_;
mainChainId = _chainId();
token = address(0);
creator = creator_;
_DOMAIN_SEPARATOR = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), _chainId(), address(this)));
}
function DOMAIN_SEPARATOR() virtual override(Permit, MappingBase) public view returns (bytes32) {
return MappingBase.DOMAIN_SEPARATOR();
}
function _approve(address owner, address spender, uint256 amount) virtual override(Permit, ERC20UpgradeSafe) internal {
return ERC20UpgradeSafe._approve(owner, spender, amount);
}
function totalMapped() virtual public view returns (uint) {
return balanceOf(address(this));
}
function needApprove() virtual override public pure returns (bool) {
return false;
}
function _sendFrom(address from, uint volume) virtual override internal {
transferFrom(from, address(this), volume);
}
function _receive(address to, uint256 volume) virtual override internal {
_transfer(address(this), to, volume);
}
uint256[50] private __gap;
}
contract SST is MappableToken {
function __SST_init(address creator_, address factory_, address mine_, address mine2_, address eco_, address team_, address seed_, address private_, address public_, address lbp_, address liqudity_, address dev_) external initializer {
__Context_init_unchained();
__ERC20_init_unchained("SilverStarter", "SST");
__MappableToken_init_unchained(factory_, creator_);
__SST_init_unchained(mine_, mine2_, eco_, team_, seed_, private_, public_, lbp_, liqudity_, dev_);
}
function __SST_init_unchained(address mine_, address mine2_, address eco_, address team_, address seed_, address private_, address public_, address lbp_, address liqudity_, address dev_) public initializer {
_mint(mine_, 30_000 * 10 ** uint256(decimals()));
_mint(mine2_, 35_000 * 10 ** uint256(decimals()));
_mint(eco_, 10_000 * 10 ** uint256(decimals()));
_mint(team_, 10_000 * 10 ** uint256(decimals()));
_mint(seed_, 5_000 * 10 ** uint256(decimals()));
_mint(private_, 5_000 * 10 ** uint256(decimals()));
_mint(public_, 1_000 * 10 ** uint256(decimals()));
_mint(lbp_, 1_000 * 10 ** uint256(decimals()));
_mint(liqudity_, 2_990 * 10 ** uint256(decimals()));
_mint(dev_, 1_0 * 10 ** uint256(decimals()));
}
}
contract SSTLOCK is ERC20UpgradeSafe, Configurable {
using SafeERC20 for IERC20;
address public token;
uint public firstTime;
uint public firstRatio;
uint public begin;
uint public end;
mapping (address => uint) internal _beginBalances;
function __SSTLOCK_init(address governor_) public initializer {
__Governable_init_unchained(governor_);
__Context_init_unchained();
__ERC20_init_unchained("SST LOCKing", "SSTLOCK");
_setupDecimals(18);
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
if(from != address(0) && to != address(0)) {
uint beginAmount = amount.mul(_beginBalances[from]).div(_balances[from]);
_beginBalances[from] = _beginBalances[from].sub(beginAmount);
_beginBalances[to] = _beginBalances[to].add(beginAmount);
}else if(to != address(0)) // _mint
_beginBalances[to] = _beginBalances[to].add(amount);
}
function startUnlock(address _token, address recipient, uint _firstTime, uint _firstRatio, uint _begin, uint _end) external governance {
token = _token;
_setupDecimals(ERC20UpgradeSafe(token).decimals());
_mint(recipient, IERC20(token).balanceOf(address(this)).sub(_totalSupply));
firstTime = _firstTime;
firstRatio = _firstRatio;
begin = _begin;
end = _end;
}
function unlockCapacity(address holder) public view returns (uint) {
if(now < firstTime)
return 0;
return _balances[holder].sub(_beginBalances[holder].mul(uint(1e18).sub(firstRatio)).div(1e18).mul(end.sub(Math.min(Math.max(begin, now), end))).div(end.sub(begin)));
}
function unlock() public {
uint amount = unlockCapacity(msg.sender);
_burn(msg.sender, amount);
IERC20(token).safeTransfer(msg.sender, amount);
}
fallback() external {
unlock();
}
}

Contract ABI

[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Authorize","inputs":[{"type":"uint256","name":"fromChainId","internalType":"uint256","indexed":false},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"nonce","internalType":"uint256","indexed":true},{"type":"uint256","name":"volume","internalType":"uint256","indexed":false},{"type":"address","name":"signatory","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ChargeFee","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DecreaseAuthQuota","inputs":[{"type":"address","name":"signatory","internalType":"address","indexed":true},{"type":"uint256","name":"decrement","internalType":"uint256","indexed":false},{"type":"uint256","name":"quota","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"IncreaseAuthQuota","inputs":[{"type":"address","name":"signatory","internalType":"address","indexed":true},{"type":"uint256","name":"increment","internalType":"uint256","indexed":false},{"type":"uint256","name":"quota","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Receive","inputs":[{"type":"uint256","name":"fromChainId","internalType":"uint256","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"nonce","internalType":"uint256","indexed":true},{"type":"uint256","name":"volume","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Send","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"uint256","name":"toChainId","internalType":"uint256","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"nonce","internalType":"uint256","indexed":false},{"type":"uint256","name":"volume","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_SEPARATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PERMIT_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"RECEIVE_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"__MappableToken_init","inputs":[{"type":"address","name":"factory_","internalType":"address"},{"type":"address","name":"creator_","internalType":"address"},{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"},{"type":"uint256","name":"totalSupply_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"__MappableToken_init_unchained","inputs":[{"type":"address","name":"factory_","internalType":"address"},{"type":"address","name":"creator_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"__SST_init","inputs":[{"type":"address","name":"creator_","internalType":"address"},{"type":"address","name":"factory_","internalType":"address"},{"type":"address","name":"mine_","internalType":"address"},{"type":"address","name":"mine2_","internalType":"address"},{"type":"address","name":"eco_","internalType":"address"},{"type":"address","name":"team_","internalType":"address"},{"type":"address","name":"seed_","internalType":"address"},{"type":"address","name":"private_","internalType":"address"},{"type":"address","name":"public_","internalType":"address"},{"type":"address","name":"lbp_","internalType":"address"},{"type":"address","name":"liqudity_","internalType":"address"},{"type":"address","name":"dev_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"__SST_init_unchained","inputs":[{"type":"address","name":"mine_","internalType":"address"},{"type":"address","name":"mine2_","internalType":"address"},{"type":"address","name":"eco_","internalType":"address"},{"type":"address","name":"team_","internalType":"address"},{"type":"address","name":"seed_","internalType":"address"},{"type":"address","name":"private_","internalType":"address"},{"type":"address","name":"public_","internalType":"address"},{"type":"address","name":"lbp_","internalType":"address"},{"type":"address","name":"liqudity_","internalType":"address"},{"type":"address","name":"dev_","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"authQuotaOf","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"creator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"quota","internalType":"uint256"}],"name":"decreaseAuthQuota","inputs":[{"type":"address","name":"signatory","internalType":"address"},{"type":"uint256","name":"decrement","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"quotas","internalType":"uint256[]"}],"name":"decreaseAuthQuotas","inputs":[{"type":"address[]","name":"signatorys","internalType":"address[]"},{"type":"uint256[]","name":"decrements","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"factory","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"quota","internalType":"uint256"}],"name":"increaseAuthQuota","inputs":[{"type":"address","name":"signatory","internalType":"address"},{"type":"uint256","name":"increment","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"quotas","internalType":"uint256[]"}],"name":"increaseAuthQuotas","inputs":[{"type":"address[]","name":"signatorys","internalType":"address[]"},{"type":"uint256[]","name":"increments","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mainChainId","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"needApprove","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"receive","inputs":[{"type":"uint256","name":"fromChainId","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"volume","internalType":"uint256"},{"type":"tuple[]","name":"signatures","internalType":"struct Signature[]","components":[{"type":"address","name":"signatory","internalType":"address"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"received","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"nonce","internalType":"uint256"}],"name":"send","inputs":[{"type":"uint256","name":"toChainId","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"volume","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"nonce","internalType":"uint256"}],"name":"sendFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"uint256","name":"toChainId","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"volume","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sent","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sentCount","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalMapped","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
            

Deployed ByteCode

0x6080604052600436106102255760003560e01c806375986b5011610123578063a9059cbb116100ab578063dd62ed3e1161006f578063dd62ed3e146105ed578063defe5c3b1461060d578063df735d621461062d578063fc0c546a1461064d578063fe57a6911461066257610225565b8063a9059cbb14610563578063c45a015514610583578063cf1f5f3a14610598578063d505accf146105b8578063dc51b6ac146105d857610225565b806382900934116100f257806382900934146104e657806395d89b41146104fb578063a25d7c8614610510578063a457c2d714610530578063a653d60c1461055057610225565b806375986b50146104735780637a62f5c6146104935780637ecebe00146104b357806381b34f15146104d357610225565b80632186ff4e116101b15780633644e515116101755780633644e515146103e957806339509351146103fe5780635d3b5f801461041e5780636489aba51461043357806370a082311461045357610225565b80632186ff4e1461035f57806323b872dd1461037f5780632c4a952b1461039f57806330adf81f146103b2578063313ce567146103c757610225565b80630f45ad43116101f85780630f45ad43146102d15780630fba758d146102e657806318160ddd146103085780631e86c2ac1461031d57806320606b701461034a57610225565b806302d05d3f1461022a57806306fdde0314610255578063095ea7b3146102775780630c0f261e146102a4575b600080fd5b34801561023657600080fd5b5061023f610682565b60405161024c91906126f5565b60405180910390f35b34801561026157600080fd5b5061026a610691565b60405161024c919061280b565b34801561028357600080fd5b5061029761029236600461246e565b610727565b60405161024c919061274d565b3480156102b057600080fd5b506102c46102bf36600461211f565b610745565b60405161024c9190612758565b3480156102dd57600080fd5b506102c4610757565b3480156102f257600080fd5b5061030661030136600461213a565b61075d565b005b34801561031457600080fd5b506102c461089f565b34801561032957600080fd5b5061033d6103383660046124dd565b6108a5565b60405161024c9190612709565b34801561035657600080fd5b506102c461096f565b34801561036b57600080fd5b506102c461037a3660046125da565b610993565b34801561038b57600080fd5b5061029761039a3660046123bb565b6109b6565b6102c46103ad366004612498565b610aae565b3480156103be57600080fd5b506102c4610b5a565b3480156103d357600080fd5b506103dc610b7e565b60405161024c9190612bfa565b3480156103f557600080fd5b506102c4610b87565b34801561040a57600080fd5b5061029761041936600461246e565b610b96565b34801561042a57600080fd5b50610297610be4565b34801561043f57600080fd5b506102c461044e36600461246e565b610be9565b34801561045f57600080fd5b506102c461046e36600461211f565b610c4d565b34801561047f57600080fd5b506102c461048e3660046125da565b610c68565b34801561049f57600080fd5b506102c46104ae36600461246e565b610c8b565b3480156104bf57600080fd5b506102c46104ce36600461211f565b610d3a565b6102c46104e13660046125da565b610d4c565b3480156104f257600080fd5b506102c4610d69565b34801561050757600080fd5b5061026a610d8d565b34801561051c57600080fd5b5061033d61052b3660046124dd565b610dee565b34801561053c57600080fd5b5061029761054b36600461246e565b610eb1565b61030661055e36600461260f565b610f19565b34801561056f57600080fd5b5061029761057e36600461246e565b611339565b34801561058f57600080fd5b5061023f61134d565b3480156105a457600080fd5b506103066105b336600461216e565b61135c565b3480156105c457600080fd5b506103066105d33660046123fb565b6114c9565b3480156105e457600080fd5b506102c461163c565b3480156105f957600080fd5b506102c461060836600461213a565b611647565b34801561061957600080fd5b50610306610628366004612231565b611672565b34801561063957600080fd5b50610306610648366004612318565b61176f565b34801561065957600080fd5b5061023f611827565b34801561066e57600080fd5b506102c461067d3660046125b7565b611836565b60ce546001600160a01b031681565b609b8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561071d5780601f106106f25761010080835404028352916020019161071d565b820191906000526020600020905b81548152906001019060200180831161070057829003601f168201915b5050505050905090565b600061073b610734611853565b8484611857565b5060015b92915050565b60cf6020526000908152604090205481565b60cc5481565b603354610100900460ff16806107765750610776611862565b80610784575060335460ff16155b6107a95760405162461bcd60e51b81526004016107a090612a77565b60405180910390fd5b603354610100900460ff161580156107d4576033805460ff1961ff0019909116610100171660011790555b60cb80546001600160a01b0319166001600160a01b0385161790556107f7611868565b60cc5560cd80546001600160a01b031990811690915560ce80549091166001600160a01b0384161790557f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86661084a610691565b80519060200120610859611868565b3060405160200161086d9493929190612795565b60408051601f19818403018152919052805160209091012060ca55801561089a576033805461ff00191690555b505050565b609a5490565b606081518351146108c85760405162461bcd60e51b81526004016107a090612ac5565b825167ffffffffffffffff811180156108e057600080fd5b5060405190808252806020026020018201604052801561090a578160200160208202803683370190505b50905060005b83518110156109685761094984828151811061092857fe5b602002602001015184838151811061093c57fe5b6020026020010151610c8b565b82828151811061095557fe5b6020908102919091010152600101610910565b5092915050565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60d260209081526000938452604080852082529284528284209052825290205481565b60006109c384848461186c565b6109cb611853565b6001600160a01b0316846001600160a01b031614158015610a2f57506001600160a01b038416600090815260996020526040812060001991610a0b611853565b6001600160a01b03166001600160a01b031681526020019081526020016000205414155b15610aa457610aa484610a40611853565b610a9f85604051806060016040528060288152602001612c9a602891396001600160a01b038a16600090815260996020526040812090610a7e611853565b6001600160a01b03168152602081019190915260400160002054919061198e565b611857565b5060019392505050565b6000610ab86119ba565b610ac28583611b91565b50600083815260d0602090815260408083206001600160a01b0380871680865291845282852080546001810190915588865260d1855283862083875285528386208187529094529382902085905590519192909186918816907f882df69720ac5a9356b84d2aaa32d0c105b24cab60e885ba3d69b77090ff05c690610b4a9086908890612bec565b60405180910390a4949350505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b609d5460ff1690565b6000610b91611b9c565b905090565b600061073b610ba3611853565b84610a9f8560996000610bb4611853565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ba2565b600090565b60cb546000906001600160a01b03163314610c165760405162461bcd60e51b81526004016107a090612b85565b506001600160a01b038216600090815260cf602052604090205481811015610c3c578091505b610c468383611bc7565b9392505050565b6001600160a01b031660009081526098602052604090205490565b60d160209081526000938452604080852082529284528284209052825290205481565b60cb546000906001600160a01b03163314610cb85760405162461bcd60e51b81526004016107a090612b85565b6001600160a01b038316600090815260cf6020526040902054610cdb9083611ba2565b6001600160a01b038416600081815260cf60205260409081902083905551919250907f82c1124ee47307c0e1b36269db77162e01d791c0847be46c4c382c3904a36b6990610d2c9085908590612bec565b60405180910390a292915050565b60006020819052908152604090205481565b6000610d61610d59611853565b858585610aae565b949350505050565b7f8452bf83368fd24f930388bb8032e83547faee72dbe22b73045150c5e682d66281565b609c8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561071d5780601f106106f25761010080835404028352916020019161071d565b60608151835114610e115760405162461bcd60e51b81526004016107a090612ac5565b825167ffffffffffffffff81118015610e2957600080fd5b50604051908082528060200260200182016040528015610e53578160200160208202803683370190505b50905060005b835181101561096857610e92848281518110610e7157fe5b6020026020010151848381518110610e8557fe5b6020026020010151610be9565b828281518110610e9e57fe5b6020908102919091010152600101610e59565b600061073b610ebe611853565b84610a9f85604051806060016040528060258152602001612cc26025913960996000610ee8611853565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061198e565b610f216119ba565b600085815260d2602090815260408083206001600160a01b0388168452825280832086845290915290205415610f695760405162461bcd60e51b81526004016107a090612a26565b805160cb54604051636dd5b69d60e01b81526001600160a01b0390911690636dd5b69d90610fab906c6d696e5369676e61747572657360981b90600401612758565b60206040518083038186803b158015610fc357600080fd5b505afa158015610fd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffb919061259f565b81101561101a5760405162461bcd60e51b81526004016107a0906128cc565b60005b818110156112b65760005b818110156110985783818151811061103c57fe5b6020026020010151600001516001600160a01b031684838151811061105d57fe5b6020026020010151600001516001600160a01b031614156110905760405162461bcd60e51b81526004016107a090612999565b600101611028565b5060007f8452bf83368fd24f930388bb8032e83547faee72dbe22b73045150c5e682d662888888888887815181106110cc57fe5b6020026020010151600001516040516020016110ed969594939291906127b9565b604051602081830303815290604052805190602001209050600060ca548260405160200161111c9291906126da565b604051602081830303815290604052805190602001209050600060018287868151811061114557fe5b60200260200101516020015188878151811061115d57fe5b60200260200101516040015189888151811061117557fe5b6020026020010151606001516040516000815260200160405260405161119e94939291906127ed565b6020604051602081039080840390855afa1580156111c0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166111f35760405162461bcd60e51b81526004016107a0906128a1565b8584815181106111ff57fe5b6020026020010151600001516001600160a01b0316816001600160a01b03161461123b5760405162461bcd60e51b81526004016107a090612a51565b61125c86858151811061124a57fe5b60200260200101516000015188611bc7565b50806001600160a01b0316888a6001600160a01b03167fc1eec22a7978d1b4b28441f2aaf2119e35d06f3aaff9a37f1b64cec88c1ab28b8d8b6040516112a3929190612bec565b60405180910390a450505060010161101d565b50600086815260d2602090815260408083206001600160a01b0389168452825280832087845290915290208390556112ee8584611c3b565b83856001600160a01b0316877fa67d828453163879637ade5a7d51abb746669dbc34d7e2149e8fec3bf71fff54866040516113299190612758565b60405180910390a4505050505050565b600061073b611346611853565b848461186c565b60cb546001600160a01b031681565b603354610100900460ff16806113755750611375611862565b80611383575060335460ff16155b61139f5760405162461bcd60e51b81526004016107a090612a77565b603354610100900460ff161580156113ca576033805460ff1961ff0019909116610100171660011790555b6113e58b6113d6610b7e565b60ff16600a0a61753002611c4a565b6114008a6113f1610b7e565b60ff16600a0a6188b802611c4a565b61141b8961140c610b7e565b60ff16600a0a61271002611c4a565b6114278861140c610b7e565b61144287611433610b7e565b60ff16600a0a61138802611c4a565b61144e86611433610b7e565b6114698561145a610b7e565b60ff16600a0a6103e802611c4a565b6114758461145a610b7e565b61149083611481610b7e565b60ff16600a0a610bae02611c4a565b6114aa8261149c610b7e565b60ff16600a0a600a02611c4a565b80156114bc576033805461ff00191690555b5050505050505050505050565b428410156114e95760405162461bcd60e51b81526004016107a0906129fe565b60006114f3610b87565b6001600160a01b03891660009081526020818152604091829020805460018101909155915161154e927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928d928d928d9290918d9101612761565b604051602081830303815290604052805190602001206040516020016115759291906126da565b6040516020818303038152906040528051906020012090506000600182868686604051600081526020016040526040516115b294939291906127ed565b6020604051602081039080840390855afa1580156115d4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061160a5750886001600160a01b0316816001600160a01b0316145b6116265760405162461bcd60e51b81526004016107a0906129c7565b611631898989611857565b505050505050505050565b6000610b9130610c4d565b6001600160a01b03918216600090815260996020908152604080832093909416825291909152205490565b603354610100900460ff168061168b575061168b611862565b80611699575060335460ff16155b6116b55760405162461bcd60e51b81526004016107a090612a77565b603354610100900460ff161580156116e0576033805460ff1961ff0019909116610100171660011790555b6116e8611d0a565b6117326040518060400160405280600d81526020016c29b4b63b32b929ba30b93a32b960991b8152506040518060400160405280600381526020016214d4d560ea1b815250611d8d565b61173c8c8e61075d565b61174e8b8b8b8b8b8b8b8b8b8b61135c565b8015611760576033805461ff00191690555b50505050505050505050505050565b603354610100900460ff16806117885750611788611862565b80611796575060335460ff16155b6117b25760405162461bcd60e51b81526004016107a090612a77565b603354610100900460ff161580156117dd576033805460ff1961ff0019909116610100171660011790555b6117e5611d0a565b6117ef8585611d8d565b6117f883611e46565b6118028683611c4a565b61180c878761075d565b801561181e576033805461ff00191690555b50505050505050565b60cd546001600160a01b031681565b60d060209081526000928352604080842090915290825290205481565b3390565b61089a838383611e5c565b303b1590565b4690565b6001600160a01b0383166118925760405162461bcd60e51b81526004016107a090612afc565b6001600160a01b0382166118b85760405162461bcd60e51b81526004016107a09061285e565b6118c383838361089a565b61190081604051806060016040528060268152602001612c74602691396001600160a01b038616600090815260986020526040902054919061198e565b6001600160a01b03808516600090815260986020526040808220939093559084168152205461192f9082611ba2565b6001600160a01b0380841660008181526098602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611981908590612758565b60405180910390a3505050565b600081848411156119b25760405162461bcd60e51b81526004016107a0919061280b565b505050900390565b60cb54604051636dd5b69d60e01b81526001600160a01b0390911690636dd5b69d906119f0906266656560e81b90600401612758565b60206040518083038186803b158015611a0857600080fd5b505afa158015611a1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a40919061259f565b341015611a5f5760405162461bcd60e51b81526004016107a090612971565b60cb54604051636dd5b69d60e01b81526000916001600160a01b031690636dd5b69d90611a989064666565546f60d81b90600401612758565b60206040518083038186803b158015611ab057600080fd5b505afa158015611ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae8919061259f565b90506001600160a01b038116611b06575060cb546001600160a01b03165b6040516001600160a01b038216903480156108fc02916000818181858888f19350505050158015611b3b573d6000803e3d6000fd5b50806001600160a01b0316611b4e611853565b6001600160a01b03167fc0d39cf3434f9dede81e427dbbccd901073df1b746711cb6cb7db1b27ddd692734604051611b869190612758565b60405180910390a350565b61089a8230836109b6565b60ca5490565b600082820183811015610c465760405162461bcd60e51b81526004016107a09061293a565b6001600160a01b038216600090815260cf6020526040812054611bea9083611f03565b6001600160a01b038416600081815260cf60205260409081902083905551919250907f90306653b3fe6cfd6b56d472373de671e8ded7dc29635ab2b328e491f4b5551590610d2c9085908590612bec565b611c4630838361186c565b5050565b6001600160a01b038216611c705760405162461bcd60e51b81526004016107a090612bb5565b611c7c6000838361089a565b609a54611c899082611ba2565b609a556001600160a01b038216600090815260986020526040902054611caf9082611ba2565b6001600160a01b0383166000818152609860205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611cfe908590612758565b60405180910390a35050565b603354610100900460ff1680611d235750611d23611862565b80611d31575060335460ff16155b611d4d5760405162461bcd60e51b81526004016107a090612a77565b603354610100900460ff16158015611d78576033805460ff1961ff0019909116610100171660011790555b8015611d8a576033805461ff00191690555b50565b603354610100900460ff1680611da65750611da6611862565b80611db4575060335460ff16155b611dd05760405162461bcd60e51b81526004016107a090612a77565b603354610100900460ff16158015611dfb576033805460ff1961ff0019909116610100171660011790555b8251611e0e90609b906020860190611f45565b508151611e2290609c906020850190611f45565b50609d805460ff19166012179055801561089a576033805461ff0019169055505050565b609d805460ff191660ff92909216919091179055565b6001600160a01b038316611e825760405162461bcd60e51b81526004016107a090612b41565b6001600160a01b038216611ea85760405162461bcd60e51b81526004016107a0906128f8565b6001600160a01b0380841660008181526099602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611981908590612758565b6000610c4683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061198e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f8657805160ff1916838001178555611fb3565b82800160010185558215611fb3579182015b82811115611fb3578251825591602001919060010190611f98565b50611fbf929150611fc3565b5090565b5b80821115611fbf5760008155600101611fc4565b80356001600160a01b038116811461073f57600080fd5b600082601f830112611fff578081fd5b813561201261200d82612c2f565b612c08565b81815291506020808301908481018184028601820187101561203357600080fd5b60005b8481101561205257813584529282019290820190600101612036565b505050505092915050565b600082601f83011261206d578081fd5b813567ffffffffffffffff811115612083578182fd5b612096601f8201601f1916602001612c08565b91508082528360208285010111156120ad57600080fd5b8060208401602084013760009082016020015292915050565b6000608082840312156120d7578081fd5b6120e16080612c08565b905081356120ee81612c4f565b815260208201356120fe81612c64565b80602083015250604082013560408201526060820135606082015292915050565b600060208284031215612130578081fd5b610c468383611fd8565b6000806040838503121561214c578081fd5b6121568484611fd8565b91506121658460208501611fd8565b90509250929050565b6000806000806000806000806000806101408b8d03121561218d578586fd5b6121978c8c611fd8565b99506121a68c60208d01611fd8565b98506121b58c60408d01611fd8565b97506121c48c60608d01611fd8565b96506121d38c60808d01611fd8565b95506121e28c60a08d01611fd8565b94506121f18c60c08d01611fd8565b93506122008c60e08d01611fd8565b92506122108c6101008d01611fd8565b91506122208c6101208d01611fd8565b90509295989b9194979a5092959850565b6000806000806000806000806000806000806101808d8f031215612253578081fd5b61225d8e8e611fd8565b9b5061226c8e60208f01611fd8565b9a5061227b8e60408f01611fd8565b995061228a8e60608f01611fd8565b98506122998e60808f01611fd8565b97506122a88e60a08f01611fd8565b96506122b78e60c08f01611fd8565b95506122c68e60e08f01611fd8565b94506122d68e6101008f01611fd8565b93506122e68e6101208f01611fd8565b92506122f68e6101408f01611fd8565b91506123068e6101608f01611fd8565b90509295989b509295989b509295989b565b60008060008060008060c08789031215612330578182fd5b863561233b81612c4f565b9550602087013561234b81612c4f565b9450604087013567ffffffffffffffff80821115612367578384fd5b6123738a838b0161205d565b95506060890135915080821115612388578384fd5b5061239589828a0161205d565b93505060808701356123a681612c64565b8092505060a087013590509295509295509295565b6000806000606084860312156123cf578081fd5b83356123da81612c4f565b925060208401356123ea81612c4f565b929592945050506040919091013590565b600080600080600080600060e0888a031215612415578081fd5b61241f8989611fd8565b965061242e8960208a01611fd8565b95506040880135945060608801359350608088013560ff81168114612451578182fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215612480578182fd5b61248a8484611fd8565b946020939093013593505050565b600080600080608085870312156124ad578182fd5b6124b78686611fd8565b9350602085013592506124cd8660408701611fd8565b9396929550929360600135925050565b600080604083850312156124ef578182fd5b823567ffffffffffffffff80821115612506578384fd5b818501915085601f830112612519578384fd5b813561252761200d82612c2f565b80828252602080830192508086018a828387028901011115612547578889fd5b8896505b848710156125715761255d8b82611fd8565b84526001969096019592810192810161254b565b509096508701359350505080821115612588578283fd5b5061259585828601611fef565b9150509250929050565b6000602082840312156125b0578081fd5b5051919050565b600080604083850312156125c9578182fd5b823591506121658460208501611fd8565b6000806000606084860312156125ee578081fd5b833592506125ff8560208601611fd8565b9150604084013590509250925092565b600080600080600060a08688031215612626578283fd5b85359450602061263888828901611fd8565b9450604087013593506060870135925060808088013567ffffffffffffffff811115612662578384fd5b8801601f81018a13612672578384fd5b803561268061200d82612c2f565b81815284810190838601858402850187018e101561269c578788fd5b8794505b838510156126c6576126b28e826120c6565b8352600194909401939186019185016126a0565b508096505050505050509295509295909350565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b8181101561274157835183529284019291840191600101612725565b50909695505050505050565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b95865260208601949094526001600160a01b039283166040860152606085019190915260808401521660a082015260c00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b818110156128375785810183015185820160400152820161281b565b818111156128485783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b602080825260119082015270696e76616c6964207369676e617475726560781b604082015260600190565b602080825260129082015271746f6f20666577207369676e61747572657360701b604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d66656520697320746f6f206c6f7760901b604082015260600190565b60208082526014908201527372657065746974697665207369676e61746f727960601b604082015260600190565b60208082526018908201527f7065726d697420494e56414c49445f5349474e41545552450000000000000000604082015260600190565b6020808252600e908201526d1c195c9b5a5d081156141254915160921b604082015260600190565b60208082526011908201527077697468647261776e20616c726561647960781b604082015260600190565b6020808252600c908201526b1d5b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526019908201527f74776f206172726179206c656e7468206e6f7420657175616c00000000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601690820152754f6e6c792063616c6c656420627920466163746f727960501b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612c2757600080fd5b604052919050565b600067ffffffffffffffff821115612c45578081fd5b5060209081020190565b6001600160a01b0381168114611d8a57600080fd5b60ff81168114611d8a57600080fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e77203ef2f1334f3a8ef77514c9f3a1f0d5cb8711892d7ef2c4e64c5051c355f64736f6c634300060c0033