Source Code
Latest 25 from a total of 355 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Allocate Seignio... | 6455896 | 551 days ago | IN | 0 ETH | 0.00000027 | ||||
| Allocate Seignio... | 6441496 | 551 days ago | IN | 0 ETH | 0.00000033 | ||||
| Allocate Seignio... | 6427096 | 551 days ago | IN | 0 ETH | 0.0000003 | ||||
| Allocate Seignio... | 6412696 | 552 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6398296 | 552 days ago | IN | 0 ETH | 0.00000082 | ||||
| Allocate Seignio... | 6383896 | 552 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6369496 | 553 days ago | IN | 0 ETH | 0.00000027 | ||||
| Allocate Seignio... | 6355096 | 553 days ago | IN | 0 ETH | 0.00000027 | ||||
| Allocate Seignio... | 6340696 | 553 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6326296 | 554 days ago | IN | 0 ETH | 0.00000027 | ||||
| Allocate Seignio... | 6311896 | 554 days ago | IN | 0 ETH | 0.00000027 | ||||
| Allocate Seignio... | 6297496 | 554 days ago | IN | 0 ETH | 0.00000093 | ||||
| Allocate Seignio... | 6283096 | 555 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6268696 | 555 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6254296 | 555 days ago | IN | 0 ETH | 0.00000037 | ||||
| Allocate Seignio... | 6239896 | 556 days ago | IN | 0 ETH | 0.00000029 | ||||
| Allocate Seignio... | 6225496 | 556 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6211096 | 556 days ago | IN | 0 ETH | 0.00000043 | ||||
| Allocate Seignio... | 6196696 | 557 days ago | IN | 0 ETH | 0.00000056 | ||||
| Allocate Seignio... | 6182296 | 557 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6167896 | 557 days ago | IN | 0 ETH | 0.00000314 | ||||
| Allocate Seignio... | 6153496 | 558 days ago | IN | 0 ETH | 0.00000032 | ||||
| Allocate Seignio... | 6139096 | 558 days ago | IN | 0 ETH | 0.00000028 | ||||
| Allocate Seignio... | 6124696 | 558 days ago | IN | 0 ETH | 0.00000139 | ||||
| Allocate Seignio... | 6110296 | 559 days ago | IN | 0 ETH | 0.00000214 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Treasury
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./lib/Babylonian.sol";
import "./owner/Operator.sol";
import "./utils/ContractGuard.sol";
import "./interfaces/IBlastNameAsset.sol";
import "./interfaces/IBank.sol";
contract Treasury is ContractGuard {
using SafeERC20 for IERC20;
using Address for address;
/* ========= CONSTANT VARIABLES ======== */
uint256 public constant DENOMINATOR = 10000;
/* ========== STATE VARIABLES ========== */
// governance
address public operator;
// flags
bool public migrated = false;
// epoch
uint256 public startTime;
uint256 public epoch = 0;
uint256 public period;
// core components
address public bnd;
address public bns;
address public bank;
// protocol parameters
uint256 public maxSupplyExpansionPercent;
uint256 public seigniorageBankPercent;
// Treasury
address public treasuryWallet;
/* =================== Events =================== */
event Migration(address indexed target);
event TreasuryFunded(uint256 timestamp, uint256 seigniorage);
event BankFunded(uint256 timestamp, uint256 seigniorage);
event ExpansionRateChanged(uint256 maxSupplyExpansionPercent);
event NewEpoch(uint256 epoch, uint256 oldBNDSupply, uint256 newBNDSupply);
/* =================== Modifier =================== */
modifier onlyOperator() {
require(operator == msg.sender, "onlyOperator");
_;
}
function checkCondition() private view {
require(!migrated, "Migrated");
require(block.timestamp >= startTime, "Not started yet");
}
function checkEpoch() private {
require(block.timestamp >= nextEpochPoint(), "Not opened yet");
epoch = epoch + 1;
}
function checkOperator() private view {
require(
IBlastNameAsset(bnd).operator() == address(this) &&
IBlastNameAsset(bns).operator() == address(this) &&
IBank(bank).getOperator() == address(this),
"Permissions required"
);
}
constructor(
address _bnd,
address _bns,
address _treasuryWallet,
uint256 _startTime,
uint256 _epochPeriodHours
) {
require(block.timestamp < _startTime, "late");
bnd = _bnd;
bns = _bns;
treasuryWallet = _treasuryWallet;
startTime = _startTime;
period = 1 hours * _epochPeriodHours;
maxSupplyExpansionPercent = 100;
seigniorageBankPercent = 5500;
operator = msg.sender;
}
/* ========== VIEW FUNCTIONS ========== */
// flags
function isMigrated() public view returns (bool) {
return migrated;
}
// epoch
function nextEpochPoint() public view returns (uint256) {
return startTime + (epoch * period);
}
/* ========== GOVERNANCE ========== */
function setOperator(address _operator) external onlyOperator {
operator = _operator;
}
function setBank(address _bank) external onlyOperator {
bank = _bank;
}
function setMaxSupplyExpansionPercents(uint256 _maxSupplyExpansionPercent) external onlyOperator {
require(_maxSupplyExpansionPercent >= 0 && _maxSupplyExpansionPercent <= 3000, "_maxSupplyExpansionPercent: out of range"); // [0%, 30%]
maxSupplyExpansionPercent = _maxSupplyExpansionPercent;
emit ExpansionRateChanged(_maxSupplyExpansionPercent);
}
function setSeigniorageBankPercent(uint256 _seigniorageBankPercent) external onlyOperator {
require(_seigniorageBankPercent >= 3000 && _seigniorageBankPercent <= DENOMINATOR, "out of range"); // [30%, 100%]
seigniorageBankPercent = _seigniorageBankPercent;
}
function setTreasuryWallet(address _treasuryWallet) external onlyOperator {
require(_treasuryWallet != address(0), "address can not be zero");
treasuryWallet = _treasuryWallet;
}
function migrate(address target) external onlyOperator {
require(!migrated, "Migrated");
checkOperator();
Operator(bnd).transferOperator(target);
Operator(bnd).transferOwnership(target);
IERC20(bnd).transfer(target, IERC20(bnd).balanceOf(address(this)));
Operator(bns).transferOperator(target);
Operator(bns).transferOwnership(target);
IERC20(bns).transfer(target, IERC20(bns).balanceOf(address(this)));
migrated = true;
emit Migration(target);
}
/* ========== MUTABLE FUNCTIONS ========== */
function _sendToBank(uint256 _amount) internal {
IBlastNameAsset(bnd).mint(address(this), _amount);
IERC20(bnd).forceApprove(bank, _amount);
IBank(bank).allocateSeigniorage(_amount);
emit BankFunded(block.timestamp, _amount);
}
function allocateSeigniorage() external onlyOneBlock {
checkCondition();
checkEpoch();
checkOperator();
uint256 bndSupply = IERC20(bnd).totalSupply();
if (maxSupplyExpansionPercent > 0) {
uint256 _seigniorage = bndSupply * maxSupplyExpansionPercent / DENOMINATOR;
emit NewEpoch(epoch, bndSupply, bndSupply + _seigniorage);
uint256 _savedForBank = _seigniorage * seigniorageBankPercent / DENOMINATOR;
_sendToBank(_savedForBank);
IBlastNameAsset(bnd).mint(treasuryWallet, _seigniorage - _savedForBank);
emit TreasuryFunded(block.timestamp, _seigniorage - _savedForBank);
} else {
emit NewEpoch(epoch, bndSupply, bndSupply);
}
}
/* ========== RECOVER UNSUPPORTED ========== */
function recoverUnsupported(
IERC20 _token,
uint256 _amount,
address _to
) external onlyOperator {
// do not allow to drain core tokens
require(address(_token) != address(bnd), "Can not drain BND");
require(address(_token) != address(bns), "Can not drain BNS");
_token.safeTransfer(_to, _amount);
}
/* ========== Bank CONTROLLING FUNCTIONS ========== */
function bankSetOperator(address _operator) external onlyOperator {
IBank(bank).setOperator(_operator);
}
function bankSetLockUp(uint256 _withdrawLockupEpochs, uint256 _rewardLockupEpochs) external onlyOperator {
IBank(bank).setLockUp(_withdrawLockupEpochs, _rewardLockupEpochs);
}
function bankAllocateSeigniorage(uint256 amount) external onlyOperator {
IBank(bank).allocateSeigniorage(amount);
}
function bankRecoverUnsupported(
address _token,
uint256 _amount,
address _to
) external onlyOperator {
IBank(bank).recoverUnsupported(_token, _amount, _to);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @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;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @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);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
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 subtraction of two unsigned integers, with an overflow flag.
*/
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.
*/
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.
*/
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.
*/
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 largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
interface IBank {
function balanceOf(address _director) external view returns (uint256);
function earned(address _director) external view returns (uint256);
function canWithdraw(address _director) external view returns (bool);
function canClaimReward(address _director) external view returns (bool);
function setOperator(address _operator) external;
function getOperator() external view returns (address);
function setLockUp(uint256 _withdrawLockupEpochs, uint256 _rewardLockupEpochs) external;
function stake(uint256 _amount) external;
function withdraw(uint256 _amount) external;
function exit() external;
function claimReward() external;
function allocateSeigniorage(uint256 _amount) external;
function recoverUnsupported(
address _token,
uint256 _amount,
address _to
) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
interface IBlastNameAsset {
function mint(address recipient, uint256 amount) external returns (bool);
function burn(uint256 amount) external;
function burnFrom(address from, uint256 amount) external;
function isOperator() external returns (bool);
function operator() external view returns (address);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
library Babylonian {
function sqrt(uint256 y) internal pure returns (uint256 z) {
if (y > 3) {
z = y;
uint256 x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
// else z = 0
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract Operator is Context, Ownable {
address private _operator;
address private _secondOperator;
event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
event SecondOperatorTransferred(address indexed previousSecondOperator, address indexed newSecondOperator);
constructor() Ownable(_msgSender()) {
_operator = _msgSender();
_secondOperator = _msgSender();
emit OperatorTransferred(address(0), _operator);
emit SecondOperatorTransferred(address(0), _secondOperator);
}
function operator() public view returns (address) {
return _operator;
}
function secondOperator() public view returns (address) {
return _secondOperator;
}
modifier onlyOperator() {
require(_operator == msg.sender, "operator: caller is not the operator");
_;
}
modifier onlySecondOperator() {
require(_secondOperator == msg.sender || _operator == msg.sender, "operator: caller is not the operator nor the second operator");
_;
}
function isOperator() public view returns (bool) {
return _msgSender() == _operator;
}
function isSecondOperator() public view returns (bool) {
return _msgSender() == _secondOperator || _msgSender() == _operator;
}
function transferOperator(address newOperator_) public onlyOwner {
_transferOperator(newOperator_);
}
function _transferOperator(address newOperator_) internal {
require(newOperator_ != address(0), "operator: zero address given for new operator");
emit OperatorTransferred(address(0), newOperator_);
_operator = newOperator_;
}
function transferSecondOperator(address newSecondOperator_) public onlySecondOperator {
_transferSecondOperator(newSecondOperator_);
}
function _transferSecondOperator(address newSecondOperator_) internal {
require(newSecondOperator_ != address(0), "operator: zero address given for new second operator");
emit SecondOperatorTransferred(address(0), newSecondOperator_);
_operator = newSecondOperator_;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
contract ContractGuard {
mapping(uint256 => mapping(address => bool)) private _status;
function checkSameOriginReentranted() internal view returns (bool) {
return _status[block.number][tx.origin];
}
function checkSameSenderReentranted() internal view returns (bool) {
return _status[block.number][msg.sender];
}
modifier onlyOneBlock() {
require(!checkSameOriginReentranted(), "ContractGuard: one block, one function");
require(!checkSameSenderReentranted(), "ContractGuard: one block, one function");
_;
_status[block.number][tx.origin] = true;
_status[block.number][msg.sender] = true;
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_bnd","type":"address"},{"internalType":"address","name":"_bns","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_epochPeriodHours","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seigniorage","type":"uint256"}],"name":"BankFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyExpansionPercent","type":"uint256"}],"name":"ExpansionRateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"}],"name":"Migration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldBNDSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBNDSupply","type":"uint256"}],"name":"NewEpoch","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seigniorage","type":"uint256"}],"name":"TreasuryFunded","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bank","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bankAllocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"bankRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLockupEpochs","type":"uint256"},{"internalType":"uint256","name":"_rewardLockupEpochs","type":"uint256"}],"name":"bankSetLockUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"bankSetOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bnd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bns","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyExpansionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextEpochPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"recoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seigniorageBankPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bank","type":"address"}],"name":"setBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupplyExpansionPercent","type":"uint256"}],"name":"setMaxSupplyExpansionPercents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seigniorageBankPercent","type":"uint256"}],"name":"setSeigniorageBankPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526000600160146101000a81548160ff02191690831515021790555060006003553480156200003157600080fd5b506040516200357f3803806200357f83398181016040528101906200005791906200027e565b8142106200009c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000939062000367565b60405180910390fd5b84600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160028190555080610e10620001769190620003b8565b600481905550606460088190555061157c60098190555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505062000403565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200020b82620001de565b9050919050565b6200021d81620001fe565b81146200022957600080fd5b50565b6000815190506200023d8162000212565b92915050565b6000819050919050565b620002588162000243565b81146200026457600080fd5b50565b60008151905062000278816200024d565b92915050565b600080600080600060a086880312156200029d576200029c620001d9565b5b6000620002ad888289016200022c565b9550506020620002c0888289016200022c565b9450506040620002d3888289016200022c565b9350506060620002e68882890162000267565b9250506080620002f98882890162000267565b9150509295509295909350565b600082825260208201905092915050565b7f6c61746500000000000000000000000000000000000000000000000000000000600082015250565b60006200034f60048362000306565b91506200035c8262000317565b602082019050919050565b60006020820190508181036000830152620003828162000340565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620003c58262000243565b9150620003d28362000243565b9250828202620003e28162000243565b91508282048414831517620003fc57620003fb62000389565b5b5092915050565b61316c80620004136000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806378e97925116100de578063b06faf6211610097578063ce5494bb11610071578063ce5494bb14610401578063d98f24951461041d578063ef78d4fd1461043b578063fc07c49f146104595761018e565b8063b06faf62146103a9578063b3ab15fb146103c7578063c5967c26146103e35761018e565b806378e97925146102fb5780638b87c5df14610319578063900cf0cf14610335578063918f867414610353578063a081ddbd14610371578063a8602fea1461038d5761018e565b806343faaf011161014b5780635b756179116101255780635b7561791461029b57806364a30b23146102a55780636f9b73cd146102c157806376cdb03b146102dd5761018e565b806343faaf01146102415780634626402b1461025f578063570ca7351461027d5761018e565b8063090d23b9146101935780630b5bcec7146101af578063131dc7da146101cb5780631867e2f5146101e95780632c678c641461020757806331d152ed14610225575b600080fd5b6101ad60048036038101906101a8919061262b565b610475565b005b6101c960048036038101906101c4919061268e565b610549565b005b6101d361066c565b6040516101e091906126ca565b60405180910390f35b6101f1610692565b6040516101fe91906126ca565b60405180910390f35b61020f6106b8565b60405161021c9190612700565b60405180910390f35b61023f600480360381019061023a919061268e565b6106cb565b005b6102496107b8565b604051610256919061272a565b60405180910390f35b6102676107be565b60405161027491906126ca565b60405180910390f35b6102856107e4565b60405161029291906126ca565b60405180910390f35b6102a361080a565b005b6102bf60048036038101906102ba919061268e565b610c0b565b005b6102db60048036038101906102d69190612745565b610d2b565b005b6102e5610e4e565b6040516102f291906126ca565b60405180910390f35b610303610e74565b604051610310919061272a565b60405180910390f35b610333600480360381019061032e919061262b565b610e7a565b005b61033d610f9a565b60405161034a919061272a565b60405180910390f35b61035b610fa0565b604051610368919061272a565b60405180910390f35b61038b600480360381019061038691906127c3565b610fa6565b005b6103a760048036038101906103a2919061262b565b611186565b005b6103b16112c9565b6040516103be9190612700565b60405180910390f35b6103e160048036038101906103dc919061262b565b6112e0565b005b6103eb6113b4565b6040516103f8919061272a565b60405180910390f35b61041b6004803603810190610416919061262b565b6113d8565b005b6104256119cc565b604051610432919061272a565b60405180910390f35b6104436119d2565b604051610450919061272a565b60405180910390f35b610473600480360381019061046e9190612816565b6119d8565b005b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fc906128c6565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146105d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d0906128c6565b60405180910390fd5b600081101580156105ec5750610bb88111155b61062b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062290612958565b60405180910390fd5b806008819055507f25e22675336197335d8929c5286f026c3382874522e826e459e9d71c8ae1cc9881604051610661919061272a565b60405180910390a150565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160149054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461075b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610752906128c6565b60405180910390fd5b610bb8811015801561076f57506127108111155b6107ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a5906129c4565b60405180910390fd5b8060098190555050565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610812611afe565b15610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990612a56565b60405180910390fd5b61085a611b62565b1561089a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089190612a56565b60405180910390fd5b6108a2611bc6565b6108aa611c5d565b6108b2611cbe565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190612a8b565b905060006008541115610afa576000612710600854836109659190612ae7565b61096f9190612b58565b90507f3bb7b347508b7c148ec2094ac60d2e3d8b7595421025643f08b45cb78b326b586003548383856109a29190612b89565b6040516109b193929190612bbd565b60405180910390a16000612710600954836109cc9190612ae7565b6109d69190612b58565b90506109e181611f4c565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168385610a4e9190612bf4565b6040518363ffffffff1660e01b8152600401610a6b929190612c28565b6020604051808303816000875af1158015610a8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aae9190612c7d565b507ff705142bf09f04297640495ddf7c59b7fd6f51894c5aea9602d631cf05f0efc2428284610add9190612bf4565b604051610aeb929190612caa565b60405180910390a15050610b38565b7f3bb7b347508b7c148ec2094ac60d2e3d8b7595421025643f08b45cb78b326b586003548283604051610b2f93929190612bbd565b60405180910390a15b50600160008043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160008043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c92906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397ffe1d7826040518263ffffffff1660e01b8152600401610cf6919061272a565b600060405180830381600087803b158015610d1057600080fd5b505af1158015610d24573d6000803e3d6000fd5b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db2906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ffaaa0983836040518363ffffffff1660e01b8152600401610e18929190612caa565b600060405180830381600087803b158015610e3257600080fd5b505af1158015610e46573d6000803e3d6000fd5b505050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f01906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ab15fb826040518263ffffffff1660e01b8152600401610f6591906126ca565b600060405180830381600087803b158015610f7f57600080fd5b505af1158015610f93573d6000803e3d6000fd5b5050505050565b60035481565b61271081565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d906128c6565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90612d1f565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90612d8b565b60405180910390fd5b61118181838573ffffffffffffffffffffffffffffffffffffffff166121259092919063ffffffff16565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120d906128c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c90612df7565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160149054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611370576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611367906128c6565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006004546003546113c69190612ae7565b6002546113d39190612b89565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f906128c6565b60405180910390fd5b600160149054906101000a900460ff16156114b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114af90612e63565b60405180910390fd5b6114c0611cbe565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329605e77826040518263ffffffff1660e01b815260040161151b91906126ca565b600060405180830381600087803b15801561153557600080fd5b505af1158015611549573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016115a891906126ca565b600060405180830381600087803b1580156115c257600080fd5b505af11580156115d6573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161167491906126ca565b602060405180830381865afa158015611691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b59190612a8b565b6040518363ffffffff1660e01b81526004016116d2929190612c28565b6020604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190612c7d565b50600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329605e77826040518263ffffffff1660e01b815260040161177191906126ca565b600060405180830381600087803b15801561178b57600080fd5b505af115801561179f573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016117fe91906126ca565b600060405180830381600087803b15801561181857600080fd5b505af115801561182c573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118ca91906126ca565b602060405180830381865afa1580156118e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190b9190612a8b565b6040518363ffffffff1660e01b8152600401611928929190612c28565b6020604051808303816000875af1158015611947573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196b9190612c7d565b5060018060146101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f0caca70b66aed56b0630989a049110023c5a3f37e0ea4b6ce96fc747663f3ebc60405160405180910390a250565b60085481565b60045481565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a081ddbd8484846040518463ffffffff1660e01b8152600401611ac793929190612e83565b600060405180830381600087803b158015611ae157600080fd5b505af1158015611af5573d6000803e3d6000fd5b50505050505050565b600080600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b600080600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b600160149054906101000a900460ff1615611c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0d90612e63565b60405180910390fd5b600254421015611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5290612f06565b60405180910390fd5b565b611c656113b4565b421015611ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9e90612f72565b60405180910390fd5b6001600354611cb69190612b89565b600381905550565b3073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d669190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16148015611e4457503073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2c9190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16145b8015611f0b57503073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e7f43c686040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef39190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16145b611f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4190613020565b60405180910390fd5b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611fa9929190612c28565b6020604051808303816000875af1158015611fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fec9190612c7d565b5061205c600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121a49092919063ffffffff16565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397ffe1d7826040518263ffffffff1660e01b81526004016120b7919061272a565b600060405180830381600087803b1580156120d157600080fd5b505af11580156120e5573d6000803e3d6000fd5b505050507f213ba08b3f0cb90cc2aeb7a12faf3cfaa56b0faec79b1cf0cc093784499764e6428260405161211a929190612caa565b60405180910390a150565b61219f838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401612158929190612c28565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122b3565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663095ea7b384846040516024016121d5929190612c28565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050612223848261234a565b6122ad576122a2848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b386600060405160240161225b929190613085565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122b3565b6122ac84826122b3565b5b50505050565b60006122de828473ffffffffffffffffffffffffffffffffffffffff1661241190919063ffffffff16565b905060008151141580156123035750808060200190518101906123019190612c7d565b155b1561234557826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161233c91906126ca565b60405180910390fd5b505050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051612374919061311f565b6000604051808303816000865af19150503d80600081146123b1576040519150601f19603f3d011682016040523d82523d6000602084013e6123b6565b606091505b50915091508180156123e457506000815114806123e35750808060200190518101906123e29190612c7d565b5b5b8015612407575060008573ffffffffffffffffffffffffffffffffffffffff163b115b9250505092915050565b606061241f83836000612427565b905092915050565b60608147101561246e57306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161246591906126ca565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168486604051612497919061311f565b60006040518083038185875af1925050503d80600081146124d4576040519150601f19603f3d011682016040523d82523d6000602084013e6124d9565b606091505b50915091506124e98683836124f4565b925050509392505050565b6060826125095761250482612583565b61257b565b60008251148015612531575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561257357836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161256a91906126ca565b60405180910390fd5b81905061257c565b5b9392505050565b6000815111156125965780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125f8826125cd565b9050919050565b612608816125ed565b811461261357600080fd5b50565b600081359050612625816125ff565b92915050565b600060208284031215612641576126406125c8565b5b600061264f84828501612616565b91505092915050565b6000819050919050565b61266b81612658565b811461267657600080fd5b50565b60008135905061268881612662565b92915050565b6000602082840312156126a4576126a36125c8565b5b60006126b284828501612679565b91505092915050565b6126c4816125ed565b82525050565b60006020820190506126df60008301846126bb565b92915050565b60008115159050919050565b6126fa816126e5565b82525050565b600060208201905061271560008301846126f1565b92915050565b61272481612658565b82525050565b600060208201905061273f600083018461271b565b92915050565b6000806040838503121561275c5761275b6125c8565b5b600061276a85828601612679565b925050602061277b85828601612679565b9150509250929050565b6000612790826125ed565b9050919050565b6127a081612785565b81146127ab57600080fd5b50565b6000813590506127bd81612797565b92915050565b6000806000606084860312156127dc576127db6125c8565b5b60006127ea868287016127ae565b93505060206127fb86828701612679565b925050604061280c86828701612616565b9150509250925092565b60008060006060848603121561282f5761282e6125c8565b5b600061283d86828701612616565b935050602061284e86828701612679565b925050604061285f86828701612616565b9150509250925092565b600082825260208201905092915050565b7f6f6e6c794f70657261746f720000000000000000000000000000000000000000600082015250565b60006128b0600c83612869565b91506128bb8261287a565b602082019050919050565b600060208201905081810360008301526128df816128a3565b9050919050565b7f5f6d6178537570706c79457870616e73696f6e50657263656e743a206f75742060008201527f6f662072616e6765000000000000000000000000000000000000000000000000602082015250565b6000612942602883612869565b915061294d826128e6565b604082019050919050565b6000602082019050818103600083015261297181612935565b9050919050565b7f6f7574206f662072616e67650000000000000000000000000000000000000000600082015250565b60006129ae600c83612869565b91506129b982612978565b602082019050919050565b600060208201905081810360008301526129dd816129a1565b9050919050565b7f436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e6520667560008201527f6e6374696f6e0000000000000000000000000000000000000000000000000000602082015250565b6000612a40602683612869565b9150612a4b826129e4565b604082019050919050565b60006020820190508181036000830152612a6f81612a33565b9050919050565b600081519050612a8581612662565b92915050565b600060208284031215612aa157612aa06125c8565b5b6000612aaf84828501612a76565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612af282612658565b9150612afd83612658565b9250828202612b0b81612658565b91508282048414831517612b2257612b21612ab8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612b6382612658565b9150612b6e83612658565b925082612b7e57612b7d612b29565b5b828204905092915050565b6000612b9482612658565b9150612b9f83612658565b9250828201905080821115612bb757612bb6612ab8565b5b92915050565b6000606082019050612bd2600083018661271b565b612bdf602083018561271b565b612bec604083018461271b565b949350505050565b6000612bff82612658565b9150612c0a83612658565b9250828203905081811115612c2257612c21612ab8565b5b92915050565b6000604082019050612c3d60008301856126bb565b612c4a602083018461271b565b9392505050565b612c5a816126e5565b8114612c6557600080fd5b50565b600081519050612c7781612c51565b92915050565b600060208284031215612c9357612c926125c8565b5b6000612ca184828501612c68565b91505092915050565b6000604082019050612cbf600083018561271b565b612ccc602083018461271b565b9392505050565b7f43616e206e6f7420647261696e20424e44000000000000000000000000000000600082015250565b6000612d09601183612869565b9150612d1482612cd3565b602082019050919050565b60006020820190508181036000830152612d3881612cfc565b9050919050565b7f43616e206e6f7420647261696e20424e53000000000000000000000000000000600082015250565b6000612d75601183612869565b9150612d8082612d3f565b602082019050919050565b60006020820190508181036000830152612da481612d68565b9050919050565b7f616464726573732063616e206e6f74206265207a65726f000000000000000000600082015250565b6000612de1601783612869565b9150612dec82612dab565b602082019050919050565b60006020820190508181036000830152612e1081612dd4565b9050919050565b7f4d69677261746564000000000000000000000000000000000000000000000000600082015250565b6000612e4d600883612869565b9150612e5882612e17565b602082019050919050565b60006020820190508181036000830152612e7c81612e40565b9050919050565b6000606082019050612e9860008301866126bb565b612ea5602083018561271b565b612eb260408301846126bb565b949350505050565b7f4e6f742073746172746564207965740000000000000000000000000000000000600082015250565b6000612ef0600f83612869565b9150612efb82612eba565b602082019050919050565b60006020820190508181036000830152612f1f81612ee3565b9050919050565b7f4e6f74206f70656e656420796574000000000000000000000000000000000000600082015250565b6000612f5c600e83612869565b9150612f6782612f26565b602082019050919050565b60006020820190508181036000830152612f8b81612f4f565b9050919050565b600081519050612fa1816125ff565b92915050565b600060208284031215612fbd57612fbc6125c8565b5b6000612fcb84828501612f92565b91505092915050565b7f5065726d697373696f6e73207265717569726564000000000000000000000000600082015250565b600061300a601483612869565b915061301582612fd4565b602082019050919050565b6000602082019050818103600083015261303981612ffd565b9050919050565b6000819050919050565b6000819050919050565b600061306f61306a61306584613040565b61304a565b612658565b9050919050565b61307f81613054565b82525050565b600060408201905061309a60008301856126bb565b6130a76020830184613076565b9392505050565b600081519050919050565b600081905092915050565b60005b838110156130e25780820151818401526020810190506130c7565b60008484015250505050565b60006130f9826130ae565b61310381856130b9565b93506131138185602086016130c4565b80840191505092915050565b600061312b82846130ee565b91508190509291505056fea264697066735822122001d8e69a763c9d1348b14a2e1bfcee5c58d4feda0f705a1f2aa78ab356e4c37a64736f6c63430008140033000000000000000000000000d71035849d2fba67533bf50900a3e8b684ac1b420000000000000000000000000c2ffacd70c1d1cb04d4803dea055dd9d4b5760100000000000000000000000041e4e2f24c9cb834ef0f389e3ac800787bd52daf00000000000000000000000000000000000000000000000000000000660604800000000000000000000000000000000000000000000000000000000000000008
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806378e97925116100de578063b06faf6211610097578063ce5494bb11610071578063ce5494bb14610401578063d98f24951461041d578063ef78d4fd1461043b578063fc07c49f146104595761018e565b8063b06faf62146103a9578063b3ab15fb146103c7578063c5967c26146103e35761018e565b806378e97925146102fb5780638b87c5df14610319578063900cf0cf14610335578063918f867414610353578063a081ddbd14610371578063a8602fea1461038d5761018e565b806343faaf011161014b5780635b756179116101255780635b7561791461029b57806364a30b23146102a55780636f9b73cd146102c157806376cdb03b146102dd5761018e565b806343faaf01146102415780634626402b1461025f578063570ca7351461027d5761018e565b8063090d23b9146101935780630b5bcec7146101af578063131dc7da146101cb5780631867e2f5146101e95780632c678c641461020757806331d152ed14610225575b600080fd5b6101ad60048036038101906101a8919061262b565b610475565b005b6101c960048036038101906101c4919061268e565b610549565b005b6101d361066c565b6040516101e091906126ca565b60405180910390f35b6101f1610692565b6040516101fe91906126ca565b60405180910390f35b61020f6106b8565b60405161021c9190612700565b60405180910390f35b61023f600480360381019061023a919061268e565b6106cb565b005b6102496107b8565b604051610256919061272a565b60405180910390f35b6102676107be565b60405161027491906126ca565b60405180910390f35b6102856107e4565b60405161029291906126ca565b60405180910390f35b6102a361080a565b005b6102bf60048036038101906102ba919061268e565b610c0b565b005b6102db60048036038101906102d69190612745565b610d2b565b005b6102e5610e4e565b6040516102f291906126ca565b60405180910390f35b610303610e74565b604051610310919061272a565b60405180910390f35b610333600480360381019061032e919061262b565b610e7a565b005b61033d610f9a565b60405161034a919061272a565b60405180910390f35b61035b610fa0565b604051610368919061272a565b60405180910390f35b61038b600480360381019061038691906127c3565b610fa6565b005b6103a760048036038101906103a2919061262b565b611186565b005b6103b16112c9565b6040516103be9190612700565b60405180910390f35b6103e160048036038101906103dc919061262b565b6112e0565b005b6103eb6113b4565b6040516103f8919061272a565b60405180910390f35b61041b6004803603810190610416919061262b565b6113d8565b005b6104256119cc565b604051610432919061272a565b60405180910390f35b6104436119d2565b604051610450919061272a565b60405180910390f35b610473600480360381019061046e9190612816565b6119d8565b005b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fc906128c6565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146105d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d0906128c6565b60405180910390fd5b600081101580156105ec5750610bb88111155b61062b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062290612958565b60405180910390fd5b806008819055507f25e22675336197335d8929c5286f026c3382874522e826e459e9d71c8ae1cc9881604051610661919061272a565b60405180910390a150565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160149054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461075b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610752906128c6565b60405180910390fd5b610bb8811015801561076f57506127108111155b6107ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a5906129c4565b60405180910390fd5b8060098190555050565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610812611afe565b15610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990612a56565b60405180910390fd5b61085a611b62565b1561089a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089190612a56565b60405180910390fd5b6108a2611bc6565b6108aa611c5d565b6108b2611cbe565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190612a8b565b905060006008541115610afa576000612710600854836109659190612ae7565b61096f9190612b58565b90507f3bb7b347508b7c148ec2094ac60d2e3d8b7595421025643f08b45cb78b326b586003548383856109a29190612b89565b6040516109b193929190612bbd565b60405180910390a16000612710600954836109cc9190612ae7565b6109d69190612b58565b90506109e181611f4c565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168385610a4e9190612bf4565b6040518363ffffffff1660e01b8152600401610a6b929190612c28565b6020604051808303816000875af1158015610a8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aae9190612c7d565b507ff705142bf09f04297640495ddf7c59b7fd6f51894c5aea9602d631cf05f0efc2428284610add9190612bf4565b604051610aeb929190612caa565b60405180910390a15050610b38565b7f3bb7b347508b7c148ec2094ac60d2e3d8b7595421025643f08b45cb78b326b586003548283604051610b2f93929190612bbd565b60405180910390a15b50600160008043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160008043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c92906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397ffe1d7826040518263ffffffff1660e01b8152600401610cf6919061272a565b600060405180830381600087803b158015610d1057600080fd5b505af1158015610d24573d6000803e3d6000fd5b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db2906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ffaaa0983836040518363ffffffff1660e01b8152600401610e18929190612caa565b600060405180830381600087803b158015610e3257600080fd5b505af1158015610e46573d6000803e3d6000fd5b505050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f01906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ab15fb826040518263ffffffff1660e01b8152600401610f6591906126ca565b600060405180830381600087803b158015610f7f57600080fd5b505af1158015610f93573d6000803e3d6000fd5b5050505050565b60035481565b61271081565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d906128c6565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90612d1f565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90612d8b565b60405180910390fd5b61118181838573ffffffffffffffffffffffffffffffffffffffff166121259092919063ffffffff16565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120d906128c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c90612df7565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160149054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611370576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611367906128c6565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006004546003546113c69190612ae7565b6002546113d39190612b89565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f906128c6565b60405180910390fd5b600160149054906101000a900460ff16156114b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114af90612e63565b60405180910390fd5b6114c0611cbe565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329605e77826040518263ffffffff1660e01b815260040161151b91906126ca565b600060405180830381600087803b15801561153557600080fd5b505af1158015611549573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016115a891906126ca565b600060405180830381600087803b1580156115c257600080fd5b505af11580156115d6573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161167491906126ca565b602060405180830381865afa158015611691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b59190612a8b565b6040518363ffffffff1660e01b81526004016116d2929190612c28565b6020604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190612c7d565b50600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329605e77826040518263ffffffff1660e01b815260040161177191906126ca565b600060405180830381600087803b15801561178b57600080fd5b505af115801561179f573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016117fe91906126ca565b600060405180830381600087803b15801561181857600080fd5b505af115801561182c573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118ca91906126ca565b602060405180830381865afa1580156118e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190b9190612a8b565b6040518363ffffffff1660e01b8152600401611928929190612c28565b6020604051808303816000875af1158015611947573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196b9190612c7d565b5060018060146101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f0caca70b66aed56b0630989a049110023c5a3f37e0ea4b6ce96fc747663f3ebc60405160405180910390a250565b60085481565b60045481565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906128c6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a081ddbd8484846040518463ffffffff1660e01b8152600401611ac793929190612e83565b600060405180830381600087803b158015611ae157600080fd5b505af1158015611af5573d6000803e3d6000fd5b50505050505050565b600080600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b600080600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b600160149054906101000a900460ff1615611c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0d90612e63565b60405180910390fd5b600254421015611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5290612f06565b60405180910390fd5b565b611c656113b4565b421015611ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9e90612f72565b60405180910390fd5b6001600354611cb69190612b89565b600381905550565b3073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d669190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16148015611e4457503073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2c9190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16145b8015611f0b57503073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e7f43c686040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef39190612fa7565b73ffffffffffffffffffffffffffffffffffffffff16145b611f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4190613020565b60405180910390fd5b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611fa9929190612c28565b6020604051808303816000875af1158015611fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fec9190612c7d565b5061205c600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121a49092919063ffffffff16565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397ffe1d7826040518263ffffffff1660e01b81526004016120b7919061272a565b600060405180830381600087803b1580156120d157600080fd5b505af11580156120e5573d6000803e3d6000fd5b505050507f213ba08b3f0cb90cc2aeb7a12faf3cfaa56b0faec79b1cf0cc093784499764e6428260405161211a929190612caa565b60405180910390a150565b61219f838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401612158929190612c28565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122b3565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663095ea7b384846040516024016121d5929190612c28565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050612223848261234a565b6122ad576122a2848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b386600060405160240161225b929190613085565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122b3565b6122ac84826122b3565b5b50505050565b60006122de828473ffffffffffffffffffffffffffffffffffffffff1661241190919063ffffffff16565b905060008151141580156123035750808060200190518101906123019190612c7d565b155b1561234557826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161233c91906126ca565b60405180910390fd5b505050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051612374919061311f565b6000604051808303816000865af19150503d80600081146123b1576040519150601f19603f3d011682016040523d82523d6000602084013e6123b6565b606091505b50915091508180156123e457506000815114806123e35750808060200190518101906123e29190612c7d565b5b5b8015612407575060008573ffffffffffffffffffffffffffffffffffffffff163b115b9250505092915050565b606061241f83836000612427565b905092915050565b60608147101561246e57306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161246591906126ca565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168486604051612497919061311f565b60006040518083038185875af1925050503d80600081146124d4576040519150601f19603f3d011682016040523d82523d6000602084013e6124d9565b606091505b50915091506124e98683836124f4565b925050509392505050565b6060826125095761250482612583565b61257b565b60008251148015612531575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561257357836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161256a91906126ca565b60405180910390fd5b81905061257c565b5b9392505050565b6000815111156125965780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125f8826125cd565b9050919050565b612608816125ed565b811461261357600080fd5b50565b600081359050612625816125ff565b92915050565b600060208284031215612641576126406125c8565b5b600061264f84828501612616565b91505092915050565b6000819050919050565b61266b81612658565b811461267657600080fd5b50565b60008135905061268881612662565b92915050565b6000602082840312156126a4576126a36125c8565b5b60006126b284828501612679565b91505092915050565b6126c4816125ed565b82525050565b60006020820190506126df60008301846126bb565b92915050565b60008115159050919050565b6126fa816126e5565b82525050565b600060208201905061271560008301846126f1565b92915050565b61272481612658565b82525050565b600060208201905061273f600083018461271b565b92915050565b6000806040838503121561275c5761275b6125c8565b5b600061276a85828601612679565b925050602061277b85828601612679565b9150509250929050565b6000612790826125ed565b9050919050565b6127a081612785565b81146127ab57600080fd5b50565b6000813590506127bd81612797565b92915050565b6000806000606084860312156127dc576127db6125c8565b5b60006127ea868287016127ae565b93505060206127fb86828701612679565b925050604061280c86828701612616565b9150509250925092565b60008060006060848603121561282f5761282e6125c8565b5b600061283d86828701612616565b935050602061284e86828701612679565b925050604061285f86828701612616565b9150509250925092565b600082825260208201905092915050565b7f6f6e6c794f70657261746f720000000000000000000000000000000000000000600082015250565b60006128b0600c83612869565b91506128bb8261287a565b602082019050919050565b600060208201905081810360008301526128df816128a3565b9050919050565b7f5f6d6178537570706c79457870616e73696f6e50657263656e743a206f75742060008201527f6f662072616e6765000000000000000000000000000000000000000000000000602082015250565b6000612942602883612869565b915061294d826128e6565b604082019050919050565b6000602082019050818103600083015261297181612935565b9050919050565b7f6f7574206f662072616e67650000000000000000000000000000000000000000600082015250565b60006129ae600c83612869565b91506129b982612978565b602082019050919050565b600060208201905081810360008301526129dd816129a1565b9050919050565b7f436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e6520667560008201527f6e6374696f6e0000000000000000000000000000000000000000000000000000602082015250565b6000612a40602683612869565b9150612a4b826129e4565b604082019050919050565b60006020820190508181036000830152612a6f81612a33565b9050919050565b600081519050612a8581612662565b92915050565b600060208284031215612aa157612aa06125c8565b5b6000612aaf84828501612a76565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612af282612658565b9150612afd83612658565b9250828202612b0b81612658565b91508282048414831517612b2257612b21612ab8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612b6382612658565b9150612b6e83612658565b925082612b7e57612b7d612b29565b5b828204905092915050565b6000612b9482612658565b9150612b9f83612658565b9250828201905080821115612bb757612bb6612ab8565b5b92915050565b6000606082019050612bd2600083018661271b565b612bdf602083018561271b565b612bec604083018461271b565b949350505050565b6000612bff82612658565b9150612c0a83612658565b9250828203905081811115612c2257612c21612ab8565b5b92915050565b6000604082019050612c3d60008301856126bb565b612c4a602083018461271b565b9392505050565b612c5a816126e5565b8114612c6557600080fd5b50565b600081519050612c7781612c51565b92915050565b600060208284031215612c9357612c926125c8565b5b6000612ca184828501612c68565b91505092915050565b6000604082019050612cbf600083018561271b565b612ccc602083018461271b565b9392505050565b7f43616e206e6f7420647261696e20424e44000000000000000000000000000000600082015250565b6000612d09601183612869565b9150612d1482612cd3565b602082019050919050565b60006020820190508181036000830152612d3881612cfc565b9050919050565b7f43616e206e6f7420647261696e20424e53000000000000000000000000000000600082015250565b6000612d75601183612869565b9150612d8082612d3f565b602082019050919050565b60006020820190508181036000830152612da481612d68565b9050919050565b7f616464726573732063616e206e6f74206265207a65726f000000000000000000600082015250565b6000612de1601783612869565b9150612dec82612dab565b602082019050919050565b60006020820190508181036000830152612e1081612dd4565b9050919050565b7f4d69677261746564000000000000000000000000000000000000000000000000600082015250565b6000612e4d600883612869565b9150612e5882612e17565b602082019050919050565b60006020820190508181036000830152612e7c81612e40565b9050919050565b6000606082019050612e9860008301866126bb565b612ea5602083018561271b565b612eb260408301846126bb565b949350505050565b7f4e6f742073746172746564207965740000000000000000000000000000000000600082015250565b6000612ef0600f83612869565b9150612efb82612eba565b602082019050919050565b60006020820190508181036000830152612f1f81612ee3565b9050919050565b7f4e6f74206f70656e656420796574000000000000000000000000000000000000600082015250565b6000612f5c600e83612869565b9150612f6782612f26565b602082019050919050565b60006020820190508181036000830152612f8b81612f4f565b9050919050565b600081519050612fa1816125ff565b92915050565b600060208284031215612fbd57612fbc6125c8565b5b6000612fcb84828501612f92565b91505092915050565b7f5065726d697373696f6e73207265717569726564000000000000000000000000600082015250565b600061300a601483612869565b915061301582612fd4565b602082019050919050565b6000602082019050818103600083015261303981612ffd565b9050919050565b6000819050919050565b6000819050919050565b600061306f61306a61306584613040565b61304a565b612658565b9050919050565b61307f81613054565b82525050565b600060408201905061309a60008301856126bb565b6130a76020830184613076565b9392505050565b600081519050919050565b600081905092915050565b60005b838110156130e25780820151818401526020810190506130c7565b60008484015250505050565b60006130f9826130ae565b61310381856130b9565b93506131138185602086016130c4565b80840191505092915050565b600061312b82846130ee565b91508190509291505056fea264697066735822122001d8e69a763c9d1348b14a2e1bfcee5c58d4feda0f705a1f2aa78ab356e4c37a64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d71035849d2fba67533bf50900a3e8b684ac1b420000000000000000000000000c2ffacd70c1d1cb04d4803dea055dd9d4b5760100000000000000000000000041e4e2f24c9cb834ef0f389e3ac800787bd52daf00000000000000000000000000000000000000000000000000000000660604800000000000000000000000000000000000000000000000000000000000000008
-----Decoded View---------------
Arg [0] : _bnd (address): 0xD71035849D2fBA67533bF50900a3E8B684ac1B42
Arg [1] : _bns (address): 0x0c2fFacD70c1D1CB04D4803Dea055DD9D4B57601
Arg [2] : _treasuryWallet (address): 0x41E4E2f24c9cB834EF0F389e3AC800787Bd52Daf
Arg [3] : _startTime (uint256): 1711670400
Arg [4] : _epochPeriodHours (uint256): 8
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000d71035849d2fba67533bf50900a3e8b684ac1b42
Arg [1] : 0000000000000000000000000c2ffacd70c1d1cb04d4803dea055dd9d4b57601
Arg [2] : 00000000000000000000000041e4e2f24c9cb834ef0f389e3ac800787bd52daf
Arg [3] : 0000000000000000000000000000000000000000000000000000000066060480
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.