Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
vBond
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-11 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface ValueIOUTokenInterface { /** * @notice Event emitted when tokens are rebased */ event Rebase(uint256 epoch, uint256 prevValueIOUsScalingFactor, uint256 newValueIOUsScalingFactor); /*** Gov Events ***/ /** * @notice Event emitted when gov is changed */ event NewGov(address oldGov, address newGov); /** * @notice Sets the rebaser contract */ event NewRebaser(address oldRebaser, address newRebaser); /** * @notice Sets the migrator contract */ event NewMigrator(address oldMigrator, address newMigrator); /* - ERC20 Events - */ /** * @notice EIP20 Transfer event */ event Transfer(address indexed from, address indexed to, uint256 amount); /** * @notice EIP20 Approval event */ event Approval(address indexed owner, address indexed spender, uint256 amount); /* - Extra Events - */ /** * @notice Tokens minted event */ event Mint(address to, uint256 amount); // Public functions function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function balanceOf(address who) external view returns (uint256); function balanceOfUnderlying(address who) external view returns (uint256); function allowance(address owner_, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function increaseAllowance(address spender, uint256 addedValue) external returns (bool); function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool); function maxScalingFactor() external view returns (uint256); function valueIOUToFragment(uint256 valueIOU) external view returns (uint256); function fragmentToValueIOU(uint256 value) external view returns (uint256); function valueIOUsScalingFactor() external view returns (uint256); function getScalingFactorBase() external view returns (uint256); /* - Permissioned/Governance functions - */ function mint(address to, uint256 amount) external returns (bool); function rebase( uint256 epoch, uint256 indexDelta, bool positive ) external returns (uint256); function setRebaser(address _rebaser) external; function setGovernance(address _governance) external; } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Storage for a ValueIOU token contract ValueIOUTokenStorage { using SafeMath for uint256; /** * @dev Guard variable for re-entrancy checks. Not currently used */ bool internal _notEntered; /** * @notice EIP-20 token name for this token */ string public name; /** * @notice EIP-20 token symbol for this token */ string public symbol; /** * @notice EIP-20 token decimals for this token */ uint8 public decimals; /** * @notice Governor for this contract */ address public gov; /** * @notice Approved rebaser for this contract */ address public rebaser; /** * @notice Total supply of ValueIOUs */ uint256 public totalSupply; /** * @notice Internal decimals used to handle scaling factor */ uint256 public constant internalDecimals = 10**24; /** * @notice Used for percentage maths */ uint256 public constant BASE = 10**18; // init 95k uint256 internal constant INIT_SUPPLY = 95000 * 10**18; /** * @dev @notice Scaling factor that adjusts everyone's balances */ uint256 internal valueIOUsScalingFactor_; mapping(address => uint256) internal _valueIOUBalances; mapping(address => mapping(address => uint256)) internal _allowedFragments; uint256 public initSupply; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; bytes32 public DOMAIN_SEPARATOR; /// @notice A record of states for signing / validating signatures mapping(address => uint256) public nonces; } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: weiValue}(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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 SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } contract ValueIOUToken is ValueIOUTokenInterface, ValueIOUTokenStorage { // Modifiers modifier onlyGov() { require(msg.sender == gov); _; } modifier onlyRebaser() { require(msg.sender == rebaser); _; } modifier onlyMinter() { require(msg.sender == rebaser || msg.sender == gov, "not minter"); _; } modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; } function initialize( string memory name_, string memory symbol_, uint8 decimals_ ) public virtual { require(valueIOUsScalingFactor_ == 0, "already initialized"); name = name_; symbol = symbol_; decimals = decimals_; } function valueIOUsScalingFactor() external view override returns (uint256) { return valueIOUsScalingFactor_; } /** * @notice Computes the current max scaling factor */ function maxScalingFactor() external view override returns (uint256) { return _maxScalingFactor(); } function _maxScalingFactor() internal view returns (uint256) { // scaling factor can only go up to 2**256-1 = initSupply * valueIOUsScalingFactor_ // this is used to check if valueIOUsScalingFactor_ will be too high to compute balances when rebasing. return uint256(-1) / initSupply; } /** * @notice Mints new tokens, increasing totalSupply, initSupply, and a users balance. * @dev Limited to onlyMinter modifier */ function mint(address to, uint256 amount) external override onlyMinter returns (bool) { _mint(to, amount); return true; } function _mint(address to, uint256 amount) internal { // increase totalSupply totalSupply = totalSupply.add(amount); // get underlying value uint256 valueIOUValue = _fragmentToValueIOU(amount); // increase initSupply initSupply = initSupply.add(valueIOUValue); // make sure the mint didnt push maxScalingFactor too low require(valueIOUsScalingFactor_ <= _maxScalingFactor(), "max scaling factor too low"); // add balance _valueIOUBalances[to] = _valueIOUBalances[to].add(valueIOUValue); // add delegates to the minter emit Mint(to, amount); } /* - ERC20 functionality - */ /** * @dev Transfer tokens to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. * @return True on success, false otherwise. */ function transfer(address to, uint256 value) external override validRecipient(to) returns (bool) { // underlying balance is stored in valueIOUs, so divide by current scaling factor // note, this means as scaling factor grows, dust will be untransferrable. // minimum transfer value == valueIOUsScalingFactor_ / 1e24; // get amount in underlying uint256 valueIOUValue = _fragmentToValueIOU(value); // sub from balance of sender _valueIOUBalances[msg.sender] = _valueIOUBalances[msg.sender].sub(valueIOUValue); // add to balance of receiver _valueIOUBalances[to] = _valueIOUBalances[to].add(valueIOUValue); emit Transfer(msg.sender, to, value); return true; } /** * @dev Transfer tokens from one address to another. * @param from The address you want to send tokens from. * @param to The address you want to transfer to. * @param value The amount of tokens to be transferred. */ function transferFrom( address from, address to, uint256 value ) external override validRecipient(to) returns (bool) { // decrease allowance _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value); // get value in valueIOUs uint256 valueIOUValue = _fragmentToValueIOU(value); // sub from from _valueIOUBalances[from] = _valueIOUBalances[from].sub(valueIOUValue); _valueIOUBalances[to] = _valueIOUBalances[to].add(valueIOUValue); emit Transfer(from, to, value); return true; } /** * @param who The address to query. * @return The balance of the specified address. */ function balanceOf(address who) external view override returns (uint256) { return _valueIOUToFragment(_valueIOUBalances[who]); } /** @notice Currently returns the internal storage amount * @param who The address to query. * @return The underlying balance of the specified address. */ function balanceOfUnderlying(address who) external view override returns (uint256) { return _valueIOUBalances[who]; } /** * @dev Function to check the amount of tokens that an owner has allowed to a spender. * @param owner_ The address which owns the funds. * @param spender The address which will spend the funds. * @return The number of tokens still available for the spender. */ function allowance(address owner_, address spender) external view override returns (uint256) { return _allowedFragments[owner_][spender]; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of * msg.sender. This method is included for ERC20 compatibility. * increaseAllowance and decreaseAllowance should be used instead. * Changing an allowance with this method brings the risk that someone may transfer both * the old and the new allowance - if they are both greater than zero - if a transfer * transaction is mined before the later approve() call is mined. * * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) external override returns (bool) { _allowedFragments[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } /** * @dev Increase the amount of tokens that an owner has allowed to a spender. * This method should be used instead of approve() to avoid the double approval vulnerability * described above. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) external override returns (bool) { _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } /** * @dev Decrease the amount of tokens that an owner has allowed to a spender. * * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) external override returns (bool) { uint256 oldValue = _allowedFragments[msg.sender][spender]; if (subtractedValue >= oldValue) { _allowedFragments[msg.sender][spender] = 0; } else { _allowedFragments[msg.sender][spender] = oldValue.sub(subtractedValue); } emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]); return true; } // --- Approve by signature --- function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { require(now <= deadline, "permit-expired"); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)))); require(owner != address(0), "invalid-address-0"); require(owner == ecrecover(digest, v, r, s), "invalid-permit"); _allowedFragments[owner][spender] = value; emit Approval(owner, spender, value); } /* - Governance Functions - */ /** @notice sets the rebaser * @param _rebaser The address of the rebaser contract to use for authentication. */ function setRebaser(address _rebaser) external override onlyGov { address oldRebaser = rebaser; rebaser = _rebaser; emit NewRebaser(oldRebaser, _rebaser); } function setGovernance(address _governance) external override onlyGov { address oldGov = gov; gov = _governance; emit NewGov(oldGov, _governance); } /* - Extras - */ /** * @notice Initiates a new rebase operation, provided the minimum time period has elapsed. */ function rebase( uint256 epoch, uint256 indexDelta, bool positive ) external override onlyRebaser returns (uint256) { // no change if (indexDelta == 0) { emit Rebase(epoch, valueIOUsScalingFactor_, valueIOUsScalingFactor_); return totalSupply; } // for events uint256 prevValueIOUsScalingFactor = valueIOUsScalingFactor_; if (!positive) { // negative rebase, decrease scaling factor valueIOUsScalingFactor_ = valueIOUsScalingFactor_.mul(BASE.sub(indexDelta)).div(BASE); } else { // positive reabse, increase scaling factor uint256 newScalingFactor = valueIOUsScalingFactor_.mul(BASE.add(indexDelta)).div(BASE); if (newScalingFactor < _maxScalingFactor()) { valueIOUsScalingFactor_ = newScalingFactor; } else { valueIOUsScalingFactor_ = _maxScalingFactor(); } } // update total supply, correctly totalSupply = _valueIOUToFragment(initSupply); emit Rebase(epoch, prevValueIOUsScalingFactor, valueIOUsScalingFactor_); return totalSupply; } function valueIOUToFragment(uint256 valueIOU) external view override returns (uint256) { return _valueIOUToFragment(valueIOU); } function fragmentToValueIOU(uint256 value) external view override returns (uint256) { return _fragmentToValueIOU(value); } function _valueIOUToFragment(uint256 valueIOU) internal view returns (uint256) { return valueIOU.mul(valueIOUsScalingFactor_).div(internalDecimals); } function _fragmentToValueIOU(uint256 value) internal view returns (uint256) { return value.mul(internalDecimals).div(valueIOUsScalingFactor_); } // Rescue tokens function rescueTokens( address token, address to, uint256 amount ) external onlyGov returns (bool) { // transfer to SafeERC20.safeTransfer(IERC20(token), to, amount); return true; } function getChainId() internal pure returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } function getScalingFactorBase() external view override returns (uint256) { return BASE; } } contract vBond is ValueIOUToken { /** * @notice Initialize the new money market * @param name_ ERC-20 name of this token * @param symbol_ ERC-20 symbol of this token * @param decimals_ ERC-20 decimal precision of this token */ function initialize( string memory name_, string memory symbol_, uint8 decimals_ ) public override { super.initialize(name_, symbol_, decimals_); valueIOUsScalingFactor_ = BASE; initSupply = _fragmentToValueIOU(INIT_SUPPLY); totalSupply = INIT_SUPPLY; _valueIOUBalances[msg.sender] = initSupply; DOMAIN_SEPARATOR = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this))); gov = msg.sender; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldGov","type":"address"},{"indexed":false,"internalType":"address","name":"newGov","type":"address"}],"name":"NewGov","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldMigrator","type":"address"},{"indexed":false,"internalType":"address","name":"newMigrator","type":"address"}],"name":"NewMigrator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRebaser","type":"address"},{"indexed":false,"internalType":"address","name":"newRebaser","type":"address"}],"name":"NewRebaser","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevValueIOUsScalingFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValueIOUsScalingFactor","type":"uint256"}],"name":"Rebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"fragmentToValueIOU","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getScalingFactorBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"internalDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"indexDelta","type":"uint256"},{"internalType":"bool","name":"positive","type":"bool"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rebaser","type":"address"}],"name":"setRebaser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"valueIOU","type":"uint256"}],"name":"valueIOUToFragment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"valueIOUsScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506121d1806100206000396000f3fe608060405234801561001057600080fd5b506004361061020b5760003560e01c806340c10f191161012a57806397d63f93116100bd578063cea9d26f1161008c578063dd62ed3e11610071578063dd62ed3e146107c0578063e46adf62146107fb578063ec342ad01461082e5761020b565b8063cea9d26f1461071f578063d505accf146107625761020b565b806397d63f9314610672578063a457c2d71461067a578063a9059cbb146106b3578063ab033ea9146106ec5761020b565b806370a08231116100f957806370a08231146105d95780637af548c11461060c5780637ecebe001461063757806395d89b411461066a5761020b565b806340c10f1914610573578063411a9801146105ac5780635f68afec146105b457806364dd48f5146105d15761020b565b806320606b70116101a25780633644e515116101715780633644e515146104e257806339509351146104ea5780633a5e1ecd146105235780633af9e669146105405761020b565b806320606b701461047157806323b872dd1461047957806330adf81f146104bc578063313ce567146104c45761020b565b806311fd8a83116101de57806311fd8a83146102fc57806312d43a511461032d5780631624f6c61461033557806318160ddd146104695761020b565b80630197243e1461021057806306fdde031461022a578063095ea7b3146102a757806311d3e6c4146102f4575b600080fd5b610218610836565b60408051918252519081900360200190f35b61023261083c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026c578181015183820152602001610254565b50505050905090810190601f1680156102995780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e0600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356108e7565b604080519115158252519081900360200190f35b61021861095b565b61030461096a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610304610986565b6104676004803603606081101561034b57600080fd5b81019060208101813564010000000081111561036657600080fd5b82018360208201111561037857600080fd5b8035906020019184600183028401116401000000008311171561039a57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156103ed57600080fd5b8201836020820111156103ff57600080fd5b8035906020019184600183028401116401000000008311171561042157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109a79050565b005b610218610b1f565b610218610b25565b6102e06004803603606081101561048f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610b49565b610218610ce6565b6104cc610d0a565b6040805160ff9092168252519081900360200190f35b610218610d13565b6102e06004803603604081101561050057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610d19565b6102186004803603602081101561053957600080fd5b5035610dc6565b6102186004803603602081101561055657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dd1565b6102e06004803603604081101561058957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610df9565b610218610ebc565b610218600480360360208110156105ca57600080fd5b5035610ec8565b610218610ed3565b610218600480360360208110156105ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ee1565b6102186004803603606081101561062257600080fd5b50803590602081013590604001351515610f10565b6102186004803603602081101561064d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611062565b610232611074565b6102186110ea565b6102e06004803603604081101561069057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356110f0565b6102e0600480360360408110156106c957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561120d565b6104676004803603602081101561070257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611321565b6102e06004803603606081101561073557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356113db565b610467600480360360e081101561077857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c0013561141c565b610218600480360360408110156107d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611753565b6104676004803603602081101561081157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661178b565b61021861183c565b60065490565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108df5780601f106108b4576101008083540402835291602001916108df565b820191906000526020600020905b8154815290600101906020018083116108c257829003601f168201915b505050505081565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000610965611848565b905090565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6109b283838361187b565b670de0b6b3a76400006006556109d169141df5d77c6d9d600000611948565b600981905569141df5d77c6d9d60000060055533600090815260076020526040908190209190915551600180547f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86692908190839060027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100838516150201909116048015610a985780601f10610a76576101008083540402835291820191610a98565b820191906000526020600020905b815481529060010190602001808311610a84575b50509150506040518091039020610aad611966565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a090920190528051910120600a555050600380547fffffffffffffffffffffff0000000000000000000000000000000000000000ff16336101000217905550565b60055481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60008273ffffffffffffffffffffffffffffffffffffffff8116610b6c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116301415610b8f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff85166000908152600860209081526040808320338452909152902054610bca908461196a565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600860209081526040808320338452909152812091909155610c0784611948565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260076020526040902054909150610c3a908261196a565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600760205260408082209390935590871681522054610c7690826119ac565b73ffffffffffffffffffffffffffffffffffffffff80871660008181526007602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60035460ff1681565b600a5481565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054610d5490836119ac565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600061095582611948565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b60045460009073ffffffffffffffffffffffffffffffffffffffff16331480610e3e5750600354610100900473ffffffffffffffffffffffffffffffffffffffff1633145b610ea957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6e6f74206d696e74657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b610eb38383611a20565b50600192915050565b670de0b6b3a764000090565b600061095582611b60565b69d3c21bcecceda100000081565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604081205461095590611b60565b60045460009073ffffffffffffffffffffffffffffffffffffffff163314610f3757600080fd5b82610f8857600654604080518681526020810183905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a15060055461105b565b60065482610fc057610fb8670de0b6b3a7640000610fb2610fa9828861196a565b60065490611b85565b90611bf8565b600655611004565b6000610fdb670de0b6b3a7640000610fb2610fa982896119ac565b9050610fe5611848565b811015610ff6576006819055611002565b610ffe611848565b6006555b505b61100f600954611b60565b600555600654604080518781526020810184905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a150506005545b9392505050565b600b6020526000908152604090205481565b600280546040805160206001841615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01909316849004601f810184900484028201840190925281815292918301828280156108df5780601f106108b4576101008083540402835291602001916108df565b60095481565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205480831061115e5733600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915281205561119a565b611168818461196a565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091529020555b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60008273ffffffffffffffffffffffffffffffffffffffff811661123057600080fd5b73ffffffffffffffffffffffffffffffffffffffff811630141561125357600080fd5b600061125e84611948565b3360009081526007602052604090205490915061127b908261196a565b336000908152600760205260408082209290925573ffffffffffffffffffffffffffffffffffffffff8716815220546112b490826119ac565b73ffffffffffffffffffffffffffffffffffffffff86166000818152600760209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b600354610100900473ffffffffffffffffffffffffffffffffffffffff16331461134a57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff8516179094556040805194909304919091168084526020840191909152815190927f1f14cfc03e486d23acee577b07bc0b3b23f4888c91fcdba5e0fef5a2549d552392908290030190a15050565b600354600090610100900473ffffffffffffffffffffffffffffffffffffffff16331461140757600080fd5b611412848484611c3a565b5060019392505050565b8342111561148b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7065726d69742d65787069726564000000000000000000000000000000000000604482015290519081900360640190fd5b600a5473ffffffffffffffffffffffffffffffffffffffff8089166000818152600b602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981840152808401859052948c166060860152608085018b905260a085015260c08085018a90528251808603909101815260e0850183528051908201207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501959095526101228085019590955281518085039095018552610142909301905282519290910191909120906115e257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e76616c69642d616464726573732d30000000000000000000000000000000604482015290519081900360640190fd5b60018185858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561163c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146116df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c69642d7065726d6974000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8089166000818152600860209081526040808320948c16808452948252918290208a905581518a815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35050505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205490565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1633146117b457600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040805191909216808252602082019390935281517f51f448520e2183de499e224808a409ee01a1f380edb2e8497572320c15030545929181900390910190a15050565b670de0b6b3a764000081565b60006009547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8161187557fe5b04905090565b600654156118ea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b82516118fd9060019060208601906120bd565b5081516119119060029060208501906120bd565b50600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff929092169190911790555050565b60065460009061095590610fb28469d3c21bcecceda1000000611b85565b4690565b600061105b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ccc565b60008282018381101561105b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600554611a2d90826119ac565b6005556000611a3b82611948565b600954909150611a4b90826119ac565b600955611a56611848565b6006541115611ac657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f77000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260076020526040902054611af690826119ac565b73ffffffffffffffffffffffffffffffffffffffff841660008181526007602090815260409182902093909355805191825291810184905281517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885929181900390910190a1505050565b600061095569d3c21bcecceda1000000610fb260065485611b8590919063ffffffff16565b600082611b9457506000610955565b82820282848281611ba157fe5b041461105b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806121516021913960400191505060405180910390fd5b600061105b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d7d565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611cc7908490611dfc565b505050565b60008184841115611d75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d3a578181015183820152602001611d22565b50505050905090810190601f168015611d675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611d3a578181015183820152602001611d22565b506000838581611df257fe5b0495945050505050565b6060611e5e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ed49092919063ffffffff16565b805190915015611cc757808060200190516020811015611e7d57600080fd5b5051611cc7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612172602a913960400191505060405180910390fd5b6060611ee38484600085611eeb565b949350505050565b6060611ef6856120b7565b611f6157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611fcb57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611f8e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461202d576040519150601f19603f3d011682016040523d82523d6000602084013e612032565b606091505b50915091508115612046579150611ee39050565b8051156120565780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315611d3a578181015183820152602001611d22565b3b151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106120fe57805160ff191683800117855561212b565b8280016001018555821561212b579182015b8281111561212b578251825591602001919060010190612110565b5061213792915061213b565b5090565b5b80821115612137576000815560010161213c56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122085756d86280ba984b4ec77e18b45a8597a38d5b4d3cc0d84e3c145e3dc01ccef64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061020b5760003560e01c806340c10f191161012a57806397d63f93116100bd578063cea9d26f1161008c578063dd62ed3e11610071578063dd62ed3e146107c0578063e46adf62146107fb578063ec342ad01461082e5761020b565b8063cea9d26f1461071f578063d505accf146107625761020b565b806397d63f9314610672578063a457c2d71461067a578063a9059cbb146106b3578063ab033ea9146106ec5761020b565b806370a08231116100f957806370a08231146105d95780637af548c11461060c5780637ecebe001461063757806395d89b411461066a5761020b565b806340c10f1914610573578063411a9801146105ac5780635f68afec146105b457806364dd48f5146105d15761020b565b806320606b70116101a25780633644e515116101715780633644e515146104e257806339509351146104ea5780633a5e1ecd146105235780633af9e669146105405761020b565b806320606b701461047157806323b872dd1461047957806330adf81f146104bc578063313ce567146104c45761020b565b806311fd8a83116101de57806311fd8a83146102fc57806312d43a511461032d5780631624f6c61461033557806318160ddd146104695761020b565b80630197243e1461021057806306fdde031461022a578063095ea7b3146102a757806311d3e6c4146102f4575b600080fd5b610218610836565b60408051918252519081900360200190f35b61023261083c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026c578181015183820152602001610254565b50505050905090810190601f1680156102995780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e0600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356108e7565b604080519115158252519081900360200190f35b61021861095b565b61030461096a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610304610986565b6104676004803603606081101561034b57600080fd5b81019060208101813564010000000081111561036657600080fd5b82018360208201111561037857600080fd5b8035906020019184600183028401116401000000008311171561039a57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156103ed57600080fd5b8201836020820111156103ff57600080fd5b8035906020019184600183028401116401000000008311171561042157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109a79050565b005b610218610b1f565b610218610b25565b6102e06004803603606081101561048f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610b49565b610218610ce6565b6104cc610d0a565b6040805160ff9092168252519081900360200190f35b610218610d13565b6102e06004803603604081101561050057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610d19565b6102186004803603602081101561053957600080fd5b5035610dc6565b6102186004803603602081101561055657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dd1565b6102e06004803603604081101561058957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610df9565b610218610ebc565b610218600480360360208110156105ca57600080fd5b5035610ec8565b610218610ed3565b610218600480360360208110156105ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ee1565b6102186004803603606081101561062257600080fd5b50803590602081013590604001351515610f10565b6102186004803603602081101561064d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611062565b610232611074565b6102186110ea565b6102e06004803603604081101561069057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356110f0565b6102e0600480360360408110156106c957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561120d565b6104676004803603602081101561070257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611321565b6102e06004803603606081101561073557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356113db565b610467600480360360e081101561077857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c0013561141c565b610218600480360360408110156107d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611753565b6104676004803603602081101561081157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661178b565b61021861183c565b60065490565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108df5780601f106108b4576101008083540402835291602001916108df565b820191906000526020600020905b8154815290600101906020018083116108c257829003601f168201915b505050505081565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000610965611848565b905090565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6109b283838361187b565b670de0b6b3a76400006006556109d169141df5d77c6d9d600000611948565b600981905569141df5d77c6d9d60000060055533600090815260076020526040908190209190915551600180547f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86692908190839060027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100838516150201909116048015610a985780601f10610a76576101008083540402835291820191610a98565b820191906000526020600020905b815481529060010190602001808311610a84575b50509150506040518091039020610aad611966565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a090920190528051910120600a555050600380547fffffffffffffffffffffff0000000000000000000000000000000000000000ff16336101000217905550565b60055481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60008273ffffffffffffffffffffffffffffffffffffffff8116610b6c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116301415610b8f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff85166000908152600860209081526040808320338452909152902054610bca908461196a565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600860209081526040808320338452909152812091909155610c0784611948565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260076020526040902054909150610c3a908261196a565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600760205260408082209390935590871681522054610c7690826119ac565b73ffffffffffffffffffffffffffffffffffffffff80871660008181526007602090815260409182902094909455805188815290519193928a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60035460ff1681565b600a5481565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054610d5490836119ac565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600061095582611948565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b60045460009073ffffffffffffffffffffffffffffffffffffffff16331480610e3e5750600354610100900473ffffffffffffffffffffffffffffffffffffffff1633145b610ea957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6e6f74206d696e74657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b610eb38383611a20565b50600192915050565b670de0b6b3a764000090565b600061095582611b60565b69d3c21bcecceda100000081565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604081205461095590611b60565b60045460009073ffffffffffffffffffffffffffffffffffffffff163314610f3757600080fd5b82610f8857600654604080518681526020810183905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a15060055461105b565b60065482610fc057610fb8670de0b6b3a7640000610fb2610fa9828861196a565b60065490611b85565b90611bf8565b600655611004565b6000610fdb670de0b6b3a7640000610fb2610fa982896119ac565b9050610fe5611848565b811015610ff6576006819055611002565b610ffe611848565b6006555b505b61100f600954611b60565b600555600654604080518781526020810184905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a150506005545b9392505050565b600b6020526000908152604090205481565b600280546040805160206001841615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01909316849004601f810184900484028201840190925281815292918301828280156108df5780601f106108b4576101008083540402835291602001916108df565b60095481565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205480831061115e5733600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915281205561119a565b611168818461196a565b33600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091529020555b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60008273ffffffffffffffffffffffffffffffffffffffff811661123057600080fd5b73ffffffffffffffffffffffffffffffffffffffff811630141561125357600080fd5b600061125e84611948565b3360009081526007602052604090205490915061127b908261196a565b336000908152600760205260408082209290925573ffffffffffffffffffffffffffffffffffffffff8716815220546112b490826119ac565b73ffffffffffffffffffffffffffffffffffffffff86166000818152600760209081526040918290209390935580518781529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001949350505050565b600354610100900473ffffffffffffffffffffffffffffffffffffffff16331461134a57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff8516179094556040805194909304919091168084526020840191909152815190927f1f14cfc03e486d23acee577b07bc0b3b23f4888c91fcdba5e0fef5a2549d552392908290030190a15050565b600354600090610100900473ffffffffffffffffffffffffffffffffffffffff16331461140757600080fd5b611412848484611c3a565b5060019392505050565b8342111561148b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7065726d69742d65787069726564000000000000000000000000000000000000604482015290519081900360640190fd5b600a5473ffffffffffffffffffffffffffffffffffffffff8089166000818152600b602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981840152808401859052948c166060860152608085018b905260a085015260c08085018a90528251808603909101815260e0850183528051908201207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501959095526101228085019590955281518085039095018552610142909301905282519290910191909120906115e257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e76616c69642d616464726573732d30000000000000000000000000000000604482015290519081900360640190fd5b60018185858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561163c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146116df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c69642d7065726d6974000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8089166000818152600860209081526040808320948c16808452948252918290208a905581518a815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35050505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205490565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1633146117b457600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040805191909216808252602082019390935281517f51f448520e2183de499e224808a409ee01a1f380edb2e8497572320c15030545929181900390910190a15050565b670de0b6b3a764000081565b60006009547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8161187557fe5b04905090565b600654156118ea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b82516118fd9060019060208601906120bd565b5081516119119060029060208501906120bd565b50600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff929092169190911790555050565b60065460009061095590610fb28469d3c21bcecceda1000000611b85565b4690565b600061105b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ccc565b60008282018381101561105b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600554611a2d90826119ac565b6005556000611a3b82611948565b600954909150611a4b90826119ac565b600955611a56611848565b6006541115611ac657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f77000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260076020526040902054611af690826119ac565b73ffffffffffffffffffffffffffffffffffffffff841660008181526007602090815260409182902093909355805191825291810184905281517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885929181900390910190a1505050565b600061095569d3c21bcecceda1000000610fb260065485611b8590919063ffffffff16565b600082611b9457506000610955565b82820282848281611ba157fe5b041461105b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806121516021913960400191505060405180910390fd5b600061105b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d7d565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611cc7908490611dfc565b505050565b60008184841115611d75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d3a578181015183820152602001611d22565b50505050905090810190601f168015611d675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611d3a578181015183820152602001611d22565b506000838581611df257fe5b0495945050505050565b6060611e5e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ed49092919063ffffffff16565b805190915015611cc757808060200190516020811015611e7d57600080fd5b5051611cc7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612172602a913960400191505060405180910390fd5b6060611ee38484600085611eeb565b949350505050565b6060611ef6856120b7565b611f6157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611fcb57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611f8e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461202d576040519150601f19603f3d011682016040523d82523d6000602084013e612032565b606091505b50915091508115612046579150611ee39050565b8051156120565780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315611d3a578181015183820152602001611d22565b3b151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106120fe57805160ff191683800117855561212b565b8280016001018555821561212b579182015b8281111561212b578251825591602001919060010190612110565b5061213792915061213b565b5090565b5b80821115612137576000815560010161213c56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122085756d86280ba984b4ec77e18b45a8597a38d5b4d3cc0d84e3c145e3dc01ccef64736f6c634300060c0033
Deployed Bytecode Sourcemap
34348:801:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23577:124;;;:::i;:::-;;;;;;;;;;;;;;;;8329:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28804:221;;;;;;;;;;;;;;;;-1:-1:-1;28804:221:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23783:114;;;:::i;8712:22::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8616:18;;;:::i;34615:531::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34615:531:0;;;;;;;;-1:-1:-1;34615:531:0;;-1:-1:-1;;34615:531:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34615:531:0;;-1:-1:-1;;;34615:531:0;;;;;-1:-1:-1;34615:531:0;;-1:-1:-1;34615:531:0:i;:::-;;8803:26;;;:::i;9544:122::-;;;:::i;26496:626::-;;;;;;;;;;;;;;;;-1:-1:-1;26496:626:0;;;;;;;;;;;;;;;;;;:::i;9780:108::-;;;:::i;8525:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9895:31;;;:::i;29398:318::-;;;;;;;;;;;;;;;;-1:-1:-1;29398:318:0;;;;;;;;;:::i;33295:136::-;;;;;;;;;;;;;;;;-1:-1:-1;33295:136:0;;:::i;27571:131::-;;;;;;;;;;;;;;;;-1:-1:-1;27571:131:0;;;;:::i;24383:144::-;;;;;;;;;;;;;;;;-1:-1:-1;24383:144:0;;;;;;;;;:::i;34238:103::-;;;:::i;33145:142::-;;;;;;;;;;;;;;;;-1:-1:-1;33145:142:0;;:::i;8920:49::-;;;:::i;27243:142::-;;;;;;;;;;;;;;;;-1:-1:-1;27243:142:0;;;;:::i;31897:1240::-;;;;;;;;;;;;;;;;-1:-1:-1;31897:1240:0;;;;;;;;;;;;;;:::i;10007:41::-;;;;;;;;;;;;;;;;-1:-1:-1;10007:41:0;;;;:::i;8425:20::-;;;:::i;9446:25::-;;;:::i;29978:500::-;;;;;;;;;;;;;;;;-1:-1:-1;29978:500:0;;;;;;;;;:::i;25463:771::-;;;;;;;;;;;;;;;;-1:-1:-1;25463:771:0;;;;;;;;;:::i;31571:180::-;;;;;;;;;;;;;;;;-1:-1:-1;31571:180:0;;;;:::i;33799:245::-;;;;;;;;;;;;;;;;-1:-1:-1;33799:245:0;;;;;;;;;;;;;;;;;;:::i;30523:676::-;;;;;;;;;;;;;;;;-1:-1:-1;30523:676:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;28009:153::-;;;;;;;;;;;;;;;;-1:-1:-1;28009:153:0;;;;;;;;;;;:::i;31375:188::-;;;;;;;;;;;;;;;;-1:-1:-1;31375:188:0;;;;:::i;9038:37::-;;;:::i;23577:124::-;23670:23;;23577:124;:::o;8329:18::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;28804:221::-;28915:10;28880:4;28897:29;;;:17;:29;;;;;;;;;:38;;;;;;;;;;;:46;;;28959:36;;;;;;;28880:4;;28897:38;;28915:10;;28959:36;;;;;;;;-1:-1:-1;29013:4:0;28804:221;;;;;:::o;23783:114::-;23843:7;23870:19;:17;:19::i;:::-;23863:26;;23783:114;:::o;8712:22::-;;;;;;:::o;8616:18::-;;;;;;;;;:::o;34615:531::-;34757:43;34774:5;34781:7;34790:9;34757:16;:43::i;:::-;9069:6;34811:23;:30;34865:32;9141:14;34865:19;:32::i;:::-;34852:10;:45;;;9141:14;34908:11;:25;34962:10;-1:-1:-1;34944:29:0;;;:17;:29;;;;;;;:42;;;;35056:22;35072:4;35056:22;;9586:80;;35056:22;;;35072:4;;35056:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35080:12;:10;:12::i;:::-;35028:80;;;;;;;;;;;;;;;;;;;;;;;;;35102:4;35028:80;;;;;;;;;;;;;;;;;;;;;;;;35018:91;;;;;34999:16;:110;-1:-1:-1;;35122:3:0;:16;;;;35128:10;35122:16;;;;;-1:-1:-1;34615:531:0:o;8803:26::-;;;;:::o;9544:122::-;9586:80;9544:122;:::o;26496:626::-;26639:4;26626:2;23193:18;;;23185:27;;;;;;23231:19;;;23245:4;23231:19;;23223:28;;;;;;26725:23:::1;::::0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;26749:10:::1;26725:35:::0;;;;;;;;:46:::1;::::0;26765:5;26725:39:::1;:46::i;:::-;26687:23;::::0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;26711:10:::1;26687:35:::0;;;;;;;:84;;;;26843:26:::1;26863:5:::0;26843:19:::1;:26::i;:::-;26934:23;::::0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;26819:50;;-1:-1:-1;26934:42:0::1;::::0;26819:50;26934:27:::1;:42::i;:::-;26908:23;::::0;;::::1;;::::0;;;:17:::1;:23;::::0;;;;;:68;;;;27011:21;;::::1;::::0;;;;:40:::1;::::0;27037:13;27011:25:::1;:40::i;:::-;26987:21;::::0;;::::1;;::::0;;;:17:::1;:21;::::0;;;;;;;;:64;;;;27067:25;;;;;;;26987:21;;27067:25;;::::1;::::0;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;27110:4:0::1;::::0;26496:626;-1:-1:-1;;;;;26496:626:0:o;9780:108::-;9822:66;9780:108;:::o;8525:21::-;;;;;;:::o;9895:31::-;;;;:::o;29398:318::-;29565:10;29489:4;29547:29;;;:17;:29;;;;;;;;;:38;;;;;;;;;;:54;;29590:10;29547:42;:54::i;:::-;29524:10;29506:29;;;;:17;:29;;;;;;;;;:38;;;;;;;;;;;;:95;;;29617:69;;;;;;29506:38;;29617:69;;;;;;;;;;;-1:-1:-1;29704:4:0;29398:318;;;;:::o;33295:136::-;33370:7;33397:26;33417:5;33397:19;:26::i;27571:131::-;27672:22;;27645:7;27672:22;;;:17;:22;;;;;;;27571:131::o;24383:144::-;23067:7;;24463:4;;23067:7;;23053:10;:21;;:42;;-1:-1:-1;23092:3:0;;;;;;;23078:10;:17;23053:42;23045:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24480:17:::1;24486:2;24490:6;24480:5;:17::i;:::-;-1:-1:-1::0;24515:4:0::1;24383:144:::0;;;;:::o;34238:103::-;9069:6;34238:103;:::o;33145:142::-;33223:7;33250:29;33270:8;33250:19;:29::i;8920:49::-;8963:6;8920:49;:::o;27243:142::-;27354:22;;;27307:7;27354:22;;;:17;:22;;;;;;27334:43;;:19;:43::i;31897:1240::-;22976:7;;32036;;22976;;22962:10;:21;22954:30;;;;;;32082:15;32078:149:::1;;32133:23;::::0;32119:63:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;32204:11:0::1;::::0;32197:18:::1;;32078:149;32299:23;::::0;32340:8;32335:581:::1;;32448:59;9069:6;32448:49;32476:20;9069:6:::0;32485:10;32476:8:::1;:20::i;:::-;32448:23;::::0;;:27:::1;:49::i;:::-;:53:::0;::::1;:59::i;:::-;32422:23;:85:::0;32335:581:::1;;;32597:24;32624:59;9069:6;32624:49;32652:20;9069:6:::0;32661:10;32652:8:::1;:20::i;32624:59::-;32597:86;;32721:19;:17;:19::i;:::-;32702:16;:38;32698:207;;;32761:23;:42:::0;;;32698:207:::1;;;32870:19;:17;:19::i;:::-;32844:23;:45:::0;32698:207:::1;32335:581;;32985:31;33005:10;;32985:19;:31::i;:::-;32971:11;:45:::0;33076:23:::1;::::0;33034:66:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;;33118:11:0::1;::::0;22995:1:::1;31897:1240:::0;;;;;:::o;10007:41::-;;;;;;;;;;;;;:::o;8425:20::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9446:25;;;;:::o;29978:500::-;30128:10;30074:4;30110:29;;;:17;:29;;;;;;;;;:38;;;;;;;;;;30163:27;;;30159:205;;30225:10;30248:1;30207:29;;;:17;:29;;;;;;;;;:38;;;;;;;;;:42;30159:205;;;30323:29;:8;30336:15;30323:12;:29::i;:::-;30300:10;30282:29;;;;:17;:29;;;;;;;;;:38;;;;;;;;;:70;30159:205;30388:10;30409:29;;;;:17;:29;;;;;;;;30379:69;;;30409:38;;;;;;;;;;;30379:69;;;;;;;;;30388:10;30379:69;;;;;;;;;;;-1:-1:-1;30466:4:0;;29978:500;-1:-1:-1;;;29978:500:0:o;25463:771::-;25554:4;25541:2;23193:18;;;23185:27;;;;;;23231:19;;;23245:4;23231:19;;23223:28;;;;;;25857:21:::1;25881:26;25901:5;25881:19;:26::i;:::-;26009:10;25991:29;::::0;;;:17:::1;:29;::::0;;;;;25857:50;;-1:-1:-1;25991:48:0::1;::::0;25857:50;25991:33:::1;:48::i;:::-;25977:10;25959:29;::::0;;;:17:::1;:29;::::0;;;;;:80;;;;:29:::1;26115:21:::0;::::1;::::0;;;;:40:::1;::::0;26141:13;26115:25:::1;:40::i;:::-;26091:21;::::0;::::1;;::::0;;;:17:::1;:21;::::0;;;;;;;;:64;;;;26171:31;;;;;;;26091:21;;26180:10:::1;::::0;26171:31:::1;::::0;;;;;;;;::::1;-1:-1:-1::0;26222:4:0::1;::::0;25463:771;-1:-1:-1;;;;25463:771:0:o;31571:180::-;22888:3;;;;;;;22874:10;:17;22866:26;;;;;;31669:3:::1;::::0;;::::1;31683:17:::0;;::::1;31669:3;31683:17:::0;;::::1;::::0;;::::1;;::::0;;;31716:27:::1;::::0;;31669:3;;;::::1;::::0;;;::::1;31716:27:::0;;;::::1;::::0;::::1;::::0;;;;;;31669:3;;31716:27:::1;::::0;;;;;;;::::1;22903:1;31571:180:::0;:::o;33799:245::-;22888:3;;33924:4;;22888:3;;;;;22874:10;:17;22866:26;;;;;;33965:49:::1;33995:5;34003:2;34007:6;33965:22;:49::i;:::-;-1:-1:-1::0;34032:4:0::1;33799:245:::0;;;;;:::o;30523:676::-;30740:8;30733:3;:15;;30725:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30849:16;;30928:13;;;;30780:14;30928:13;;;:6;:13;;;;;;;;;:15;;;;;;;;30877:77;;9822:66;30877:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30867:88;;;;;;30820:136;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30810:147;;;;;;;;;;;30970:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31047:26;31057:6;31065:1;31068;31071;31047:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31038:35;;:5;:35;;;31030:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31103:24;;;;;;;;:17;:24;;;;;;;;:33;;;;;;;;;;;;;:41;;;31160:31;;;;;;;;;;;;;;;;;30523:676;;;;;;;;:::o;28009:153::-;28120:25;;;;28093:7;28120:25;;;:17;:25;;;;;;;;:34;;;;;;;;;;;;;28009:153::o;31375:188::-;22888:3;;;;;;;22874:10;:17;22866:26;;;;;;31471:7:::1;::::0;;::::1;31489:18:::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;31523:32:::1;::::0;;31471:7;;;::::1;31523:32:::0;;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;::::1;22903:1;31375:188:::0;:::o;9038:37::-;9069:6;9038:37;:::o;23905:317::-;23957:7;24204:10;;24198:2;24190:24;;;;;;24183:31;;23905:317;:::o;23279:290::-;23428:23;;:28;23420:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23491:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;23514:16:0;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;23541:8:0;:20;;;;;;;;;;;;;;;-1:-1:-1;;23279:290:0:o;33611:158::-;33737:23;;33678:7;;33705:56;;:27;:5;8963:6;33705:9;:27::i;34052:178::-;34178:9;34052:178;:::o;3936:136::-;3994:7;4021:43;4025:1;4028;4021:43;;;;;;;;;;;;;;;;;:3;:43::i;3472:181::-;3530:7;3562:5;;;3586:6;;;;3578:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24535:665;24645:11;;:23;;24661:6;24645:15;:23::i;:::-;24631:11;:37;24714:21;24738:27;24758:6;24738:19;:27::i;:::-;24823:10;;24714:51;;-1:-1:-1;24823:29:0;;24714:51;24823:14;:29::i;:::-;24810:10;:42;24967:19;:17;:19::i;:::-;24940:23;;:46;;24932:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25078:21;;;;;;;:17;:21;;;;;;:40;;25104:13;25078:25;:40::i;:::-;25054:21;;;;;;;:17;:21;;;;;;;;;:64;;;;25176:16;;;;;;;;;;;;;;;;;;;;;;;;24535:665;;;:::o;33439:164::-;33509:7;33536:59;8963:6;33536:37;33549:23;;33536:8;:12;;:37;;;;:::i;4860:471::-;4918:7;5163:6;5159:47;;-1:-1:-1;5193:1:0;5186:8;;5159:47;5230:5;;;5234:1;5230;:5;:1;5254:5;;;;;:10;5246:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5807:132;5865:7;5892:39;5896:1;5899;5892:39;;;;;;;;;;;;;;;;;:3;:39::i;19498:211::-;19642:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19665:23;19642:58;;;19615:86;;19635:5;;19615:19;:86::i;:::-;19498:211;;;:::o;4375:226::-;4495:7;4531:12;4523:6;;;;4515:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4567:5:0;;;4375:226::o;6435:312::-;6555:7;6590:12;6583:5;6575:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6614:9;6630:1;6626;:5;;;;;;;6435:312;-1:-1:-1;;;;;6435:312:0:o;21959:774::-;22383:23;22409:69;22437:4;22409:69;;;;;;;;;;;;;;;;;22417:5;22409:27;;;;:69;;;;;:::i;:::-;22493:17;;22383:95;;-1:-1:-1;22493:21:0;22489:237;;22648:10;22637:30;;;;;;;;;;;;;;;-1:-1:-1;22637:30:0;22629:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16424:230;16561:12;16593:53;16616:6;16624:4;16630:1;16633:12;16593:22;:53::i;:::-;16586:60;16424:230;-1:-1:-1;;;;16424:230:0:o;17912:1020::-;18085:12;18118:18;18129:6;18118:10;:18::i;:::-;18110:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18244:12;18258:23;18285:6;:11;;18304:8;18314:4;18285:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18243:76;;;;18334:7;18330:595;;;18365:10;-1:-1:-1;18358:17:0;;-1:-1:-1;18358:17:0;18330:595;18479:17;;:21;18475:439;;18742:10;18736:17;18803:15;18790:10;18786:2;18782:19;18775:44;18690:148;18878:20;;;;;;;;;;;;;;;;;;;;18885:12;;18878:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13484:444;13864:20;13912:8;;;13484:444::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;
Swarm Source
ipfs://85756d86280ba984b4ec77e18b45a8597a38d5b4d3cc0d84e3c145e3dc01ccef
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.