Source Code
Overview
GLMR Balance
GLMR Value
$0.00View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BeefyFeeBatchV2
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/**
*Submitted for verification at moonbeam.moonscan.io on 2022-02-10
*/
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @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) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @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");
(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");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
// If the contract is initializing we ignore whether _initialized is set in order to support multiple
// inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
// contract may have been reentered.
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} modifier, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}
// File @openzeppelin/contracts-upgradeable/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
__Context_init_unchained();
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
uint256[50] private __gap;
}
// File @openzeppelin/contracts-upgradeable/access/[email protected]
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Context_init_unchained();
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
uint256[49] private __gap;
}
// File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
/**
* @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}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {
__Context_init_unchained();
__ERC20_init_unchained(name_, symbol_);
}
function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override 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 this function is
* overridden;
*
* 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 virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
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] + 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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This 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 Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
uint256[45] private __gap;
}
// File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20Upgradeable {
using AddressUpgradeable for address;
function safeTransfer(
IERC20Upgradeable token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20Upgradeable token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20Upgradeable token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20Upgradeable token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20Upgradeable token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// File contracts/BIFI/infra/BeefyFeeBatchV2.sol
pragma solidity 0.8.2;
interface IRewardPool {
function notifyRewardAmount(uint256 amount) external;
function transferOwnership(address owner) external;
}
interface IUniswapRouter {
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
}
contract BeefyFeeBatchV2 is Initializable, OwnableUpgradeable {
using SafeERC20Upgradeable for IERC20Upgradeable;
IERC20Upgradeable public wNative;
IERC20Upgradeable public bifi;
address public treasury;
address public rewardPool;
address public unirouter;
// Fee constants
uint constant public MAX_FEE = 1000;
uint public treasuryFee;
uint public rewardPoolFee;
address[] public wNativeToBifiRoute;
bool public routerInitialized;
event NewRewardPool(address oldRewardPool, address newRewardPool);
event NewTreasury(address oldTreasury, address newTreasury);
event NewUnirouter(address oldUnirouter, address newUnirouter);
event NewBifiRoute(address[] oldRoute, address[] newRoute);
function initialize(
address _bifi,
address _wNative,
address _treasury,
address _rewardPool,
address _unirouter
) public initializer {
__Ownable_init();
bifi = IERC20Upgradeable(_bifi);
wNative = IERC20Upgradeable(_wNative);
treasury = _treasury;
rewardPool = _rewardPool;
treasuryFee = 140;
rewardPoolFee = MAX_FEE - treasuryFee;
if (_unirouter != address(0x0)) {
_initRouter(_unirouter);
}
wNativeToBifiRoute = [_wNative, _bifi];
}
// Main function. Divides Beefy's profits.
function harvest() public {
uint256 wNativeBal = wNative.balanceOf(address(this));
if (routerInitialized) {
uint256 treasuryHalf = wNativeBal * treasuryFee / MAX_FEE / 2;
wNative.safeTransfer(treasury, treasuryHalf);
IUniswapRouter(unirouter).swapExactTokensForTokens(treasuryHalf, 0, wNativeToBifiRoute, treasury, block.timestamp);
} else {
uint256 treasuryAmount = wNativeBal * treasuryFee / MAX_FEE;
wNative.safeTransfer(treasury, treasuryAmount);
}
uint256 rewardPoolAmount = wNativeBal * rewardPoolFee / MAX_FEE;
wNative.safeTransfer(rewardPool, rewardPoolAmount);
IRewardPool(rewardPool).notifyRewardAmount(rewardPoolAmount);
}
// Manage the contract
function setRewardPool(address _rewardPool) external onlyOwner {
emit NewRewardPool(rewardPool, _rewardPool);
rewardPool = _rewardPool;
}
function setTreasury(address _treasury) external onlyOwner {
emit NewTreasury(treasury, _treasury);
treasury = _treasury;
}
function initRouter(address _unirouter) public onlyOwner {
_initRouter(_unirouter);
}
function _initRouter(address _unirouter) internal {
unirouter = _unirouter;
wNative.safeApprove(unirouter, type(uint).max);
routerInitialized = true;
}
function setUnirouter(address _unirouter) external onlyOwner {
require(routerInitialized, "!initialized");
emit NewUnirouter(unirouter, _unirouter);
wNative.safeApprove(_unirouter, type(uint).max);
wNative.safeApprove(unirouter, 0);
unirouter = _unirouter;
}
function setNativeToBifiRoute(address[] memory _route) external onlyOwner {
require(_route[0] == address(wNative), "!wNative");
require(_route[_route.length - 1] == address(bifi), "!bifi");
emit NewBifiRoute(wNativeToBifiRoute, _route);
wNativeToBifiRoute = _route;
}
function setTreasuryFee(uint256 _fee) public onlyOwner {
require(_fee <= MAX_FEE, "!cap");
treasuryFee = _fee;
rewardPoolFee = MAX_FEE - treasuryFee;
}
// Rescue locked funds sent by mistake
function inCaseTokensGetStuck(address _token, address _recipient) external onlyOwner {
require(_token != address(wNative), "!safe");
uint256 amount = IERC20Upgradeable(_token).balanceOf(address(this));
IERC20Upgradeable(_token).safeTransfer(_recipient, amount);
}
function transferRewardPoolOwnership(address _newOwner) external onlyOwner {
IRewardPool(rewardPool).transferOwnership(_newOwner);
}
receive() external payable {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"oldRoute","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"newRoute","type":"address[]"}],"name":"NewBifiRoute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRewardPool","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardPool","type":"address"}],"name":"NewRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"NewTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldUnirouter","type":"address"},{"indexed":false,"internalType":"address","name":"newUnirouter","type":"address"}],"name":"NewUnirouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bifi","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"initRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bifi","type":"address"},{"internalType":"address","name":"_wNative","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_route","type":"address[]"}],"name":"setNativeToBifiRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"setUnirouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferRewardPoolOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wNative","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wNativeToBifiRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b50611991806100206000396000f3fe6080604052600436106101445760003560e01c806366666aa9116100b6578063bc063e1a1161006f578063bc063e1a14610381578063c6854db8146103a5578063cc32d176146103bb578063d92f3d73146103d1578063f0f44260146103f1578063f2fde38b146104115761014b565b806366666aa9146102ce578063715018a6146102ee57806377e741c71461030357806378238c37146103235780638da5cb5b14610343578063906cd40b146103615761014b565b80632d68efc9116101085780632d68efc9146102195780634458020b146102395780634641257d146102595780634708dd5e1461026e5780634bb43fc21461028e57806361d027b3146102ae5761014b565b80631166b44b146101505780631459457a146101725780631939bbc114610192578063257ae0de146101b25780632bd63831146101ef5761014b565b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b366004611484565b610431565b005b34801561017e57600080fd5b5061017061018d3660046114d0565b610470565b34801561019e57600080fd5b506101706101ad36600461149e565b6105e8565b3480156101be57600080fd5b506069546101d2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101fb57600080fd5b50606d546102099060ff1681565b60405190151581526020016101e6565b34801561022557600080fd5b506065546101d2906001600160a01b031681565b34801561024557600080fd5b506066546101d2906001600160a01b031681565b34801561026557600080fd5b506101706106ed565b34801561027a57600080fd5b50610170610289366004611484565b610931565b34801561029a57600080fd5b506101706102a9366004611534565b6109bd565b3480156102ba57600080fd5b506067546101d2906001600160a01b031681565b3480156102da57600080fd5b506068546101d2906001600160a01b031681565b3480156102fa57600080fd5b50610170610b34565b34801561030f57600080fd5b5061017061031e366004611674565b610b6a565b34801561032f57600080fd5b5061017061033e366004611484565b610be6565b34801561034f57600080fd5b506033546001600160a01b03166101d2565b34801561036d57600080fd5b506101d261037c366004611674565b610c79565b34801561038d57600080fd5b506103976103e881565b6040519081526020016101e6565b3480156103b157600080fd5b50610397606b5481565b3480156103c757600080fd5b50610397606a5481565b3480156103dd57600080fd5b506101706103ec366004611484565b610ca3565b3480156103fd57600080fd5b5061017061040c366004611484565b610dae565b34801561041d57600080fd5b5061017061042c366004611484565b610e41565b6033546001600160a01b031633146104645760405162461bcd60e51b815260040161045b90611798565b60405180910390fd5b61046d81610ed9565b50565b600054610100900460ff1661048b5760005460ff1615610493565b610493610f1e565b6104f65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161045b565b600054610100900460ff16158015610521576000805460ff1961ff0019909116610100171660011790555b610529610f2f565b606680546001600160a01b038089166001600160a01b03199283161790925560658054888416908316179055606780548784169083161790556068805492861692909116919091179055608c606a819055610586906103e86118e8565b606b556001600160a01b038216156105a1576105a182610ed9565b604080518082019091526001600160a01b038087168252871660208201526105cd90606c9060026113f3565b5080156105e0576000805461ff00191690555b505050505050565b6033546001600160a01b031633146106125760405162461bcd60e51b815260040161045b90611798565b6065546001600160a01b03838116911614156106585760405162461bcd60e51b8152602060048201526005602482015264217361666560d81b604482015260640161045b565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d2919061168c565b90506106e86001600160a01b0384168383610f66565b505050565b6065546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561073157600080fd5b505afa158015610745573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610769919061168c565b606d5490915060ff161561085b57600060026103e8606a548461078c91906118c9565b61079691906118a9565b6107a091906118a9565b6067546065549192506107c0916001600160a01b03908116911683610f66565b6069546067546040516338ed173960e01b81526001600160a01b03928316926338ed1739926107fe928692600092606c929116904290600401611818565b600060405180830381600087803b15801561081857600080fd5b505af115801561082c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261085491908101906115d0565b505061089a565b60006103e8606a548361086e91906118c9565b61087891906118a9565b606754606554919250610898916001600160a01b03908116911683610f66565b505b60006103e8606b54836108ad91906118c9565b6108b791906118a9565b6068546065549192506108d7916001600160a01b03908116911683610f66565b606854604051633c6b16ab60e01b8152600481018390526001600160a01b0390911690633c6b16ab90602401600060405180830381600087803b15801561091d57600080fd5b505af11580156105e0573d6000803e3d6000fd5b6033546001600160a01b0316331461095b5760405162461bcd60e51b815260040161045b90611798565b60685460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b1580156109a257600080fd5b505af11580156109b6573d6000803e3d6000fd5b5050505050565b6033546001600160a01b031633146109e75760405162461bcd60e51b815260040161045b90611798565b60655481516001600160a01b03909116908290600090610a1757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610a605760405162461bcd60e51b815260206004820152600860248201526721774e617469766560c01b604482015260640161045b565b60665481516001600160a01b03909116908290610a7f906001906118e8565b81518110610a9d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610ae35760405162461bcd60e51b8152602060048201526005602482015264216269666960d81b604482015260640161045b565b7f87c6f79e7abb284656dc44f1ef4767a74344ec68149ef892ce9cc73fe80103c7606c82604051610b15929190611706565b60405180910390a18051610b3090606c9060208401906113f3565b5050565b6033546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161045b90611798565b610b686000610fc9565b565b6033546001600160a01b03163314610b945760405162461bcd60e51b815260040161045b90611798565b6103e8811115610bcf5760405162461bcd60e51b815260040161045b906020808252600490820152630216361760e41b604082015260600190565b606a819055610be0816103e86118e8565b606b5550565b6033546001600160a01b03163314610c105760405162461bcd60e51b815260040161045b90611798565b606854604080516001600160a01b03928316815291831660208301527fe3d88fc63ce6f40e089447cea2116e10d00cd00302225a3d4d57db7d456933b3910160405180910390a1606880546001600160a01b0319166001600160a01b0392909216919091179055565b606c8181548110610c8957600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b03163314610ccd5760405162461bcd60e51b815260040161045b90611798565b606d5460ff16610d0e5760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b604482015260640161045b565b606954604080516001600160a01b03928316815291831660208301527f826424c54f0e53618740c75270163dc0ce89545f38164b0e4b3a265cf7314453910160405180910390a1606554610d6e906001600160a01b03168260001961101b565b606954606554610d8c916001600160a01b039182169116600061101b565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610dd85760405162461bcd60e51b815260040161045b90611798565b606754604080516001600160a01b03928316815291831660208301527f567657fa3f286518b318f4a29870674f433f622fdfc819691acb13105b228225910160405180910390a1606780546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610e6b5760405162461bcd60e51b815260040161045b90611798565b6001600160a01b038116610ed05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045b565b61046d81610fc9565b606980546001600160a01b0319166001600160a01b038381169190911791829055606554610f0e92908216911660001961101b565b50606d805460ff19166001179055565b6000610f293061113f565b15905090565b600054610100900460ff16610f565760405162461bcd60e51b815260040161045b906117cd565b610f5e611149565b610b68611170565b6040516001600160a01b0383166024820152604481018290526106e890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111a0565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8015806110a45750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561106a57600080fd5b505afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a2919061168c565b155b61110f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161045b565b6040516001600160a01b0383166024820152604481018290526106e890849063095ea7b360e01b90606401610f92565b803b15155b919050565b600054610100900460ff16610b685760405162461bcd60e51b815260040161045b906117cd565b600054610100900460ff166111975760405162461bcd60e51b815260040161045b906117cd565b610b6833610fc9565b60006111f5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112729092919063ffffffff16565b8051909150156106e857808060200190518101906112139190611654565b6106e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161045b565b6060611281848460008561128b565b90505b9392505050565b6060824710156112ec5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161045b565b6112f58561113f565b6113415760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045b565b600080866001600160a01b0316858760405161135d91906116ea565b60006040518083038185875af1925050503d806000811461139a576040519150601f19603f3d011682016040523d82523d6000602084013e61139f565b606091505b50915091506113af8282866113ba565b979650505050505050565b606083156113c9575081611284565b8251156113d95782518084602001fd5b8160405162461bcd60e51b815260040161045b9190611765565b828054828255906000526020600020908101928215611448579160200282015b8281111561144857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611413565b50611454929150611458565b5090565b5b808211156114545760008155600101611459565b80356001600160a01b038116811461114457600080fd5b600060208284031215611495578081fd5b6112848261146d565b600080604083850312156114b0578081fd5b6114b98361146d565b91506114c76020840161146d565b90509250929050565b600080600080600060a086880312156114e7578081fd5b6114f08661146d565b94506114fe6020870161146d565b935061150c6040870161146d565b925061151a6060870161146d565b91506115286080870161146d565b90509295509295909350565b60006020808385031215611546578182fd5b823567ffffffffffffffff81111561155c578283fd5b8301601f8101851361156c578283fd5b803561157f61157a82611885565b611854565b818152838101908385018584028501860189101561159b578687fd5b8694505b838510156115c4576115b08161146d565b83526001949094019391850191850161159f565b50979650505050505050565b600060208083850312156115e2578182fd5b825167ffffffffffffffff8111156115f8578283fd5b8301601f81018513611608578283fd5b805161161661157a82611885565b8181528381019083850185840285018601891015611632578687fd5b8694505b838510156115c4578051835260019490940193918501918501611636565b600060208284031215611665578081fd5b81518015158114611284578182fd5b600060208284031215611685578081fd5b5035919050565b60006020828403121561169d578081fd5b5051919050565b6000815480845260208085019450838352808320835b838110156116df5781546001600160a01b0316875295820195600191820191016116ba565b509495945050505050565b600082516116fc8184602087016118ff565b9190910192915050565b60006040825261171960408301856116a4565b828103602084810191909152845180835285820192820190845b818110156117585784516001600160a01b031683529383019391830191600101611733565b5090979650505050505050565b60006020825282518060208401526117848160408501602087016118ff565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600086825285602083015260a0604083015261183760a08301866116a4565b6001600160a01b0394909416606083015250608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561187d5761187d611945565b604052919050565b600067ffffffffffffffff82111561189f5761189f611945565b5060209081020190565b6000826118c457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156118e3576118e361192f565b500290565b6000828210156118fa576118fa61192f565b500390565b60005b8381101561191a578181015183820152602001611902565b83811115611929576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212204e7aaf846d96a3bfdd28ecc9f0314a139c16cbbe5debe8deb98e2f5f9f623fda64736f6c63430008020033
Deployed Bytecode
0x6080604052600436106101445760003560e01c806366666aa9116100b6578063bc063e1a1161006f578063bc063e1a14610381578063c6854db8146103a5578063cc32d176146103bb578063d92f3d73146103d1578063f0f44260146103f1578063f2fde38b146104115761014b565b806366666aa9146102ce578063715018a6146102ee57806377e741c71461030357806378238c37146103235780638da5cb5b14610343578063906cd40b146103615761014b565b80632d68efc9116101085780632d68efc9146102195780634458020b146102395780634641257d146102595780634708dd5e1461026e5780634bb43fc21461028e57806361d027b3146102ae5761014b565b80631166b44b146101505780631459457a146101725780631939bbc114610192578063257ae0de146101b25780632bd63831146101ef5761014b565b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b366004611484565b610431565b005b34801561017e57600080fd5b5061017061018d3660046114d0565b610470565b34801561019e57600080fd5b506101706101ad36600461149e565b6105e8565b3480156101be57600080fd5b506069546101d2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101fb57600080fd5b50606d546102099060ff1681565b60405190151581526020016101e6565b34801561022557600080fd5b506065546101d2906001600160a01b031681565b34801561024557600080fd5b506066546101d2906001600160a01b031681565b34801561026557600080fd5b506101706106ed565b34801561027a57600080fd5b50610170610289366004611484565b610931565b34801561029a57600080fd5b506101706102a9366004611534565b6109bd565b3480156102ba57600080fd5b506067546101d2906001600160a01b031681565b3480156102da57600080fd5b506068546101d2906001600160a01b031681565b3480156102fa57600080fd5b50610170610b34565b34801561030f57600080fd5b5061017061031e366004611674565b610b6a565b34801561032f57600080fd5b5061017061033e366004611484565b610be6565b34801561034f57600080fd5b506033546001600160a01b03166101d2565b34801561036d57600080fd5b506101d261037c366004611674565b610c79565b34801561038d57600080fd5b506103976103e881565b6040519081526020016101e6565b3480156103b157600080fd5b50610397606b5481565b3480156103c757600080fd5b50610397606a5481565b3480156103dd57600080fd5b506101706103ec366004611484565b610ca3565b3480156103fd57600080fd5b5061017061040c366004611484565b610dae565b34801561041d57600080fd5b5061017061042c366004611484565b610e41565b6033546001600160a01b031633146104645760405162461bcd60e51b815260040161045b90611798565b60405180910390fd5b61046d81610ed9565b50565b600054610100900460ff1661048b5760005460ff1615610493565b610493610f1e565b6104f65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161045b565b600054610100900460ff16158015610521576000805460ff1961ff0019909116610100171660011790555b610529610f2f565b606680546001600160a01b038089166001600160a01b03199283161790925560658054888416908316179055606780548784169083161790556068805492861692909116919091179055608c606a819055610586906103e86118e8565b606b556001600160a01b038216156105a1576105a182610ed9565b604080518082019091526001600160a01b038087168252871660208201526105cd90606c9060026113f3565b5080156105e0576000805461ff00191690555b505050505050565b6033546001600160a01b031633146106125760405162461bcd60e51b815260040161045b90611798565b6065546001600160a01b03838116911614156106585760405162461bcd60e51b8152602060048201526005602482015264217361666560d81b604482015260640161045b565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d2919061168c565b90506106e86001600160a01b0384168383610f66565b505050565b6065546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561073157600080fd5b505afa158015610745573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610769919061168c565b606d5490915060ff161561085b57600060026103e8606a548461078c91906118c9565b61079691906118a9565b6107a091906118a9565b6067546065549192506107c0916001600160a01b03908116911683610f66565b6069546067546040516338ed173960e01b81526001600160a01b03928316926338ed1739926107fe928692600092606c929116904290600401611818565b600060405180830381600087803b15801561081857600080fd5b505af115801561082c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261085491908101906115d0565b505061089a565b60006103e8606a548361086e91906118c9565b61087891906118a9565b606754606554919250610898916001600160a01b03908116911683610f66565b505b60006103e8606b54836108ad91906118c9565b6108b791906118a9565b6068546065549192506108d7916001600160a01b03908116911683610f66565b606854604051633c6b16ab60e01b8152600481018390526001600160a01b0390911690633c6b16ab90602401600060405180830381600087803b15801561091d57600080fd5b505af11580156105e0573d6000803e3d6000fd5b6033546001600160a01b0316331461095b5760405162461bcd60e51b815260040161045b90611798565b60685460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b1580156109a257600080fd5b505af11580156109b6573d6000803e3d6000fd5b5050505050565b6033546001600160a01b031633146109e75760405162461bcd60e51b815260040161045b90611798565b60655481516001600160a01b03909116908290600090610a1757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610a605760405162461bcd60e51b815260206004820152600860248201526721774e617469766560c01b604482015260640161045b565b60665481516001600160a01b03909116908290610a7f906001906118e8565b81518110610a9d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614610ae35760405162461bcd60e51b8152602060048201526005602482015264216269666960d81b604482015260640161045b565b7f87c6f79e7abb284656dc44f1ef4767a74344ec68149ef892ce9cc73fe80103c7606c82604051610b15929190611706565b60405180910390a18051610b3090606c9060208401906113f3565b5050565b6033546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161045b90611798565b610b686000610fc9565b565b6033546001600160a01b03163314610b945760405162461bcd60e51b815260040161045b90611798565b6103e8811115610bcf5760405162461bcd60e51b815260040161045b906020808252600490820152630216361760e41b604082015260600190565b606a819055610be0816103e86118e8565b606b5550565b6033546001600160a01b03163314610c105760405162461bcd60e51b815260040161045b90611798565b606854604080516001600160a01b03928316815291831660208301527fe3d88fc63ce6f40e089447cea2116e10d00cd00302225a3d4d57db7d456933b3910160405180910390a1606880546001600160a01b0319166001600160a01b0392909216919091179055565b606c8181548110610c8957600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b03163314610ccd5760405162461bcd60e51b815260040161045b90611798565b606d5460ff16610d0e5760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b604482015260640161045b565b606954604080516001600160a01b03928316815291831660208301527f826424c54f0e53618740c75270163dc0ce89545f38164b0e4b3a265cf7314453910160405180910390a1606554610d6e906001600160a01b03168260001961101b565b606954606554610d8c916001600160a01b039182169116600061101b565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610dd85760405162461bcd60e51b815260040161045b90611798565b606754604080516001600160a01b03928316815291831660208301527f567657fa3f286518b318f4a29870674f433f622fdfc819691acb13105b228225910160405180910390a1606780546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610e6b5760405162461bcd60e51b815260040161045b90611798565b6001600160a01b038116610ed05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045b565b61046d81610fc9565b606980546001600160a01b0319166001600160a01b038381169190911791829055606554610f0e92908216911660001961101b565b50606d805460ff19166001179055565b6000610f293061113f565b15905090565b600054610100900460ff16610f565760405162461bcd60e51b815260040161045b906117cd565b610f5e611149565b610b68611170565b6040516001600160a01b0383166024820152604481018290526106e890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111a0565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8015806110a45750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561106a57600080fd5b505afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a2919061168c565b155b61110f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161045b565b6040516001600160a01b0383166024820152604481018290526106e890849063095ea7b360e01b90606401610f92565b803b15155b919050565b600054610100900460ff16610b685760405162461bcd60e51b815260040161045b906117cd565b600054610100900460ff166111975760405162461bcd60e51b815260040161045b906117cd565b610b6833610fc9565b60006111f5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112729092919063ffffffff16565b8051909150156106e857808060200190518101906112139190611654565b6106e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161045b565b6060611281848460008561128b565b90505b9392505050565b6060824710156112ec5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161045b565b6112f58561113f565b6113415760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045b565b600080866001600160a01b0316858760405161135d91906116ea565b60006040518083038185875af1925050503d806000811461139a576040519150601f19603f3d011682016040523d82523d6000602084013e61139f565b606091505b50915091506113af8282866113ba565b979650505050505050565b606083156113c9575081611284565b8251156113d95782518084602001fd5b8160405162461bcd60e51b815260040161045b9190611765565b828054828255906000526020600020908101928215611448579160200282015b8281111561144857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611413565b50611454929150611458565b5090565b5b808211156114545760008155600101611459565b80356001600160a01b038116811461114457600080fd5b600060208284031215611495578081fd5b6112848261146d565b600080604083850312156114b0578081fd5b6114b98361146d565b91506114c76020840161146d565b90509250929050565b600080600080600060a086880312156114e7578081fd5b6114f08661146d565b94506114fe6020870161146d565b935061150c6040870161146d565b925061151a6060870161146d565b91506115286080870161146d565b90509295509295909350565b60006020808385031215611546578182fd5b823567ffffffffffffffff81111561155c578283fd5b8301601f8101851361156c578283fd5b803561157f61157a82611885565b611854565b818152838101908385018584028501860189101561159b578687fd5b8694505b838510156115c4576115b08161146d565b83526001949094019391850191850161159f565b50979650505050505050565b600060208083850312156115e2578182fd5b825167ffffffffffffffff8111156115f8578283fd5b8301601f81018513611608578283fd5b805161161661157a82611885565b8181528381019083850185840285018601891015611632578687fd5b8694505b838510156115c4578051835260019490940193918501918501611636565b600060208284031215611665578081fd5b81518015158114611284578182fd5b600060208284031215611685578081fd5b5035919050565b60006020828403121561169d578081fd5b5051919050565b6000815480845260208085019450838352808320835b838110156116df5781546001600160a01b0316875295820195600191820191016116ba565b509495945050505050565b600082516116fc8184602087016118ff565b9190910192915050565b60006040825261171960408301856116a4565b828103602084810191909152845180835285820192820190845b818110156117585784516001600160a01b031683529383019391830191600101611733565b5090979650505050505050565b60006020825282518060208401526117848160408501602087016118ff565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600086825285602083015260a0604083015261183760a08301866116a4565b6001600160a01b0394909416606083015250608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561187d5761187d611945565b604052919050565b600067ffffffffffffffff82111561189f5761189f611945565b5060209081020190565b6000826118c457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156118e3576118e361192f565b500290565b6000828210156118fa576118fa61192f565b500390565b60005b8381101561191a578181015183820152602001611902565b83811115611929576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212204e7aaf846d96a3bfdd28ecc9f0314a139c16cbbe5debe8deb98e2f5f9f623fda64736f6c63430008020033
Deployed Bytecode Sourcemap
35073:4254:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37649:99;;;;;;;;;;-1:-1:-1;37649:99:0;;;;;:::i;:::-;;:::i;:::-;;35853:612;;;;;;;;;;-1:-1:-1;35853:612:0;;;;;:::i;:::-;;:::i;38836:297::-;;;;;;;;;;-1:-1:-1;38836:297:0;;;;;:::i;:::-;;:::i;35336:24::-;;;;;;;;;;-1:-1:-1;35336:24:0;;;;-1:-1:-1;;;;;35336:24:0;;;;;;-1:-1:-1;;;;;4714:32:1;;;4696:51;;4684:2;4669:18;35336:24:0;;;;;;;;35541:29;;;;;;;;;;-1:-1:-1;35541:29:0;;;;;;;;;;;6354:14:1;;6347:22;6329:41;;6317:2;6302:18;35541:29:0;6284:92:1;35199:32:0;;;;;;;;;;-1:-1:-1;35199:32:0;;;;-1:-1:-1;;;;;35199:32:0;;;35238:29;;;;;;;;;;-1:-1:-1;35238:29:0;;;;-1:-1:-1;;;;;35238:29:0;;;36521:770;;;;;;;;;;;;;:::i;39141:146::-;;;;;;;;;;-1:-1:-1;39141:146:0;;;;;:::i;:::-;;:::i;38277:310::-;;;;;;;;;;-1:-1:-1;38277:310:0;;;;;:::i;:::-;;:::i;35274:23::-;;;;;;;;;;-1:-1:-1;35274:23:0;;;;-1:-1:-1;;;;;35274:23:0;;;35304:25;;;;;;;;;;-1:-1:-1;35304:25:0;;;;-1:-1:-1;;;;;35304:25:0;;;13456:103;;;;;;;;;;;;;:::i;38595:185::-;;;;;;;;;;-1:-1:-1;38595:185:0;;;;;:::i;:::-;;:::i;37327:160::-;;;;;;;;;;-1:-1:-1;37327:160:0;;;;;:::i;:::-;;:::i;12805:87::-;;;;;;;;;;-1:-1:-1;12878:6:0;;-1:-1:-1;;;;;12878:6:0;12805:87;;35497:35;;;;;;;;;;-1:-1:-1;35497:35:0;;;;;:::i;:::-;;:::i;35391:::-;;;;;;;;;;;;35422:4;35391:35;;;;;12017:25:1;;;12005:2;11990:18;35391:35:0;11972:76:1;35463:25:0;;;;;;;;;;;;;;;;35433:23;;;;;;;;;;;;;;;;37947:322;;;;;;;;;;-1:-1:-1;37947:322:0;;;;;:::i;:::-;;:::i;37495:146::-;;;;;;;;;;-1:-1:-1;37495:146:0;;;;;:::i;:::-;;:::i;13714:201::-;;;;;;;;;;-1:-1:-1;13714:201:0;;;;;:::i;:::-;;:::i;37649:99::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;;;;;;;;;37717:23:::1;37729:10;37717:11;:23::i;:::-;37649:99:::0;:::o;35853:612::-;9500:13;;;;;;;:48;;9536:12;;;;9535:13;9500:48;;;9516:16;:14;:16::i;:::-;9492:107;;;;-1:-1:-1;;;9492:107:0;;9360:2:1;9492:107:0;;;9342:21:1;9399:2;9379:18;;;9372:30;9438:34;9418:18;;;9411:62;-1:-1:-1;;;9489:18:1;;;9482:44;9543:19;;9492:107:0;9332:236:1;9492:107:0;9612:19;9635:13;;;;;;9634:14;9659:101;;;;9694:13;:20;;-1:-1:-1;;;;9694:20:0;;;;;9729:19;9710:4;9729:19;;;9659:101;36051:16:::1;:14;:16::i;:::-;36080:4;:31:::0;;-1:-1:-1;;;;;36080:31:0;;::::1;-1:-1:-1::0;;;;;;36080:31:0;;::::1;;::::0;;;36122:7:::1;:38:::0;;;;::::1;::::0;;::::1;;::::0;;36171:8:::1;:20:::0;;;;::::1;::::0;;::::1;;::::0;;36202:10:::1;:24:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;36253:3:::1;36239:11;:17:::0;;;36283:21:::1;::::0;35422:4:::1;36283:21;:::i;:::-;36267:13;:37:::0;-1:-1:-1;;;;;36321:26:0;::::1;::::0;36317:82:::1;;36364:23;36376:10;36364:11;:23::i;:::-;36419:38;::::0;;;;::::1;::::0;;;-1:-1:-1;;;;;36419:38:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;::::1;::::0;:18:::1;::::0;:38:::1;;:::i;:::-;;9790:14:::0;9786:68;;;9837:5;9821:21;;-1:-1:-1;;9821:21:0;;;9786:68;35853:612;;;;;;:::o;38836:297::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;38958:7:::1;::::0;-1:-1:-1;;;;;38940:26:0;;::::1;38958:7:::0;::::1;38940:26;;38932:44;;;::::0;-1:-1:-1;;;38932:44:0;;7545:2:1;38932:44:0::1;::::0;::::1;7527:21:1::0;7584:1;7564:18;;;7557:29;-1:-1:-1;;;7602:18:1;;;7595:35;7647:18;;38932:44:0::1;7517:154:1::0;38932:44:0::1;39006:50;::::0;-1:-1:-1;;;39006:50:0;;39050:4:::1;39006:50;::::0;::::1;4696:51:1::0;38989:14:0::1;::::0;-1:-1:-1;;;;;39006:35:0;::::1;::::0;::::1;::::0;4669:18:1;;39006:50:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38989:67:::0;-1:-1:-1;39067:58:0::1;-1:-1:-1::0;;;;;39067:38:0;::::1;39106:10:::0;38989:67;39067:38:::1;:58::i;:::-;13096:1;38836:297:::0;;:::o;36521:770::-;36579:7;;:32;;-1:-1:-1;;;36579:32:0;;36605:4;36579:32;;;4696:51:1;36558:18:0;;-1:-1:-1;;;;;36579:7:0;;:17;;4669:18:1;;36579:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36628:17;;36558:53;;-1:-1:-1;36628:17:0;;36624:452;;;36662:20;36722:1;35422:4;36698:11;;36685:10;:24;;;;:::i;:::-;:34;;;;:::i;:::-;:38;;;;:::i;:::-;36759:8;;36738:7;;36662:61;;-1:-1:-1;36738:44:0;;-1:-1:-1;;;;;36738:7:0;;;;36759:8;36662:61;36738:20;:44::i;:::-;36812:9;;36885:8;;36797:114;;-1:-1:-1;;;36797:114:0;;-1:-1:-1;;;;;36812:9:0;;;;36797:50;;:114;;36848:12;;36812:9;;36865:18;;36885:8;;;36895:15;;36797:114;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;36797:114:0;;;;;;;;;;;;:::i;:::-;;36624:452;;;;36944:22;35422:4;36982:11;;36969:10;:24;;;;:::i;:::-;:34;;;;:::i;:::-;37039:8;;37018:7;;36944:59;;-1:-1:-1;37018:46:0;;-1:-1:-1;;;;;37018:7:0;;;;37039:8;36944:59;37018:20;:46::i;:::-;36624:452;;37088:24;35422:4;37128:13;;37115:10;:26;;;;:::i;:::-;:36;;;;:::i;:::-;37183:10;;37162:7;;37088:63;;-1:-1:-1;37162:50:0;;-1:-1:-1;;;;;37162:7:0;;;;37183:10;37088:63;37162:20;:50::i;:::-;37235:10;;37223:60;;-1:-1:-1;;;37223:60:0;;;;;12017:25:1;;;-1:-1:-1;;;;;37235:10:0;;;;37223:42;;11990:18:1;;37223:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39141:146;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;39239:10:::1;::::0;39227:52:::1;::::0;-1:-1:-1;;;39227:52:0;;-1:-1:-1;;;;;4714:32:1;;;39227:52:0::1;::::0;::::1;4696:51:1::0;39239:10:0;;::::1;::::0;39227:41:::1;::::0;4669:18:1;;39227:52:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;39141:146:::0;:::o;38277:310::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;38391:7:::1;::::0;38370:9;;-1:-1:-1;;;;;38391:7:0;;::::1;::::0;38370:6;;38391:7:::1;::::0;38370:9:::1;;-1:-1:-1::0;;;38370:9:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;38370:29:0::1;;38362:50;;;::::0;-1:-1:-1;;;38362:50:0;;9024:2:1;38362:50:0::1;::::0;::::1;9006:21:1::0;9063:1;9043:18;;;9036:29;-1:-1:-1;;;9081:18:1;;;9074:38;9129:18;;38362:50:0::1;8996:157:1::0;38362:50:0::1;38468:4;::::0;38438:13;;-1:-1:-1;;;;;38468:4:0;;::::1;::::0;38431:6;;38438:17:::1;::::0;38468:4;;38438:17:::1;:::i;:::-;38431:25;;;;;;-1:-1:-1::0;;;38431:25:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;38431:42:0::1;;38423:60;;;::::0;-1:-1:-1;;;38423:60:0;;11317:2:1;38423:60:0::1;::::0;::::1;11299:21:1::0;11356:1;11336:18;;;11329:29;-1:-1:-1;;;11374:18:1;;;11367:35;11419:18;;38423:60:0::1;11289:154:1::0;38423:60:0::1;38501:40;38514:18;38534:6;38501:40;;;;;;;:::i;:::-;;;;;;;;38552:27:::0;;::::1;::::0;:18:::1;::::0;:27:::1;::::0;::::1;::::0;::::1;:::i;:::-;;38277:310:::0;:::o;13456:103::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;13521:30:::1;13548:1;13521:18;:30::i;:::-;13456:103::o:0;38595:185::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;35422:4:::1;38669;:15;;38661:32;;;;-1:-1:-1::0;;;38661:32:0::1;;;;;;8692:2:1::0;8674:21;;;8731:1;8711:18;;;8704:29;-1:-1:-1;;;8764:2:1;8749:18;;8742:34;8808:2;8793:18;;8664:153;38661:32:0::1;38706:11;:18:::0;;;38751:21:::1;38720:4:::0;35422::::1;38751:21;:::i;:::-;38735:13;:37:::0;-1:-1:-1;38595:185:0:o;37327:160::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;37420:10:::1;::::0;37406:38:::1;::::0;;-1:-1:-1;;;;;37420:10:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;37406:38:0::1;::::0;4905:18:1;37406:38:0::1;;;;;;;37455:10;:24:::0;;-1:-1:-1;;;;;;37455:24:0::1;-1:-1:-1::0;;;;;37455:24:0;;;::::1;::::0;;;::::1;::::0;;37327:160::o;35497:35::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35497:35:0;;-1:-1:-1;35497:35:0;:::o;37947:322::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;38027:17:::1;::::0;::::1;;38019:42;;;::::0;-1:-1:-1;;;38019:42:0;;7204:2:1;38019:42:0::1;::::0;::::1;7186:21:1::0;7243:2;7223:18;;;7216:30;-1:-1:-1;;;7262:18:1;;;7255:42;7314:18;;38019:42:0::1;7176:162:1::0;38019:42:0::1;38092:9;::::0;38079:35:::1;::::0;;-1:-1:-1;;;;;38092:9:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;38079:35:0::1;::::0;4905:18:1;38079:35:0::1;;;;;;;38127:7;::::0;:47:::1;::::0;-1:-1:-1;;;;;38127:7:0::1;38147:10:::0;-1:-1:-1;;38127:19:0::1;:47::i;:::-;38205:9;::::0;38185:7:::1;::::0;:33:::1;::::0;-1:-1:-1;;;;;38185:7:0;;::::1;::::0;38205:9:::1;;38185:19;:33::i;:::-;38239:9;:22:::0;;-1:-1:-1;;;;;;38239:22:0::1;-1:-1:-1::0;;;;;38239:22:0;;;::::1;::::0;;;::::1;::::0;;37947:322::o;37495:146::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;37582:8:::1;::::0;37570:32:::1;::::0;;-1:-1:-1;;;;;37582:8:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;37570:32:0::1;::::0;4905:18:1;37570:32:0::1;;;;;;;37613:8;:20:::0;;-1:-1:-1;;;;;;37613:20:0::1;-1:-1:-1::0;;;;;37613:20:0;;;::::1;::::0;;;::::1;::::0;;37495:146::o;13714:201::-;12878:6;;-1:-1:-1;;;;;12878:6:0;11321:10;13025:23;13017:68;;;;-1:-1:-1;;;13017:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;13803:22:0;::::1;13795:73;;;::::0;-1:-1:-1;;;13795:73:0;;7878:2:1;13795:73:0::1;::::0;::::1;7860:21:1::0;7917:2;7897:18;;;7890:30;7956:34;7936:18;;;7929:62;-1:-1:-1;;;8007:18:1;;;8000:36;8053:19;;13795:73:0::1;7850:228:1::0;13795:73:0::1;13879:28;13898:8;13879:18;:28::i;37756:183::-:0;37817:9;:22;;-1:-1:-1;;;;;;37817:22:0;-1:-1:-1;;;;;37817:22:0;;;;;;;;;;;37850:7;;:46;;:7;;;;37870:9;-1:-1:-1;;37850:19:0;:46::i;:::-;-1:-1:-1;37907:17:0;:24;;-1:-1:-1;;37907:24:0;37927:4;37907:24;;;37756:183::o;10192:125::-;10240:4;10265:44;10303:4;10265:29;:44::i;:::-;10264:45;10257:52;;10192:125;:::o;12469:134::-;10103:13;;;;;;;10095:69;;;;-1:-1:-1;;;10095:69:0;;;;;;;:::i;:::-;12532:26:::1;:24;:26::i;:::-;12569;:24;:26::i;31223:222::-:0;31378:58;;-1:-1:-1;;;;;5259:32:1;;31378:58:0;;;5241:51:1;5308:18;;;5301:34;;;31351:86:0;;31371:5;;-1:-1:-1;;;31401:23:0;5214:18:1;;31378:58:0;;;;-1:-1:-1;;31378:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;31378:58:0;-1:-1:-1;;;;;;31378:58:0;;;;;;;;;;31351:19;:86::i;14075:191::-;14168:6;;;-1:-1:-1;;;;;14185:17:0;;;-1:-1:-1;;;;;;14185:17:0;;;;;;;14218:40;;14168:6;;;14185:17;14168:6;;14218:40;;14149:16;;14218:40;14075:191;;:::o;31981:627::-;32356:10;;;32355:62;;-1:-1:-1;32372:39:0;;-1:-1:-1;;;32372:39:0;;32396:4;32372:39;;;4970:34:1;-1:-1:-1;;;;;5040:15:1;;;5020:18;;;5013:43;32372:15:0;;;;;4905:18:1;;32372:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;32355:62;32333:166;;;;-1:-1:-1;;;32333:166:0;;11650:2:1;32333:166:0;;;11632:21:1;11689:2;11669:18;;;11662:30;11728:34;11708:18;;;11701:62;-1:-1:-1;;;11779:18:1;;;11772:52;11841:19;;32333:166:0;11622:244:1;32333:166:0;32537:62;;-1:-1:-1;;;;;5259:32:1;;32537:62:0;;;5241:51:1;5308:18;;;5301:34;;;32510:90:0;;32530:5;;-1:-1:-1;;;32560:22:0;5214:18:1;;32537:62:0;5196:145:1;808:387:0;1131:20;;1179:8;;808:387;;;;:::o;11165:70::-;10103:13;;;;;;;10095:69;;;;-1:-1:-1;;;10095:69:0;;;;;;;:::i;12611:113::-;10103:13;;;;;;;10095:69;;;;-1:-1:-1;;;10095:69:0;;;;;;;:::i;:::-;12684:32:::1;11321:10:::0;12684:18:::1;:32::i;33851:727::-:0;34286:23;34312:69;34340:4;34312:69;;;;;;;;;;;;;;;;;34320:5;-1:-1:-1;;;;;34312:27:0;;;:69;;;;;:::i;:::-;34396:17;;34286:95;;-1:-1:-1;34396:21:0;34392:179;;34493:10;34482:30;;;;;;;;;;;;:::i;:::-;34474:85;;;;-1:-1:-1;;;34474:85:0;;10906:2:1;34474:85:0;;;10888:21:1;10945:2;10925:18;;;10918:30;10984:34;10964:18;;;10957:62;-1:-1:-1;;;11035:18:1;;;11028:40;11085:19;;34474:85:0;10878:232:1;3614:229:0;3751:12;3783:52;3805:6;3813:4;3819:1;3822:12;3783:21;:52::i;:::-;3776:59;;3614:229;;;;;;:::o;4734:510::-;4904:12;4962:5;4937:21;:30;;4929:81;;;;-1:-1:-1;;;4929:81:0;;8285:2:1;4929:81:0;;;8267:21:1;8324:2;8304:18;;;8297:30;8363:34;8343:18;;;8336:62;-1:-1:-1;;;8414:18:1;;;8407:36;8460:19;;4929:81:0;8257:228:1;4929:81:0;5029:18;5040:6;5029:10;:18::i;:::-;5021:60;;;;-1:-1:-1;;;5021:60:0;;10136:2:1;5021:60:0;;;10118:21:1;10175:2;10155:18;;;10148:30;10214:31;10194:18;;;10187:59;10263:18;;5021:60:0;10108:179:1;5021:60:0;5095:12;5109:23;5136:6;-1:-1:-1;;;;;5136:11:0;5155:5;5162:4;5136:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5094:73;;;;5185:51;5202:7;5211:10;5223:12;5185:16;:51::i;:::-;5178:58;4734:510;-1:-1:-1;;;;;;;4734:510:0:o;6443:712::-;6593:12;6622:7;6618:530;;;-1:-1:-1;6653:10:0;6646:17;;6618:530;6767:17;;:21;6763:374;;6965:10;6959:17;7026:15;7013:10;7009:2;7005:19;6998:44;6913:148;7108:12;7101:20;;-1:-1:-1;;;7101:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:494::-;;;;;;848:3;836:9;827:7;823:23;819:33;816:2;;;870:6;862;855:22;816:2;898:29;917:9;898:29;:::i;:::-;888:39;;946:38;980:2;969:9;965:18;946:38;:::i;:::-;936:48;;1003:38;1037:2;1026:9;1022:18;1003:38;:::i;:::-;993:48;;1060:38;1094:2;1083:9;1079:18;1060:38;:::i;:::-;1050:48;;1117:39;1151:3;1140:9;1136:19;1117:39;:::i;:::-;1107:49;;806:356;;;;;;;;:::o;1167:954::-;;1282:2;1325;1313:9;1304:7;1300:23;1296:32;1293:2;;;1346:6;1338;1331:22;1293:2;1391:9;1378:23;1424:18;1416:6;1413:30;1410:2;;;1461:6;1453;1446:22;1410:2;1489:22;;1542:4;1534:13;;1530:27;-1:-1:-1;1520:2:1;;1576:6;1568;1561:22;1520:2;1617;1604:16;1640:60;1656:43;1696:2;1656:43;:::i;:::-;1640:60;:::i;:::-;1734:15;;;1765:12;;;;1797:11;;;1835;;;1827:20;;1823:29;;1820:42;-1:-1:-1;1817:2:1;;;1880:6;1872;1865:22;1817:2;1907:6;1898:15;;1922:169;1936:2;1933:1;1930:9;1922:169;;;1993:23;2012:3;1993:23;:::i;:::-;1981:36;;1954:1;1947:9;;;;;2037:12;;;;2069;;1922:169;;;-1:-1:-1;2110:5:1;1262:859;-1:-1:-1;;;;;;;1262:859:1:o;2126:938::-;;2252:2;2295;2283:9;2274:7;2270:23;2266:32;2263:2;;;2316:6;2308;2301:22;2263:2;2354:9;2348:16;2387:18;2379:6;2376:30;2373:2;;;2424:6;2416;2409:22;2373:2;2452:22;;2505:4;2497:13;;2493:27;-1:-1:-1;2483:2:1;;2539:6;2531;2524:22;2483:2;2573;2567:9;2596:60;2612:43;2652:2;2612:43;:::i;2596:60::-;2690:15;;;2721:12;;;;2753:11;;;2791;;;2783:20;;2779:29;;2776:42;-1:-1:-1;2773:2:1;;;2836:6;2828;2821:22;2773:2;2863:6;2854:15;;2878:156;2892:2;2889:1;2886:9;2878:156;;;2949:10;;2937:23;;2910:1;2903:9;;;;;2980:12;;;;3012;;2878:156;;3069:297;;3189:2;3177:9;3168:7;3164:23;3160:32;3157:2;;;3210:6;3202;3195:22;3157:2;3247:9;3241:16;3300:5;3293:13;3286:21;3279:5;3276:32;3266:2;;3327:6;3319;3312:22;3371:190;;3483:2;3471:9;3462:7;3458:23;3454:32;3451:2;;;3504:6;3496;3489:22;3451:2;-1:-1:-1;3532:23:1;;3441:120;-1:-1:-1;3441:120:1:o;3566:194::-;;3689:2;3677:9;3668:7;3664:23;3660:32;3657:2;;;3710:6;3702;3695:22;3657:2;-1:-1:-1;3738:16:1;;3647:113;-1:-1:-1;3647:113:1:o;3765:501::-;;3864:5;3858:12;3891:6;3886:3;3879:19;3917:4;3946:2;3941:3;3937:12;3930:19;;3970:5;3965:3;3958:18;4014:2;4009:3;3999:18;4035:3;4047:194;4061:6;4058:1;4055:13;4047:194;;;4126:13;;-1:-1:-1;;;;;4122:39:1;4110:52;;4182:12;;;;4158:1;4217:14;;;;4076:9;4047:194;;;-1:-1:-1;4257:3:1;;3834:432;-1:-1:-1;;;;;3834:432:1:o;4271:274::-;;4438:6;4432:13;4454:53;4500:6;4495:3;4488:4;4480:6;4476:17;4454:53;:::i;:::-;4523:16;;;;;4408:137;-1:-1:-1;;4408:137:1:o;5346:838::-;;5600:2;5589:9;5582:21;5626:64;5686:2;5675:9;5671:18;5663:6;5626:64;:::i;:::-;5747:22;;;5709:2;5727:18;;;5720:50;;;;5819:13;;5841:22;;;5917:15;;;;5879;;;5950:4;5963:195;5977:6;5974:1;5971:13;5963:195;;;6042:13;;-1:-1:-1;;;;;6038:39:1;6026:52;;6133:15;;;;6098:12;;;;6074:1;5992:9;5963:195;;;-1:-1:-1;6175:3:1;;5572:612;-1:-1:-1;;;;;;;5572:612:1:o;6614:383::-;;6763:2;6752:9;6745:21;6795:6;6789:13;6838:6;6833:2;6822:9;6818:18;6811:34;6854:66;6913:6;6908:2;6897:9;6893:18;6888:2;6880:6;6876:15;6854:66;:::i;:::-;6981:2;6960:15;-1:-1:-1;;6956:29:1;6941:45;;;;6988:2;6937:54;;6735:262;-1:-1:-1;;6735:262:1:o;9573:356::-;9775:2;9757:21;;;9794:18;;;9787:30;9853:34;9848:2;9833:18;;9826:62;9920:2;9905:18;;9747:182::o;10292:407::-;10494:2;10476:21;;;10533:2;10513:18;;;10506:30;10572:34;10567:2;10552:18;;10545:62;-1:-1:-1;;;10638:2:1;10623:18;;10616:41;10689:3;10674:19;;10466:233::o;12053:587::-;;12349:6;12338:9;12331:25;12392:6;12387:2;12376:9;12372:18;12365:34;12435:3;12430:2;12419:9;12415:18;12408:31;12456:65;12516:3;12505:9;12501:19;12493:6;12456:65;:::i;:::-;-1:-1:-1;;;;;12557:32:1;;;;12552:2;12537:18;;12530:60;-1:-1:-1;12621:3:1;12606:19;12599:35;12448:73;12321:319;-1:-1:-1;;;12321:319:1:o;12645:275::-;12716:2;12710:9;12781:2;12762:13;;-1:-1:-1;;12758:27:1;12746:40;;12816:18;12801:34;;12837:22;;;12798:62;12795:2;;;12863:18;;:::i;:::-;12899:2;12892:22;12690:230;;-1:-1:-1;12690:230:1:o;12925:186::-;;13018:18;13010:6;13007:30;13004:2;;;13040:18;;:::i;:::-;-1:-1:-1;13100:4:1;13081:17;;;13077:28;;12994:117::o;13116:217::-;;13182:1;13172:2;;-1:-1:-1;;;13207:31:1;;13261:4;13258:1;13251:15;13289:4;13214:1;13279:15;13172:2;-1:-1:-1;13318:9:1;;13162:171::o;13338:168::-;;13444:1;13440;13436:6;13432:14;13429:1;13426:21;13421:1;13414:9;13407:17;13403:45;13400:2;;;13451:18;;:::i;:::-;-1:-1:-1;13491:9:1;;13390:116::o;13511:125::-;;13579:1;13576;13573:8;13570:2;;;13584:18;;:::i;:::-;-1:-1:-1;13621:9:1;;13560:76::o;13641:258::-;13713:1;13723:113;13737:6;13734:1;13731:13;13723:113;;;13813:11;;;13807:18;13794:11;;;13787:39;13759:2;13752:10;13723:113;;;13854:6;13851:1;13848:13;13845:2;;;13889:1;13880:6;13875:3;13871:16;13864:27;13845:2;;13694:205;;;:::o;13904:127::-;13965:10;13960:3;13956:20;13953:1;13946:31;13996:4;13993:1;13986:15;14020:4;14017:1;14010:15;14036:127;14097:10;14092:3;14088:20;14085:1;14078:31;14128:4;14125:1;14118:15;14152:4;14149:1;14142:15
Swarm Source
ipfs://4e7aaf846d96a3bfdd28ecc9f0314a139c16cbbe5debe8deb98e2f5f9f623fda
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in GLMR
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.