More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 321 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 15539551 | 838 days ago | IN | 0 ETH | 0.00110686 | ||||
Stake | 15340141 | 870 days ago | IN | 0 ETH | 0.00505662 | ||||
Harvest | 15250470 | 884 days ago | IN | 0 ETH | 0.00067298 | ||||
Harvest | 14957238 | 932 days ago | IN | 0 ETH | 0.00323005 | ||||
Harvest | 14932675 | 936 days ago | IN | 0 ETH | 0.00217354 | ||||
Harvest | 14909520 | 940 days ago | IN | 0 ETH | 0.00301569 | ||||
Harvest | 14879064 | 945 days ago | IN | 0 ETH | 0.00313016 | ||||
Harvest | 14798418 | 958 days ago | IN | 0 ETH | 0.00088214 | ||||
Harvest | 14733957 | 969 days ago | IN | 0 ETH | 0.00176162 | ||||
Withdraw | 14648339 | 982 days ago | IN | 0 ETH | 0.00447895 | ||||
Harvest | 14648330 | 982 days ago | IN | 0 ETH | 0.0027406 | ||||
Harvest | 14640875 | 983 days ago | IN | 0 ETH | 0.00244665 | ||||
Harvest | 14635638 | 984 days ago | IN | 0 ETH | 0.0040954 | ||||
Harvest | 14610600 | 988 days ago | IN | 0 ETH | 0.00318337 | ||||
Harvest | 14609890 | 988 days ago | IN | 0 ETH | 0.00307955 | ||||
Harvest | 14609864 | 988 days ago | IN | 0 ETH | 0.00272753 | ||||
Harvest | 14609842 | 988 days ago | IN | 0 ETH | 0.00283881 | ||||
Harvest | 14609735 | 988 days ago | IN | 0 ETH | 0.0025014 | ||||
Harvest | 14601567 | 989 days ago | IN | 0 ETH | 0.00114914 | ||||
Withdraw | 14601539 | 989 days ago | IN | 0 ETH | 0.00751286 | ||||
Harvest | 14569783 | 994 days ago | IN | 0 ETH | 0.00288802 | ||||
Harvest | 14569782 | 994 days ago | IN | 0 ETH | 0.00312403 | ||||
Withdraw | 14557604 | 996 days ago | IN | 0 ETH | 0.0053465 | ||||
Harvest | 14552983 | 997 days ago | IN | 0 ETH | 0.00270018 | ||||
Harvest | 14526063 | 1001 days ago | IN | 0 ETH | 0.00398653 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BACStaking
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-01-17 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.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); /** * @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-solidity/contracts/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 IERC20Metadata is IERC20 { /** * @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-solidity/contracts/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 Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File openzeppelin-solidity/contracts/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 ERC20 is Context, IERC20, IERC20Metadata { 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. */ constructor(string memory name_, string memory symbol_) { _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 {} } // File openzeppelin-solidity/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File openzeppelin-solidity/contracts/security/[email protected] // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File openzeppelin-solidity/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } // File openzeppelin-solidity/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_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) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; } // File openzeppelin-solidity/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @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) external view returns (address); /** * @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) external view returns (uint256); } // File openzeppelin-solidity/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File openzeppelin-solidity/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File openzeppelin-solidity/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File openzeppelin-solidity/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * 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, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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 override onlyRole(getRoleAdmin(role)) { _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 override onlyRole(getRoleAdmin(role)) { _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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { 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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File openzeppelin-solidity/contracts/utils/structs/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.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.3.0, sets of type `bytes32` (`Bytes32Set`), `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; if (lastIndex != toDeleteIndex) { 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] = valueIndex; // Replace lastvalue's index to valueIndex } // 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) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { 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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, 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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set 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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // 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(uint160(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(uint160(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(uint160(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(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // 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)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } // File openzeppelin-solidity/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @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 override returns (address) { return _roleMembers[role].at(index); } /** * @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 override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } } // File openzeppelin-solidity/contracts/token/ERC20/presets/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/presets/ERC20PresetMinterPauser.sol) pragma solidity ^0.8.0; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. */ contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * See {ERC20-constructor}. */ constructor(string memory name, string memory symbol) ERC20(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 amount) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint"); _mint(to, amount); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); } } // File openzeppelin-solidity/contracts/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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } } // File openzeppelin-solidity/contracts/security/[email protected] // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File openzeppelin-solidity/contracts/utils/math/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File openzeppelin-solidity/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File openzeppelin-solidity/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File openzeppelin-solidity/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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) { // 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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(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-solidity/contracts/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 SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @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( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 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(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. 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"); } } } pragma solidity ^0.8.0; contract BACStaking is ReentrancyGuard, Pausable, Ownable, IERC721Receiver { using SafeMath for uint256; using EnumerableSet for EnumerableSet.UintSet; using SafeERC20 for IERC20; /* Reward Token */ address public rewardTokenAddress; /* Staking Reward ratio ( every day ) */ uint256 public rewardPerDay = 10 * 10 ** 18; address public stakeNft; struct UserInfo { uint256 balance; uint256 rewards; uint256 lastUpdated; } mapping(address => EnumerableSet.UintSet) private userBlanaces; // Info of each user that stakes LP tokens. mapping(address => UserInfo) private userInfo; event RewardAddressUpdated( address token); event RewardPerDayUpdated( uint256 reward); event Staked( address indexed account, uint256 tokenId); event Withdrawn( address indexed account, uint256 tokenId); event Harvest(address indexed user, uint256 amount); constructor(address _rewardTokenAddress,address _stakeNft, uint256 _rewardPerDay) { stakeNft = _stakeNft; rewardTokenAddress = _rewardTokenAddress; rewardPerDay = _rewardPerDay; } function userStakeInfo(address _owner) external view returns(UserInfo memory){ return userInfo[_owner]; } function userStakedNFT(address _owner) public view returns(uint256[] memory){ // return userBlanaces[_owner].values(); uint256 tokenCount = userBlanaces[_owner].length(); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index < tokenCount; index++) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } } function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { return userBlanaces[owner].at(index); } function userStakedNFTCount(address _owner) public view returns(uint256){ return userBlanaces[_owner].length(); } function setRewardTokenAddress( address _address) external onlyOwner { require(_address != address(0x0), "invalid address"); rewardTokenAddress = _address; emit RewardAddressUpdated(_address); } function setRewardPerDay( uint256 _reward) external onlyOwner { rewardPerDay = _reward; emit RewardPerDayUpdated(_reward); } function isStaked( address account ,uint256 tokenId) public view returns (bool) { return userBlanaces[account].contains(tokenId); } function earned(address account) public view returns (uint256) { uint256 blockTime = block.timestamp; UserInfo memory user = userInfo[account]; uint256 amount = blockTime.sub(user.lastUpdated).mul(userStakedNFTCount(account)).mul(rewardPerDay).div(1 days); return user.rewards.add(amount); } function stake( uint256[] memory tokenIdList) public nonReentrant whenNotPaused { require(IERC721(stakeNft).isApprovedForAll(_msgSender(),address(this)),"Not approve nft to staker address"); UserInfo storage user = userInfo[_msgSender()]; user.rewards = earned(_msgSender()); user.lastUpdated = block.timestamp; for (uint256 i = 0; i < tokenIdList.length; i++) { IERC721(stakeNft).safeTransferFrom(_msgSender(), address(this), tokenIdList[i]); userBlanaces[_msgSender()].add(tokenIdList[i]); emit Staked( _msgSender(), tokenIdList[i]); } } function withdraw( uint256[] memory tokenIdList) public nonReentrant { UserInfo storage user = userInfo[_msgSender()]; user.rewards = earned(_msgSender()); user.lastUpdated = block.timestamp; for (uint256 i = 0; i < tokenIdList.length; i++) { require(tokenIdList[i] > 0, "Invaild token id"); require(isStaked(_msgSender(), tokenIdList[i]), "Not staked this nft"); IERC721(stakeNft).safeTransferFrom(address(this) , _msgSender(), tokenIdList[i]); userBlanaces[_msgSender()].remove(tokenIdList[i]); emit Withdrawn(_msgSender(), tokenIdList[i]); } } function harvest() public nonReentrant { UserInfo storage user = userInfo[_msgSender()]; user.rewards = earned(_msgSender()); user.lastUpdated = block.timestamp; require(IERC20(rewardTokenAddress).balanceOf(address(this)) >= user.rewards,"Reward token amount is small"); if (user.rewards > 0) { IERC20(rewardTokenAddress).safeTransfer(_msgSender(), user.rewards); } user.rewards = 0; emit Harvest(_msgSender(), user.rewards); } function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address","name":"_stakeNft","type":"address"},{"internalType":"uint256","name":"_rewardPerDay","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"RewardAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPerDayUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setRewardPerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRewardTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeNft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userStakeInfo","outputs":[{"components":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"}],"internalType":"struct BACStaking.UserInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userStakedNFT","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userStakedNFTCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052678ac7230489e800006003553480156200001d57600080fd5b50604051620018e4380380620018e4833981016040819052620000409162000109565b60016000819055805460ff191690556200005a3362000092565b600480546001600160a01b039384166001600160a01b031991821617909155600280549490931693169290921790556003556200014a565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200010457600080fd5b919050565b6000806000606084860312156200011f57600080fd5b6200012a84620000ec565b92506200013a60208501620000ec565b9150604084015190509250925092565b61178a806200015a6000396000f3fe608060405234801561001057600080fd5b50600436106101205760003560e01c80635c975abb116100ad5780639a6acf20116100715780639a6acf20146102a4578063af8f42b8146102b7578063cd0559eb146102c0578063d43e33a2146102d3578063f2fde38b146102e657600080fd5b80635c975abb14610255578063715018a6146102605780638da5cb5b1461026857806390c35a931461027e578063983d95ce1461029157600080fd5b80632f745c59116100f45780632f745c59146101c257806340376ba2146101d55780634641257d146101f55780634ead4327146101fd5780635451da1b1461023257600080fd5b80628cc262146101255780630fbf0a931461014b578063125f9e3314610160578063150b7a021461018b575b600080fd5b61013861013336600461130b565b6102f9565b6040519081526020015b60405180910390f35b61015e610159366004611410565b61038c565b005b600254610173906001600160a01b031681565b6040516001600160a01b039091168152602001610142565b6101a9610199366004611326565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610142565b6101386101d03660046113e6565b61066f565b6101e86101e336600461130b565b61069a565b604051610142919061152d565b61015e61076b565b61021061020b36600461130b565b6108f1565b6040805182518152602080840151908201529181015190820152606001610142565b6102456102403660046113e6565b610957565b6040519015158152602001610142565b60015460ff16610245565b61015e610979565b60015461010090046001600160a01b0316610173565b61015e61028c3660046114df565b6109b5565b61015e61029f366004611410565b610a21565b61015e6102b236600461130b565b610c88565b61013860035481565b6101386102ce36600461130b565b610d4e565b600454610173906001600160a01b031681565b61015e6102f436600461130b565b610d6f565b6001600160a01b03811660009081526006602090815260408083208151606081018352815481526001820154938101939093526002015490820152600354429190839061037190620151809061036b906103656103558a610d4e565b6040880151610365908a90610e10565b90610e1c565b90610e28565b60208301519091506103839082610e34565b95945050505050565b600260005414156103b85760405162461bcd60e51b81526004016103af906115d9565b60405180910390fd5b600260005560015460ff16156104035760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103af565b6004546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561045a57600080fd5b505afa15801561046e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049291906114bd565b6104e85760405162461bcd60e51b815260206004820152602160248201527f4e6f7420617070726f7665206e667420746f207374616b6572206164647265736044820152607360f81b60648201526084016103af565b33600081815260066020526040902090610501906102f9565b600182015542600282015560005b8251811015610665576004546001600160a01b03166342842e0e333086858151811061053d5761053d611728565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561059757600080fd5b505af11580156105ab573d6000803e3d6000fd5b505050506105f68382815181106105c4576105c4611728565b6020026020010151600560006105d73390565b6001600160a01b03168152602081019190915260400160002090610e40565b50336001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d84838151811061063457610634611728565b602002602001015160405161064b91815260200190565b60405180910390a28061065d816116e1565b91505061050f565b5050600160005550565b6001600160a01b03821660009081526005602052604081206106919083610e4c565b90505b92915050565b6001600160a01b0381166000908152600560205260408120606091906106bf90610e58565b9050806106e05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156106fb576106fb61173e565b604051908082528060200260200182016040528015610724578160200160208202803683370190505b50905060005b828110156106d85761073c858261066f565b82828151811061074e5761074e611728565b602090810291909101015280610763816116e1565b91505061072a565b6002600054141561078e5760405162461bcd60e51b81526004016103af906115d9565b600260009081553380825260066020526040909120906107ad906102f9565b6001820181905542600280840191909155546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156107ff57600080fd5b505afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906114f8565b10156108855760405162461bcd60e51b815260206004820152601c60248201527f52657761726420746f6b656e20616d6f756e7420697320736d616c6c0000000060448201526064016103af565b6001810154156108ab576108ab3360018301546002546001600160a01b03169190610e62565b60006001820181905560405190815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2506001600055565b61091560405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b6001600160a01b03821660009081526005602052604081206106919083610eb9565b6001546001600160a01b036101009091041633146109a95760405162461bcd60e51b81526004016103af906115a4565b6109b36000610ed1565b565b6001546001600160a01b036101009091041633146109e55760405162461bcd60e51b81526004016103af906115a4565b60038190556040518181527faf45db73ac64d2473f827dbb7dd94955a53cb5b560dbd12bd9be4315f44ce4b5906020015b60405180910390a150565b60026000541415610a445760405162461bcd60e51b81526004016103af906115d9565b60026000908155338082526006602052604090912090610a63906102f9565b600182015542600282015560005b8251811015610665576000838281518110610a8e57610a8e611728565b602002602001015111610ad65760405162461bcd60e51b815260206004820152601060248201526f125b9d985a5b19081d1bdad95b881a5960821b60448201526064016103af565b610af933848381518110610aec57610aec611728565b6020026020010151610957565b610b3b5760405162461bcd60e51b8152602060048201526013602482015272139bdd081cdd185ad959081d1a1a5cc81b999d606a1b60448201526064016103af565b6004546001600160a01b03166342842e0e3033868581518110610b6057610b60611728565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b50505050610c19838281518110610be757610be7611728565b602002602001015160056000610bfa3390565b6001600160a01b03168152602081019190915260400160002090610f2b565b50336001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5848381518110610c5757610c57611728565b6020026020010151604051610c6e91815260200190565b60405180910390a280610c80816116e1565b915050610a71565b6001546001600160a01b03610100909104163314610cb85760405162461bcd60e51b81526004016103af906115a4565b6001600160a01b038116610d005760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016103af565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f97e1f675f69047e4b663d3b795841c629240f48eb403a6337e5367c4405737e090602001610a16565b6001600160a01b038116600090815260056020526040812061069490610e58565b6001546001600160a01b03610100909104163314610d9f5760405162461bcd60e51b81526004016103af906115a4565b6001600160a01b038116610e045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103af565b610e0d81610ed1565b50565b6000610691828461169a565b6000610691828461167b565b60006106918284611659565b60006106918284611641565b60006106918383610f37565b60006106918383610f86565b6000610694825490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610eb4908490610fb0565b505050565b60008181526001830160205260408120541515610691565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006106918383611082565b6000818152600183016020526040812054610f7e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610694565b506000610694565b6000826000018281548110610f9d57610f9d611728565b9060005260206000200154905092915050565b6000611005826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111759092919063ffffffff16565b805190915015610eb4578080602001905181019061102391906114bd565b610eb45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103af565b6000818152600183016020526040812054801561116b5760006110a660018361169a565b85549091506000906110ba9060019061169a565b905081811461111f5760008660000182815481106110da576110da611728565b90600052602060002001549050808760000184815481106110fd576110fd611728565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061113057611130611712565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610694565b6000915050610694565b6060611184848460008561118e565b90505b9392505050565b6060824710156111ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103af565b843b61123d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103af565b600080866001600160a01b031685876040516112599190611511565b60006040518083038185875af1925050503d8060008114611296576040519150601f19603f3d011682016040523d82523d6000602084013e61129b565b606091505b50915091506112ab8282866112b6565b979650505050505050565b606083156112c5575081611187565b8251156112d55782518084602001fd5b8160405162461bcd60e51b81526004016103af9190611571565b80356001600160a01b038116811461130657600080fd5b919050565b60006020828403121561131d57600080fd5b610691826112ef565b6000806000806080858703121561133c57600080fd5b611345856112ef565b935060206113548187016112ef565b935060408601359250606086013567ffffffffffffffff8082111561137857600080fd5b818801915088601f83011261138c57600080fd5b81358181111561139e5761139e61173e565b6113b0601f8201601f19168501611610565b915080825289848285010111156113c657600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080604083850312156113f957600080fd5b611402836112ef565b946020939093013593505050565b6000602080838503121561142357600080fd5b823567ffffffffffffffff8082111561143b57600080fd5b818501915085601f83011261144f57600080fd5b8135818111156114615761146161173e565b8060051b9150611472848301611610565b8181528481019084860184860187018a101561148d57600080fd5b600095505b838610156114b0578035835260019590950194918601918601611492565b5098975050505050505050565b6000602082840312156114cf57600080fd5b8151801515811461118757600080fd5b6000602082840312156114f157600080fd5b5035919050565b60006020828403121561150a57600080fd5b5051919050565b600082516115238184602087016116b1565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b8181101561156557835183529284019291840191600101611549565b50909695505050505050565b60208152600082518060208401526115908160408501602087016116b1565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156116395761163961173e565b604052919050565b60008219821115611654576116546116fc565b500190565b60008261167657634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611695576116956116fc565b500290565b6000828210156116ac576116ac6116fc565b500390565b60005b838110156116cc5781810151838201526020016116b4565b838111156116db576000848401525b50505050565b60006000198214156116f5576116f56116fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212203283e1614a3b21dd5e3d9fd80c732e56d0492ffe4d9426b7e03ec95a4d73cfcd64736f6c63430008070033000000000000000000000000941259d10995d41225937f7f3017c2966db65aca0000000000000000000000005973ff9948aa4f90bee03b4dfd17620b2d0985060000000000000000000000000000000000000000000000008ac7230489e80000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101205760003560e01c80635c975abb116100ad5780639a6acf20116100715780639a6acf20146102a4578063af8f42b8146102b7578063cd0559eb146102c0578063d43e33a2146102d3578063f2fde38b146102e657600080fd5b80635c975abb14610255578063715018a6146102605780638da5cb5b1461026857806390c35a931461027e578063983d95ce1461029157600080fd5b80632f745c59116100f45780632f745c59146101c257806340376ba2146101d55780634641257d146101f55780634ead4327146101fd5780635451da1b1461023257600080fd5b80628cc262146101255780630fbf0a931461014b578063125f9e3314610160578063150b7a021461018b575b600080fd5b61013861013336600461130b565b6102f9565b6040519081526020015b60405180910390f35b61015e610159366004611410565b61038c565b005b600254610173906001600160a01b031681565b6040516001600160a01b039091168152602001610142565b6101a9610199366004611326565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610142565b6101386101d03660046113e6565b61066f565b6101e86101e336600461130b565b61069a565b604051610142919061152d565b61015e61076b565b61021061020b36600461130b565b6108f1565b6040805182518152602080840151908201529181015190820152606001610142565b6102456102403660046113e6565b610957565b6040519015158152602001610142565b60015460ff16610245565b61015e610979565b60015461010090046001600160a01b0316610173565b61015e61028c3660046114df565b6109b5565b61015e61029f366004611410565b610a21565b61015e6102b236600461130b565b610c88565b61013860035481565b6101386102ce36600461130b565b610d4e565b600454610173906001600160a01b031681565b61015e6102f436600461130b565b610d6f565b6001600160a01b03811660009081526006602090815260408083208151606081018352815481526001820154938101939093526002015490820152600354429190839061037190620151809061036b906103656103558a610d4e565b6040880151610365908a90610e10565b90610e1c565b90610e28565b60208301519091506103839082610e34565b95945050505050565b600260005414156103b85760405162461bcd60e51b81526004016103af906115d9565b60405180910390fd5b600260005560015460ff16156104035760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103af565b6004546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561045a57600080fd5b505afa15801561046e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049291906114bd565b6104e85760405162461bcd60e51b815260206004820152602160248201527f4e6f7420617070726f7665206e667420746f207374616b6572206164647265736044820152607360f81b60648201526084016103af565b33600081815260066020526040902090610501906102f9565b600182015542600282015560005b8251811015610665576004546001600160a01b03166342842e0e333086858151811061053d5761053d611728565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561059757600080fd5b505af11580156105ab573d6000803e3d6000fd5b505050506105f68382815181106105c4576105c4611728565b6020026020010151600560006105d73390565b6001600160a01b03168152602081019190915260400160002090610e40565b50336001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d84838151811061063457610634611728565b602002602001015160405161064b91815260200190565b60405180910390a28061065d816116e1565b91505061050f565b5050600160005550565b6001600160a01b03821660009081526005602052604081206106919083610e4c565b90505b92915050565b6001600160a01b0381166000908152600560205260408120606091906106bf90610e58565b9050806106e05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156106fb576106fb61173e565b604051908082528060200260200182016040528015610724578160200160208202803683370190505b50905060005b828110156106d85761073c858261066f565b82828151811061074e5761074e611728565b602090810291909101015280610763816116e1565b91505061072a565b6002600054141561078e5760405162461bcd60e51b81526004016103af906115d9565b600260009081553380825260066020526040909120906107ad906102f9565b6001820181905542600280840191909155546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156107ff57600080fd5b505afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906114f8565b10156108855760405162461bcd60e51b815260206004820152601c60248201527f52657761726420746f6b656e20616d6f756e7420697320736d616c6c0000000060448201526064016103af565b6001810154156108ab576108ab3360018301546002546001600160a01b03169190610e62565b60006001820181905560405190815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2506001600055565b61091560405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b6001600160a01b03821660009081526005602052604081206106919083610eb9565b6001546001600160a01b036101009091041633146109a95760405162461bcd60e51b81526004016103af906115a4565b6109b36000610ed1565b565b6001546001600160a01b036101009091041633146109e55760405162461bcd60e51b81526004016103af906115a4565b60038190556040518181527faf45db73ac64d2473f827dbb7dd94955a53cb5b560dbd12bd9be4315f44ce4b5906020015b60405180910390a150565b60026000541415610a445760405162461bcd60e51b81526004016103af906115d9565b60026000908155338082526006602052604090912090610a63906102f9565b600182015542600282015560005b8251811015610665576000838281518110610a8e57610a8e611728565b602002602001015111610ad65760405162461bcd60e51b815260206004820152601060248201526f125b9d985a5b19081d1bdad95b881a5960821b60448201526064016103af565b610af933848381518110610aec57610aec611728565b6020026020010151610957565b610b3b5760405162461bcd60e51b8152602060048201526013602482015272139bdd081cdd185ad959081d1a1a5cc81b999d606a1b60448201526064016103af565b6004546001600160a01b03166342842e0e3033868581518110610b6057610b60611728565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b50505050610c19838281518110610be757610be7611728565b602002602001015160056000610bfa3390565b6001600160a01b03168152602081019190915260400160002090610f2b565b50336001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5848381518110610c5757610c57611728565b6020026020010151604051610c6e91815260200190565b60405180910390a280610c80816116e1565b915050610a71565b6001546001600160a01b03610100909104163314610cb85760405162461bcd60e51b81526004016103af906115a4565b6001600160a01b038116610d005760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016103af565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f97e1f675f69047e4b663d3b795841c629240f48eb403a6337e5367c4405737e090602001610a16565b6001600160a01b038116600090815260056020526040812061069490610e58565b6001546001600160a01b03610100909104163314610d9f5760405162461bcd60e51b81526004016103af906115a4565b6001600160a01b038116610e045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103af565b610e0d81610ed1565b50565b6000610691828461169a565b6000610691828461167b565b60006106918284611659565b60006106918284611641565b60006106918383610f37565b60006106918383610f86565b6000610694825490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610eb4908490610fb0565b505050565b60008181526001830160205260408120541515610691565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006106918383611082565b6000818152600183016020526040812054610f7e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610694565b506000610694565b6000826000018281548110610f9d57610f9d611728565b9060005260206000200154905092915050565b6000611005826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111759092919063ffffffff16565b805190915015610eb4578080602001905181019061102391906114bd565b610eb45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103af565b6000818152600183016020526040812054801561116b5760006110a660018361169a565b85549091506000906110ba9060019061169a565b905081811461111f5760008660000182815481106110da576110da611728565b90600052602060002001549050808760000184815481106110fd576110fd611728565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061113057611130611712565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610694565b6000915050610694565b6060611184848460008561118e565b90505b9392505050565b6060824710156111ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103af565b843b61123d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103af565b600080866001600160a01b031685876040516112599190611511565b60006040518083038185875af1925050503d8060008114611296576040519150601f19603f3d011682016040523d82523d6000602084013e61129b565b606091505b50915091506112ab8282866112b6565b979650505050505050565b606083156112c5575081611187565b8251156112d55782518084602001fd5b8160405162461bcd60e51b81526004016103af9190611571565b80356001600160a01b038116811461130657600080fd5b919050565b60006020828403121561131d57600080fd5b610691826112ef565b6000806000806080858703121561133c57600080fd5b611345856112ef565b935060206113548187016112ef565b935060408601359250606086013567ffffffffffffffff8082111561137857600080fd5b818801915088601f83011261138c57600080fd5b81358181111561139e5761139e61173e565b6113b0601f8201601f19168501611610565b915080825289848285010111156113c657600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080604083850312156113f957600080fd5b611402836112ef565b946020939093013593505050565b6000602080838503121561142357600080fd5b823567ffffffffffffffff8082111561143b57600080fd5b818501915085601f83011261144f57600080fd5b8135818111156114615761146161173e565b8060051b9150611472848301611610565b8181528481019084860184860187018a101561148d57600080fd5b600095505b838610156114b0578035835260019590950194918601918601611492565b5098975050505050505050565b6000602082840312156114cf57600080fd5b8151801515811461118757600080fd5b6000602082840312156114f157600080fd5b5035919050565b60006020828403121561150a57600080fd5b5051919050565b600082516115238184602087016116b1565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b8181101561156557835183529284019291840191600101611549565b50909695505050505050565b60208152600082518060208401526115908160408501602087016116b1565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156116395761163961173e565b604052919050565b60008219821115611654576116546116fc565b500190565b60008261167657634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611695576116956116fc565b500290565b6000828210156116ac576116ac6116fc565b500390565b60005b838110156116cc5781810151838201526020016116b4565b838111156116db576000848401525b50505050565b60006000198214156116f5576116f56116fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212203283e1614a3b21dd5e3d9fd80c732e56d0492ffe4d9426b7e03ec95a4d73cfcd64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000941259d10995d41225937f7f3017c2966db65aca0000000000000000000000005973ff9948aa4f90bee03b4dfd17620b2d0985060000000000000000000000000000000000000000000000008ac7230489e80000
-----Decoded View---------------
Arg [0] : _rewardTokenAddress (address): 0x941259d10995D41225937f7f3017c2966DB65ACA
Arg [1] : _stakeNft (address): 0x5973ff9948AA4F90bEe03b4DFD17620B2d098506
Arg [2] : _rewardPerDay (uint256): 10000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000941259d10995d41225937f7f3017c2966db65aca
Arg [1] : 0000000000000000000000005973ff9948aa4f90bee03b4dfd17620b2d098506
Arg [2] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Deployed Bytecode Sourcemap
85590:5194:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88376:338;;;;;;:::i;:::-;;:::i;:::-;;;11082:25:1;;;11070:2;11055:18;88376:338:0;;;;;;;;88724:648;;;;;;:::i;:::-;;:::i;:::-;;85825:33;;;;;-1:-1:-1;;;;;85825:33:0;;;;;;-1:-1:-1;;;;;3688:32:1;;;3670:51;;3658:2;3643:18;85825:33:0;3524:203:1;90615:164:0;;;;;;:::i;:::-;-1:-1:-1;;;90615:164:0;;;;;;;;;;-1:-1:-1;;;;;;5691:33:1;;;5673:52;;5661:2;5646:18;90615:164:0;5529:202:1;87536:144:0;;;;;;:::i;:::-;;:::i;86927:601::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;90076:531::-;;;:::i;86798:120::-;;;;;;:::i;:::-;;:::i;:::-;;;;10785:13:1;;10767:32;;10855:4;10843:17;;;10837:24;10815:20;;;10808:54;10906:17;;;10900:24;10878:20;;;10871:54;10755:2;10740:18;86798:120:0;10569:362:1;88223:145:0;;;;;;:::i;:::-;;:::i;:::-;;;5502:14:1;;5495:22;5477:41;;5465:2;5450:18;88223:145:0;5337:187:1;19086:86:0;19157:7;;;;19086:86;;56831:103;;;:::i;56180:87::-;56253:6;;;;;-1:-1:-1;;;;;56253:6:0;56180:87;;88063:147;;;;;;:::i;:::-;;:::i;89382:684::-;;;;;;:::i;:::-;;:::i;87827:228::-;;;;;;:::i;:::-;;:::i;85913:44::-;;;;;;87689:128;;;;;;:::i;:::-;;:::i;85970:23::-;;;;;-1:-1:-1;;;;;85970:23:0;;;57089:201;;;;;;:::i;:::-;;:::i;88376:338::-;-1:-1:-1;;;;;88521:17:0;;88430:7;88521:17;;;:8;:17;;;;;;;;88498:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88637:12;;88470:15;;88498:40;88430:7;;88568:94;;88655:6;;88568:82;;:64;88604:27;88530:7;88604:18;:27::i;:::-;88582:16;;;;88568:31;;:9;;:13;:31::i;:::-;:35;;:64::i;:82::-;:86;;:94::i;:::-;88682:12;;;;88551:111;;-1:-1:-1;88682:24:0;;88551:111;88682:16;:24::i;:::-;88675:31;88376:338;-1:-1:-1;;;;;88376:338:0:o;88724:648::-;59476:1;60074:7;;:19;;60066:63;;;;-1:-1:-1;;;60066:63:0;;;;;;;:::i;:::-;;;;;;;;;59476:1;60207:7;:18;19157:7;;;;19411:9:::1;19403:38;;;::::0;-1:-1:-1;;;19403:38:0;;7845:2:1;19403:38:0::1;::::0;::::1;7827:21:1::0;7884:2;7864:18;;;7857:30;-1:-1:-1;;;7903:18:1;;;7896:46;7959:18;;19403:38:0::1;7643:340:1::0;19403:38:0::1;88834:8:::2;::::0;-1:-1:-1;;;;;88834:8:0::2;88826:34;4333:10:::0;88826:62:::2;::::0;-1:-1:-1;;;;;;88826:62:0::2;::::0;;;;;;-1:-1:-1;;;;;3962:15:1;;;88826:62:0::2;::::0;::::2;3944:34:1::0;88882:4:0::2;3994:18:1::0;;;3987:43;3879:18;;88826:62:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88818:107;;;::::0;-1:-1:-1;;;88818:107:0;;8895:2:1;88818:107:0::2;::::0;::::2;8877:21:1::0;8934:2;8914:18;;;8907:30;8973:34;8953:18;;;8946:62;-1:-1:-1;;;9024:18:1;;;9017:31;9065:19;;88818:107:0::2;8693:397:1::0;88818:107:0::2;4333:10:::0;88938:21:::2;88962:22:::0;;;:8:::2;:22;::::0;;;;;89010:20:::2;::::0;88376:338;:::i;89010:20::-:2;88995:12;::::0;::::2;:35:::0;89060:15:::2;89041:16;::::0;::::2;:34:::0;-1:-1:-1;89088:277:0::2;89112:11;:18;89108:1;:22;89088:277;;;89160:8;::::0;-1:-1:-1;;;;;89160:8:0::2;89152:34;4333:10:::0;89209:4:::2;89216:11;89228:1;89216:14;;;;;;;;:::i;:::-;;::::0;;::::2;::::0;;;;;;89152:79:::2;::::0;-1:-1:-1;;;;;;89152:79:0::2;::::0;;;;;;-1:-1:-1;;;;;4299:15:1;;;89152:79:0::2;::::0;::::2;4281:34:1::0;4351:15;;;;4331:18;;;4324:43;4383:18;;;4376:34;4216:18;;89152:79:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;89248:46;89279:11;89291:1;89279:14;;;;;;;;:::i;:::-;;;;;;;89248:12;:26;89261:12;4333:10:::0;;4253:98;89261:12:::2;-1:-1:-1::0;;;;;89248:26:0::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;89248:26:0;;:30:::2;:46::i;:::-;-1:-1:-1::0;4333:10:0;-1:-1:-1;;;;;89316:37:0::2;;89338:11;89350:1;89338:14;;;;;;;;:::i;:::-;;;;;;;89316:37;;;;11082:25:1::0;;11070:2;11055:18;;10936:177;89316:37:0::2;;;;;;;;89132:3:::0;::::2;::::0;::::2;:::i;:::-;;;;89088:277;;;-1:-1:-1::0;;59432:1:0;60386:7;:22;-1:-1:-1;88724:648:0:o;87536:144::-;-1:-1:-1;;;;;87643:19:0;;87616:7;87643:19;;;:12;:19;;;;;:29;;87666:5;87643:22;:29::i;:::-;87636:36;;87536:144;;;;;:::o;86927:601::-;-1:-1:-1;;;;;87086:20:0;;87065:18;87086:20;;;:12;:20;;;;;86986:16;;87065:18;87086:29;;:27;:29::i;:::-;87065:50;-1:-1:-1;87130:15:0;87126:393;;87207:16;;;87221:1;87207:16;;;;;;;;;;;-1:-1:-1;87200:23:0;86927:601;-1:-1:-1;;;86927:601:0:o;87126:393::-;87256:23;87296:10;87282:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87282:25:0;;87256:51;;87322:13;87350:130;87374:10;87366:5;:18;87350:130;;;87430:34;87450:6;87458:5;87430:19;:34::i;:::-;87414:6;87421:5;87414:13;;;;;;;;:::i;:::-;;;;;;;;;;:50;87386:7;;;;:::i;:::-;;;;87350:130;;90076:531;59476:1;60074:7;;:19;;60066:63;;;;-1:-1:-1;;;60066:63:0;;;;;;;:::i;:::-;59476:1;60207:7;:18;;;4333:10;90153:22;;;:8:::1;:22;::::0;;;;;;90203:20:::1;::::0;88376:338;:::i;90203:20::-:1;90188:12;::::0;::::1;:35:::0;;;90253:15:::1;90234:16;::::0;;::::1;:34:::0;;;;90296:18;90289:51:::1;::::0;-1:-1:-1;;;90289:51:0;;90334:4:::1;90289:51;::::0;::::1;3670::1::0;-1:-1:-1;;;;;90296:18:0;;::::1;::::0;90289:36:::1;::::0;3643:18:1;;90289:51:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:67;;90281:107;;;::::0;-1:-1:-1;;;90281:107:0;;6733:2:1;90281:107:0::1;::::0;::::1;6715:21:1::0;6772:2;6752:18;;;6745:30;6811;6791:18;;;6784:58;6859:18;;90281:107:0::1;6531:352:1::0;90281:107:0::1;90405:12;::::0;::::1;::::0;:16;90401:116:::1;;90438:67;4333:10:::0;90492:12:::1;::::0;::::1;::::0;90445:18:::1;::::0;-1:-1:-1;;;;;90445:18:0::1;::::0;90438:67;:39:::1;:67::i;:::-;90544:1;90529:12;::::0;::::1;:16:::0;;;90563:36:::1;::::0;11082:25:1;;;4333:10:0;;90563:36:::1;::::0;11070:2:1;11055:18;90563:36:0::1;;;;;;;-1:-1:-1::0;59432:1:0;60386:7;:22;90076:531::o;86798:120::-;86859:15;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;86859:15:0;-1:-1:-1;;;;;;86894:16:0;;;;;:8;:16;;;;;;;;;86887:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86798:120::o;88223:145::-;-1:-1:-1;;;;;88321:21:0;;88297:4;88321:21;;;:12;:21;;;;;:39;;88352:7;88321:30;:39::i;56831:103::-;56253:6;;-1:-1:-1;;;;;56253:6:0;;;;;4333:10;56400:23;56392:68;;;;-1:-1:-1;;;56392:68:0;;;;;;;:::i;:::-;56896:30:::1;56923:1;56896:18;:30::i;:::-;56831:103::o:0;88063:147::-;56253:6;;-1:-1:-1;;;;;56253:6:0;;;;;4333:10;56400:23;56392:68;;;;-1:-1:-1;;;56392:68:0;;;;;;;:::i;:::-;88136:12:::1;:22:::0;;;88174:28:::1;::::0;11082:25:1;;;88174:28:0::1;::::0;11070:2:1;11055:18;88174:28:0::1;;;;;;;;88063:147:::0;:::o;89382:684::-;59476:1;60074:7;;:19;;60066:63;;;;-1:-1:-1;;;60066:63:0;;;;;;;:::i;:::-;59476:1;60207:7;:18;;;4333:10;89487:22;;;:8:::1;:22;::::0;;;;;;89535:20:::1;::::0;88376:338;:::i;89535:20::-:1;89520:12;::::0;::::1;:35:::0;89585:15:::1;89566:16;::::0;::::1;:34:::0;-1:-1:-1;89613:446:0::1;89637:11;:18;89633:1;:22;89613:446;;;89702:1;89685:11;89697:1;89685:14;;;;;;;;:::i;:::-;;;;;;;:18;89677:47;;;::::0;-1:-1:-1;;;89677:47:0;;10426:2:1;89677:47:0::1;::::0;::::1;10408:21:1::0;10465:2;10445:18;;;10438:30;-1:-1:-1;;;10484:18:1;;;10477:46;10540:18;;89677:47:0::1;10224:340:1::0;89677:47:0::1;89749:38;4333:10:::0;89772:11:::1;89784:1;89772:14;;;;;;;;:::i;:::-;;;;;;;89749:8;:38::i;:::-;89741:70;;;::::0;-1:-1:-1;;;89741:70:0;;7497:2:1;89741:70:0::1;::::0;::::1;7479:21:1::0;7536:2;7516:18;;;7509:30;-1:-1:-1;;;7555:18:1;;;7548:49;7614:18;;89741:70:0::1;7295:343:1::0;89741:70:0::1;89844:8;::::0;-1:-1:-1;;;;;89844:8:0::1;89836:34;89879:4;4333:10:::0;89901:11:::1;89913:1;89901:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;89836:80:::1;::::0;-1:-1:-1;;;;;;89836:80:0::1;::::0;;;;;;-1:-1:-1;;;;;4299:15:1;;;89836:80:0::1;::::0;::::1;4281:34:1::0;4351:15;;;;4331:18;;;4324:43;4383:18;;;4376:34;4216:18;;89836:80:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;89933:49;89967:11;89979:1;89967:14;;;;;;;;:::i;:::-;;;;;;;89933:12;:26;89946:12;4333:10:::0;;4253:98;89946:12:::1;-1:-1:-1::0;;;;;89933:26:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;89933:26:0;;:33:::1;:49::i;:::-;-1:-1:-1::0;4333:10:0;-1:-1:-1;;;;;90004:39:0::1;;90028:11;90040:1;90028:14;;;;;;;;:::i;:::-;;;;;;;90004:39;;;;11082:25:1::0;;11070:2;11055:18;;10936:177;90004:39:0::1;;;;;;;;89657:3:::0;::::1;::::0;::::1;:::i;:::-;;;;89613:446;;87827:228:::0;56253:6;;-1:-1:-1;;;;;56253:6:0;;;;;4333:10;56400:23;56392:68;;;;-1:-1:-1;;;56392:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;87915:24:0;::::1;87907:52;;;::::0;-1:-1:-1;;;87907:52:0;;8190:2:1;87907:52:0::1;::::0;::::1;8172:21:1::0;8229:2;8209:18;;;8202:30;-1:-1:-1;;;8248:18:1;;;8241:45;8303:18;;87907:52:0::1;7988:339:1::0;87907:52:0::1;87970:18;:29:::0;;-1:-1:-1;;;;;;87970:29:0::1;-1:-1:-1::0;;;;;87970:29:0;::::1;::::0;;::::1;::::0;;;88017:30:::1;::::0;3670:51:1;;;88017:30:0::1;::::0;3658:2:1;3643:18;88017:30:0::1;3524:203:1::0;87689:128:0;-1:-1:-1;;;;;87780:20:0;;87753:7;87780:20;;;:12;:20;;;;;:29;;:27;:29::i;57089:201::-;56253:6;;-1:-1:-1;;;;;56253:6:0;;;;;4333:10;56400:23;56392:68;;;;-1:-1:-1;;;56392:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;57178:22:0;::::1;57170:73;;;::::0;-1:-1:-1;;;57170:73:0;;6326:2:1;57170:73:0::1;::::0;::::1;6308:21:1::0;6365:2;6345:18;;;6338:30;6404:34;6384:18;;;6377:62;-1:-1:-1;;;6455:18:1;;;6448:36;6501:19;;57170:73:0::1;6124:402:1::0;57170:73:0::1;57254:28;57273:8;57254:18;:28::i;:::-;57089:201:::0;:::o;63682:98::-;63740:7;63767:5;63771:1;63767;:5;:::i;64039:98::-;64097:7;64124:5;64128:1;64124;:5;:::i;64438:98::-;64496:7;64523:5;64527:1;64523;:5;:::i;63301:98::-;63359:7;63386:5;63390:1;63386;:5;:::i;47649:131::-;47716:4;47740:32;47745:3;47765:5;47740:4;:32::i;48879:137::-;48950:7;48985:22;48989:3;49001:5;48985:3;:22::i;48411:114::-;48471:7;48498:19;48506:3;41440:18;;41357:109;82267:211;82411:58;;;-1:-1:-1;;;;;4613:32:1;;82411:58:0;;;4595:51:1;4662:18;;;;4655:34;;;82411:58:0;;;;;;;;;;4568:18:1;;;;82411:58:0;;;;;;;;-1:-1:-1;;;;;82411:58:0;-1:-1:-1;;;82411:58:0;;;82384:86;;82404:5;;82384:19;:86::i;:::-;82267:211;;;:::o;48179:146::-;48256:4;41239:19;;;:12;;;:19;;;;;;:24;;48280:37;41142:129;57450:191;57543:6;;;-1:-1:-1;;;;;57560:17:0;;;57543:6;57560:17;;;-1:-1:-1;;;;;;57560:17:0;;;;;;57593:40;;57543:6;;;;;;;;57593:40;;57524:16;;57593:40;57513:128;57450:191;:::o;47956:137::-;48026:4;48050:35;48058:3;48078:5;48050:7;:35::i;39046:414::-;39109:4;41239:19;;;:12;;;:19;;;;;;39126:327;;-1:-1:-1;39169:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;39352:18;;39330:19;;;:12;;;:19;;;;;;:40;;;;39385:11;;39126:327;-1:-1:-1;39436:5:0;39429:12;;41820:120;41887:7;41914:3;:11;;41926:5;41914:18;;;;;;;;:::i;:::-;;;;;;;;;41907:25;;41820:120;;;;:::o;84840:716::-;85264:23;85290:69;85318:4;85290:69;;;;;;;;;;;;;;;;;85298:5;-1:-1:-1;;;;;85290:27:0;;;:69;;;;;:::i;:::-;85374:17;;85264:95;;-1:-1:-1;85374:21:0;85370:179;;85471:10;85460:30;;;;;;;;;;;;:::i;:::-;85452:85;;;;-1:-1:-1;;;85452:85:0;;9655:2:1;85452:85:0;;;9637:21:1;9694:2;9674:18;;;9667:30;9733:34;9713:18;;;9706:62;-1:-1:-1;;;9784:18:1;;;9777:40;9834:19;;85452:85:0;9453:406:1;39636:1420:0;39702:4;39841:19;;;:12;;;:19;;;;;;39877:15;;39873:1176;;40252:21;40276:14;40289:1;40276:10;:14;:::i;:::-;40325:18;;40252:38;;-1:-1:-1;40305:17:0;;40325:22;;40346:1;;40325:22;:::i;:::-;40305:42;;40381:13;40368:9;:26;40364:405;;40415:17;40435:3;:11;;40447:9;40435:22;;;;;;;;:::i;:::-;;;;;;;;;40415:42;;40589:9;40560:3;:11;;40572:13;40560:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;40674:23;;;:12;;;:23;;;;;:36;;;40364:405;40850:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;40945:3;:12;;:19;40958:5;40945:19;;;;;;;;;;;40938:26;;;40988:4;40981:11;;;;;;;39873:1176;41032:5;41025:12;;;;;77031:229;77168:12;77200:52;77222:6;77230:4;77236:1;77239:12;77200:21;:52::i;:::-;77193:59;;77031:229;;;;;;:::o;78151:510::-;78321:12;78379:5;78354:21;:30;;78346:81;;;;-1:-1:-1;;;78346:81:0;;7090:2:1;78346:81:0;;;7072:21:1;7129:2;7109:18;;;7102:30;7168:34;7148:18;;;7141:62;-1:-1:-1;;;7219:18:1;;;7212:36;7265:19;;78346:81:0;6888:402:1;78346:81:0;74548:20;;78438:60;;;;-1:-1:-1;;;78438:60:0;;9297:2:1;78438:60:0;;;9279:21:1;9336:2;9316:18;;;9309:30;9375:31;9355:18;;;9348:59;9424:18;;78438:60:0;9095:353:1;78438:60:0;78512:12;78526:23;78553:6;-1:-1:-1;;;;;78553:11:0;78572:5;78579:4;78553:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78511:73;;;;78602:51;78619:7;78628:10;78640:12;78602:16;:51::i;:::-;78595:58;78151:510;-1:-1:-1;;;;;;;78151:510:0:o;80837:712::-;80987:12;81016:7;81012:530;;;-1:-1:-1;81047:10:0;81040:17;;81012:530;81161:17;;:21;81157:374;;81359:10;81353:17;81420:15;81407:10;81403:2;81399:19;81392:44;81157:374;81502:12;81495:20;;-1:-1:-1;;;81495:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:980::-;478:6;486;494;502;555:3;543:9;534:7;530:23;526:33;523:53;;;572:1;569;562:12;523:53;595:29;614:9;595:29;:::i;:::-;585:39;;643:2;664:38;698:2;687:9;683:18;664:38;:::i;:::-;654:48;;749:2;738:9;734:18;721:32;711:42;;804:2;793:9;789:18;776:32;827:18;868:2;860:6;857:14;854:34;;;884:1;881;874:12;854:34;922:6;911:9;907:22;897:32;;967:7;960:4;956:2;952:13;948:27;938:55;;989:1;986;979:12;938:55;1025:2;1012:16;1047:2;1043;1040:10;1037:36;;;1053:18;;:::i;:::-;1095:53;1138:2;1119:13;;-1:-1:-1;;1115:27:1;1111:36;;1095:53;:::i;:::-;1082:66;;1171:2;1164:5;1157:17;1211:7;1206:2;1201;1197;1193:11;1189:20;1186:33;1183:53;;;1232:1;1229;1222:12;1183:53;1287:2;1282;1278;1274:11;1269:2;1262:5;1258:14;1245:45;1331:1;1326:2;1321;1314:5;1310:14;1306:23;1299:34;;1352:5;1342:15;;;;;383:980;;;;;;;:::o;1368:254::-;1436:6;1444;1497:2;1485:9;1476:7;1472:23;1468:32;1465:52;;;1513:1;1510;1503:12;1465:52;1536:29;1555:9;1536:29;:::i;:::-;1526:39;1612:2;1597:18;;;;1584:32;;-1:-1:-1;;;1368:254:1:o;1627:957::-;1711:6;1742:2;1785;1773:9;1764:7;1760:23;1756:32;1753:52;;;1801:1;1798;1791:12;1753:52;1841:9;1828:23;1870:18;1911:2;1903:6;1900:14;1897:34;;;1927:1;1924;1917:12;1897:34;1965:6;1954:9;1950:22;1940:32;;2010:7;2003:4;1999:2;1995:13;1991:27;1981:55;;2032:1;2029;2022:12;1981:55;2068:2;2055:16;2090:2;2086;2083:10;2080:36;;;2096:18;;:::i;:::-;2142:2;2139:1;2135:10;2125:20;;2165:28;2189:2;2185;2181:11;2165:28;:::i;:::-;2227:15;;;2258:12;;;;2290:11;;;2320;;;2316:20;;2313:33;-1:-1:-1;2310:53:1;;;2359:1;2356;2349:12;2310:53;2381:1;2372:10;;2391:163;2405:2;2402:1;2399:9;2391:163;;;2462:17;;2450:30;;2423:1;2416:9;;;;;2500:12;;;;2532;;2391:163;;;-1:-1:-1;2573:5:1;1627:957;-1:-1:-1;;;;;;;;1627:957:1:o;2589:277::-;2656:6;2709:2;2697:9;2688:7;2684:23;2680:32;2677:52;;;2725:1;2722;2715:12;2677:52;2757:9;2751:16;2810:5;2803:13;2796:21;2789:5;2786:32;2776:60;;2832:1;2829;2822:12;2871:180;2930:6;2983:2;2971:9;2962:7;2958:23;2954:32;2951:52;;;2999:1;2996;2989:12;2951:52;-1:-1:-1;3022:23:1;;2871:180;-1:-1:-1;2871:180:1:o;3056:184::-;3126:6;3179:2;3167:9;3158:7;3154:23;3150:32;3147:52;;;3195:1;3192;3185:12;3147:52;-1:-1:-1;3218:16:1;;3056:184;-1:-1:-1;3056:184:1:o;3245:274::-;3374:3;3412:6;3406:13;3428:53;3474:6;3469:3;3462:4;3454:6;3450:17;3428:53;:::i;:::-;3497:16;;;;;3245:274;-1:-1:-1;;3245:274:1:o;4700:632::-;4871:2;4923:21;;;4993:13;;4896:18;;;5015:22;;;4842:4;;4871:2;5094:15;;;;5068:2;5053:18;;;4842:4;5137:169;5151:6;5148:1;5145:13;5137:169;;;5212:13;;5200:26;;5281:15;;;;5246:12;;;;5173:1;5166:9;5137:169;;;-1:-1:-1;5323:3:1;;4700:632;-1:-1:-1;;;;;;4700:632:1:o;5736:383::-;5885:2;5874:9;5867:21;5848:4;5917:6;5911:13;5960:6;5955:2;5944:9;5940:18;5933:34;5976:66;6035:6;6030:2;6019:9;6015:18;6010:2;6002:6;5998:15;5976:66;:::i;:::-;6103:2;6082:15;-1:-1:-1;;6078:29:1;6063:45;;;;6110:2;6059:54;;5736:383;-1:-1:-1;;5736:383:1:o;8332:356::-;8534:2;8516:21;;;8553:18;;;8546:30;8612:34;8607:2;8592:18;;8585:62;8679:2;8664:18;;8332:356::o;9864:355::-;10066:2;10048:21;;;10105:2;10085:18;;;10078:30;10144:33;10139:2;10124:18;;10117:61;10210:2;10195:18;;9864:355::o;11118:275::-;11189:2;11183:9;11254:2;11235:13;;-1:-1:-1;;11231:27:1;11219:40;;11289:18;11274:34;;11310:22;;;11271:62;11268:88;;;11336:18;;:::i;:::-;11372:2;11365:22;11118:275;;-1:-1:-1;11118:275:1:o;11398:128::-;11438:3;11469:1;11465:6;11462:1;11459:13;11456:39;;;11475:18;;:::i;:::-;-1:-1:-1;11511:9:1;;11398:128::o;11531:217::-;11571:1;11597;11587:132;;11641:10;11636:3;11632:20;11629:1;11622:31;11676:4;11673:1;11666:15;11704:4;11701:1;11694:15;11587:132;-1:-1:-1;11733:9:1;;11531:217::o;11753:168::-;11793:7;11859:1;11855;11851:6;11847:14;11844:1;11841:21;11836:1;11829:9;11822:17;11818:45;11815:71;;;11866:18;;:::i;:::-;-1:-1:-1;11906:9:1;;11753:168::o;11926:125::-;11966:4;11994:1;11991;11988:8;11985:34;;;11999:18;;:::i;:::-;-1:-1:-1;12036:9:1;;11926:125::o;12056:258::-;12128:1;12138:113;12152:6;12149:1;12146:13;12138:113;;;12228:11;;;12222:18;12209:11;;;12202:39;12174:2;12167:10;12138:113;;;12269:6;12266:1;12263:13;12260:48;;;12304:1;12295:6;12290:3;12286:16;12279:27;12260:48;;12056:258;;;:::o;12319:135::-;12358:3;-1:-1:-1;;12379:17:1;;12376:43;;;12399:18;;:::i;:::-;-1:-1:-1;12446:1:1;12435:13;;12319:135::o;12459:127::-;12520:10;12515:3;12511:20;12508:1;12501:31;12551:4;12548:1;12541:15;12575:4;12572:1;12565:15;12591:127;12652:10;12647:3;12643:20;12640:1;12633:31;12683:4;12680:1;12673:15;12707:4;12704:1;12697:15;12723:127;12784:10;12779:3;12775:20;12772:1;12765:31;12815:4;12812:1;12805:15;12839:4;12836:1;12829:15;12855:127;12916:10;12911:3;12907:20;12904:1;12897:31;12947:4;12944:1;12937:15;12971:4;12968:1;12961:15
Swarm Source
ipfs://3283e1614a3b21dd5e3d9fd80c732e56d0492ffe4d9426b7e03ec95a4d73cfcd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.