Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 2,216 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21108815 | 50 days ago | IN | 0 ETH | 0.00018942 | ||||
Approve | 20999402 | 65 days ago | IN | 0 ETH | 0.00027494 | ||||
Approve | 20910268 | 78 days ago | IN | 0 ETH | 0.00038011 | ||||
Approve | 20892597 | 80 days ago | IN | 0 ETH | 0.00035353 | ||||
Approve | 20668703 | 111 days ago | IN | 0 ETH | 0.00004406 | ||||
Approve | 20381001 | 151 days ago | IN | 0 ETH | 0.00010051 | ||||
Approve | 20105594 | 190 days ago | IN | 0 ETH | 0.00013381 | ||||
Approve | 19995189 | 205 days ago | IN | 0 ETH | 0.000157 | ||||
Permit | 19774768 | 236 days ago | IN | 0 ETH | 0.00053137 | ||||
Approve | 19522150 | 272 days ago | IN | 0 ETH | 0.00074638 | ||||
Approve | 19491830 | 276 days ago | IN | 0 ETH | 0.00085175 | ||||
Approve | 19491828 | 276 days ago | IN | 0 ETH | 0.00091653 | ||||
Approve | 19460494 | 280 days ago | IN | 0 ETH | 0.00077655 | ||||
Transfer | 19229700 | 313 days ago | IN | 0 ETH | 0.0012525 | ||||
Transfer | 18859911 | 365 days ago | IN | 0 ETH | 0.00052453 | ||||
Permit | 18373470 | 433 days ago | IN | 0 ETH | 0.00036519 | ||||
Approve | 18088767 | 473 days ago | IN | 0 ETH | 0.00028717 | ||||
Approve | 17713844 | 525 days ago | IN | 0 ETH | 0.00101438 | ||||
Approve | 17385455 | 571 days ago | IN | 0 ETH | 0.00082916 | ||||
Approve | 17324752 | 580 days ago | IN | 0 ETH | 0.00187912 | ||||
Approve | 16721914 | 665 days ago | IN | 0 ETH | 0.00092865 | ||||
Approve | 16451217 | 703 days ago | IN | 0 ETH | 0.00100843 | ||||
Approve | 16158826 | 744 days ago | IN | 0 ETH | 0.00074646 | ||||
Approve | 15809643 | 792 days ago | IN | 0 ETH | 0.00037602 | ||||
Transfer | 15192217 | 885 days ago | IN | 0 ETH | 0.00041557 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
STRNDelegator
Compiler Version
v0.5.15+commit.6a57276f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-16 */ // File: contracts/lib/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity ^0.5.15; /** * @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; } } // File: contracts/token/STRNTokenStorage.sol // SPDX-License-Identifier: MIT pragma solidity 0.5.15; // Storage for a STRN token contract STRNTokenStorage { 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 Pending governance for this contract */ address public pendingGov; /** * @notice Incentivizer address of STRN protocol */ address public incentivizer; /** * @notice Total supply of STRNs */ uint256 public totalSupply; /** * @notice Max supply of STRNs */ uint256 public maxSupply; /** * @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; mapping (address => uint256) internal _strnBalances; mapping (address => mapping (address => uint256)) internal _allowedFragments; uint256 public initSupply; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; bytes32 public DOMAIN_SEPARATOR; } // File: contracts/token/STRNGovernanceStorage.sol pragma solidity 0.5.15; pragma experimental ABIEncoderV2; /* Copyright 2020 Compound Labs, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ contract STRNGovernanceStorage { /// @notice A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; } // File: contracts/token/STRNTokenInterface.sol // SPDX-License-Identifier: MIT pragma solidity 0.5.15; contract STRNTokenInterface is STRNTokenStorage, STRNGovernanceStorage { /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /*** Gov Events ***/ /** * @notice Event emitted when pendingGov is changed */ event NewPendingGov(address oldPendingGov, address newPendingGov); /** * @notice Event emitted when gov is changed */ event NewGov(address oldGov, address newGov); /** * @notice Sets the incentivizer contract */ event NewIncentivizer(address oldIncentivizer, address newIncentivizer); /* - ERC20 Events - */ /** * @notice EIP20 Transfer event */ event Transfer(address indexed from, address indexed to, uint amount); /** * @notice EIP20 Approval event */ event Approval(address indexed owner, address indexed spender, uint 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 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); /* - Governance Functions - */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256); function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) external; function delegate(address delegatee) external; function delegates(address delegator) external view returns (address); function getCurrentVotes(address account) external view returns (uint256); /* - Permissioned/Governance functions - */ function mint(address to, uint256 amount) external returns (bool); function _setIncentivizer(address incentivizer_) external; function _setPendingGov(address pendingGov_) external; function _acceptGov() external; } // File: contracts/token/STRNGovernance.sol pragma solidity 0.5.15; /* Copyright 2020 Compound Labs, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ contract STRNGovernanceToken is STRNTokenInterface { /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Get delegatee for an address delegating * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "STRN::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "STRN::delegateBySig: invalid nonce"); require(now <= expiry, "STRN::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "STRN::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = _strnBalances[delegator]; // balance of underlying STRNs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "STRN::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // File: contracts/lib/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.5.15; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/lib/Address.sol // SPDX-License-Identifier: MIT pragma solidity ^0.5.15; /** * @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); } } } } // File: contracts/lib/SafeERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.5.15; /** * @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"); } } } // File: contracts/token/STRN.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.5.15; /* import "./STRNTokenInterface.sol"; */ contract STRNToken is STRNGovernanceToken { // Modifiers modifier onlyGov() { require(msg.sender == gov); _; } modifier onlyMinter() { require( msg.sender == gov || msg.sender == incentivizer, "not minter" ); _; } modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; } function initialize( string memory name_, string memory symbol_, uint8 decimals_, uint256 maxSupply_ ) public { name = name_; symbol = symbol_; decimals = decimals_; maxSupply = maxSupply_; } /** * @notice Mints new tokens, increasing totalSupply, initSupply, and a users balance. * @dev Limited to onlyMinter modifier */ function mint(address to, uint256 amount) external onlyMinter returns (bool) { _mint(to, amount); return true; } function _mint(address to, uint256 amount) internal { uint256 newTotalSupply = totalSupply.add(amount); require(newTotalSupply <= maxSupply); // increase totalSupply totalSupply = newTotalSupply; // add balance _strnBalances[to] = _strnBalances[to].add(amount); // add delegates to the minter _moveDelegates(address(0), _delegates[to], amount); emit Mint(to, amount); emit Transfer(address(0), 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 validRecipient(to) returns (bool) { // underlying balance is stored in yams, so divide by current scaling factor // sub from balance of sender _strnBalances[msg.sender] = _strnBalances[msg.sender].sub(value); // add to balance of receiver _strnBalances[to] = _strnBalances[to].add(value); emit Transfer(msg.sender, to, value); _moveDelegates(_delegates[msg.sender], _delegates[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 validRecipient(to) returns (bool) { // decrease allowance _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value); // sub from from _strnBalances[from] = _strnBalances[from].sub(value); _strnBalances[to] = _strnBalances[to].add(value); emit Transfer(from, to, value); _moveDelegates(_delegates[from], _delegates[to], value); return true; } /** * @param who The address to query. * @return The balance of the specified address. */ function balanceOf(address who) external view returns (uint256) { return _strnBalances[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 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 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 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 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, "STRN/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), "STRN/invalid-address-0"); require(owner == ecrecover(digest, v, r, s), "STRN/invalid-permit"); _allowedFragments[owner][spender] = value; emit Approval(owner, spender, value); } /* - Governance Functions - */ /** @notice sets the incentivizer * @param incentivizer_ The address of the incentivizer contract to use for authentication. */ function _setIncentivizer(address incentivizer_) external onlyGov { address oldIncentivizer = incentivizer; incentivizer = incentivizer_; emit NewIncentivizer(oldIncentivizer, incentivizer_); } /** @notice sets the pendingGov * @param pendingGov_ The address of the pendinggov contract to use for authentication. */ function _setPendingGov(address pendingGov_) external onlyGov { address oldPendingGov = pendingGov; pendingGov = pendingGov_; emit NewPendingGov(oldPendingGov, pendingGov_); } /** @notice lets msg.sender accept governance * */ function _acceptGov() external { require(msg.sender == pendingGov, "!pending"); address oldGov = gov; gov = pendingGov; pendingGov = address(0); emit NewGov(oldGov, gov); } /* - Extras - */ // Rescue tokens function rescueTokens( address token, address to, uint256 amount ) external onlyGov returns (bool) { // transfer to SafeERC20.safeTransfer(IERC20(token), to, amount); return true; } } contract STRN is STRNToken { /** * @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_, address initial_owner, uint256 initTotalSupply_, uint256 maxSupply_ ) public { super.initialize(name_, symbol_, decimals_, maxSupply_); initSupply = initTotalSupply_; totalSupply = initTotalSupply_; _strnBalances[initial_owner] = initSupply; DOMAIN_SEPARATOR = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this) ) ); } } // File: contracts/token/STRNDelegate.sol pragma solidity 0.5.15; /* Copyright 2020 Compound Labs, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ contract STRNDelegationStorage { /** * @notice Implementation address for this contract */ address public implementation; } contract STRNDelegatorInterface is STRNDelegationStorage { /** * @notice Emitted when implementation is changed */ event NewImplementation(address oldImplementation, address newImplementation); /** * @notice Called by the gov to update the implementation of the delegator * @param implementation_ The address of the new implementation for delegation * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation */ function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public; } contract STRNDelegateInterface is STRNDelegationStorage { /** * @notice Called by the delegator on a delegate to initialize it for duty * @dev Should revert if any issues arise which make it unfit for delegation * @param data The encoded bytes data for any initialization */ function _becomeImplementation(bytes memory data) public; /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() public; } contract STRNDelegate is STRN, STRNDelegateInterface { /** * @notice Construct an empty delegate */ constructor() public {} /** * @notice Called by the delegator on a delegate to initialize it for duty * @param data The encoded bytes data for any initialization */ function _becomeImplementation(bytes memory data) public { // Shh -- currently unused data; // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } require(msg.sender == gov, "only the gov may call _becomeImplementation"); } /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() public { // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } require(msg.sender == gov, "only the gov may call _resignImplementation"); } } // File: contracts/token/STRNDelegator.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.5.15; contract STRNDelegator is STRNTokenInterface, STRNDelegatorInterface { /** * @notice Construct a new STRN * @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 * @param initTotalSupply_ Initial token amount * @param implementation_ The address of the implementation the contract delegates to * @param becomeImplementationData The encoded args for becomeImplementation */ constructor( string memory name_, string memory symbol_, uint8 decimals_, uint256 initTotalSupply_, uint256 maxSupply_, address implementation_, bytes memory becomeImplementationData ) public { // Creator of the contract is gov during initialization gov = msg.sender; // First delegate gets to initialize the delegator (i.e. storage contract) delegateTo( implementation_, abi.encodeWithSignature( "initialize(string,string,uint8,address,uint256,uint256)", name_, symbol_, decimals_, msg.sender, initTotalSupply_, maxSupply_ ) ); // New implementations always get set via the settor (post-initialize) _setImplementation(implementation_, false, becomeImplementationData); } /** * @notice Called by the gov to update the implementation of the delegator * @param implementation_ The address of the new implementation for delegation * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation */ function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public { require(msg.sender == gov, "STRNDelegator::_setImplementation: Caller must be gov"); if (allowResign) { delegateToImplementation(abi.encodeWithSignature("_resignImplementation()")); } address oldImplementation = implementation; implementation = implementation_; delegateToImplementation(abi.encodeWithSignature("_becomeImplementation(bytes)", becomeImplementationData)); emit NewImplementation(oldImplementation, implementation); } /** * @notice Sender supplies assets into the market and receives cTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function mint(address to, uint256 mintAmount) external returns (bool) { to; mintAmount; // Shh delegateAndReturn(); } /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external returns (bool) { dst; amount; // Shh delegateAndReturn(); } /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom( address src, address dst, uint256 amount ) external returns (bool) { src; dst; amount; // Shh delegateAndReturn(); } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve( address spender, uint256 amount ) external returns (bool) { spender; amount; // Shh delegateAndReturn(); } /** * @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 returns (bool) { spender; addedValue; // Shh delegateAndReturn(); } function maxScalingFactor() external view returns (uint256) { delegateToViewAndReturn(); } /** * @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 returns (bool) { spender; subtractedValue; // Shh delegateAndReturn(); } // --- Approve by signature --- function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { owner; spender; value; deadline; v; r; s; // Shh delegateAndReturn(); } /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance( address owner, address spender ) external view returns (uint256) { owner; spender; // Shh delegateToViewAndReturn(); } /** * @notice Rescues tokens and sends them to the `to` address * @param token The address of the token * @param to The address for which the tokens should be send * @return Success */ function rescueTokens( address token, address to, uint256 amount ) external returns (bool) { token; to; amount; // Shh delegateAndReturn(); } /** * @notice Get the current allowance from `owner` for `spender` * @param delegator The address of the account which has designated a delegate * @return Address of delegatee */ function delegates( address delegator ) external view returns (address) { delegator; // Shh delegateToViewAndReturn(); } /** * @notice Get the token balance of the `owner` * @param owner The address of the account to query * @return The number of tokens owned by `owner` */ function balanceOf(address owner) external view returns (uint256) { owner; // Shh delegateToViewAndReturn(); } /*** Gov Functions ***/ /** * @notice Begins transfer of gov rights. The newPendingGov must call `_acceptGov` to finalize the transfer. * @dev Gov function to begin change of gov. The newPendingGov must call `_acceptGov` to finalize the transfer. * @param newPendingGov New pending gov. */ function _setPendingGov(address newPendingGov) external { newPendingGov; // Shh delegateAndReturn(); } function _setIncentivizer(address incentivizer_) external { incentivizer_; // Shh delegateAndReturn(); } /** * @notice Accepts transfer of gov rights. msg.sender must be pendingGov * @dev Gov function for pending gov to accept role and update gov * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _acceptGov() external { delegateAndReturn(); } function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { account; blockNumber; delegateToViewAndReturn(); } function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { delegatee; nonce; expiry; v; r; s; delegateAndReturn(); } function delegate(address delegatee) external { delegatee; delegateAndReturn(); } function getCurrentVotes(address account) external view returns (uint256) { account; delegateToViewAndReturn(); } /** * @notice Internal method to delegate execution to another contract * @dev It returns to the external caller whatever the implementation returns or forwards reverts * @param callee The contract to delegatecall * @param data The raw data to delegatecall * @return The returned bytes from the delegatecall */ function delegateTo(address callee, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returnData) = callee.delegatecall(data); assembly { if eq(success, 0) { revert(add(returnData, 0x20), returndatasize) } } return returnData; } /** * @notice Delegates execution to the implementation contract * @dev It returns to the external caller whatever the implementation returns or forwards reverts * @param data The raw data to delegatecall * @return The returned bytes from the delegatecall */ function delegateToImplementation(bytes memory data) public returns (bytes memory) { return delegateTo(implementation, data); } /** * @notice Delegates execution to an implementation contract * @dev It returns to the external caller whatever the implementation returns or forwards reverts * There are an additional 2 prefix uints from the wrapper returndata, which we ignore since we make an extra hop. * @param data The raw data to delegatecall * @return The returned bytes from the delegatecall */ function delegateToViewImplementation(bytes memory data) public view returns (bytes memory) { (bool success, bytes memory returnData) = address(this).staticcall(abi.encodeWithSignature("delegateToImplementation(bytes)", data)); assembly { if eq(success, 0) { revert(add(returnData, 0x20), returndatasize) } } return abi.decode(returnData, (bytes)); } function delegateToViewAndReturn() private view returns (bytes memory) { (bool success, ) = address(this).staticcall(abi.encodeWithSignature("delegateToImplementation(bytes)", msg.data)); assembly { let free_mem_ptr := mload(0x40) returndatacopy(free_mem_ptr, 0, returndatasize) switch success case 0 { revert(free_mem_ptr, returndatasize) } default { return(add(free_mem_ptr, 0x40), sub(returndatasize, 0x40)) } } } function delegateAndReturn() private returns (bytes memory) { (bool success, ) = implementation.delegatecall(msg.data); assembly { let free_mem_ptr := mload(0x40) returndatacopy(free_mem_ptr, 0, returndatasize) switch success case 0 { revert(free_mem_ptr, returndatasize) } default { return(free_mem_ptr, returndatasize) } } } /** * @notice Delegates execution to an implementation contract * @dev It returns to the external caller whatever the implementation returns or forwards reverts */ function() external payable { require(msg.value == 0,"STRNDelegator:fallback: cannot send value to fallback"); // delegate all other functions to current implementation delegateAndReturn(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"initTotalSupply_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldIncentivizer","type":"address"},{"indexed":false,"internalType":"address","name":"newIncentivizer","type":"address"}],"name":"NewIncentivizer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingGov","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingGov","type":"address"}],"name":"NewPendingGov","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"_acceptGov","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"incentivizer_","type":"address"}],"name":"_setIncentivizer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newPendingGov","type":"address"}],"name":"_setPendingGov","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"delegateToImplementation","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"delegateToViewImplementation","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"incentivizer","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"initSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"internalDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingGov","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001b8f38038062001b8f83398101604081905262000034916200032c565b60038054610100600160a81b03191633610100810291909117909155604051620000a691849162000072918b918b918b918b908b9060240162000562565b60408051601f198184030181529190526020810180516001600160e01b03908116631759ab8d60e21b17909152620000cb16565b50620000be826000836001600160e01b036200014d16565b50505050505050620006cf565b606060006060846001600160a01b031684604051620000eb91906200051b565b600060405180830381855af49150503d806000811462000128576040519150601f19603f3d011682016040523d82523d6000602084013e6200012d565b606091505b5091509150600082141562000143573d60208201fd5b9150505b92915050565b60035461010090046001600160a01b03163314620001885760405162461bcd60e51b81526004016200017f90620005d4565b60405180910390fd5b8115620001ca576040805160048152602481019091526020810180516001600160e01b0390811663153ab50560e01b17909152620001c891906200028516565b505b601080546001600160a01b038581166001600160a01b03198316179092556040519116906200023790620002039084906024016200054f565b60408051601f198184030181529190526020810180516001600160e01b03908116630adccee560e31b179091526200028516565b506010546040517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a91620002779184916001600160a01b03169062000530565b60405180910390a150505050565b60105460609062000147906001600160a01b0316836001600160e01b03620000cb16565b805162000147816200069f565b600082601f830112620002c857600080fd5b8151620002df620002d9826200060d565b620005e6565b91508082526020830160208301858383011115620002fc57600080fd5b6200030983828462000662565b50505092915050565b80516200014781620006b9565b80516200014781620006c4565b600080600080600080600060e0888a0312156200034857600080fd5b87516001600160401b038111156200035f57600080fd5b6200036d8a828b01620002b6565b97505060208801516001600160401b038111156200038a57600080fd5b620003988a828b01620002b6565b9650506040620003ab8a828b016200031f565b9550506060620003be8a828b0162000312565b9450506080620003d18a828b0162000312565b93505060a0620003e48a828b01620002a9565b92505060c08801516001600160401b038111156200040157600080fd5b6200040f8a828b01620002b6565b91505092959891949750929550565b620004298162000647565b82525050565b60006200043c8262000635565b62000448818562000639565b93506200045a81856020860162000662565b620004658162000695565b9093019392505050565b60006200047c8262000635565b62000488818562000642565b93506200049a81856020860162000662565b9290920192915050565b6000620004b360358362000639565b7f5354524e44656c656761746f723a3a5f736574496d706c656d656e746174696f81527f6e3a2043616c6c6572206d75737420626520676f760000000000000000000000602082015260400192915050565b620004298162000659565b62000429816200065c565b60006200052982846200046f565b9392505050565b604081016200054082856200041e565b6200052960208301846200041e565b602080825281016200052981846200042f565b60c080825281016200057581896200042f565b905081810360208301526200058b81886200042f565b90506200059c604083018762000510565b620005ab60608301866200041e565b620005ba608083018562000505565b620005c960a083018462000505565b979650505050505050565b602080825281016200014781620004a4565b6040518181016001600160401b03811182821017156200060557600080fd5b604052919050565b60006001600160401b038211156200062457600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b919050565b60006001600160a01b03821662000147565b90565b60ff1690565b60005b838110156200067f57818101518382015260200162000665565b838111156200068f576000848401525b50505050565b601f01601f191690565b620006aa8162000647565b8114620006b657600080fd5b50565b620006aa8162000659565b620006aa816200065c565b6114b080620006df6000396000f3fe6080604052600436106102465760003560e01c806364dd48f511610139578063a457c2d7116100b6578063d505accf1161007a578063d505accf14610587578063d5abeb01146105a7578063dd62ed3e146105bc578063e7a324dc146105d7578063ec342ad0146105ec578063f1127ed81461060157610246565b8063a457c2d7146102c3578063a9059cbb146102c3578063b4b5ea57146104e2578063c3cda52014610567578063cea9d26f1461035e57610246565b8063782d6fe1116100fd578063782d6fe1146104fd5780637ecebe001461051d57806395d89b411461053d57806397d63f931461055257806398dca2101461045657610246565b806364dd48f51461048b5780636fc6407c146104a05780636fcfff45146104b557806370a08231146104e257806373f03dff1461045657610246565b8063313ce567116101c75780634bda2e201161018b5780634bda2e20146103ff578063555bcc4014610416578063587cde1e146104365780635c19a95c146104565780635c60da1b1461047657610246565b8063313ce567146103a85780633644e515146103ca57806339509351146102c357806340c10f19146102c35780634487152f146103df57610246565b806318160ddd1161020e57806318160ddd1461033457806320606b701461034957806323b872dd1461035e578063252408101461037e57806330adf81f1461039357610246565b806306fdde03146102785780630933c1ed146102a3578063095ea7b3146102c357806311d3e6c4146102f057806312d43a5114610312575b341561026d5760405162461bcd60e51b815260040161026490611309565b60405180910390fd5b61027561062f565b50005b34801561028457600080fd5b5061028d6106af565b60405161029a91906112f8565b60405180910390f35b3480156102af57600080fd5b5061028d6102be366004610fe3565b61073c565b3480156102cf57600080fd5b506102e36102de366004610ec7565b61075b565b60405161029a91906112ca565b3480156102fc57600080fd5b5061030561076c565b60405161029a91906112d8565b34801561031e57600080fd5b5061032761077a565b60405161029a91906112a1565b34801561034057600080fd5b5061030561078e565b34801561035557600080fd5b50610305610794565b34801561036a57600080fd5b506102e3610379366004610d83565b6107ab565b34801561038a57600080fd5b506103276107bd565b34801561039f57600080fd5b506103056107cc565b3480156103b457600080fd5b506103bd6107f0565b60405161029a9190611352565b3480156103d657600080fd5b506103056107f9565b3480156103eb57600080fd5b5061028d6103fa366004610fe3565b6107ff565b34801561040b57600080fd5b506104146108c6565b005b34801561042257600080fd5b50610414610431366004610e6c565b6108d1565b34801561044257600080fd5b50610327610451366004610d2b565b6109eb565b34801561046257600080fd5b50610414610471366004610d2b565b6109fb565b34801561048257600080fd5b50610327610a07565b34801561049757600080fd5b50610305610a16565b3480156104ac57600080fd5b50610327610a24565b3480156104c157600080fd5b506104d56104d0366004610d2b565b610a33565b60405161029a9190611329565b3480156104ee57600080fd5b50610305610451366004610d2b565b34801561050957600080fd5b50610305610518366004610ec7565b610a4b565b34801561052957600080fd5b50610305610538366004610d2b565b610a55565b34801561054957600080fd5b5061028d610a67565b34801561055e57600080fd5b50610305610abf565b34801561057357600080fd5b50610414610582366004610ef7565b610ac5565b34801561059357600080fd5b506104146105a2366004610dd0565b610ad6565b3480156105b357600080fd5b50610305610ae8565b3480156105c857600080fd5b50610305610518366004610d49565b3480156105e357600080fd5b50610305610aee565b3480156105f857600080fd5b50610305610afa565b34801561060d57600080fd5b5061062161061c366004610f7e565b610b06565b60405161029a929190611337565b6010546040516060916000916001600160a01b0390911690610654908390369061126b565b600060405180830381855af49150503d806000811461068f576040519150601f19603f3d011682016040523d82523d6000602084013e610694565b606091505b505090506040513d6000823e8180156106ab573d82f35b3d82fd5b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107345780601f1061070957610100808354040283529160200191610734565b820191906000526020600020905b81548152906001019060200180831161071757829003601f168201915b505050505081565b601054606090610755906001600160a01b031683610b33565b92915050565b600061076561062f565b5092915050565b6000610776610ba6565b5090565b60035461010090046001600160a01b031681565b60065481565b6040516107a09061128b565b604051809103902081565b60006107b561062f565b509392505050565b6004546001600160a01b031681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60035460ff1681565b600b5481565b606060006060306001600160a01b03168460405160240161082091906112f8565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b179052516108559190611278565b600060405180830381855afa9150503d8060008114610890576040519150601f19603f3d011682016040523d82523d6000602084013e610895565b606091505b509150915060008214156108aa573d60208201fd5b808060200190516108be9190810190610fae565b949350505050565b6108ce61062f565b50565b60035461010090046001600160a01b031633146109005760405162461bcd60e51b815260040161026490611319565b811561093a576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b1790526109389061073c565b505b601080546001600160a01b038581166001600160a01b031983161790925560405191169061099f906109709084906024016112f8565b60408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b17905261073c565b506010546040517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a916109dd9184916001600160a01b0316906112af565b60405180910390a150505050565b60006109f5610ba6565b50919050565b610a0361062f565b5050565b6010546001600160a01b031681565b69d3c21bcecceda100000081565b6005546001600160a01b031681565b600e6020526000908152604090205463ffffffff1681565b6000610765610ba6565b600f6020526000908152604090205481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156107345780601f1061070957610100808354040283529160200191610734565b600a5481565b610acd61062f565b50505050505050565b610ade61062f565b5050505050505050565b60075481565b6040516107a090611296565b670de0b6b3a764000081565b600d6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b606060006060846001600160a01b031684604051610b519190611278565b600060405180830381855af49150503d8060008114610b8c576040519150601f19603f3d011682016040523d82523d6000602084013e610b91565b606091505b509150915060008214156108be573d60208201fd5b60606000306001600160a01b0316600036604051602401610bc89291906112e6565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b17905251610bfd9190611278565b600060405180830381855afa9150503d8060008114610c38576040519150601f19603f3d011682016040523d82523d6000602084013e610c3d565b606091505b505090506040513d6000823e8180156106ab5760403d0360408301f35b803561075581611435565b803561075581611449565b803561075581611452565b600082601f830112610c8c57600080fd5b8151610c9f610c9a82611387565b611360565b91508082526020830160208301858383011115610cbb57600080fd5b610cc68382846113fb565b50505092915050565b600082601f830112610ce057600080fd5b8135610cee610c9a82611387565b91508082526020830160208301858383011115610d0a57600080fd5b610cc68382846113ef565b80356107558161145b565b803561075581611464565b600060208284031215610d3d57600080fd5b60006108be8484610c5a565b60008060408385031215610d5c57600080fd5b6000610d688585610c5a565b9250506020610d7985828601610c5a565b9150509250929050565b600080600060608486031215610d9857600080fd5b6000610da48686610c5a565b9350506020610db586828701610c5a565b9250506040610dc686828701610c70565b9150509250925092565b600080600080600080600060e0888a031215610deb57600080fd5b6000610df78a8a610c5a565b9750506020610e088a828b01610c5a565b9650506040610e198a828b01610c70565b9550506060610e2a8a828b01610c70565b9450506080610e3b8a828b01610d20565b93505060a0610e4c8a828b01610c70565b92505060c0610e5d8a828b01610c70565b91505092959891949750929550565b600080600060608486031215610e8157600080fd5b6000610e8d8686610c5a565b9350506020610e9e86828701610c65565b925050604084013567ffffffffffffffff811115610ebb57600080fd5b610dc686828701610ccf565b60008060408385031215610eda57600080fd5b6000610ee68585610c5a565b9250506020610d7985828601610c70565b60008060008060008060c08789031215610f1057600080fd5b6000610f1c8989610c5a565b9650506020610f2d89828a01610c70565b9550506040610f3e89828a01610c70565b9450506060610f4f89828a01610d20565b9350506080610f6089828a01610c70565b92505060a0610f7189828a01610c70565b9150509295509295509295565b60008060408385031215610f9157600080fd5b6000610f9d8585610c5a565b9250506020610d7985828601610d15565b600060208284031215610fc057600080fd5b815167ffffffffffffffff811115610fd757600080fd5b6108be84828501610c7b565b600060208284031215610ff557600080fd5b813567ffffffffffffffff81111561100c57600080fd5b6108be84828501610ccf565b611021816113c1565b82525050565b611021816113cc565b611021816113d1565b600061104583856113b3565b93506110528385846113ef565b61105b8361142b565b9093019392505050565b600061107183856113bc565b935061107e8385846113ef565b50500190565b600061108f826113af565b61109981856113b3565b93506110a98185602086016113fb565b61105b8161142b565b60006110bd826113af565b6110c781856113bc565b93506110d78185602086016113fb565b9290920192915050565b60006110ee6035836113b3565b7f5354524e44656c656761746f723a66616c6c6261636b3a2063616e6e6f742073815274656e642076616c756520746f2066616c6c6261636b60581b602082015260400192915050565b60006111456043836113bc565b7f454950373132446f6d61696e28737472696e67206e616d652c75696e7432353681527f20636861696e49642c6164647265737320766572696679696e67436f6e74726160208201526263742960e81b604082015260430192915050565b60006111b06035836113b3565b7f5354524e44656c656761746f723a3a5f736574496d706c656d656e746174696f815274371d1021b0b63632b91036bab9ba1031329033b7bb60591b602082015260400192915050565b6000611207603a836113bc565b7f44656c65676174696f6e28616464726573732064656c6567617465652c75696e81527f74323536206e6f6e63652c75696e7432353620657870697279290000000000006020820152603a0192915050565b611021816113e0565b611021816113e9565b60006108be828486611065565b600061128482846110b2565b9392505050565b600061075582611138565b6000610755826111fa565b602081016107558284611018565b604081016112bd8285611018565b6112846020830184611018565b602081016107558284611027565b602081016107558284611030565b602080825281016108be818486611039565b602080825281016112848184611084565b60208082528101610755816110e1565b60208082528101610755816111a3565b602081016107558284611259565b604081016113458285611259565b6112846020830184611030565b602081016107558284611262565b60405181810167ffffffffffffffff8111828210171561137f57600080fd5b604052919050565b600067ffffffffffffffff82111561139e57600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b919050565b6000610755826113d4565b151590565b90565b6001600160a01b031690565b63ffffffff1690565b60ff1690565b82818337506000910152565b60005b838110156114165781810151838201526020016113fe565b83811115611425576000848401525b50505050565b601f01601f191690565b61143e816113c1565b81146108ce57600080fd5b61143e816113cc565b61143e816113d1565b61143e816113e0565b61143e816113e956fea365627a7a72315820dcad35654dfd373c6a05515bacedc533416df88fa016f80b7e8cf370a3fe2eb06c6578706572696d656e74616cf564736f6c634300050f004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084595161401484a00000000000000000000000000000012327425d833f6ad3d235a6977e5c24b6942abbe0000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000653747261696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045354524e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c806364dd48f511610139578063a457c2d7116100b6578063d505accf1161007a578063d505accf14610587578063d5abeb01146105a7578063dd62ed3e146105bc578063e7a324dc146105d7578063ec342ad0146105ec578063f1127ed81461060157610246565b8063a457c2d7146102c3578063a9059cbb146102c3578063b4b5ea57146104e2578063c3cda52014610567578063cea9d26f1461035e57610246565b8063782d6fe1116100fd578063782d6fe1146104fd5780637ecebe001461051d57806395d89b411461053d57806397d63f931461055257806398dca2101461045657610246565b806364dd48f51461048b5780636fc6407c146104a05780636fcfff45146104b557806370a08231146104e257806373f03dff1461045657610246565b8063313ce567116101c75780634bda2e201161018b5780634bda2e20146103ff578063555bcc4014610416578063587cde1e146104365780635c19a95c146104565780635c60da1b1461047657610246565b8063313ce567146103a85780633644e515146103ca57806339509351146102c357806340c10f19146102c35780634487152f146103df57610246565b806318160ddd1161020e57806318160ddd1461033457806320606b701461034957806323b872dd1461035e578063252408101461037e57806330adf81f1461039357610246565b806306fdde03146102785780630933c1ed146102a3578063095ea7b3146102c357806311d3e6c4146102f057806312d43a5114610312575b341561026d5760405162461bcd60e51b815260040161026490611309565b60405180910390fd5b61027561062f565b50005b34801561028457600080fd5b5061028d6106af565b60405161029a91906112f8565b60405180910390f35b3480156102af57600080fd5b5061028d6102be366004610fe3565b61073c565b3480156102cf57600080fd5b506102e36102de366004610ec7565b61075b565b60405161029a91906112ca565b3480156102fc57600080fd5b5061030561076c565b60405161029a91906112d8565b34801561031e57600080fd5b5061032761077a565b60405161029a91906112a1565b34801561034057600080fd5b5061030561078e565b34801561035557600080fd5b50610305610794565b34801561036a57600080fd5b506102e3610379366004610d83565b6107ab565b34801561038a57600080fd5b506103276107bd565b34801561039f57600080fd5b506103056107cc565b3480156103b457600080fd5b506103bd6107f0565b60405161029a9190611352565b3480156103d657600080fd5b506103056107f9565b3480156103eb57600080fd5b5061028d6103fa366004610fe3565b6107ff565b34801561040b57600080fd5b506104146108c6565b005b34801561042257600080fd5b50610414610431366004610e6c565b6108d1565b34801561044257600080fd5b50610327610451366004610d2b565b6109eb565b34801561046257600080fd5b50610414610471366004610d2b565b6109fb565b34801561048257600080fd5b50610327610a07565b34801561049757600080fd5b50610305610a16565b3480156104ac57600080fd5b50610327610a24565b3480156104c157600080fd5b506104d56104d0366004610d2b565b610a33565b60405161029a9190611329565b3480156104ee57600080fd5b50610305610451366004610d2b565b34801561050957600080fd5b50610305610518366004610ec7565b610a4b565b34801561052957600080fd5b50610305610538366004610d2b565b610a55565b34801561054957600080fd5b5061028d610a67565b34801561055e57600080fd5b50610305610abf565b34801561057357600080fd5b50610414610582366004610ef7565b610ac5565b34801561059357600080fd5b506104146105a2366004610dd0565b610ad6565b3480156105b357600080fd5b50610305610ae8565b3480156105c857600080fd5b50610305610518366004610d49565b3480156105e357600080fd5b50610305610aee565b3480156105f857600080fd5b50610305610afa565b34801561060d57600080fd5b5061062161061c366004610f7e565b610b06565b60405161029a929190611337565b6010546040516060916000916001600160a01b0390911690610654908390369061126b565b600060405180830381855af49150503d806000811461068f576040519150601f19603f3d011682016040523d82523d6000602084013e610694565b606091505b505090506040513d6000823e8180156106ab573d82f35b3d82fd5b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107345780601f1061070957610100808354040283529160200191610734565b820191906000526020600020905b81548152906001019060200180831161071757829003601f168201915b505050505081565b601054606090610755906001600160a01b031683610b33565b92915050565b600061076561062f565b5092915050565b6000610776610ba6565b5090565b60035461010090046001600160a01b031681565b60065481565b6040516107a09061128b565b604051809103902081565b60006107b561062f565b509392505050565b6004546001600160a01b031681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60035460ff1681565b600b5481565b606060006060306001600160a01b03168460405160240161082091906112f8565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b179052516108559190611278565b600060405180830381855afa9150503d8060008114610890576040519150601f19603f3d011682016040523d82523d6000602084013e610895565b606091505b509150915060008214156108aa573d60208201fd5b808060200190516108be9190810190610fae565b949350505050565b6108ce61062f565b50565b60035461010090046001600160a01b031633146109005760405162461bcd60e51b815260040161026490611319565b811561093a576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b1790526109389061073c565b505b601080546001600160a01b038581166001600160a01b031983161790925560405191169061099f906109709084906024016112f8565b60408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b17905261073c565b506010546040517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a916109dd9184916001600160a01b0316906112af565b60405180910390a150505050565b60006109f5610ba6565b50919050565b610a0361062f565b5050565b6010546001600160a01b031681565b69d3c21bcecceda100000081565b6005546001600160a01b031681565b600e6020526000908152604090205463ffffffff1681565b6000610765610ba6565b600f6020526000908152604090205481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156107345780601f1061070957610100808354040283529160200191610734565b600a5481565b610acd61062f565b50505050505050565b610ade61062f565b5050505050505050565b60075481565b6040516107a090611296565b670de0b6b3a764000081565b600d6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b606060006060846001600160a01b031684604051610b519190611278565b600060405180830381855af49150503d8060008114610b8c576040519150601f19603f3d011682016040523d82523d6000602084013e610b91565b606091505b509150915060008214156108be573d60208201fd5b60606000306001600160a01b0316600036604051602401610bc89291906112e6565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b17905251610bfd9190611278565b600060405180830381855afa9150503d8060008114610c38576040519150601f19603f3d011682016040523d82523d6000602084013e610c3d565b606091505b505090506040513d6000823e8180156106ab5760403d0360408301f35b803561075581611435565b803561075581611449565b803561075581611452565b600082601f830112610c8c57600080fd5b8151610c9f610c9a82611387565b611360565b91508082526020830160208301858383011115610cbb57600080fd5b610cc68382846113fb565b50505092915050565b600082601f830112610ce057600080fd5b8135610cee610c9a82611387565b91508082526020830160208301858383011115610d0a57600080fd5b610cc68382846113ef565b80356107558161145b565b803561075581611464565b600060208284031215610d3d57600080fd5b60006108be8484610c5a565b60008060408385031215610d5c57600080fd5b6000610d688585610c5a565b9250506020610d7985828601610c5a565b9150509250929050565b600080600060608486031215610d9857600080fd5b6000610da48686610c5a565b9350506020610db586828701610c5a565b9250506040610dc686828701610c70565b9150509250925092565b600080600080600080600060e0888a031215610deb57600080fd5b6000610df78a8a610c5a565b9750506020610e088a828b01610c5a565b9650506040610e198a828b01610c70565b9550506060610e2a8a828b01610c70565b9450506080610e3b8a828b01610d20565b93505060a0610e4c8a828b01610c70565b92505060c0610e5d8a828b01610c70565b91505092959891949750929550565b600080600060608486031215610e8157600080fd5b6000610e8d8686610c5a565b9350506020610e9e86828701610c65565b925050604084013567ffffffffffffffff811115610ebb57600080fd5b610dc686828701610ccf565b60008060408385031215610eda57600080fd5b6000610ee68585610c5a565b9250506020610d7985828601610c70565b60008060008060008060c08789031215610f1057600080fd5b6000610f1c8989610c5a565b9650506020610f2d89828a01610c70565b9550506040610f3e89828a01610c70565b9450506060610f4f89828a01610d20565b9350506080610f6089828a01610c70565b92505060a0610f7189828a01610c70565b9150509295509295509295565b60008060408385031215610f9157600080fd5b6000610f9d8585610c5a565b9250506020610d7985828601610d15565b600060208284031215610fc057600080fd5b815167ffffffffffffffff811115610fd757600080fd5b6108be84828501610c7b565b600060208284031215610ff557600080fd5b813567ffffffffffffffff81111561100c57600080fd5b6108be84828501610ccf565b611021816113c1565b82525050565b611021816113cc565b611021816113d1565b600061104583856113b3565b93506110528385846113ef565b61105b8361142b565b9093019392505050565b600061107183856113bc565b935061107e8385846113ef565b50500190565b600061108f826113af565b61109981856113b3565b93506110a98185602086016113fb565b61105b8161142b565b60006110bd826113af565b6110c781856113bc565b93506110d78185602086016113fb565b9290920192915050565b60006110ee6035836113b3565b7f5354524e44656c656761746f723a66616c6c6261636b3a2063616e6e6f742073815274656e642076616c756520746f2066616c6c6261636b60581b602082015260400192915050565b60006111456043836113bc565b7f454950373132446f6d61696e28737472696e67206e616d652c75696e7432353681527f20636861696e49642c6164647265737320766572696679696e67436f6e74726160208201526263742960e81b604082015260430192915050565b60006111b06035836113b3565b7f5354524e44656c656761746f723a3a5f736574496d706c656d656e746174696f815274371d1021b0b63632b91036bab9ba1031329033b7bb60591b602082015260400192915050565b6000611207603a836113bc565b7f44656c65676174696f6e28616464726573732064656c6567617465652c75696e81527f74323536206e6f6e63652c75696e7432353620657870697279290000000000006020820152603a0192915050565b611021816113e0565b611021816113e9565b60006108be828486611065565b600061128482846110b2565b9392505050565b600061075582611138565b6000610755826111fa565b602081016107558284611018565b604081016112bd8285611018565b6112846020830184611018565b602081016107558284611027565b602081016107558284611030565b602080825281016108be818486611039565b602080825281016112848184611084565b60208082528101610755816110e1565b60208082528101610755816111a3565b602081016107558284611259565b604081016113458285611259565b6112846020830184611030565b602081016107558284611262565b60405181810167ffffffffffffffff8111828210171561137f57600080fd5b604052919050565b600067ffffffffffffffff82111561139e57600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b919050565b6000610755826113d4565b151590565b90565b6001600160a01b031690565b63ffffffff1690565b60ff1690565b82818337506000910152565b60005b838110156114165781810151838201526020016113fe565b83811115611425576000848401525b50505050565b601f01601f191690565b61143e816113c1565b81146108ce57600080fd5b61143e816113cc565b61143e816113d1565b61143e816113e0565b61143e816113e956fea365627a7a72315820dcad35654dfd373c6a05515bacedc533416df88fa016f80b7e8cf370a3fe2eb06c6578706572696d656e74616cf564736f6c634300050f0040
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084595161401484a00000000000000000000000000000012327425d833f6ad3d235a6977e5c24b6942abbe0000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000653747261696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045354524e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Strain
Arg [1] : symbol_ (string): STRN
Arg [2] : decimals_ (uint8): 18
Arg [3] : initTotalSupply_ (uint256): 0
Arg [4] : maxSupply_ (uint256): 10000000000000000000000000
Arg [5] : implementation_ (address): 0x12327425d833F6ad3d235A6977E5C24b6942AbBe
Arg [6] : becomeImplementationData (bytes): 0x00
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000084595161401484a000000
Arg [5] : 00000000000000000000000012327425d833f6ad3d235a6977e5c24b6942abbe
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 53747261696e0000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 5354524e00000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
48001:13137:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60957:9;:14;60949:79;;;;-1:-1:-1;;;60949:79:0;;;;;;;;;;;;;;;;;61108:19;:17;:19::i;:::-;;48001:13137;5804:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5804:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;58758:141;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;58758:141:0;;;;;;;;:::i;52484:193::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;52484:193:0;;;;;;;;:::i;:::-;;;;;;;;53273:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53273:136:0;;;:::i;:::-;;;;;;;;6091:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6091:18:0;;;:::i;:::-;;;;;;;;6387:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6387:26:0;;;:::i;9440:122::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9440:122:0;;;:::i;51797:217::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51797:217:0;;;;;;;;:::i;6189:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6189:25:0;;;:::i;7041:108::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7041:108:0;;;:::i;6000:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6000:21:0;;;:::i;:::-;;;;;;;;7156:31;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7156:31:0;;;:::i;59321:434::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;59321:434:0;;;;;;;;:::i;56889:83::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56889:83:0;;;:::i;:::-;;49908:639;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49908:639:0;;;;;;;;:::i;55451:189::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55451:189:0;;;;;;;;:::i;57459:118::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;57459:118:0;;;;;;;;:::i;45526:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45526:29:0;;;:::i;6591:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6591:49:0;;;:::i;6295:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6295:27:0;;;:::i;9318:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9318:49:0;;;;;;;;:::i;:::-;;;;;;;;55830:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55830:165:0;;;;;;56982:197;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56982:197:0;;;;;;;;:::i;9854:39::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9854:39:0;;;;;;;;:::i;5900:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5900:20:0;;;:::i;6900:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6900:25:0;;;:::i;57187:264::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;57187:264:0;;;;;;;;:::i;53939:301::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;53939:301:0;;;;;;;;:::i;6476:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6476:24:0;;;:::i;54570:216::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54570:216:0;;;;;;9656:117;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9656:117:0;;;:::i;6709:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6709:37:0;;;:::i;9179:70::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9179:70:0;;;;;;;;:::i;:::-;;;;;;;;;60288:427;60378:14;;:37;;60334:12;;60360;;-1:-1:-1;;;;;60378:14:0;;;;:37;;60360:12;;60406:8;;60378:37;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;60359:56:0;;;60478:4;60472:11;60529:14;60526:1;60512:12;60497:47;60567:7;60588:47;;;;60680:14;60666:12;60659:36;60588:47;60618:14;60604:12;60597:36;5804:18;;;;;;;;;;;;;;;-1:-1:-1;;5804:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58758:141::-;58870:14;;58827:12;;58859:32;;-1:-1:-1;;;;;58870:14:0;58886:4;58859:10;:32::i;:::-;58852:39;58758:141;-1:-1:-1;;58758:141:0:o;52484:193::-;52595:4;52650:19;:17;:19::i;:::-;;52484:193;;;;:::o;53273:136::-;53351:7;53376:25;:23;:25::i;:::-;;53273:136;:::o;6091:18::-;;;;;;-1:-1:-1;;;;;6091:18:0;;:::o;6387:26::-;;;;:::o;9440:122::-;9482:80;;;;;;;;;;;;;;9440:122;:::o;51797:217::-;51931:4;51987:19;:17;:19::i;:::-;;51797:217;;;;;:::o;6189:25::-;;;-1:-1:-1;;;;;6189:25:0;;:::o;7041:108::-;7083:66;7041:108;:::o;6000:21::-;;;;;;:::o;7156:31::-;;;;:::o;59321:434::-;59399:12;59425;59439:23;59474:4;-1:-1:-1;;;;;59466:24:0;59550:4;59491:64;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;59491:64:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;59466:90:0;;;59491:64;59466:90;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;59424:132:0;;;;59606:1;59597:7;59594:14;59591:2;;;59658:14;59651:4;59639:10;59635:21;59628:45;59591:2;59727:10;59716:31;;;;;;;;;;;;;;59709:38;59321:434;-1:-1:-1;;;;59321:434:0:o;56889:83::-;56945:19;:17;:19::i;:::-;;56889:83::o;49908:639::-;50058:3;;;;;-1:-1:-1;;;;;50058:3:0;50044:10;:17;50036:83;;;;-1:-1:-1;;;50036:83:0;;;;;;;;;50136:11;50132:120;;;50189:50;;;22:32:-1;6:49;;50189:50:0;;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;50164:76:0;;:24;:76::i;:::-;;50132:120;50292:14;;;-1:-1:-1;;;;;50317:32:0;;;-1:-1:-1;;;;;;50317:32:0;;;;;;50387:81;;50292:14;;;50362:107;;50387:81;;50443:24;;50387:81;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;50387:81:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;50362:24:0;:107::i;:::-;-1:-1:-1;50524:14:0;;50487:52;;;;;;50505:17;;-1:-1:-1;;;;;50524:14:0;;50487:52;;;;;;;;;;49908:639;;;;:::o;55451:189::-;55555:7;55607:25;:23;:25::i;:::-;;55451:189;;;:::o;57459:118::-;57550:19;:17;:19::i;:::-;;57459:118;:::o;45526:29::-;;;-1:-1:-1;;;;;45526:29:0;;:::o;6591:49::-;6634:6;6591:49;:::o;6295:27::-;;;-1:-1:-1;;;;;6295:27:0;;:::o;9318:49::-;;;;;;;;;;;;;;;:::o;56982:197::-;57090:7;57146:25;:23;:25::i;9854:39::-;;;;;;;;;;;;;:::o;5900:20::-;;;;;;;;;;;;;;-1:-1:-1;;5900:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6900:25;;;;:::o;57187:264::-;57424:19;:17;:19::i;:::-;;57187:264;;;;;;:::o;53939:301::-;54213:19;:17;:19::i;:::-;;53939:301;;;;;;;:::o;6476:24::-;;;;:::o;9656:117::-;9702:71;;;;;;6709:37;6740:6;6709:37;:::o;9179:70::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58113:343::-;58186:12;58212;58226:23;58253:6;-1:-1:-1;;;;;58253:19:0;58273:4;58253:25;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;58211:67:0;;;;58328:1;58319:7;58316:14;58313:2;;;58380:14;58373:4;58361:10;58357:21;58350:45;59763:517;59820:12;59846;59872:4;-1:-1:-1;;;;;59864:24:0;59948:8;;59889:68;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;59889:68:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;59864:94:0;;;59889:68;59864:94;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;59845:113:0;;;60021:4;60015:11;60072:14;60069:1;60055:12;60040:47;60110:7;60131:47;;;;60254:4;60238:14;60234:25;60227:4;60213:12;60209:23;60202:58;5:130:-1;72:20;;97:33;72:20;97:33;;142:124;206:20;;231:30;206:20;231:30;;273:130;340:20;;365:33;340:20;365:33;;411:434;;519:3;512:4;504:6;500:17;496:27;486:2;;537:1;534;527:12;486:2;567:6;561:13;589:60;604:44;641:6;604:44;;;589:60;;;580:69;;669:6;662:5;655:21;705:4;697:6;693:17;738:4;731:5;727:16;773:3;764:6;759:3;755:16;752:25;749:2;;;790:1;787;780:12;749:2;800:39;832:6;827:3;822;800:39;;;479:366;;;;;;;;854:440;;955:3;948:4;940:6;936:17;932:27;922:2;;973:1;970;963:12;922:2;1010:6;997:20;1032:64;1047:48;1088:6;1047:48;;1032:64;1023:73;;1116:6;1109:5;1102:21;1152:4;1144:6;1140:17;1185:4;1178:5;1174:16;1220:3;1211:6;1206:3;1202:16;1199:25;1196:2;;;1237:1;1234;1227:12;1196:2;1247:41;1281:6;1276:3;1271;1247:41;;1439:128;1505:20;;1530:32;1505:20;1530:32;;1574:126;1639:20;;1664:31;1639:20;1664:31;;1707:241;;1811:2;1799:9;1790:7;1786:23;1782:32;1779:2;;;1827:1;1824;1817:12;1779:2;1862:1;1879:53;1924:7;1904:9;1879:53;;1955:366;;;2076:2;2064:9;2055:7;2051:23;2047:32;2044:2;;;2092:1;2089;2082:12;2044:2;2127:1;2144:53;2189:7;2169:9;2144:53;;;2134:63;;2106:97;2234:2;2252:53;2297:7;2288:6;2277:9;2273:22;2252:53;;;2242:63;;2213:98;2038:283;;;;;;2328:491;;;;2466:2;2454:9;2445:7;2441:23;2437:32;2434:2;;;2482:1;2479;2472:12;2434:2;2517:1;2534:53;2579:7;2559:9;2534:53;;;2524:63;;2496:97;2624:2;2642:53;2687:7;2678:6;2667:9;2663:22;2642:53;;;2632:63;;2603:98;2732:2;2750:53;2795:7;2786:6;2775:9;2771:22;2750:53;;;2740:63;;2711:98;2428:391;;;;;;2826:991;;;;;;;;3030:3;3018:9;3009:7;3005:23;3001:33;2998:2;;;3047:1;3044;3037:12;2998:2;3082:1;3099:53;3144:7;3124:9;3099:53;;;3089:63;;3061:97;3189:2;3207:53;3252:7;3243:6;3232:9;3228:22;3207:53;;;3197:63;;3168:98;3297:2;3315:53;3360:7;3351:6;3340:9;3336:22;3315:53;;;3305:63;;3276:98;3405:2;3423:53;3468:7;3459:6;3448:9;3444:22;3423:53;;;3413:63;;3384:98;3513:3;3532:51;3575:7;3566:6;3555:9;3551:22;3532:51;;;3522:61;;3492:97;3620:3;3639:53;3684:7;3675:6;3664:9;3660:22;3639:53;;;3629:63;;3599:99;3729:3;3748:53;3793:7;3784:6;3773:9;3769:22;3748:53;;;3738:63;;3708:99;2992:825;;;;;;;;;;;3824:589;;;;3968:2;3956:9;3947:7;3943:23;3939:32;3936:2;;;3984:1;3981;3974:12;3936:2;4019:1;4036:53;4081:7;4061:9;4036:53;;;4026:63;;3998:97;4126:2;4144:50;4186:7;4177:6;4166:9;4162:22;4144:50;;;4134:60;;4105:95;4259:2;4248:9;4244:18;4231:32;4283:18;4275:6;4272:30;4269:2;;;4315:1;4312;4305:12;4269:2;4335:62;4389:7;4380:6;4369:9;4365:22;4335:62;;4420:366;;;4541:2;4529:9;4520:7;4516:23;4512:32;4509:2;;;4557:1;4554;4547:12;4509:2;4592:1;4609:53;4654:7;4634:9;4609:53;;;4599:63;;4571:97;4699:2;4717:53;4762:7;4753:6;4742:9;4738:22;4717:53;;4793:865;;;;;;;4980:3;4968:9;4959:7;4955:23;4951:33;4948:2;;;4997:1;4994;4987:12;4948:2;5032:1;5049:53;5094:7;5074:9;5049:53;;;5039:63;;5011:97;5139:2;5157:53;5202:7;5193:6;5182:9;5178:22;5157:53;;;5147:63;;5118:98;5247:2;5265:53;5310:7;5301:6;5290:9;5286:22;5265:53;;;5255:63;;5226:98;5355:2;5373:51;5416:7;5407:6;5396:9;5392:22;5373:51;;;5363:61;;5334:96;5461:3;5480:53;5525:7;5516:6;5505:9;5501:22;5480:53;;;5470:63;;5440:99;5570:3;5589:53;5634:7;5625:6;5614:9;5610:22;5589:53;;;5579:63;;5549:99;4942:716;;;;;;;;;5665:364;;;5785:2;5773:9;5764:7;5760:23;5756:32;5753:2;;;5801:1;5798;5791:12;5753:2;5836:1;5853:53;5898:7;5878:9;5853:53;;;5843:63;;5815:97;5943:2;5961:52;6005:7;5996:6;5985:9;5981:22;5961:52;;6036:352;;6156:2;6144:9;6135:7;6131:23;6127:32;6124:2;;;6172:1;6169;6162:12;6124:2;6207:24;;6251:18;6240:30;;6237:2;;;6283:1;6280;6273:12;6237:2;6303:69;6364:7;6355:6;6344:9;6340:22;6303:69;;6395:345;;6508:2;6496:9;6487:7;6483:23;6479:32;6476:2;;;6524:1;6521;6514:12;6476:2;6559:31;;6610:18;6599:30;;6596:2;;;6642:1;6639;6632:12;6596:2;6662:62;6716:7;6707:6;6696:9;6692:22;6662:62;;6747:113;6830:24;6848:5;6830:24;;;6825:3;6818:37;6812:48;;;6867:104;6944:21;6959:5;6944:21;;6978:113;7061:24;7079:5;7061:24;;7121:297;;7235:70;7298:6;7293:3;7235:70;;;7228:77;;7317:43;7353:6;7348:3;7341:5;7317:43;;;7382:29;7404:6;7382:29;;;7373:39;;;;7221:197;-1:-1;;;7221:197;7449:310;;7581:88;7662:6;7657:3;7581:88;;;7574:95;;7681:43;7717:6;7712:3;7705:5;7681:43;;;-1:-1;;7737:16;;7567:192;7767:343;;7877:38;7909:5;7877:38;;;7927:70;7990:6;7985:3;7927:70;;;7920:77;;8002:52;8047:6;8042:3;8035:4;8028:5;8024:16;8002:52;;;8075:29;8097:6;8075:29;;8117:356;;8245:38;8277:5;8245:38;;;8295:88;8376:6;8371:3;8295:88;;;8288:95;;8388:52;8433:6;8428:3;8421:4;8414:5;8410:16;8388:52;;;8452:16;;;;;8225:248;-1:-1;;8225:248;8827:390;;8987:67;9051:2;9046:3;8987:67;;;9087:34;9067:55;;-1:-1;;;9151:2;9142:12;;9135:45;9208:2;9199:12;;8973:244;-1:-1;;8973:244;9226:477;;9404:85;9486:2;9481:3;9404:85;;;9522:34;9502:55;;9591:34;9586:2;9577:12;;9570:56;-1:-1;;;9655:2;9646:12;;9639:27;9694:2;9685:12;;9390:313;-1:-1;;9390:313;9712:390;;9872:67;9936:2;9931:3;9872:67;;;9972:34;9952:55;;-1:-1;;;10036:2;10027:12;;10020:45;10093:2;10084:12;;9858:244;-1:-1;;9858:244;10111:431;;10289:85;10371:2;10366:3;10289:85;;;10407:34;10387:55;;10476:28;10471:2;10462:12;;10455:50;10533:2;10524:12;;10275:267;-1:-1;;10275:267;10670:110;10751:23;10768:5;10751:23;;10787:107;10866:22;10882:5;10866:22;;10901:282;;11055:103;11154:3;11145:6;11137;11055:103;;11190:262;;11334:93;11423:3;11414:6;11334:93;;;11327:100;11315:137;-1:-1;;;11315:137;11459:372;;11658:148;11802:3;11658:148;;11838:372;;12037:148;12181:3;12037:148;;12217:213;12335:2;12320:18;;12349:71;12324:9;12393:6;12349:71;;12437:324;12583:2;12568:18;;12597:71;12572:9;12641:6;12597:71;;;12679:72;12747:2;12736:9;12732:18;12723:6;12679:72;;12768:201;12880:2;12865:18;;12894:65;12869:9;12932:6;12894:65;;12976:213;13094:2;13079:18;;13108:71;13083:9;13152:6;13108:71;;13196:317;13342:2;13356:47;;;13327:18;;13417:86;13327:18;13489:6;13481;13417:86;;13520:297;13656:2;13670:47;;;13641:18;;13731:76;13641:18;13793:6;13731:76;;14124:407;14315:2;14329:47;;;14300:18;;14390:131;14300:18;14390:131;;14538:407;14729:2;14743:47;;;14714:18;;14804:131;14714:18;14804:131;;15172:209;15288:2;15273:18;;15302:69;15277:9;15344:6;15302:69;;15388:320;15532:2;15517:18;;15546:69;15521:9;15588:6;15546:69;;;15626:72;15694:2;15683:9;15679:18;15670:6;15626:72;;15715:205;15829:2;15814:18;;15843:67;15818:9;15883:6;15843:67;;15927:256;15989:2;15983:9;16015:17;;;16090:18;16075:34;;16111:22;;;16072:62;16069:2;;;16147:1;16144;16137:12;16069:2;16163;16156:22;15967:216;;-1:-1;15967:216;16190:317;;16329:18;16321:6;16318:30;16315:2;;;16361:1;16358;16351:12;16315:2;-1:-1;16492:4;16428;16405:17;;;;-1:-1;;16401:33;16482:15;;16252:255;16842:121;16929:12;;16900:63;17096:162;17198:19;;;17247:4;17238:14;;17191:67;17267:144;17402:3;17380:31;-1:-1;17380:31;17745:91;;17807:24;17825:5;17807:24;;17843:85;17909:13;17902:21;;17885:43;17935:72;17997:5;17980:27;18014:121;-1:-1;;;;;18076:54;;18059:76;18221:88;18293:10;18282:22;;18265:44;18316:81;18387:4;18376:16;;18359:38;18405:145;18486:6;18481:3;18476;18463:30;-1:-1;18542:1;18524:16;;18517:27;18456:94;18559:268;18624:1;18631:101;18645:6;18642:1;18639:13;18631:101;;;18712:11;;;18706:18;18693:11;;;18686:39;18667:2;18660:10;18631:101;;;18747:6;18744:1;18741:13;18738:2;;;18812:1;18803:6;18798:3;18794:16;18787:27;18738:2;18608:219;;;;;18835:97;18923:2;18903:14;-1:-1;;18899:28;;18883:49;18940:117;19009:24;19027:5;19009:24;;;19002:5;18999:35;18989:2;;19048:1;19045;19038:12;19064:111;19130:21;19145:5;19130:21;;19182:117;19251:24;19269:5;19251:24;;19430:115;19498:23;19515:5;19498:23;;19552:113;19619:22;19635:5;19619:22;
Swarm Source
bzzr://dcad35654dfd373c6a05515bacedc533416df88fa016f80b7e8cf370a3fe2eb0
Loading...
Loading
Loading...
Loading
OVERVIEW
Strain is a experimental NFTs yield generating project powered by staked UNI-V2 LP tokens.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.