Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 61 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 10805149 | 2032 days ago | IN | 0 ETH | 0.003617 | ||||
| Transfer | 10751953 | 2040 days ago | IN | 0 ETH | 0.003599 | ||||
| Transfer | 10714755 | 2046 days ago | IN | 0 ETH | 0.00257147 | ||||
| Approve | 10703505 | 2047 days ago | IN | 0 ETH | 0.00713165 | ||||
| Approve | 10703470 | 2047 days ago | IN | 0 ETH | 0.00753032 | ||||
| Transfer | 10701580 | 2048 days ago | IN | 0 ETH | 0.00452875 | ||||
| Transfer | 10701561 | 2048 days ago | IN | 0 ETH | 0.00346375 | ||||
| Approve | 10701495 | 2048 days ago | IN | 0 ETH | 0.0055115 | ||||
| Transfer | 10701027 | 2048 days ago | IN | 0 ETH | 0.00355054 | ||||
| Transfer | 10700401 | 2048 days ago | IN | 0 ETH | 0.00322447 | ||||
| Transfer | 10700217 | 2048 days ago | IN | 0 ETH | 0.00318824 | ||||
| Transfer | 10697402 | 2048 days ago | IN | 0 ETH | 0.00591429 | ||||
| Approve | 10691147 | 2049 days ago | IN | 0 ETH | 0.00606197 | ||||
| Approve | 10691143 | 2049 days ago | IN | 0 ETH | 0.0060554 | ||||
| Approve | 10680331 | 2051 days ago | IN | 0 ETH | 0.00386287 | ||||
| Emergency Withdr... | 10673402 | 2052 days ago | IN | 0 ETH | 0.00564786 | ||||
| Toggle Offline | 10672538 | 2052 days ago | IN | 0 ETH | 0.00325369 | ||||
| Return Brrr For ... | 10672372 | 2052 days ago | IN | 0 ETH | 0.01041504 | ||||
| Print With Brrr | 10672345 | 2052 days ago | IN | 0 ETH | 0.01144997 | ||||
| Return Brrr For ... | 10672282 | 2052 days ago | IN | 0 ETH | 0.01057612 | ||||
| Approve | 10672118 | 2052 days ago | IN | 0 ETH | 0.00552538 | ||||
| Print With Brrr | 10672049 | 2052 days ago | IN | 0 ETH | 0.00947128 | ||||
| Approve | 10672035 | 2052 days ago | IN | 0 ETH | 0.00528978 | ||||
| Print With Brrr | 10672018 | 2052 days ago | IN | 0 ETH | 0.0343695 | ||||
| Print With Brrr | 10671961 | 2052 days ago | IN | 0 ETH | 0.01214546 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Brrr3x
Compiler Version
v0.6.8+commit.0bbfe453
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./AccessControl.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 {ERC20PresetMinterPauser}.
*
*/
contract Brrr3x is Context, IERC20, AccessControl {
bool public Online = true;
modifier isOffline {
_;
require(!Online, "Contract is running still");
}
modifier isOnline {
_;
require(Online, "Contract has been turned off");
}
using SafeMath for uint256;
using Address for address;
IERC20 Tether;
bytes32 public constant FOUNDING_FATHER = keccak256("FOUNDING_FATHER");
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => uint256) public _deposits_brrr;
mapping(address => uint256) public _total_withdrawals;
supplyCheck[] public _all_supply_checks;
uint256 public TreasuryReserve;
uint256 private _totalSupply;
uint256 public TOTALCAP = 8000000000000000 * 10**18;
uint256 private _circulatingSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
address public tether = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
address public brrr;
struct supplyCheck {
uint256 _last_check;
uint256 _totalSupply;
}
event Withdraw(address indexed _reciever, uint256 indexed _amount);
/**
* @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.
*/
constructor(
string memory name,
string memory symbol,
address _brrr
) public {
_name = name;
_symbol = symbol;
_decimals = 18;
brrr = _brrr;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(FOUNDING_FATHER, msg.sender);
Tether = IERC20(tether);
_balances[msg.sender] = 100000000 * 10**18;
_circulatingSupply = 100000000 * 10**18;
uint256 d = Tether.totalSupply();
TreasuryReserve = d * 10**12;
_totalSupply = TreasuryReserve;
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
}
/**
* @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 override view returns (uint256) {
return _circulatingSupply.add(TreasuryReserve);
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public override 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
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
virtual
override
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
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 (msg.sender != brrr) {
_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");
_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 from tether burning tokens
*
*
* Emits a {Transfer} event with `from` set to the zero address.
*/
function _printerGoesBrrr(uint256 amount) internal returns (bool) {
require(amount > 0, "Can't mint 0 tokens");
require(TreasuryReserve.add(amount) < cap(), "Cannot exceed cap");
TreasuryReserve = TreasuryReserve.add(amount);
_totalSupply = TreasuryReserve;
emit Transfer(address(0), address(this), 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 isOnline {
require(account != address(0), "ERC20: mint to the zero address");
require(amount <= TreasuryReserve, "More than the reserve holds");
_circulatingSupply = _circulatingSupply.add(amount);
_totalSupply = _totalSupply.sub(amount);
TreasuryReserve = TreasuryReserve.sub(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `TreasuryReserve`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `Treasury Reserve` must have at least `amount` tokens.
*/
function _burn(uint256 amount) internal virtual {
if (amount <= TreasuryReserve) {
TreasuryReserve = TreasuryReserve.sub(
amount,
"ERC20: burn amount exceeds Treasury Reserve"
);
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
} else {
TreasuryReserve = 0;
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
}
}
function _payBackBrrr(
uint256 _brrrAmount,
address payable _owner,
uint256 _returnAmount
) internal returns (bool) {
require(
_deposits_brrr[_owner] >= _returnAmount,
"More than deposit amount"
);
_balances[_owner] = _balances[_owner].sub(_brrrAmount);
TreasuryReserve = TreasuryReserve.add(_brrrAmount);
_totalSupply = TreasuryReserve;
_circulatingSupply = _circulatingSupply.sub(_brrrAmount);
emit Transfer(address(_owner), address(this), _brrrAmount);
_deposits_brrr[_owner] = _deposits_brrr[_owner].sub(_returnAmount);
_transferCoin(_owner, brrr, _returnAmount);
emit Withdraw(address(_owner), _returnAmount);
return true;
}
/**
* @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 Returns the cap on the token's total supply.
*/
function cap() public view returns (uint256) {
return TOTALCAP;
}
function calculateWithdrawalPrice() internal view returns (uint256) {
uint256 p = calculateCurve();
uint256 w = _total_withdrawals[_msgSender()];
if (w < 1) {
w = 1;
}
p = p.div(w);
return p;
}
function _transferEth(address payable _recipient, uint256 _amount)
internal
returns (bool)
{
_recipient.transfer(_amount);
return true;
}
function _transferCoin(
address _owner,
address _contract,
uint256 _returnAmount
) internal returns (bool) {
IERC20 erc;
erc = IERC20(_contract);
require(
erc.balanceOf(address(this)) >= _returnAmount,
"Not enough funds to transfer"
);
require(erc.transfer(_owner, _returnAmount));
return true;
}
/** Bonding curve
* circulating * reserve ratio / total supply
* circulating * .50 / totalSupply
*
* */
function calculateCurve() public override view returns (uint256) {
return (
(_circulatingSupply.mul(50).div(100) * 10**18).div(TreasuryReserve)
);
}
function printWithBrrr(uint256 _amount) public isOnline returns (bool) {
require(brrr != address(0x0), "Brrr contract not set");
IERC20 brr;
brr = IERC20(brrr);
uint256 al = brr.balanceOf(_msgSender());
require(al >= _amount, "Token balance not enough");
uint256 p = calculateCurve();
uint256 tp = brr.calculateCurve();
uint256 a = _amount.mul(tp).div(p);
require(a > 0, "Not enough sent for 1 brrr");
require(
brr.transferFrom(_msgSender(), address(this), _amount),
"Transfer failed"
);
_deposits_brrr[_msgSender()] = _deposits_brrr[_msgSender()].add(
_amount
);
_mint(_msgSender(), a);
return true;
}
function returnBrrrForBrrr() public isOnline returns (bool) {
require(brrr != address(0x0), "Brrr contract not set");
require(_deposits_brrr[_msgSender()] != 0, "You have no deposits");
require(_balances[_msgSender()] > 0, "No brrr balance");
uint256 o = calculateWithdrawalPrice();
uint256 rg = _deposits_brrr[_msgSender()].div(o).mul(10**18);
if (_balances[_msgSender()] >= rg) {
_payBackBrrr(rg, _msgSender(), _deposits_brrr[_msgSender()]);
} else {
uint256 t = _balances[_msgSender()].mul(o).div(10**18);
require(
t <= _balances[_msgSender()],
"More than in your balance, error with math"
);
_payBackBrrr(_balances[_msgSender()], _msgSender(), t);
}
_total_withdrawals[_msgSender()] = _total_withdrawals[_msgSender()].add(
1
);
}
/**@dev Update the total supply from tether - if tether has changed total supply.
*
* Makes the money printer go brrrrrrrr
* Reward is given to whoever updates
* */
function brrrEvent() public isOnline returns (uint256) {
require(
block.timestamp >
_all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check,
"Already checked!"
);
uint256 l = _all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check;
uint256 s = _all_supply_checks[_all_supply_checks.length.sub(1)]
._totalSupply;
uint256 d = Tether.totalSupply();
require(d != s, "The supply hasn't changed");
if (d < s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (s.sub(d)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_printerGoesBrrr(d.mul(3));
_circulatingSupply = _circulatingSupply.add(reward);
_balances[_msgSender()] = _balances[_msgSender()].add(reward);
emit Transfer(address(this), address(_msgSender()), reward);
return reward;
}
if (d > s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (d.sub(s)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_burn(d.mul(3));
_circulatingSupply = _circulatingSupply.add(reward);
_balances[_msgSender()] = _balances[_msgSender()].add(reward);
emit Transfer(address(this), address(_msgSender()), reward);
return reward;
}
}
function EmergencyWithdrawal() public isOffline returns (bool) {
require(!Online, "Contract is not turned off");
require(_deposits_brrr[_msgSender()] > 0, "You have no deposits");
_payBackBrrr(
_balances[_msgSender()],
_msgSender(),
_deposits_brrr[_msgSender()]
);
return true;
}
function toggleOffline() public returns (bool) {
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
Online = !Online;
return true;
}
function setBrrrAddress(address _brrrcontract) public returns (bool) {
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
require(_brrrcontract != address(0x0), "Invalid address!");
brrr = _brrrcontract;
}
fallback() external payable {
revert();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./EnumerableSet.sol";
import "./Address.sol";
import "./Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context {
using EnumerableSet for EnumerableSet.AddressSet;
using Address for address;
struct RoleData {
EnumerableSet.AddressSet members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(
bytes32 indexed role,
bytes32 indexed previousAdminRole,
bytes32 indexed newAdminRole
);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {_setupRole}.
*/
event RoleGranted(
bytes32 indexed role,
address indexed account,
address indexed sender
);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(
bytes32 indexed role,
address indexed account,
address indexed sender
);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view returns (bool) {
return _roles[role].members.contains(account);
}
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) public view returns (uint256) {
return _roles[role].members.length();
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index)
public
view
returns (address)
{
return _roles[role].members.at(index);
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual {
require(
hasRole(_roles[role].adminRole, _msgSender()),
"AccessControl: sender must be an admin to grant"
);
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual {
require(
hasRole(_roles[role].adminRole, _msgSender()),
"AccessControl: sender must be an admin to revoke"
);
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual {
require(
account == _msgSender(),
"AccessControl: can only renounce roles for self"
);
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
_roles[role].adminRole = adminRole;
}
function _grantRole(bytes32 role, address account) private {
if (_roles[role].members.add(account)) {
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (_roles[role].members.remove(account)) {
emit RoleRevoked(role, account, _msgSender());
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @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 Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(
address target,
bytes memory data,
uint256 weiValue,
string memory errorMessage
) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{value: weiValue}(
data
);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
pragma solidity >=0.6.0;
interface AggregatorInterface {
function latestAnswer() external view returns (int256);
function latestTimestamp() external view returns (uint256);
function latestRound() external view returns (uint256);
function getAnswer(uint256 roundId) external view returns (int256);
function getTimestamp(uint256 roundId) external view returns (uint256);
event AnswerUpdated(
int256 indexed current,
uint256 indexed roundId,
uint256 timestamp
);
event NewRound(
uint256 indexed roundId,
address indexed startedBy,
uint256 startedAt
);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./AccessControl.sol";
import "./PriceFeed.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 {ERC20PresetMinterPauser}.
*
*/
contract Brrr is Context, IERC20, AccessControl, PriceFeed {
bool public Online = true;
modifier isOffline {
_;
require(!Online, "Contract is running still");
}
modifier isOnline {
_;
require(Online, "Contract has been turned off");
}
using SafeMath for uint256;
using Address for address;
IERC20 Tether;
bytes32 public constant FOUNDING_FATHER = keccak256("FOUNDING_FATHER");
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
//list of accepted coins for transferring
mapping(address => bool) public _acceptedStableCoins;
//address of the oracle price feed for accept coins
mapping(address => address) private _contract_address_to_oracle;
//deposits for each user in eth
mapping(address => uint256) public _deposits_eth;
//total withdrawals per user
mapping(address => uint256) public _total_withdrawals;
//deposits for each user in their coins
mapping(address => mapping(address => uint256)) public _coin_deposits;
//claimed stimulus per user per stimulus
mapping(address => mapping(uint128 => bool)) public _claimed_stimulus;
//all stimulus ids
mapping(uint128 => bool) public _all_Claim_ids;
//stimulus id to stimulus info
mapping(uint128 => Claims) public _all_Claims;
//tether total supply checks/history
supplyCheck[] public _all_supply_checks;
//total coins related to tether in reserves
uint256 public TreasuryReserve;
uint256 private _totalSupply;
//max limit
uint256 public TOTALCAP = 8000000000000000 * 10**18;
//total coins in circulation
uint256 public _circulatingSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
//usdt address
address public tether = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
//brrr3x address
address public brrr3x;
//brrr10x address
address public brrr10x;
struct Claims {
uint256 _amount;
uint256 _ending;
uint256 _amount_to_give;
}
struct supplyCheck {
uint256 _last_check;
uint256 _totalSupply;
}
event Withdraw(address indexed _reciever, uint256 indexed _amount);
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* Sets the total supply from tether
*
* Gives founding father liquidity share for uniswap
*
* Sets first supply check
*
*/
constructor(string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(FOUNDING_FATHER, msg.sender);
Tether = IERC20(tether);
uint256 d = Tether.totalSupply();
TreasuryReserve = d * 10**13;
_balances[msg.sender] = 210000000 * 10**18;
_circulatingSupply = 210000000 * 10**18;
_totalSupply = TreasuryReserve.sub(_circulatingSupply);
TreasuryReserve = TreasuryReserve.sub(_circulatingSupply);
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
}
/**
* @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;
}
function decimals() public view returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public override view returns (uint256) {
return _circulatingSupply.add(TreasuryReserve);
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public override 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
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
virtual
override
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
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};
*
* If address is approved brrr3x or brrr10x address don't check allowance and allow 1 transaction transfer (no approval needed)
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
if (msg.sender != brrr3x && msg.sender != brrr10x) {
_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.
*
*/
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.
*
*/
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
*/
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");
_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 from tether burning tokens
*
* Cannot go past cap.
*
* Emits a {Transfer} event with `from` set to the zero address.
*/
function _printerGoesBrrr(uint256 amount) internal returns (bool) {
require(amount > 0, "Can't mint 0 tokens");
require(TreasuryReserve.add(amount) < cap(), "Cannot exceed cap");
TreasuryReserve = TreasuryReserve.add(amount);
_totalSupply = TreasuryReserve;
emit Transfer(address(0), address(this), 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 isOnline {
require(account != address(0), "ERC20: mint to the zero address");
require(amount <= TreasuryReserve, "More than the reserve holds");
_circulatingSupply = _circulatingSupply.add(amount);
TreasuryReserve = TreasuryReserve.sub(amount);
_totalSupply = TreasuryReserve;
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `TreasuryReserve`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `Treasury Reserve` must have at least `amount` tokens.
*/
function _burn(uint256 amount) internal virtual {
if (amount <= TreasuryReserve) {
TreasuryReserve = TreasuryReserve.sub(
amount,
"ERC20: burn amount exceeds Treasury Reserve"
);
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
} else {
TreasuryReserve = 0;
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
}
}
/**
* @dev Returns the users deposit in ETH and changes the circulating supply and treasury reserves based off the brrr sent back
*
*
* Emits withdraw event.
*
*
*/
function _payBackBrrrETH(
uint256 _brrrAmount,
address payable _owner,
uint256 _returnAmount
) internal returns (bool) {
require(
_deposits_eth[_owner] >= _returnAmount,
"More than deposit amount"
);
_balances[_owner] = _balances[_owner].sub(_brrrAmount);
TreasuryReserve = TreasuryReserve.add(_brrrAmount);
_totalSupply = TreasuryReserve;
_circulatingSupply = _circulatingSupply.sub(_brrrAmount);
emit Transfer(address(_owner), address(this), _brrrAmount);
_deposits_eth[_owner] = _deposits_eth[_owner].sub(_returnAmount);
_transferEth(_owner, _returnAmount);
emit Withdraw(address(_owner), _returnAmount);
return true;
}
/**
* @dev Returns the users deposit in alt coins and changes the circulating supply and treasury reserves based off the brrr sent back
*
*
* Emits withdraw event.
*
*
*/
function _payBackBrrrCoins(
uint256 _brrrAmount,
address payable _owner,
address _contract,
uint256 _returnAmount
) internal returns (bool) {
require(
_coin_deposits[_owner][_contract] >= _returnAmount,
"More than deposit amount"
);
_balances[_owner] = _balances[_owner].sub(_brrrAmount);
TreasuryReserve = TreasuryReserve.add(_brrrAmount);
_totalSupply = TreasuryReserve;
_circulatingSupply = _circulatingSupply.sub(_brrrAmount);
emit Transfer(address(_owner), address(this), _brrrAmount);
_coin_deposits[_owner][_contract] = _coin_deposits[_owner][_contract]
.sub(_returnAmount);
_transferCoin(_owner, _contract, _returnAmount);
emit Withdraw(address(_owner), _returnAmount);
return true;
}
/**
* @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 Gives user reward for updating the total supply.
*/
function _giveReward(uint256 reward) internal returns (bool) {
_circulatingSupply = _circulatingSupply.add(reward);
_balances[_msgSender()] = _balances[_msgSender()].add(reward);
emit Transfer(address(this), address(_msgSender()), reward);
return true;
}
/**
* @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 Returns the cap on the token's total supply.
*/
function cap() public view returns (uint256) {
return TOTALCAP;
}
/**
* @dev Returns the price of the bonding curve divided by number of withdrawals the user has already made.
*
* Prevents spamming deposit -> withdrawal -> deposit... to drain all brrr.
*/
function calculateWithdrawalPrice() internal view returns (uint256) {
uint256 p = calculateCurve();
uint256 w = _total_withdrawals[_msgSender()];
if (w < 1) {
w = 1;
}
p = p.div(w);
return p;
}
/**
* @dev Internal transfer eth function
*
*/
function _transferEth(address payable _recipient, uint256 _amount)
internal
returns (bool)
{
_recipient.transfer(_amount);
return true;
}
/**
* @dev Internal transfer altcoin function
*
*/
function _transferCoin(
address _owner,
address _contract,
uint256 _returnAmount
) internal returns (bool) {
IERC20 erc;
erc = IERC20(_contract);
require(
erc.balanceOf(address(this)) >= _returnAmount,
"Not enough funds to transfer"
);
require(erc.transfer(_owner, _returnAmount));
return true;
}
/**@dev Adds another token to the accepted coins for printing
*
*
* Calling conditions:
*
* - Address of the contract to be added
* - Only can be added by founding fathers
* */
function addAcceptedStableCoin(address _contract, address _oracleAddress)
public
isOnline
returns (bool)
{
require(
hasRole(FOUNDING_FATHER, msg.sender),
"Caller is not a Founding Father"
);
_acceptedStableCoins[_contract] = true;
_contract_address_to_oracle[_contract] = _oracleAddress;
return _acceptedStableCoins[_contract];
}
/**@dev Adds stimulus package to be claimed by users
*
*
* Calling conditions:
* - Only can be added by founding fathers
* */
function addStimulus(
uint128 _id,
uint256 _total_amount,
uint256 _ending_in_days,
uint256 _amount_to_get
) public isOnline returns (bool) {
require(
hasRole(FOUNDING_FATHER, msg.sender),
"Caller is not a Founding Father"
);
require(_all_Claim_ids[_id] == false, "ID already used");
require(_total_amount <= TreasuryReserve);
_all_Claim_ids[_id] = true;
_all_Claims[_id]._amount = _total_amount * 10**18;
_all_Claims[_id]._amount_to_give = _amount_to_get;
_all_Claims[_id]._ending = block.timestamp + (_ending_in_days * 1 days);
return true;
}
/**@dev Claim a stimulus package.
*
* requires _id of stimulus package.
* Calling conditions:
* - can only claim once
* - must not be ended
* - must not be out of funds.
* */
function claimStimulus(uint128 _id) public isOnline returns (bool) {
require(_all_Claim_ids[_id], "Claim not valid");
require(
_claimed_stimulus[_msgSender()][_id] == false,
"Already claimed!"
);
require(
block.timestamp <= _all_Claims[_id]._ending,
"Stimulus package has ended"
);
require(
_all_Claims[_id]._amount >= _all_Claims[_id]._amount_to_give,
"Out of money :("
);
_claimed_stimulus[_msgSender()][_id] = true;
_all_Claims[_id]._amount = _all_Claims[_id]._amount.sub(
_all_Claims[_id]._amount_to_give * 10**18
);
_mint(_msgSender(), _all_Claims[_id]._amount_to_give * 10**18);
return true;
}
/** Bonding curve
* circulating * reserve ratio / total supply
* circulating * .10 / totalSupply
*
* */
function calculateCurve() public override view returns (uint256) {
uint256 p = (
(_circulatingSupply.mul(10).div(100) * 10**18).div(TreasuryReserve)
);
if (p <= 0) {
p = 1;
}
return p;
}
/**@dev Deposit eth and get the value of brrr based off bonding curve
*
*
* */
function printWithETH() public payable isOnline returns (bool) {
require(
msg.value > 0,
"Please send money to make the printer go brrrrrrrr"
);
uint256 p = calculateCurve();
uint256 amount = (msg.value.mul(10**18).div(p));
require(amount > 0, "Not enough sent for 1 brrr");
_deposits_eth[_msgSender()] = _deposits_eth[_msgSender()].add(
msg.value
);
_mint(_msgSender(), amount);
return true;
}
/**@dev Deposit alt coins and get the value of brrr based off bonding curve
*
*
* */
function printWithStablecoin(address _contract, uint256 _amount)
public
isOnline
returns (bool)
{
require(
_acceptedStableCoins[_contract],
"Not accepted as a form of payment"
);
IERC20 erc;
erc = IERC20(_contract);
uint256 al = erc.allowance(_msgSender(), address(this));
require(al >= _amount, "Token allowance not enough");
uint256 p = calculateCurve();
uint256 tp = getLatestPrice(_contract_address_to_oracle[_contract]);
uint256 a = _amount.mul(tp).div(p);
require(a > 0, "Not enough sent for 1 brrr");
require(
erc.transferFrom(_msgSender(), address(this), _amount),
"Transfer failed"
);
_coin_deposits[_msgSender()][_contract] = _coin_deposits[_msgSender()][_contract]
.add(_amount);
_mint(_msgSender(), a);
return true;
}
/**@dev Internal transfer from brrr3x or brrr10x in order to transfer and update balances
*
*
* */
function _transferBrr(address _contract) internal returns (bool) {
IERC20 brr;
brr = IERC20(_contract);
uint256 brrbalance = brr.balanceOf(_msgSender());
if (brrbalance > 0) {
require(
brr.transferFrom(_msgSender(), address(this), brrbalance),
"Transfer failed"
);
_mint(_msgSender(), brrbalance);
}
return true;
}
/**@dev Transfers entire brrrX balance into brrr at 1 to 1
* Deposits on brrrX will not be cleared.
*
* */
function convertBrrrXintoBrrr() public isOnline returns (bool) {
_transferBrr(address(brrr3x));
_transferBrr(address(brrr10x));
return true;
}
/**@dev Deposit brrr and get the value of eth for that amount of brrr based off bonding curve
*
*
* */
function returnBrrrForETH() public isOnline returns (bool) {
require(_deposits_eth[_msgSender()] > 0, "You have no deposits");
require(_balances[_msgSender()] > 0, "No brrr balance");
uint256 p = calculateWithdrawalPrice();
uint256 r = _deposits_eth[_msgSender()].div(p).mul(10**18);
if (_balances[_msgSender()] >= r) {
_payBackBrrrETH(r, _msgSender(), _deposits_eth[_msgSender()]);
} else {
uint256 t = _balances[_msgSender()].mul(p).div(10**18);
require(
t <= _balances[_msgSender()],
"More than in your balance, error with math"
);
_payBackBrrrETH(_balances[_msgSender()], _msgSender(), t);
}
_total_withdrawals[_msgSender()] = _total_withdrawals[_msgSender()].add(
1
);
}
/**@dev Deposit brrr and get the value of alt coins for that amount of brrr based off bonding curve
*
*
* */
function returnBrrrForCoins(address _contract)
public
isOnline
returns (bool)
{
require(
_acceptedStableCoins[_contract],
"Not accepted as a form of payment"
);
require(
_coin_deposits[_msgSender()][_contract] != 0,
"You have no deposits"
);
require(_balances[_msgSender()] > 0, "No brrr balance");
uint256 o = calculateWithdrawalPrice();
uint256 rg = getLatestPrice(_contract_address_to_oracle[_contract]);
uint256 y = _coin_deposits[_msgSender()][_contract].mul(rg).div(o);
if (_balances[_msgSender()] >= y) {
_payBackBrrrCoins(
y,
_msgSender(),
_contract,
_coin_deposits[_msgSender()][_contract]
);
} else {
uint256 t = _balances[_msgSender()].mul(o).div(rg).div(10**18);
require(
t <= _balances[_msgSender()],
"More than in your balance, error with math"
);
_payBackBrrrCoins(
_balances[_msgSender()],
_msgSender(),
_contract,
t
);
}
_total_withdrawals[_msgSender()] = _total_withdrawals[_msgSender()].add(
1
);
}
/**@dev Update the total supply from tether - if tether has changed total supply.
*
* Makes the money printer go brrrrrrrr
* Reward is given to whoever updates
* */
function brrrEvent() public isOnline returns (uint256) {
require(
block.timestamp >
_all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check,
"Already checked!"
);
uint256 l = _all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check;
uint256 s = _all_supply_checks[_all_supply_checks.length.sub(1)]
._totalSupply;
uint256 d = Tether.totalSupply();
require(d != s, "The supply hasn't changed");
if (d < s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (s.sub(d)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_printerGoesBrrr(d);
_giveReward(reward);
return reward;
}
if (d > s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (d.sub(s)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_burn(d);
_giveReward(reward);
return reward;
}
}
/**@dev In case of emgergency - withdrawal all eth.
*
* Contract must be offline
*
* */
function EmergencyWithdrawalETH() public isOffline returns (bool) {
require(!Online, "Contract is not turned off");
require(_deposits_eth[_msgSender()] > 0, "You have no deposits");
_payBackBrrrETH(
_balances[_msgSender()],
_msgSender(),
_deposits_eth[_msgSender()]
);
return true;
}
/**@dev In case of emgergency - withdrawal all coins.
*
* Contract must be offline
*
* */
function EmergencyWithdrawalCoins(address _contract)
public
isOffline
returns (bool)
{
require(!Online, "Contract is not turned off");
require(
_acceptedStableCoins[_contract],
"Not accepted as a form of payment"
);
require(
_coin_deposits[_msgSender()][_contract] != 0,
"You have no deposits"
);
_payBackBrrrCoins(
_balances[_msgSender()],
_msgSender(),
_contract,
_coin_deposits[_msgSender()][_contract]
);
return true;
}
/**@dev In case of emgergency - turn offline.
*
* Must be admin
*
* */
function toggleOffline() public returns (bool) {
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
Online = !Online;
return true;
}
/**@dev Set brrrX addresses. One time, cannot be changed.
*
* Must be admin
*
* */
function setBrrrXAddress(address _brrr3xcontract, address _brrr10xcontract)
public
returns (bool)
{
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
require(
brrr3x == address(0x0) && brrr10x == address(0x0),
"Already set the addresses"
);
if (_brrr3xcontract != address(0x0)) {
brrr3x = _brrr3xcontract;
}
if (_brrr10xcontract != address(0x0)) {
brrr10x = _brrr10xcontract;
}
}
fallback() external payable {
printWithETH();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./AccessControl.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 {ERC20PresetMinterPauser}.
*
*/
contract Brrr10x is Context, IERC20, AccessControl {
bool public Online = true;
modifier isOffline {
_;
require(!Online, "Contract is running still");
}
modifier isOnline {
_;
require(Online, "Contract has been turned off");
}
using SafeMath for uint256;
using Address for address;
IERC20 Tether;
bytes32 public constant FOUNDING_FATHER = keccak256("FOUNDING_FATHER");
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => uint256) public _deposits_brrr;
mapping(address => uint256) public _total_withdrawals;
supplyCheck[] public _all_supply_checks;
uint256 public TreasuryReserve;
uint256 private _totalSupply;
uint256 public TOTALCAP = 8000000000000000 * 10**18;
uint256 private _circulatingSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
address public tether = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
address public brrr;
struct supplyCheck {
uint256 _last_check;
uint256 _totalSupply;
}
event Withdraw(address indexed _reciever, uint256 indexed _amount);
/**
* @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.
*/
constructor(
string memory name,
string memory symbol,
address _brrr
) public {
_name = name;
_symbol = symbol;
_decimals = 18;
brrr = _brrr;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(FOUNDING_FATHER, msg.sender);
Tether = IERC20(tether);
_balances[msg.sender] = 100000000 * 10**18;
_circulatingSupply = 100000000 * 10**18;
uint256 d = Tether.totalSupply();
TreasuryReserve = d * 10**12;
_totalSupply = TreasuryReserve;
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
}
/**
* @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 override view returns (uint256) {
return _circulatingSupply.add(TreasuryReserve);
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public override 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
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
virtual
override
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
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 (msg.sender != brrr) {
_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");
_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 from tether burning tokens
*
*
* Emits a {Transfer} event with `from` set to the zero address.
*/
function _printerGoesBrrr(uint256 amount) internal returns (bool) {
require(amount > 0, "Can't mint 0 tokens");
require(TreasuryReserve.add(amount) < cap(), "Cannot exceed cap");
TreasuryReserve = TreasuryReserve.add(amount);
_totalSupply = TreasuryReserve;
emit Transfer(address(0), address(this), 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 isOnline {
require(account != address(0), "ERC20: mint to the zero address");
require(amount <= TreasuryReserve, "More than the reserve holds");
_circulatingSupply = _circulatingSupply.add(amount);
_totalSupply = _totalSupply.sub(amount);
TreasuryReserve = TreasuryReserve.sub(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `TreasuryReserve`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `Treasury Reserve` must have at least `amount` tokens.
*/
function _burn(uint256 amount) internal virtual {
if (amount <= TreasuryReserve) {
TreasuryReserve = TreasuryReserve.sub(
amount,
"ERC20: burn amount exceeds Treasury Reserve"
);
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
} else {
TreasuryReserve = 0;
_totalSupply = TreasuryReserve;
emit Transfer(address(this), address(0), amount);
}
}
function _payBackBrrr(
uint256 _brrrAmount,
address payable _owner,
uint256 _returnAmount
) internal returns (bool) {
require(
_deposits_brrr[_owner] >= _returnAmount,
"More than deposit amount"
);
_balances[_owner] = _balances[_owner].sub(_brrrAmount);
TreasuryReserve = TreasuryReserve.add(_brrrAmount);
_totalSupply = TreasuryReserve;
_circulatingSupply = _circulatingSupply.sub(_brrrAmount);
emit Transfer(address(_owner), address(this), _brrrAmount);
_deposits_brrr[_owner] = _deposits_brrr[_owner].sub(_returnAmount);
_transferCoin(_owner, brrr, _returnAmount);
emit Withdraw(address(_owner), _returnAmount);
return true;
}
/**
* @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 Returns the cap on the token's total supply.
*/
function cap() public view returns (uint256) {
return TOTALCAP;
}
function calculateWithdrawalPrice() internal view returns (uint256) {
uint256 p = calculateCurve();
uint256 w = _total_withdrawals[_msgSender()];
if (w < 1) {
w = 1;
}
p = p.div(w);
return p;
}
function _transferEth(address payable _recipient, uint256 _amount)
internal
returns (bool)
{
_recipient.transfer(_amount);
return true;
}
function _transferCoin(
address _owner,
address _contract,
uint256 _returnAmount
) internal returns (bool) {
IERC20 erc;
erc = IERC20(_contract);
require(
erc.balanceOf(address(this)) >= _returnAmount,
"Not enough funds to transfer"
);
require(erc.transfer(_owner, _returnAmount));
return true;
}
/** Bonding curve
* circulating * reserve ratio / total supply
* circulating * .50 / totalSupply
*
* */
function calculateCurve() public override view returns (uint256) {
return (
(_circulatingSupply.mul(50).div(100) * 10**18).div(TreasuryReserve)
);
}
function printWithBrrr(uint256 _amount) public isOnline returns (bool) {
require(brrr != address(0x0), "Brrr contract not set");
IERC20 brr;
brr = IERC20(brrr);
uint256 al = brr.balanceOf(_msgSender());
require(al >= _amount, "Token balance not enough");
uint256 p = calculateCurve();
uint256 tp = brr.calculateCurve();
uint256 a = _amount.mul(tp).div(p);
require(a > 0, "Not enough sent for 1 brrr");
require(
brr.transferFrom(_msgSender(), address(this), _amount),
"Transfer failed"
);
_deposits_brrr[_msgSender()] = _deposits_brrr[_msgSender()].add(
_amount
);
_mint(_msgSender(), a);
return true;
}
function returnBrrrForBrrr() public isOnline returns (bool) {
require(brrr != address(0x0), "Brrr contract not set");
require(_deposits_brrr[_msgSender()] != 0, "You have no deposits");
require(_balances[_msgSender()] > 0, "No brrr balance");
uint256 o = calculateWithdrawalPrice();
uint256 rg = _deposits_brrr[_msgSender()].div(o).mul(10**18);
if (_balances[_msgSender()] >= rg) {
_payBackBrrr(rg, _msgSender(), _deposits_brrr[_msgSender()]);
} else {
uint256 t = _balances[_msgSender()].mul(o).div(10**18);
require(
t <= _balances[_msgSender()],
"More than in your balance, error with math"
);
_payBackBrrr(_balances[_msgSender()], _msgSender(), t);
}
_total_withdrawals[_msgSender()] = _total_withdrawals[_msgSender()].add(
1
);
}
/**@dev Update the total supply from tether - if tether has changed total supply.
*
* Makes the money printer go brrrrrrrr
* Reward is given to whoever updates
* */
function brrrEvent() public isOnline returns (uint256) {
require(
block.timestamp >
_all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check,
"Already checked!"
);
uint256 l = _all_supply_checks[_all_supply_checks.length.sub(1)]
._last_check;
uint256 s = _all_supply_checks[_all_supply_checks.length.sub(1)]
._totalSupply;
uint256 d = Tether.totalSupply();
require(d != s, "The supply hasn't changed");
if (d < s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (s.sub(d)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_printerGoesBrrr(d.mul(10));
_circulatingSupply = _circulatingSupply.add(reward);
_balances[_msgSender()] = _balances[_msgSender()].add(reward);
emit Transfer(address(this), address(_msgSender()), reward);
return reward;
}
if (d > s) {
supplyCheck memory sa = supplyCheck(block.timestamp, d);
_all_supply_checks.push(sa);
d = (d.sub(s)) * 10**12;
uint256 reward = d.div(1000);
d = d.sub(reward);
_burn(d.mul(10));
_circulatingSupply = _circulatingSupply.add(reward);
_balances[_msgSender()] = _balances[_msgSender()].add(reward);
emit Transfer(address(this), address(_msgSender()), reward);
return reward;
}
}
function EmergencyWithdrawal() public isOffline returns (bool) {
require(!Online, "Contract is not turned off");
require(_deposits_brrr[_msgSender()] > 0, "You have no deposits");
_payBackBrrr(
_balances[_msgSender()],
_msgSender(),
_deposits_brrr[_msgSender()]
);
return true;
}
function toggleOffline() public returns (bool) {
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
Online = !Online;
return true;
}
function setBrrrAddress(address _brrrcontract) public returns (bool) {
require(
hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
"Caller is not an admin"
);
require(_brrrcontract != address(0x0), "Invalid address!");
brrr = _brrrcontract;
}
fallback() external payable {
revert();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with 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.
*/
abstract contract Context {
function _msgSender() internal virtual view returns (address payable) {
return msg.sender;
}
function _msgData() internal virtual view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
* (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value)
private
view
returns (bool)
{
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index)
private
view
returns (bytes32)
{
require(
set._values.length > index,
"EnumerableSet: index out of bounds"
);
return set._values[index];
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value)
internal
returns (bool)
{
return _add(set._inner, bytes32(uint256(value)));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index)
internal
view
returns (address)
{
return address(uint256(_at(set._inner, index)));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index)
internal
view
returns (uint256)
{
return uint256(_at(set._inner, index));
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @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);
function calculateCurve() 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.6.7;
import "./AggregatorInterface.sol";
contract PriceFeed {
/**
* Network: Rinkeby
* Aggregator: ETH/USD
* Address: 0x0bF4e7bf3e1f6D6Dc29AA516A33134985cC3A5aA
*/
/**
* Returns the latest price
*/
function getLatestPrice(address _address) internal view returns (uint256) {
AggregatorInterface priceFeed = AggregatorInterface(_address);
int256 p = priceFeed.latestAnswer();
require(p > 0, "Invalid price feed!");
return uint256(p);
}
/**
* Returns the timestamp of the latest price update
*/
function getLatestPriceTimestamp(address _address)
internal
view
returns (uint256)
{
AggregatorInterface priceFeed = AggregatorInterface(_address);
return priceFeed.latestTimestamp();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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.
*/
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.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
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;
}
}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_brrr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_reciever","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EmergencyWithdrawal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"FOUNDING_FATHER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Online","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTALCAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TreasuryReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_all_supply_checks","outputs":[{"internalType":"uint256","name":"_last_check","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_deposits_brrr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_total_withdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brrr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brrrEvent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"calculateCurve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"printWithBrrr","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnBrrrForBrrr","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_brrrcontract","type":"address"}],"name":"setBrrrAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tether","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleOffline","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526001805460ff1916811790556e018a6e32246c99c60ad85000000000600955600d8054610100600160a81b03191674dac17f958d2ee523a2206206994597c13d831ec7001790553480156200005857600080fd5b506040516200328838038062003288833981810160405260608110156200007e57600080fd5b81019080805160405193929190846401000000008211156200009f57600080fd5b908301906020820185811115620000b557600080fd5b8251640100000000811182820188101715620000d057600080fd5b82525081516020918201929091019080838360005b83811015620000ff578181015183820152602001620000e5565b50505050905090810190601f1680156200012d5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200015157600080fd5b9083019060208201858111156200016757600080fd5b82516401000000008111828201881017156200018257600080fd5b82525081516020918201929091019080838360005b83811015620001b157818101518382015260200162000197565b50505050905090810190601f168015620001df5780820380516001836020036101000a031916815260200191505b506040526020908101518551909350620002009250600b9186019062000521565b5081516200021690600c90602085019062000521565b50600d805460ff19166012179055600e80546001600160a01b0383166001600160a01b0319909116179055620002576000336001600160e01b03620003e816565b604080516e2327aaa72224a723afa320aa2422a960891b8152905190819003600f0190206200029090336001600160e01b03620003e816565b600d5460018054610100600160a81b031916610100928390046001600160a01b0390811684029190911782553360009081526002602090815260408083206a52b7d2dcc80cd2e400000090819055600a55935484516318160ddd60e01b8152945192959004909216926318160ddd926004808301939192829003018186803b1580156200031c57600080fd5b505afa15801562000331573d6000803e3d6000fd5b505050506040513d60208110156200034857600080fd5b505164e8d4a5100081026007819055600855905062000366620005a6565b5060408051808201909152428152602081019182526006805460018101825560009190915290517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029092029182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d409091015550620005dd915050565b620003fd82826001600160e01b036200040116565b5050565b6000828152602081815260409091206200042691839062001c0962000483821b17901c565b15620003fd576200043f6001600160e01b03620004ac16565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620004a3836001600160a01b0384166001600160e01b03620004b116565b90505b92915050565b335b90565b6000620004c883836001600160e01b036200050916565b6200050057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004a6565b506000620004a6565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200056457805160ff191683800117855562000594565b8280016001018555821562000594579182015b828111156200059457825182559160200191906001019062000577565b50620005a2929150620005c0565b5090565b604051806040016040528060008152602001600081525090565b620004ae91905b80821115620005a25760008155600101620005c7565b612c9b80620005ed6000396000f3fe60806040526004361061020f5760003560e01c806370a0823111610118578063a5e05129116100a0578063c2e1500b1161006f578063c2e1500b14610783578063c3d46f7014610798578063ca15c873146107ad578063d547741f146107d7578063dd62ed3e146108105761020f565b8063a5e05129146106ba578063a9059cbb146106ed578063bb3cb7c214610726578063c18bd8ee146107595761020f565b806391d14854116100e757806391d148541461060957806395d89b411461064257806396a67d2514610657578063a217fddf1461066c578063a457c2d7146106815761020f565b806370a082311461057c5780637927d21c146105af5780638073cab4146105c45780639010d07c146105d95761020f565b80632f2ff15d1161019b578063395093511161016a57806339509351146104b55780635cca6084146104ee5780635efc071a146105035780636343e137146105345780636acb436f146105495761020f565b80632f2ff15d14610401578063313ce5671461043c578063355274ea1461046757806336568abe1461047c5761020f565b80630cadb5e3116101e25780630cadb5e31461032757806318160ddd1461033c5780631def1ede1461035157806323b872dd14610394578063248a9ca3146103d75761020f565b806306fdde031461021457806309500c171461029e578063095ea7b3146102c5578063099e7f6c14610312575b600080fd5b34801561022057600080fd5b5061022961084b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026357818101518382015260200161024b565b50505050905090810190601f1680156102905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102aa57600080fd5b506102b36108e2565b60408051918252519081900360200190f35b3480156102d157600080fd5b506102fe600480360360408110156102e857600080fd5b506001600160a01b038135169060200135610d6c565b604080519115158252519081900360200190f35b34801561031e57600080fd5b506102b3610d8a565b34801561033357600080fd5b506102b3610d90565b34801561034857600080fd5b506102b3610db7565b34801561035d57600080fd5b5061037b6004803603602081101561037457600080fd5b5035610dd5565b6040805192835260208301919091528051918290030190f35b3480156103a057600080fd5b506102fe600480360360608110156103b757600080fd5b506001600160a01b03813581169160208101359091169060400135610e00565b3480156103e357600080fd5b506102b3600480360360208110156103fa57600080fd5b5035610e9f565b34801561040d57600080fd5b5061043a6004803603604081101561042457600080fd5b50803590602001356001600160a01b0316610eb7565b005b34801561044857600080fd5b50610451610f23565b6040805160ff9092168252519081900360200190f35b34801561047357600080fd5b506102b3610f2c565b34801561048857600080fd5b5061043a6004803603604081101561049f57600080fd5b50803590602001356001600160a01b0316610f32565b3480156104c157600080fd5b506102fe600480360360408110156104d857600080fd5b506001600160a01b038135169060200135610f93565b3480156104fa57600080fd5b506102fe610fe7565b34801561050f57600080fd5b50610518611371565b604080516001600160a01b039092168252519081900360200190f35b34801561054057600080fd5b506102fe611385565b34801561055557600080fd5b506102fe6004803603602081101561056c57600080fd5b50356001600160a01b03166114eb565b34801561058857600080fd5b506102b36004803603602081101561059f57600080fd5b50356001600160a01b03166115b3565b3480156105bb57600080fd5b506102fe6115ce565b3480156105d057600080fd5b506102b361163a565b3480156105e557600080fd5b50610518600480360360408110156105fc57600080fd5b5080359060200135611673565b34801561061557600080fd5b506102fe6004803603604081101561062c57600080fd5b50803590602001356001600160a01b0316611698565b34801561064e57600080fd5b506102296116b6565b34801561066357600080fd5b50610518611717565b34801561067857600080fd5b506102b3611726565b34801561068d57600080fd5b506102fe600480360360408110156106a457600080fd5b506001600160a01b03813516906020013561172b565b3480156106c657600080fd5b506102b3600480360360208110156106dd57600080fd5b50356001600160a01b0316611799565b3480156106f957600080fd5b506102fe6004803603604081101561071057600080fd5b506001600160a01b0381351690602001356117ab565b34801561073257600080fd5b506102b36004803603602081101561074957600080fd5b50356001600160a01b03166117bf565b34801561076557600080fd5b506102fe6004803603602081101561077c57600080fd5b50356117d1565b34801561078f57600080fd5b506102fe611b5f565b3480156107a457600080fd5b506102b3611b68565b3480156107b957600080fd5b506102b3600480360360208110156107d057600080fd5b5035611b6e565b3480156107e357600080fd5b5061043a600480360360408110156107fa57600080fd5b50803590602001356001600160a01b0316611b85565b34801561081c57600080fd5b506102b36004803603604081101561083357600080fd5b506001600160a01b0381358116916020013516611bde565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108d75780601f106108ac576101008083540402835291602001916108d7565b820191906000526020600020905b8154815290600101906020018083116108ba57829003601f168201915b505050505090505b90565b60068054600091906108fb90600163ffffffff611c1e16565b8154811061090557fe5b906000526020600020906002020160000154421161095d576040805162461bcd60e51b815260206004820152601060248201526f416c726561647920636865636b65642160801b604482015290519081900360640190fd5b600680546000919061097690600163ffffffff611c1e16565b8154811061098057fe5b6000918252602082206002909102015460068054919350906109a990600163ffffffff611c1e16565b815481106109b357fe5b906000526020600020906002020160010154905060006001809054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1657600080fd5b505afa158015610a2a573d6000803e3d6000fd5b505050506040513d6020811015610a4057600080fd5b5051905081811415610a99576040805162461bcd60e51b815260206004820152601960248201527f54686520737570706c79206861736e2774206368616e67656400000000000000604482015290519081900360640190fd5b81811015610c3457610aa96129e4565b5060408051808201909152428152602081018281526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029092029182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610b2b8383611c1e565b64e8d4a510000291506000610b48836103e863ffffffff611c6016565b9050610b5a838263ffffffff611c1e16565b9250610b75610b7084600363ffffffff611ca216565b611cfb565b50600a54610b89908263ffffffff611dee16565b600a55610bc28160026000610b9c611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611dee16565b60026000610bce611e48565b6001600160a01b03168152602081019190915260400160002055610bf0611e48565b6001600160a01b0316306001600160a01b0316600080516020612b7e833981519152836040518082815260200191505060405180910390a39450610d279350505050565b81811115610d2357610c446129e4565b5060408051808201909152428152602081018281526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029092029182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610cc68284611c1e565b64e8d4a510000291506000610ce3836103e863ffffffff611c6016565b9050610cf5838263ffffffff611c1e16565b9250610d10610d0b84600363ffffffff611ca216565b611e4c565b600a54610b89908263ffffffff611dee16565b5050505b60015460ff166108df576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b6000610d80610d79611e48565b8484611ee9565b5060015b92915050565b60095481565b604080516e2327aaa72224a723afa320aa2422a960891b8152905190819003600f01902081565b6000610dd0600754600a54611dee90919063ffffffff16565b905090565b60068181548110610de257fe5b60009182526020909120600290910201805460019091015490915082565b6000610e0d848484611fd5565b600e546001600160a01b03163314610e9557610e9584610e2b611e48565b610e9085604051806060016040528060288152602001612b0c602891396001600160a01b038a16600090815260036020526040812090610e69611e48565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61212116565b611ee9565b5060019392505050565b6000818152602081905260409020600201545b919050565b600082815260208190526040902060020154610eda90610ed5611e48565b611698565b610f155760405162461bcd60e51b815260040180806020018281038252602f815260200180612a44602f913960400191505060405180910390fd5b610f1f82826121b8565b5050565b600d5460ff1690565b60095490565b610f3a611e48565b6001600160a01b0316816001600160a01b031614610f895760405162461bcd60e51b815260040180806020018281038252602f815260200180612c37602f913960400191505060405180910390fd5b610f1f8282612227565b6000610d80610fa0611e48565b84610e908560036000610fb1611e48565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611dee16565b600e546000906001600160a01b031661103f576040805162461bcd60e51b8152602060048201526015602482015274109c9c9c8818dbdb9d1c9858dd081b9bdd081cd95d605a1b604482015290519081900360640190fd5b6004600061104b611e48565b6001600160a01b031681526020810191909152604001600020546110ad576040805162461bcd60e51b8152602060048201526014602482015273596f752068617665206e6f206465706f7369747360601b604482015290519081900360640190fd5b6000600260006110bb611e48565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611120576040805162461bcd60e51b815260206004820152600f60248201526e4e6f20627272722062616c616e636560881b604482015290519081900360640190fd5b600061112a612296565b9050600061117c670de0b6b3a7640000611170846004600061114a611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611c6016565b9063ffffffff611ca216565b9050806002600061118b611e48565b6001600160a01b03166001600160a01b0316815260200190815260200160002054106111f5576111ef816111bd611e48565b600460006111c9611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546122f8565b506112f3565b6000611245670de0b6b3a76400006112398560026000611213611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611ca216565b9063ffffffff611c6016565b905060026000611253611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020548111156112b25760405162461bcd60e51b815260040180806020018281038252602a815260200180612b54602a913960400191505060405180910390fd5b6112f0600260006112c1611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546112ea611e48565b836122f8565b50505b611304600160056000610b9c611e48565b60056000611310611e48565b6001600160a01b03168152602081019190915260400160002055505060015460ff166108df576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b600d5461010090046001600160a01b031681565b60015460009060ff16156113e0576040805162461bcd60e51b815260206004820152601a60248201527f436f6e7472616374206973206e6f74207475726e6564206f6666000000000000604482015290519081900360640190fd5b6000600460006113ee611e48565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611458576040805162461bcd60e51b8152602060048201526014602482015273596f752068617665206e6f206465706f7369747360601b604482015290519081900360640190fd5b61149060026000611467611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546111bd611e48565b50506001805460ff16156108df576040805162461bcd60e51b815260206004820152601960248201527f436f6e74726163742069732072756e6e696e67207374696c6c00000000000000604482015290519081900360640190fd5b60006114f78133611698565b611541576040805162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604482015290519081900360640190fd5b6001600160a01b03821661158f576040805162461bcd60e51b815260206004820152601060248201526f496e76616c696420616464726573732160801b604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b03939093169290921790915590565b6001600160a01b031660009081526002602052604090205490565b60006115da8133611698565b611624576040805162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604482015290519081900360640190fd5b506001805460ff19811660ff9091161517815590565b6000610dd060075461165d60646112396032600a54611ca290919063ffffffff16565b670de0b6b3a7640000029063ffffffff611c6016565b6000828152602081905260408120611691908363ffffffff61249d16565b9392505050565b6000828152602081905260408120611691908363ffffffff6124a916565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108d75780601f106108ac576101008083540402835291602001916108d7565b600e546001600160a01b031681565b600081565b6000610d80611738611e48565b84610e9085604051806060016040528060258152602001612c126025913960036000611762611e48565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61212116565b60056020526000908152604090205481565b6000610d806117b8611e48565b8484611fd5565b60046020526000908152604090205481565b600e546000906001600160a01b0316611829576040805162461bcd60e51b8152602060048201526015602482015274109c9c9c8818dbdb9d1c9858dd081b9bdd081cd95d605a1b604482015290519081900360640190fd5b600e546001600160a01b03166000816370a08231611845611e48565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561188b57600080fd5b505afa15801561189f573d6000803e3d6000fd5b505050506040513d60208110156118b557600080fd5b505190508381101561190e576040805162461bcd60e51b815260206004820152601860248201527f546f6b656e2062616c616e6365206e6f7420656e6f7567680000000000000000604482015290519081900360640190fd5b600061191861163a565b90506000836001600160a01b0316638073cab46040518163ffffffff1660e01b815260040160206040518083038186803b15801561195557600080fd5b505afa158015611969573d6000803e3d6000fd5b505050506040513d602081101561197f57600080fd5b50519050600061199983611239898563ffffffff611ca216565b9050600081116119f0576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682073656e7420666f7220312062727272000000000000604482015290519081900360640190fd5b846001600160a01b03166323b872dd611a07611e48565b604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152306024830152604482018b90525160648083019260209291908290030181600087803b158015611a5b57600080fd5b505af1158015611a6f573d6000803e3d6000fd5b505050506040513d6020811015611a8557600080fd5b5051611aca576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b611ada8760046000610b9c611e48565b60046000611ae6611e48565b6001600160a01b03168152602081019190915260400160002055611b11611b0b611e48565b826124be565b60019550505050505060015460ff16610eb2576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b60015460ff1681565b60075481565b6000818152602081905260408120610d8490612662565b600082815260208190526040902060020154611ba390610ed5611e48565b610f895760405162461bcd60e51b8152600401808060200182810382526030815260200180612abb6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000611691836001600160a01b03841661266d565b600061169183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612121565b600061169183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506126b7565b600082611cb157506000610d84565b82820282848281611cbe57fe5b04146116915760405162461bcd60e51b8152600401808060200182810382526021815260200180612aeb6021913960400191505060405180910390fd5b6000808211611d47576040805162461bcd60e51b815260206004820152601360248201527243616e2774206d696e74203020746f6b656e7360681b604482015290519081900360640190fd5b611d4f610f2c565b600754611d62908463ffffffff611dee16565b10611da8576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74206578636565642063617607c1b604482015290519081900360640190fd5b600754611dbb908363ffffffff611dee16565b60078190556008556040805183815290513091600091600080516020612b7e8339815191529181900360200190a3919050565b600082820183811015611691576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6007548111611eb557611e82816040518060600160405280602b8152602001612be7602b9139600754919063ffffffff61212116565b60078190556008556040805182815290516000913091600080516020612b7e8339815191529181900360200190a3611ee6565b6000600781905560088190556040805183815290513091600080516020612b7e833981519152919081900360200190a35b50565b6001600160a01b038316611f2e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612bc36024913960400191505060405180910390fd5b6001600160a01b038216611f735760405162461bcd60e51b8152600401808060200182810382526022815260200180612a736022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661201a5760405162461bcd60e51b8152600401808060200182810382526025815260200180612b9e6025913960400191505060405180910390fd5b6001600160a01b03821661205f5760405162461bcd60e51b8152600401808060200182810382526023815260200180612a216023913960400191505060405180910390fd5b6120a281604051806060016040528060268152602001612a95602691396001600160a01b038616600090815260026020526040902054919063ffffffff61212116565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546120d7908263ffffffff611dee16565b6001600160a01b038084166000818152600260209081526040918290209490945580518581529051919392871692600080516020612b7e83398151915292918290030190a3505050565b600081848411156121b05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561217557818101518382015260200161215d565b50505050905090810190601f1680156121a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008281526020819052604090206121d6908263ffffffff611c0916565b15610f1f576121e3611e48565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020612245908263ffffffff61271c16565b15610f1f57612252611e48565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000806122a161163a565b90506000600560006122b1611e48565b6001600160a01b03166001600160a01b0316815260200190815260200160002054905060018110156122e1575060015b6122f1828263ffffffff611c6016565b9250505090565b6001600160a01b038216600090815260046020526040812054821115612365576040805162461bcd60e51b815260206004820152601860248201527f4d6f7265207468616e206465706f73697420616d6f756e740000000000000000604482015290519081900360640190fd5b6001600160a01b03831660009081526002602052604090205461238e908563ffffffff611c1e16565b6001600160a01b0384166000908152600260205260409020556007546123ba908563ffffffff611dee16565b6007819055600855600a546123d5908563ffffffff611c1e16565b600a5560408051858152905130916001600160a01b03861691600080516020612b7e8339815191529181900360200190a36001600160a01b03831660009081526004602052604090205461242f908363ffffffff611c1e16565b6001600160a01b03808516600090815260046020526040902091909155600e5461245c9185911684612731565b5060405182906001600160a01b038516907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a35060019392505050565b6000611691838361289e565b6000611691836001600160a01b038416612902565b6001600160a01b038216612519576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600754811115612570576040805162461bcd60e51b815260206004820152601b60248201527f4d6f7265207468616e20746865207265736572766520686f6c64730000000000604482015290519081900360640190fd5b600a54612583908263ffffffff611dee16565b600a55600854612599908263ffffffff611c1e16565b6008556007546125af908263ffffffff611c1e16565b6007556001600160a01b0382166000908152600260205260409020546125db908263ffffffff611dee16565b6001600160a01b0383166000818152600260209081526040808320949094558351858152935192939192600080516020612b7e8339815191529281900390910190a360015460ff16610f1f576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b6000610d848261291a565b60006126798383612902565b6126af57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d84565b506000610d84565b600081836127065760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561217557818101518382015260200161215d565b50600083858161271257fe5b0495945050505050565b6000611691836001600160a01b03841661291e565b604080516370a0823160e01b81523060048201529051600091849184916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561277f57600080fd5b505afa158015612793573d6000803e3d6000fd5b505050506040513d60208110156127a957600080fd5b505110156127fe576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682066756e647320746f207472616e7366657200000000604482015290519081900360640190fd5b806001600160a01b031663a9059cbb86856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561285e57600080fd5b505af1158015612872573d6000803e3d6000fd5b505050506040513d602081101561288857600080fd5b505161289357600080fd5b506001949350505050565b815460009082106128e05760405162461bcd60e51b81526004018080602001828103825260228152602001806129ff6022913960400191505060405180910390fd5b8260000182815481106128ef57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129da578354600019808301919081019060009087908390811061295157fe5b906000526020600020015490508087600001848154811061296e57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061299e57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d84565b6000915050610d84565b60405180604001604052806000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420686173206265656e207475726e6564206f6666000000004d6f7265207468616e20696e20796f75722062616c616e63652c206572726f722077697468206d617468ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a206275726e20616d6f756e742065786365656473205472656173757279205265736572766545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220245127aec693ba51f1ef253e1ad60ca290deb5b86ae3679dbc27505d858099bb64736f6c63430006080033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000df3b985e15281efecf203998200b26f024699f47000000000000000000000000000000000000000000000000000000000000000a425252522e66692033780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064252525233580000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061020f5760003560e01c806370a0823111610118578063a5e05129116100a0578063c2e1500b1161006f578063c2e1500b14610783578063c3d46f7014610798578063ca15c873146107ad578063d547741f146107d7578063dd62ed3e146108105761020f565b8063a5e05129146106ba578063a9059cbb146106ed578063bb3cb7c214610726578063c18bd8ee146107595761020f565b806391d14854116100e757806391d148541461060957806395d89b411461064257806396a67d2514610657578063a217fddf1461066c578063a457c2d7146106815761020f565b806370a082311461057c5780637927d21c146105af5780638073cab4146105c45780639010d07c146105d95761020f565b80632f2ff15d1161019b578063395093511161016a57806339509351146104b55780635cca6084146104ee5780635efc071a146105035780636343e137146105345780636acb436f146105495761020f565b80632f2ff15d14610401578063313ce5671461043c578063355274ea1461046757806336568abe1461047c5761020f565b80630cadb5e3116101e25780630cadb5e31461032757806318160ddd1461033c5780631def1ede1461035157806323b872dd14610394578063248a9ca3146103d75761020f565b806306fdde031461021457806309500c171461029e578063095ea7b3146102c5578063099e7f6c14610312575b600080fd5b34801561022057600080fd5b5061022961084b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026357818101518382015260200161024b565b50505050905090810190601f1680156102905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102aa57600080fd5b506102b36108e2565b60408051918252519081900360200190f35b3480156102d157600080fd5b506102fe600480360360408110156102e857600080fd5b506001600160a01b038135169060200135610d6c565b604080519115158252519081900360200190f35b34801561031e57600080fd5b506102b3610d8a565b34801561033357600080fd5b506102b3610d90565b34801561034857600080fd5b506102b3610db7565b34801561035d57600080fd5b5061037b6004803603602081101561037457600080fd5b5035610dd5565b6040805192835260208301919091528051918290030190f35b3480156103a057600080fd5b506102fe600480360360608110156103b757600080fd5b506001600160a01b03813581169160208101359091169060400135610e00565b3480156103e357600080fd5b506102b3600480360360208110156103fa57600080fd5b5035610e9f565b34801561040d57600080fd5b5061043a6004803603604081101561042457600080fd5b50803590602001356001600160a01b0316610eb7565b005b34801561044857600080fd5b50610451610f23565b6040805160ff9092168252519081900360200190f35b34801561047357600080fd5b506102b3610f2c565b34801561048857600080fd5b5061043a6004803603604081101561049f57600080fd5b50803590602001356001600160a01b0316610f32565b3480156104c157600080fd5b506102fe600480360360408110156104d857600080fd5b506001600160a01b038135169060200135610f93565b3480156104fa57600080fd5b506102fe610fe7565b34801561050f57600080fd5b50610518611371565b604080516001600160a01b039092168252519081900360200190f35b34801561054057600080fd5b506102fe611385565b34801561055557600080fd5b506102fe6004803603602081101561056c57600080fd5b50356001600160a01b03166114eb565b34801561058857600080fd5b506102b36004803603602081101561059f57600080fd5b50356001600160a01b03166115b3565b3480156105bb57600080fd5b506102fe6115ce565b3480156105d057600080fd5b506102b361163a565b3480156105e557600080fd5b50610518600480360360408110156105fc57600080fd5b5080359060200135611673565b34801561061557600080fd5b506102fe6004803603604081101561062c57600080fd5b50803590602001356001600160a01b0316611698565b34801561064e57600080fd5b506102296116b6565b34801561066357600080fd5b50610518611717565b34801561067857600080fd5b506102b3611726565b34801561068d57600080fd5b506102fe600480360360408110156106a457600080fd5b506001600160a01b03813516906020013561172b565b3480156106c657600080fd5b506102b3600480360360208110156106dd57600080fd5b50356001600160a01b0316611799565b3480156106f957600080fd5b506102fe6004803603604081101561071057600080fd5b506001600160a01b0381351690602001356117ab565b34801561073257600080fd5b506102b36004803603602081101561074957600080fd5b50356001600160a01b03166117bf565b34801561076557600080fd5b506102fe6004803603602081101561077c57600080fd5b50356117d1565b34801561078f57600080fd5b506102fe611b5f565b3480156107a457600080fd5b506102b3611b68565b3480156107b957600080fd5b506102b3600480360360208110156107d057600080fd5b5035611b6e565b3480156107e357600080fd5b5061043a600480360360408110156107fa57600080fd5b50803590602001356001600160a01b0316611b85565b34801561081c57600080fd5b506102b36004803603604081101561083357600080fd5b506001600160a01b0381358116916020013516611bde565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108d75780601f106108ac576101008083540402835291602001916108d7565b820191906000526020600020905b8154815290600101906020018083116108ba57829003601f168201915b505050505090505b90565b60068054600091906108fb90600163ffffffff611c1e16565b8154811061090557fe5b906000526020600020906002020160000154421161095d576040805162461bcd60e51b815260206004820152601060248201526f416c726561647920636865636b65642160801b604482015290519081900360640190fd5b600680546000919061097690600163ffffffff611c1e16565b8154811061098057fe5b6000918252602082206002909102015460068054919350906109a990600163ffffffff611c1e16565b815481106109b357fe5b906000526020600020906002020160010154905060006001809054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1657600080fd5b505afa158015610a2a573d6000803e3d6000fd5b505050506040513d6020811015610a4057600080fd5b5051905081811415610a99576040805162461bcd60e51b815260206004820152601960248201527f54686520737570706c79206861736e2774206368616e67656400000000000000604482015290519081900360640190fd5b81811015610c3457610aa96129e4565b5060408051808201909152428152602081018281526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029092029182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610b2b8383611c1e565b64e8d4a510000291506000610b48836103e863ffffffff611c6016565b9050610b5a838263ffffffff611c1e16565b9250610b75610b7084600363ffffffff611ca216565b611cfb565b50600a54610b89908263ffffffff611dee16565b600a55610bc28160026000610b9c611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611dee16565b60026000610bce611e48565b6001600160a01b03168152602081019190915260400160002055610bf0611e48565b6001600160a01b0316306001600160a01b0316600080516020612b7e833981519152836040518082815260200191505060405180910390a39450610d279350505050565b81811115610d2357610c446129e4565b5060408051808201909152428152602081018281526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029092029182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610cc68284611c1e565b64e8d4a510000291506000610ce3836103e863ffffffff611c6016565b9050610cf5838263ffffffff611c1e16565b9250610d10610d0b84600363ffffffff611ca216565b611e4c565b600a54610b89908263ffffffff611dee16565b5050505b60015460ff166108df576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b6000610d80610d79611e48565b8484611ee9565b5060015b92915050565b60095481565b604080516e2327aaa72224a723afa320aa2422a960891b8152905190819003600f01902081565b6000610dd0600754600a54611dee90919063ffffffff16565b905090565b60068181548110610de257fe5b60009182526020909120600290910201805460019091015490915082565b6000610e0d848484611fd5565b600e546001600160a01b03163314610e9557610e9584610e2b611e48565b610e9085604051806060016040528060288152602001612b0c602891396001600160a01b038a16600090815260036020526040812090610e69611e48565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61212116565b611ee9565b5060019392505050565b6000818152602081905260409020600201545b919050565b600082815260208190526040902060020154610eda90610ed5611e48565b611698565b610f155760405162461bcd60e51b815260040180806020018281038252602f815260200180612a44602f913960400191505060405180910390fd5b610f1f82826121b8565b5050565b600d5460ff1690565b60095490565b610f3a611e48565b6001600160a01b0316816001600160a01b031614610f895760405162461bcd60e51b815260040180806020018281038252602f815260200180612c37602f913960400191505060405180910390fd5b610f1f8282612227565b6000610d80610fa0611e48565b84610e908560036000610fb1611e48565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611dee16565b600e546000906001600160a01b031661103f576040805162461bcd60e51b8152602060048201526015602482015274109c9c9c8818dbdb9d1c9858dd081b9bdd081cd95d605a1b604482015290519081900360640190fd5b6004600061104b611e48565b6001600160a01b031681526020810191909152604001600020546110ad576040805162461bcd60e51b8152602060048201526014602482015273596f752068617665206e6f206465706f7369747360601b604482015290519081900360640190fd5b6000600260006110bb611e48565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611120576040805162461bcd60e51b815260206004820152600f60248201526e4e6f20627272722062616c616e636560881b604482015290519081900360640190fd5b600061112a612296565b9050600061117c670de0b6b3a7640000611170846004600061114a611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611c6016565b9063ffffffff611ca216565b9050806002600061118b611e48565b6001600160a01b03166001600160a01b0316815260200190815260200160002054106111f5576111ef816111bd611e48565b600460006111c9611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546122f8565b506112f3565b6000611245670de0b6b3a76400006112398560026000611213611e48565b6001600160a01b031681526020810191909152604001600020549063ffffffff611ca216565b9063ffffffff611c6016565b905060026000611253611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020548111156112b25760405162461bcd60e51b815260040180806020018281038252602a815260200180612b54602a913960400191505060405180910390fd5b6112f0600260006112c1611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546112ea611e48565b836122f8565b50505b611304600160056000610b9c611e48565b60056000611310611e48565b6001600160a01b03168152602081019190915260400160002055505060015460ff166108df576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b600d5461010090046001600160a01b031681565b60015460009060ff16156113e0576040805162461bcd60e51b815260206004820152601a60248201527f436f6e7472616374206973206e6f74207475726e6564206f6666000000000000604482015290519081900360640190fd5b6000600460006113ee611e48565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611458576040805162461bcd60e51b8152602060048201526014602482015273596f752068617665206e6f206465706f7369747360601b604482015290519081900360640190fd5b61149060026000611467611e48565b6001600160a01b03166001600160a01b03168152602001908152602001600020546111bd611e48565b50506001805460ff16156108df576040805162461bcd60e51b815260206004820152601960248201527f436f6e74726163742069732072756e6e696e67207374696c6c00000000000000604482015290519081900360640190fd5b60006114f78133611698565b611541576040805162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604482015290519081900360640190fd5b6001600160a01b03821661158f576040805162461bcd60e51b815260206004820152601060248201526f496e76616c696420616464726573732160801b604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b03939093169290921790915590565b6001600160a01b031660009081526002602052604090205490565b60006115da8133611698565b611624576040805162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604482015290519081900360640190fd5b506001805460ff19811660ff9091161517815590565b6000610dd060075461165d60646112396032600a54611ca290919063ffffffff16565b670de0b6b3a7640000029063ffffffff611c6016565b6000828152602081905260408120611691908363ffffffff61249d16565b9392505050565b6000828152602081905260408120611691908363ffffffff6124a916565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108d75780601f106108ac576101008083540402835291602001916108d7565b600e546001600160a01b031681565b600081565b6000610d80611738611e48565b84610e9085604051806060016040528060258152602001612c126025913960036000611762611e48565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61212116565b60056020526000908152604090205481565b6000610d806117b8611e48565b8484611fd5565b60046020526000908152604090205481565b600e546000906001600160a01b0316611829576040805162461bcd60e51b8152602060048201526015602482015274109c9c9c8818dbdb9d1c9858dd081b9bdd081cd95d605a1b604482015290519081900360640190fd5b600e546001600160a01b03166000816370a08231611845611e48565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561188b57600080fd5b505afa15801561189f573d6000803e3d6000fd5b505050506040513d60208110156118b557600080fd5b505190508381101561190e576040805162461bcd60e51b815260206004820152601860248201527f546f6b656e2062616c616e6365206e6f7420656e6f7567680000000000000000604482015290519081900360640190fd5b600061191861163a565b90506000836001600160a01b0316638073cab46040518163ffffffff1660e01b815260040160206040518083038186803b15801561195557600080fd5b505afa158015611969573d6000803e3d6000fd5b505050506040513d602081101561197f57600080fd5b50519050600061199983611239898563ffffffff611ca216565b9050600081116119f0576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682073656e7420666f7220312062727272000000000000604482015290519081900360640190fd5b846001600160a01b03166323b872dd611a07611e48565b604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152306024830152604482018b90525160648083019260209291908290030181600087803b158015611a5b57600080fd5b505af1158015611a6f573d6000803e3d6000fd5b505050506040513d6020811015611a8557600080fd5b5051611aca576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b611ada8760046000610b9c611e48565b60046000611ae6611e48565b6001600160a01b03168152602081019190915260400160002055611b11611b0b611e48565b826124be565b60019550505050505060015460ff16610eb2576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b60015460ff1681565b60075481565b6000818152602081905260408120610d8490612662565b600082815260208190526040902060020154611ba390610ed5611e48565b610f895760405162461bcd60e51b8152600401808060200182810382526030815260200180612abb6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000611691836001600160a01b03841661266d565b600061169183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612121565b600061169183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506126b7565b600082611cb157506000610d84565b82820282848281611cbe57fe5b04146116915760405162461bcd60e51b8152600401808060200182810382526021815260200180612aeb6021913960400191505060405180910390fd5b6000808211611d47576040805162461bcd60e51b815260206004820152601360248201527243616e2774206d696e74203020746f6b656e7360681b604482015290519081900360640190fd5b611d4f610f2c565b600754611d62908463ffffffff611dee16565b10611da8576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74206578636565642063617607c1b604482015290519081900360640190fd5b600754611dbb908363ffffffff611dee16565b60078190556008556040805183815290513091600091600080516020612b7e8339815191529181900360200190a3919050565b600082820183811015611691576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6007548111611eb557611e82816040518060600160405280602b8152602001612be7602b9139600754919063ffffffff61212116565b60078190556008556040805182815290516000913091600080516020612b7e8339815191529181900360200190a3611ee6565b6000600781905560088190556040805183815290513091600080516020612b7e833981519152919081900360200190a35b50565b6001600160a01b038316611f2e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612bc36024913960400191505060405180910390fd5b6001600160a01b038216611f735760405162461bcd60e51b8152600401808060200182810382526022815260200180612a736022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661201a5760405162461bcd60e51b8152600401808060200182810382526025815260200180612b9e6025913960400191505060405180910390fd5b6001600160a01b03821661205f5760405162461bcd60e51b8152600401808060200182810382526023815260200180612a216023913960400191505060405180910390fd5b6120a281604051806060016040528060268152602001612a95602691396001600160a01b038616600090815260026020526040902054919063ffffffff61212116565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546120d7908263ffffffff611dee16565b6001600160a01b038084166000818152600260209081526040918290209490945580518581529051919392871692600080516020612b7e83398151915292918290030190a3505050565b600081848411156121b05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561217557818101518382015260200161215d565b50505050905090810190601f1680156121a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008281526020819052604090206121d6908263ffffffff611c0916565b15610f1f576121e3611e48565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020612245908263ffffffff61271c16565b15610f1f57612252611e48565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000806122a161163a565b90506000600560006122b1611e48565b6001600160a01b03166001600160a01b0316815260200190815260200160002054905060018110156122e1575060015b6122f1828263ffffffff611c6016565b9250505090565b6001600160a01b038216600090815260046020526040812054821115612365576040805162461bcd60e51b815260206004820152601860248201527f4d6f7265207468616e206465706f73697420616d6f756e740000000000000000604482015290519081900360640190fd5b6001600160a01b03831660009081526002602052604090205461238e908563ffffffff611c1e16565b6001600160a01b0384166000908152600260205260409020556007546123ba908563ffffffff611dee16565b6007819055600855600a546123d5908563ffffffff611c1e16565b600a5560408051858152905130916001600160a01b03861691600080516020612b7e8339815191529181900360200190a36001600160a01b03831660009081526004602052604090205461242f908363ffffffff611c1e16565b6001600160a01b03808516600090815260046020526040902091909155600e5461245c9185911684612731565b5060405182906001600160a01b038516907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a35060019392505050565b6000611691838361289e565b6000611691836001600160a01b038416612902565b6001600160a01b038216612519576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600754811115612570576040805162461bcd60e51b815260206004820152601b60248201527f4d6f7265207468616e20746865207265736572766520686f6c64730000000000604482015290519081900360640190fd5b600a54612583908263ffffffff611dee16565b600a55600854612599908263ffffffff611c1e16565b6008556007546125af908263ffffffff611c1e16565b6007556001600160a01b0382166000908152600260205260409020546125db908263ffffffff611dee16565b6001600160a01b0383166000818152600260209081526040808320949094558351858152935192939192600080516020612b7e8339815191529281900390910190a360015460ff16610f1f576040805162461bcd60e51b815260206004820152601c6024820152600080516020612b34833981519152604482015290519081900360640190fd5b6000610d848261291a565b60006126798383612902565b6126af57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d84565b506000610d84565b600081836127065760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561217557818101518382015260200161215d565b50600083858161271257fe5b0495945050505050565b6000611691836001600160a01b03841661291e565b604080516370a0823160e01b81523060048201529051600091849184916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561277f57600080fd5b505afa158015612793573d6000803e3d6000fd5b505050506040513d60208110156127a957600080fd5b505110156127fe576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682066756e647320746f207472616e7366657200000000604482015290519081900360640190fd5b806001600160a01b031663a9059cbb86856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561285e57600080fd5b505af1158015612872573d6000803e3d6000fd5b505050506040513d602081101561288857600080fd5b505161289357600080fd5b506001949350505050565b815460009082106128e05760405162461bcd60e51b81526004018080602001828103825260228152602001806129ff6022913960400191505060405180910390fd5b8260000182815481106128ef57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129da578354600019808301919081019060009087908390811061295157fe5b906000526020600020015490508087600001848154811061296e57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061299e57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d84565b6000915050610d84565b60405180604001604052806000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420686173206265656e207475726e6564206f6666000000004d6f7265207468616e20696e20796f75722062616c616e63652c206572726f722077697468206d617468ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a206275726e20616d6f756e742065786365656473205472656173757279205265736572766545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220245127aec693ba51f1ef253e1ad60ca290deb5b86ae3679dbc27505d858099bb64736f6c63430006080033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000df3b985e15281efecf203998200b26f024699f47000000000000000000000000000000000000000000000000000000000000000a425252522e66692033780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064252525233580000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): BRRR.fi 3x
Arg [1] : symbol (string): BRRR3X
Arg [2] : _brrr (address): 0xdF3b985E15281EfecF203998200b26F024699F47
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000df3b985e15281efecf203998200b26f024699f47
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 425252522e666920337800000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 4252525233580000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
482:18592:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;2845:83:5;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2845:83:5;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2845:83:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16452:1637;;5:9:-1;2:2;;;27:1;24;17:12;2:2;16452:1637:5;;;:::i;:::-;;;;;;;;;;;;;;;;5069:210;;5:9:-1;2:2;;;27:1;24;17:12;2:2;5069:210:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;5069:210:5;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1306:51;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1306:51:5;;;:::i;859:70::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;859:70:5;;;:::i;3920:127::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3920:127:5;;;:::i;1188:39::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1188:39:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1188:39:5;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5753:532;;5:9:-1;2:2;;;27:1;24;17:12;2:2;5753:532:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;5753:532:5;;;;;;;;;;;;;;;;;:::i;4506:114:0:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4506:114:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4506:114:0;;:::i;4882:264::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4882:264:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4882:264:0;;;;;;-1:-1:-1;;;;;4882:264:0;;:::i;:::-;;3772:83:5;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3772:83:5;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13223:79;;5:9:-1;2:2;;;27:1;24;17:12;2:2;13223:79:5;;;:::i;6165:246:0:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;6165:246:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;6165:246:0;;;;;;-1:-1:-1;;;;;6165:246:0;;:::i;6694:300:5:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;6694:300:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;6694:300:5;;;;;;;;:::i;15310:940::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;15310:940:5;;;:::i;1495:66::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1495:66:5;;;:::i;:::-;;;;-1:-1:-1;;;;;1495:66:5;;;;;;;;;;;;;;18097:368;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18097:368:5;;;:::i;18707:301::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18707:301:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18707:301:5;-1:-1:-1;;;;;18707:301:5;;:::i;4110:119::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4110:119:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4110:119:5;-1:-1:-1;;;;;4110:119:5;;:::i;18473:226::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18473:226:5;;;:::i;14329:184::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14329:184:5;;;:::i;4147:170:0:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4147:170:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4147:170:0;;;;;;;:::i;3108:139::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3108:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;3108:139:0;;;;;;-1:-1:-1;;;;;3108:139:0;;:::i;3047:87:5:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3047:87:5;;;:::i;1568:19::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1568:19:5;;;:::i;1751:49:0:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1751:49:0;;;:::i;7497:400:5:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;7497:400:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;7497:400:5;;;;;;;;:::i;1126:53::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1126:53:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1126:53:5;-1:-1:-1;;;;;1126:53:5;;:::i;4442:216::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4442:216:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;4442:216:5;;;;;;;;:::i;1068:49::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1068:49:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1068:49:5;-1:-1:-1;;;;;1068:49:5;;:::i;14521:781::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14521:781:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;14521:781:5;;:::i;539:25::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;539:25:5;;;:::i;1234:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1234:30:5;;;:::i;3421:127:0:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3421:127:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;3421:127:0;;:::i;5391:267::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;5391:267:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5391:267:0;;;;;;-1:-1:-1;;;;;5391:267:0;;:::i;4721:201:5:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4721:201:5;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;4721:201:5;;;;;;;;;;:::i;2845:83::-;2915:5;2908:12;;;;;;;;-1:-1:-1;;2908:12:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2882:13;;2908:12;;2915:5;;2908:12;;2915:5;2908:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2845:83;;:::o;16452:1637::-;16575:18:::1;16594:25:::0;;16498:7;;16575:18;16594:32:::1;::::0;16624:1:::1;16594:32;:29;:32;:::i;:::-;16575:52;;;;;;;;;;;;;;;;;;:86;;;16540:15;:121;16518:187;;;::::0;;-1:-1:-1;;;16518:187:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;16518:187:5;;;;;;;;;;;;;::::1;;16728:18;16747:25:::0;;16716:9:::1;::::0;16728:18;16747:32:::1;::::0;16777:1:::1;16747:32;:29;:32;:::i;:::-;16728:52;;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;;::::1;;:78:::0;16829:18:::1;16848:25:::0;;16728:78;;-1:-1:-1;16829:18:5;16848:32:::1;::::0;16878:1:::1;16848:32;:29;:32;:::i;:::-;16829:52;;;;;;;;;;;;;;;;;;:79;;;16817:91;;16919:9;16931:6;::::0;::::1;;;;;;;-1:-1:-1::0;;;;;16931:6:5::1;-1:-1:-1::0;;;;;16931:18:5::1;;:20;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;16931:20:5;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;16931:20:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;16931:20:5;;-1:-1:-1;16970:6:5;;::::1;;16962:44;;;::::0;;-1:-1:-1;;;16962:44:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;17025:1;17021;:5;17017:533;;;17043:21;;:::i;:::-;-1:-1:-1::0;17067:31:5::1;::::0;;;;::::1;::::0;;;17079:15:::1;17067:31:::0;;::::1;::::0;::::1;::::0;;;17113:18:::1;27:10:-1::0;;39:1:::1;23:18:::0;::::1;45:23:::0;;-1:-1;17113:27:5;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;17160:8:::1;:1:::0;17067:31;17160:5:::1;:8::i;:::-;17172:6;17159:19;::::0;-1:-1:-1;17193:14:5::1;17210:11;17159:19:::0;17216:4:::1;17210:11;:5;:11;:::i;:::-;17193:28:::0;-1:-1:-1;17240:13:5::1;:1:::0;17193:28;17240:13:::1;:5;:13;:::i;:::-;17236:17:::0;-1:-1:-1;17268:26:5::1;17285:8;17236:17:::0;17291:1:::1;17285:8;:5;:8;:::i;:::-;17268:16;:26::i;:::-;-1:-1:-1::0;17330:18:5::1;::::0;:30:::1;::::0;17353:6;17330:30:::1;:22;:30;:::i;:::-;17309:18;:51:::0;17401:35:::1;17429:6:::0;17401:9:::1;:23;17411:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;17401:23:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;17401:23:5;;;:35:::1;:27;:35;:::i;:::-;17375:9;:23;17385:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;17375:23:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;17375:23:5;:61;17488:12:::1;:10;:12::i;:::-;-1:-1:-1::0;;;;;17456:54:5::1;17473:4;-1:-1:-1::0;;;;;17456:54:5::1;-1:-1:-1::0;;;;;;;;;;;17503:6:5::1;17456:54;;;;;;;;;;;;;;;;;;17532:6:::0;-1:-1:-1;17525:13:5::1;::::0;-1:-1:-1;;;;17525:13:5::1;17017:533;17568:1;17564;:5;17560:522;;;17586:21;;:::i;:::-;-1:-1:-1::0;17610:31:5::1;::::0;;;;::::1;::::0;;;17622:15:::1;17610:31:::0;;::::1;::::0;::::1;::::0;;;17656:18:::1;27:10:-1::0;;39:1:::1;23:18:::0;::::1;45:23:::0;;-1:-1;17656:27:5;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;17703:8:::1;17610:31:::0;17709:1;17703:5:::1;:8::i;:::-;17715:6;17702:19;::::0;-1:-1:-1;17736:14:5::1;17753:11;17702:19:::0;17759:4:::1;17753:11;:5;:11;:::i;:::-;17736:28:::0;-1:-1:-1;17783:13:5::1;:1:::0;17736:28;17783:13:::1;:5;:13;:::i;:::-;17779:17:::0;-1:-1:-1;17811:15:5::1;17817:8;17779:17:::0;17823:1:::1;17817:8;:5;:8;:::i;:::-;17811:5;:15::i;:::-;17862:18;::::0;:30:::1;::::0;17885:6;17862:30:::1;:22;:30;:::i;17560:522::-;701:1;;;;721:6:::0;;;;713:47;;;;;-1:-1:-1;;;713:47:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;713:47:5;;;;;;;;;;;;;;5069:210;5188:4;5210:39;5219:12;:10;:12::i;:::-;5233:7;5242:6;5210:8;:39::i;:::-;-1:-1:-1;5267:4:5;5069:210;;;;;:::o;1306:51::-;;;;:::o;859:70::-;901:28;;;-1:-1:-1;;;901:28:5;;;;;;;;;;;;859:70;:::o;3920:127::-;3973:7;4000:39;4023:15;;4000:18;;:22;;:39;;;;:::i;:::-;3993:46;;3920:127;:::o;1188:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1188:39:5;:::o;5753:532::-;5893:4;5910:36;5920:6;5928:9;5939:6;5910:9;:36::i;:::-;5975:4;;-1:-1:-1;;;;;5975:4:5;5961:10;:18;5957:299;;5996:248;6023:6;6048:12;:10;:12::i;:::-;6079:150;6139:6;6079:150;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6079:19:5;;;;;;:11;:19;;;;;;6099:12;:10;:12::i;:::-;-1:-1:-1;;;;;6079:33:5;;;;;;;;;;;;-1:-1:-1;6079:33:5;;;:150;;:37;:150;:::i;:::-;5996:8;:248::i;:::-;-1:-1:-1;6273:4:5;5753:532;;;;;:::o;4506:114:0:-;4563:7;4590:12;;;;;;;;;;:22;;;4506:114;;;;:::o;4882:264::-;4988:6;:12;;;;;;;;;;:22;;;4980:45;;5012:12;:10;:12::i;:::-;4980:7;:45::i;:::-;4958:142;;;;-1:-1:-1;;;4958:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5113:25;5124:4;5130:7;5113:10;:25::i;:::-;4882:264;;:::o;3772:83:5:-;3838:9;;;;3772:83;:::o;13223:79::-;13286:8;;13223:79;:::o;6165:246:0:-;6277:12;:10;:12::i;:::-;-1:-1:-1;;;;;6266:23:0;:7;-1:-1:-1;;;;;6266:23:0;;6244:120;;;;-1:-1:-1;;;6244:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6377:26;6389:4;6395:7;6377:11;:26::i;6694:300:5:-;6809:4;6831:133;6854:12;:10;:12::i;:::-;6881:7;6903:50;6942:10;6903:11;:25;6915:12;:10;:12::i;:::-;-1:-1:-1;;;;;6903:25:5;;;;;;;;;;;;;;;;;-1:-1:-1;6903:25:5;;;:34;;;;;;;;;;;:50;:38;:50;:::i;15310:940::-;15389:4:::1;::::0;15364;;-1:-1:-1;;;;;15389:4:5::1;15381:54;;;::::0;;-1:-1:-1;;;15381:54:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15381:54:5;;;;;;;;;;;;;::::1;;15454:14;:28;15469:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15454:28:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;15454:28:5;;15446:66:::1;;;::::0;;-1:-1:-1;;;15446:66:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15446:66:5;;;;;;;;;;;;;::::1;;15557:1;15531:9;:23;15541:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15531:23:5::1;-1:-1:-1::0;;;;;15531:23:5::1;;;;;;;;;;;;;:27;15523:55;;;::::0;;-1:-1:-1;;;15523:55:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15523:55:5;;;;;;;;;;;;;::::1;;15589:9;15601:26;:24;:26::i;:::-;15589:38;;15638:10;15651:47;15691:6;15651:35;15684:1;15651:14;:28;15666:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15651:28:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;15651:28:5;;;:35:::1;:32;:35;:::i;:::-;:39:::0;:47:::1;:39;:47;:::i;:::-;15638:60;;15740:2;15713:9;:23;15723:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15713:23:5::1;-1:-1:-1::0;;;;;15713:23:5::1;;;;;;;;;;;;;:29;15709:425;;15759:60;15772:2;15776:12;:10;:12::i;:::-;15790:14;:28;15805:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15790:28:5::1;-1:-1:-1::0;;;;;15790:28:5::1;;;;;;;;;;;;;15759:12;:60::i;:::-;;15709:425;;;15852:9;15864:42;15899:6;15864:30;15892:1;15864:9;:23;15874:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15864:23:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;15864:23:5;;;:30:::1;:27;:30;:::i;:::-;:34:::0;:42:::1;:34;:42;:::i;:::-;15852:54;;15952:9;:23;15962:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15952:23:5::1;-1:-1:-1::0;;;;;15952:23:5::1;;;;;;;;;;;;;15947:1;:28;;15921:132;;;;-1:-1:-1::0;;;15921:132:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16068:54;16081:9;:23;16091:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;16081:23:5::1;-1:-1:-1::0;;;;;16081:23:5::1;;;;;;;;;;;;;16106:12;:10;:12::i;:::-;16120:1;16068:12;:54::i;:::-;;15709:425;;16179:63;16230:1;16179:18;:32;16198:12;:10;:12::i;16179:63::-;16144:18;:32;16163:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;16144:32:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;16144:32:5;:98;-1:-1:-1;;721:6:5;;;;713:47;;;;;-1:-1:-1;;;713:47:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;713:47:5;;;;;;;;;;;;;;1495:66;;;;;;-1:-1:-1;;;;;1495:66:5;;:::o;18097:368::-;18180:6:::1;::::0;18154:4;;18180:6:::1;;18179:7;18171:46;;;::::0;;-1:-1:-1;;;18171:46:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;18267:1;18236:14;:28;18251:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;18236:28:5::1;-1:-1:-1::0;;;;;18236:28:5::1;;;;;;;;;;;;;:32;18228:65;;;::::0;;-1:-1:-1;;;18228:65:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;18228:65:5;;;;;;;;;;;;;::::1;;18304:131;18331:9;:23;18341:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;18331:23:5::1;-1:-1:-1::0;;;;;18331:23:5::1;;;;;;;;;;;;;18369:12;:10;:12::i;18304:131::-;-1:-1:-1::0;;18453:4:5::1;622:6:::0;;;;621:7;613:45;;;;;-1:-1:-1;;;613:45:5;;;;;;;;;;;;;;;;;;;;;;;;;;;18707:301;18770:4;18809:39;18770:4;18837:10;18809:7;:39::i;:::-;18787:111;;;;;-1:-1:-1;;;18787:111:5;;;;;;;;;;;;-1:-1:-1;;;18787:111:5;;;;;;;;;;;;;;;-1:-1:-1;;;;;18919:29:5;;18911:58;;;;;-1:-1:-1;;;18911:58:5;;;;;;;;;;;;-1:-1:-1;;;18911:58:5;;;;;;;;;;;;;;;18980:4;:20;;-1:-1:-1;;;;;;18980:20:5;-1:-1:-1;;;;;18980:20:5;;;;;;;;;;;;18707:301::o;4110:119::-;-1:-1:-1;;;;;4203:18:5;4176:7;4203:18;;;:9;:18;;;;;;;4110:119::o;18473:226::-;18514:4;18553:39;18514:4;18581:10;18553:7;:39::i;:::-;18531:111;;;;;-1:-1:-1;;;18531:111:5;;;;;;;;;;;;-1:-1:-1;;;18531:111:5;;;;;;;;;;;;;;;-1:-1:-1;18663:6:5;;;-1:-1:-1;;18653:16:5;;18663:6;;;;18662:7;18653:16;;;18473:226;:::o;14329:184::-;14385:7;14427:67;14478:15;;14428:35;14459:3;14428:26;14451:2;14428:18;;:22;;:26;;;;:::i;:35::-;14466:6;14428:44;;14427:67;:50;:67;:::i;4147:170:0:-;4247:7;4279:12;;;;;;;;;;:30;;4303:5;4279:30;:23;:30;:::i;:::-;4272:37;4147:170;-1:-1:-1;;;4147:170:0:o;3108:139::-;3177:4;3201:12;;;;;;;;;;:38;;3231:7;3201:38;:29;:38;:::i;3047:87:5:-;3119:7;3112:14;;;;;;;;-1:-1:-1;;3112:14:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3086:13;;3112:14;;3119:7;;3112:14;;3119:7;3112:14;;;;;;;;;;;;;;;;;;;;;;;;1568:19;;;-1:-1:-1;;;;;1568:19:5;;:::o;1751:49:0:-;1796:4;1751:49;:::o;7497:400:5:-;7617:4;7639:228;7662:12;:10;:12::i;:::-;7689:7;7711:145;7768:15;7711:145;;;;;;;;;;;;;;;;;:11;:25;7723:12;:10;:12::i;:::-;-1:-1:-1;;;;;7711:25:5;;;;;;;;;;;;;;;;;-1:-1:-1;7711:25:5;;;:34;;;;;;;;;;;:145;;:38;:145;:::i;1126:53::-;;;;;;;;;;;;;:::o;4442:216::-;4564:4;4586:42;4596:12;:10;:12::i;:::-;4610:9;4621:6;4586:9;:42::i;1068:49::-;;;;;;;;;;;;;:::o;14521:781::-;14611:4:::1;::::0;14586;;-1:-1:-1;;;;;14611:4:5::1;14603:54;;;::::0;;-1:-1:-1;;;14603:54:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14603:54:5;;;;;;;;;;;;;::::1;;14702:4;::::0;-1:-1:-1;;;;;14702:4:5::1;14668:10;14702:4:::0;14731:13:::1;14745:12;:10;:12::i;:::-;14731:27;;;;;;;;;;;;;-1:-1:-1::0;;;;;14731:27:5::1;-1:-1:-1::0;;;;;14731:27:5::1;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;14731:27:5;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;14731:27:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;14731:27:5;;-1:-1:-1;14777:13:5;;::::1;;14769:50;;;::::0;;-1:-1:-1;;;14769:50:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;14830:9;14842:16;:14;:16::i;:::-;14830:28;;14869:10;14882:3;-1:-1:-1::0;;;;;14882:18:5::1;;:20;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;14882:20:5;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;14882:20:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;14882:20:5;;-1:-1:-1;14913:9:5::1;14925:22;14945:1:::0;14925:15:::1;:7:::0;14882:20;14925:15:::1;:11;:15;:::i;:22::-;14913:34;;14970:1;14966;:5;14958:44;;;::::0;;-1:-1:-1;;;14958:44:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;15035:3;-1:-1:-1::0;;;;;15035:16:5::1;;15052:12;:10;:12::i;:::-;15035:54;::::0;;-1:-1:-1;;;;;;15035:54:5::1;::::0;;;;;;-1:-1:-1;;;;;15035:54:5;;::::1;;::::0;::::1;::::0;15074:4:::1;15035:54:::0;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;;-1:-1:-1;15035:54:5;;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;15035:54:5;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;15035:54:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;15035:54:5;15013:119:::1;;;::::0;;-1:-1:-1;;;15013:119:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15013:119:5;;;;;;;;;;;;;::::1;;15174:65;15221:7;15174:14;:28;15189:12;:10;:12::i;15174:65::-;15143:14;:28;15158:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;15143:28:5::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;15143:28:5;:96;15250:22:::1;15256:12;:10;:12::i;:::-;15270:1;15250:5;:22::i;:::-;15290:4;15283:11;;;;;;;721:6:::0;;;;713:47;;;;;-1:-1:-1;;;713:47:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;713:47:5;;;;;;;;;;;;;;539:25;;;;;;:::o;1234:30::-;;;;:::o;3421:127:0:-;3484:7;3511:12;;;;;;;;;;:29;;:27;:29::i;5391:267::-;5498:6;:12;;;;;;;;;;:22;;;5490:45;;5522:12;:10;:12::i;5490:45::-;5468:143;;;;-1:-1:-1;;;5468:143:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4721:201:5;-1:-1:-1;;;;;4887:18:5;;;4855:7;4887:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;4721:201::o;5131:166:7:-;5219:4;5248:41;5253:3;-1:-1:-1;;;;;5273:14:7;;5248:4;:41::i;1366:136:10:-;1424:7;1451:43;1455:1;1458;1451:43;;;;;;;;;;;;;;;;;:3;:43::i;3237:132::-;3295:7;3322:39;3326:1;3329;3322:39;;;;;;;;;;;;;;;;;:3;:39::i;2290:471::-;2348:7;2593:6;2589:47;;-1:-1:-1;2623:1:10;2616:8;;2589:47;2660:5;;;2664:1;2660;:5;:1;2684:5;;;;;:10;2676:56;;;;-1:-1:-1;;;2676:56:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9105:359:5;9165:4;9199:1;9190:6;:10;9182:42;;;;;-1:-1:-1;;;9182:42:5;;;;;;;;;;;;-1:-1:-1;;;9182:42:5;;;;;;;;;;;;;;;9273:5;:3;:5::i;:::-;9243:15;;:27;;9263:6;9243:27;:19;:27;:::i;:::-;:35;9235:65;;;;;-1:-1:-1;;;9235:65:5;;;;;;;;;;;;-1:-1:-1;;;9235:65:5;;;;;;;;;;;;;;;9329:15;;:27;;9349:6;9329:27;:19;:27;:::i;:::-;9311:15;:45;;;9367:12;:30;9413:43;;;;;;;;9442:4;;-1:-1:-1;;;;;;;;;;;;;9413:43:5;;;;;;;;9105:359;;;:::o;902:181:10:-;960:7;992:5;;;1016:6;;;;1008:46;;;;;-1:-1:-1;;;1008:46:10;;;;;;;;;;;;;;;;;;;;;;;;;;;605:106:6;693:10;605:106;:::o;10565:533:5:-;10638:15;;10628:6;:25;10624:467;;10688:123;10726:6;10688:123;;;;;;;;;;;;;;;;;:15;;;:123;;:19;:123;:::i;:::-;10670:15;:141;;;10826:12;:30;10876:43;;;;;;;;-1:-1:-1;;10893:4:5;;-1:-1:-1;;;;;;;;;;;10876:43:5;;;;;;;;10624:467;;;10970:1;10952:15;:19;;;10986:12;:30;;;11036:43;;;;;;;;11053:4;;-1:-1:-1;;;;;;;;;;;11036:43:5;;;;;;;;;10624:467;10565:533;:::o;12337:380::-;-1:-1:-1;;;;;12473:19:5;;12465:68;;;;-1:-1:-1;;;12465:68:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12552:21:5;;12544:68;;;;-1:-1:-1;;;12544:68:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12625:18:5;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;12677:32;;;;;;;;;;;;;;;;;12337:380;;;:::o;8387:550::-;-1:-1:-1;;;;;8527:20:5;;8519:70;;;;-1:-1:-1;;;8519:70:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8608:23:5;;8600:71;;;;-1:-1:-1;;;8600:71:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8704:108;8740:6;8704:108;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8704:17:5;;;;;;:9;:17;;;;;;;:108;;:21;:108;:::i;:::-;-1:-1:-1;;;;;8684:17:5;;;;;;;:9;:17;;;;;;:128;;;;8846:20;;;;;;;:32;;8871:6;8846:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;8823:20:5;;;;;;;:9;:20;;;;;;;;;:55;;;;8894:35;;;;;;;8823:20;;8894:35;;;;-1:-1:-1;;;;;;;;;;;8894:35:5;;;;;;;;8387:550;;;:::o;1805:226:10:-;1925:7;1961:12;1953:6;;;;1945:29;;;;-1:-1:-1;;;1945:29:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1945:29:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1997:5:10;;;1805:226::o;7445:188:0:-;7519:6;:12;;;;;;;;;;:33;;7544:7;7519:33;:24;:33;:::i;:::-;7515:111;;;7601:12;:10;:12::i;:::-;-1:-1:-1;;;;;7574:40:0;7592:7;-1:-1:-1;;;;;7574:40:0;7586:4;7574:40;;;;;;;;;;7445:188;;:::o;7641:192::-;7716:6;:12;;;;;;;;;;:36;;7744:7;7716:36;:27;:36;:::i;:::-;7712:114;;;7801:12;:10;:12::i;:::-;-1:-1:-1;;;;;7774:40:0;7792:7;-1:-1:-1;;;;;7774:40:0;7786:4;7774:40;;;;;;;;;;7641:192;;:::o;13310:265:5:-;13369:7;13389:9;13401:16;:14;:16::i;:::-;13389:28;;13428:9;13440:18;:32;13459:12;:10;:12::i;:::-;-1:-1:-1;;;;;13440:32:5;-1:-1:-1;;;;;13440:32:5;;;;;;;;;;;;;13428:44;;13491:1;13487;:5;13483:43;;;-1:-1:-1;13513:1:5;13483:43;13540:8;:1;13546;13540:8;:5;:8;:::i;:::-;13536:12;-1:-1:-1;;;13310:265:5;:::o;11106:791::-;-1:-1:-1;;;;;11287:22:5;;11248:4;11287:22;;;:14;:22;;;;;;:39;-1:-1:-1;11287:39:5;11265:113;;;;;-1:-1:-1;;;11265:113:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11409:17:5;;;;;;:9;:17;;;;;;:34;;11431:11;11409:34;:21;:34;:::i;:::-;-1:-1:-1;;;;;11389:17:5;;;;;;:9;:17;;;;;:54;11472:15;;:32;;11492:11;11472:32;:19;:32;:::i;:::-;11454:15;:50;;;11515:12;:30;11577:18;;:35;;11600:11;11577:35;:22;:35;:::i;:::-;11556:18;:56;11628:53;;;;;;;;11662:4;;-1:-1:-1;;;;;11628:53:5;;;-1:-1:-1;;;;;;;;;;;11628:53:5;;;;;;;;-1:-1:-1;;;;;11717:22:5;;;;;;:14;:22;;;;;;:41;;11744:13;11717:41;:26;:41;:::i;:::-;-1:-1:-1;;;;;11692:22:5;;;;;;;:14;:22;;;;;:66;;;;11791:4;;11769:42;;11707:6;;11791:4;11797:13;11769;:42::i;:::-;-1:-1:-1;11827:40:5;;11853:13;;-1:-1:-1;;;;;11827:40:5;;;;;;;;-1:-1:-1;11885:4:5;11106:791;;;;;:::o;6478:181:7:-;6579:7;6627:22;6631:3;6643:5;6627:3;:22::i;5731:190::-;5838:4;5867:46;5877:3;-1:-1:-1;;;;;5897:14:7;;5867:9;:46::i;9745:519:5:-;-1:-1:-1;;;;;9838:21:5;::::1;9830:65;;;::::0;;-1:-1:-1;;;9830:65:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;9924:15;;9914:6;:25;;9906:65;;;::::0;;-1:-1:-1;;;9906:65:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;10005:18;::::0;:30:::1;::::0;10028:6;10005:30:::1;:22;:30;:::i;:::-;9984:18;:51:::0;10061:12:::1;::::0;:24:::1;::::0;10078:6;10061:24:::1;:16;:24;:::i;:::-;10046:12;:39:::0;10114:15:::1;::::0;:27:::1;::::0;10134:6;10114:27:::1;:19;:27;:::i;:::-;10096:15;:45:::0;-1:-1:-1;;;;;10173:18:5;::::1;;::::0;;;:9:::1;:18;::::0;;;;;:30:::1;::::0;10196:6;10173:30:::1;:22;:30;:::i;:::-;-1:-1:-1::0;;;;;10152:18:5;::::1;;::::0;;;:9:::1;:18;::::0;;;;;;;:51;;;;10219:37;;;;;;;10152:18;;;;-1:-1:-1;;;;;;;;;;;10219:37:5;;;;;;;;::::1;721:6:::0;;;;713:47;;;;;-1:-1:-1;;;713:47:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;713:47:5;;;;;;;;;;;;;;6007:117:7;6070:7;6097:19;6105:3;6097:7;:19::i;1661:414::-;1724:4;1746:21;1756:3;1761:5;1746:9;:21::i;:::-;1741:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1784:11:7;:23;;;;;;;;;;;;;1967:18;;1945:19;;;:12;;;:19;;;;;;:40;;;;2000:11;;1741:327;-1:-1:-1;2051:5:7;2044:12;;3865:312:10;3985:7;4020:12;4013:5;4005:28;;;;-1:-1:-1;;;4005:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4005:28:10;;4044:9;4060:1;4056;:5;;;;;;;3865:312;-1:-1:-1;;;;;3865:312:10:o;5473:172:7:-;5564:4;5593:44;5601:3;-1:-1:-1;;;;;5621:14:7;;5593:7;:44::i;13774:413:5:-;14001:28;;;-1:-1:-1;;;14001:28:5;;14023:4;14001:28;;;;;;13907:4;;13958:9;;14033:13;;-1:-1:-1;;;;;14001:13:5;;;;;:28;;;;;;;;;;;;;;;:13;:28;;;2:2:-1;;;;27:1;24;17:12;2:2;14001:28:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14001:28:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;14001:28:5;:45;;13979:123;;;;;-1:-1:-1;;;13979:123:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;14121:3;-1:-1:-1;;;;;14121:12:5;;14134:6;14142:13;14121:35;;;;;;;;;;;;;-1:-1:-1;;;;;14121:35:5;-1:-1:-1;;;;;14121:35:5;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14121:35:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14121:35:5;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;14121:35:5;14113:44;;12:1:-1;9;2:12;14113:44:5;-1:-1:-1;14175:4:5;;13774:413;-1:-1:-1;;;;13774:413:5:o;4604:273:7:-;4745:18;;4698:7;;4745:26;-1:-1:-1;4723:110:7;;;;-1:-1:-1;;;4723:110:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4851:3;:11;;4863:5;4851:18;;;;;;;;;;;;;;;;4844:25;;4604:273;;;;:::o;3894:161::-;3994:4;4023:19;;;:12;;;;;:19;;;;;;:24;;;3894:161::o;4141:109::-;4224:18;;4141:109::o;2251:1557::-;2317:4;2456:19;;;:12;;;:19;;;;;;2492:15;;2488:1313;;2940:18;;-1:-1:-1;;2891:14:7;;;;2940:22;;;;2867:21;;2940:3;;:22;;3227;;;;;;;;;;;;;;3207:42;;3373:9;3344:3;:11;;3356:13;3344:26;;;;;;;;;;;;;;;;;;;:38;;;;3450:23;;;3492:1;3450:12;;;:23;;;;;;3476:17;;;3450:43;;3602:17;;3450:3;;3602:17;;;;;;;;;;;;;;;;;;;;;;3697:3;:12;;:19;3710:5;3697:19;;;;;;;;;;;3690:26;;;3740:4;3733:11;;;;;;;;2488:1313;3784:5;3777:12;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://245127aec693ba51f1ef253e1ad60ca290deb5b86ae3679dbc27505d858099bb
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.