Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
105.006810219135628019 pveFXS
Holders
2
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
105 pveFXSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
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:
veFXSVault
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; import "../lib/safe-math.sol"; import "../lib/erc20.sol"; import "../interfaces/backscratcher/IStrategyProxy.sol"; interface FeeDistribution { function claim(address) external; } contract veFXSVault { using SafeMath for uint256; /// @notice EIP-20 token name for this token string public constant name = "pickle veFXS Vault"; /// @notice EIP-20 token symbol for this token string public constant symbol = "pveFXS"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; /// @notice Total number of tokens in circulation uint256 public totalSupply = 0; // Initial 0 /// @notice A record of each accounts delegate mapping(address => address) public delegates; /// @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; mapping(address => mapping(address => uint256)) internal allowances; mapping(address => uint256) internal balances; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint chainId,address verifyingContract)"); bytes32 public immutable DOMAINSEPARATOR; /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint nonce,uint expiry)"); /// @notice The EIP-712 typehash for the permit struct used by the contract bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint value,uint nonce,uint deadline)"); /// @notice A record of states for signing / validating signatures mapping(address => uint256) public nonces; /// @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, uint256 previousBalance, uint256 newBalance); /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) public { _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, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public { bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAINSEPARATOR, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "delegateBySig: sig"); require(nonce == nonces[signatory]++, "delegateBySig: nonce"); require(block.timestamp <= expiry, "delegateBySig: expired"); _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, uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "getPriorVotes:"); 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 = balances[delegator]; 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)) { uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount, "_moveVotes: underflows"); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { 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, "_writeCheckpoint: 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(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } /// @notice The standard EIP-20 transfer event event Transfer(address indexed from, address indexed to, uint256 amount); /// @notice The standard EIP-20 approval event event Approval(address indexed owner, address indexed spender, uint256 amount); /// @notice governance address for the governance contract address public governance; address public pendingGovernance; IERC20 public constant FXS = IERC20(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); address public locker = 0xd639C2eA4eEFfAD39b599410d00252E6c80008DF; address public proxy = 0x26B62c5F0bA4eB6a4Aff34141AF43Af7b5454a78; address public feeDistribution = 0x26B62c5F0bA4eB6a4Aff34141AF43Af7b5454a78; IERC20 public constant rewards = IERC20(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); uint256 public index = 0; uint256 public bal = 0; mapping(address => uint256) public supplyIndex; constructor() public { // Set governance for this token governance = msg.sender; DOMAINSEPARATOR = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), _getChainId(), address(this))); } function update() external { _update(); } function _update() internal { if (totalSupply > 0) { _claim(); uint256 _bal = rewards.balanceOf(address(this)); if (_bal > bal) { uint256 _diff = _bal.sub(bal); if (_diff > 0) { uint256 _ratio = _diff.mul(1e18).div(totalSupply); if (_ratio > 0) { index = index.add(_ratio); bal = _bal; } } } } } function _claim() internal { if (feeDistribution != address(0x0)) { FeeDistribution(feeDistribution).claim(address(this)); } } function updateFor(address recipient) public { _update(); uint256 _supplied = balances[recipient]; if (_supplied > 0) { uint256 _supplyIndex = supplyIndex[recipient]; supplyIndex[recipient] = index; uint256 _delta = index.sub(_supplyIndex); if (_delta > 0) { uint256 _share = _supplied.mul(_delta).div(1e18); claimable[recipient] = claimable[recipient].add(_share); } } else { supplyIndex[recipient] = index; } } mapping(address => uint256) public claimable; function claim() external { _claimFor(msg.sender); } function claimFor(address recipient) external { _claimFor(recipient); } function _claimFor(address recipient) internal { updateFor(recipient); rewards.transfer(recipient, claimable[recipient]); claimable[recipient] = 0; bal = rewards.balanceOf(address(this)); } function _mint(address dst, uint256 amount) internal { updateFor(dst); // mint the amount totalSupply = totalSupply.add(amount); // transfer the amount to the recipient balances[dst] = balances[dst].add(amount); emit Transfer(address(0), dst, amount); // move delegates _moveDelegates(address(0), delegates[dst], amount); } function depositAll() external { _deposit(FXS.balanceOf(msg.sender)); } function deposit(uint256 _amount) external { _deposit(_amount); } function _deposit(uint256 _amount) internal { FXS.transferFrom(msg.sender, locker, _amount); _mint(msg.sender, _amount); IStrategyProxy(proxy).lock(); } function setProxy(address _proxy) external { require(msg.sender == governance, "setGovernance: !gov"); proxy = _proxy; } function setLocker(address _locker) external { require(msg.sender == governance, "setGovernance: !gov"); locker = _locker; } function setFeeDistribution(address _feeDistribution) external { require(msg.sender == governance, "setGovernance: !gov"); feeDistribution = _feeDistribution; } /** * @notice Allows governance to change governance (for future upgradability) * @param _governance new governance address to set */ function setGovernance(address _governance) external { require(msg.sender == governance, "setGovernance: !gov"); pendingGovernance = _governance; } /** * @notice Allows pendingGovernance to accept their role as governance (protection pattern) */ function acceptGovernance() external { require(msg.sender == pendingGovernance, "acceptGovernance: !pendingGov"); governance = pendingGovernance; } /** * @notice Get the number of tokens `spender` is approved to spend on behalf of `account` * @param account The address of the account holding the funds * @param spender The address of the account spending the funds * @return The number of tokens approved */ function allowance(address account, address spender) external view returns (uint256) { return allowances[account][spender]; } /** * @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 (2^256-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool) { allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } /** * @notice Triggers an approval from owner to spends * @param owner The address to approve from * @param spender The address to be approved * @param amount The number of tokens that are approved (2^256-1 means infinite) * @param deadline 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 permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, amount, nonces[owner]++, deadline)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAINSEPARATOR, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "permit: signature"); require(signatory == owner, "permit: unauthorized"); require(block.timestamp <= deadline, "permit: expired"); allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @notice Get the number of tokens held by the `account` * @param account The address of the account to get the balance of * @return The number of tokens held */ function balanceOf(address account) external view returns (uint256) { return balances[account]; } /** * @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) { _transferTokens(msg.sender, dst, amount); return true; } /** * @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) { address spender = msg.sender; uint256 spenderAllowance = allowances[src][spender]; if (spender != src && spenderAllowance != uint256(-1)) { uint256 newAllowance = spenderAllowance.sub(amount); allowances[src][spender] = newAllowance; emit Approval(src, spender, newAllowance); } _transferTokens(src, dst, amount); return true; } function _transferTokens( address src, address dst, uint256 amount ) internal { require(src != address(0), "_transferTokens: zero address"); require(dst != address(0), "_transferTokens: zero address"); updateFor(src); updateFor(dst); balances[src] = balances[src].sub(amount); balances[dst] = balances[dst].add(amount); emit Transfer(src, dst, amount); } function _getChainId() internal pure returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } // **** Emergency functions **** function execute(address _target, bytes memory _data) public payable returns (bytes memory response) { require(msg.sender == governance, "!governance"); require(_target != address(0), "!target"); // call contract in current context assembly { let succeeded := delegatecall(sub(gas(), 5000), _target, add(_data, 0x20), mload(_data), 0, 0) let size := returndatasize() response := mload(0x40) mstore(0x40, add(response, and(add(add(size, 0x20), 0x1f), not(0x1f)))) mstore(response, size) returndatacopy(add(response, 0x20), 0, size) switch iszero(succeeded) case 1 { // throw if delegatecall failed revert(add(response, 0x20), size) } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @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/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./safe-math.sol"; import "./context.sol"; // File: contracts/token/ERC20/IERC20.sol /** * @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/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // 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/token/ERC20/ERC20.sol /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; pragma experimental ABIEncoderV2; import "./FraxGauge.sol"; interface IStrategyProxy { function withdrawV3( address _gauge, uint256 _tokenId, address[] calldata _rewardTokens ) external returns (uint256); function withdrawV2( address _gauge, address _token, bytes32 _kek_id, address[] calldata _rewardTokens ) external returns (uint256); function balanceOf(address _gauge) external view returns (uint256); function lockedNFTsOf(address _gauge) external view returns (LockedNFT[] memory); function lockedStakesOf(address _gauge) external view returns (LockedStake[] memory); function withdrawAllV3( address _gauge, address _token, address[] calldata _rewardTokens ) external returns (uint256 amount); function withdrawAllV2( address _gauge, address _token, address[] calldata _rewardTokens ) external returns (uint256 amount); function harvest(address _gauge, address[] calldata _tokens) external; function depositV2( address _gauge, address _token, uint256 _secs ) external; function depositV3( address _gauge, uint256 _tokenId, uint256 _secs ) external; function claim(address recipient) external; function lock() external; function claimRewards(address _gauge, address _token) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; struct LockedNFT { uint256 token_id; // for Uniswap V3 LPs uint256 liquidity; uint256 start_timestamp; uint256 ending_timestamp; uint256 lock_multiplier; // 6 decimals of precision. 1x = 1000000 int24 tick_lower; int24 tick_upper; } struct LockedStake { bytes32 kek_id; uint256 start_timestamp; uint256 liquidity; uint256 ending_timestamp; uint256 lock_multiplier; // 6 decimals of precision. 1x = 1000000 } interface IFraxGaugeBase { function lockedLiquidityOf(address account) external view returns (uint256); function getReward() external returns (uint256); function lock_time_min() external returns (uint256); function combinedWeightOf(address account) external view returns (uint256); } interface IFraxGaugeUniV3 is IFraxGaugeBase { function stakeLocked(uint256 token_id, uint256 secs) external; function withdrawLocked(uint256 token_id) external; function lockedNFTsOf(address account) external view returns (LockedNFT[] memory); } interface IFraxGaugeUniV2 { function stakeLocked(uint256 liquidity, uint256 secs) external; function lockedStakesOf(address) external view returns (LockedStake[] memory); function withdrawLocked(bytes32 kek_id) external; function getAllRewardTokens() external view returns (address[] memory); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAINSEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FXS","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"claimFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"response","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDistribution","type":"address"}],"name":"setFeeDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_locker","type":"address"}],"name":"setLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"}],"name":"setProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supplyIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"updateFor","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526000808055600980546001600160a01b031990811673d639c2ea4eeffad39b599410d00252e6c80008df17909155600a805482167326b62c5f0ba4eb6a4aff34141af43af7b5454a78908117909155600b8054909216179055600c819055600d5534801561007157600080fd5b50600780546001600160a01b031916331790556040805180820190915260128152711c1a58dadb19481d99519614c815985d5b1d60721b6020909101527f797cfab58fcb15f590eb8e4252d5c228ff88f94f907e119e80c4393a946e8f357fe10c1f079cf9dada1c6883a6f78e817e2e189188ab83e94ca11599e9ee6751986100f8610149565b3060405160200180858152602001848152602001838152602001826001600160a01b03168152602001945050505050604051602081830303815290604052805190602001206080818152505061014d565b4690565b6080516126fa61017160003980610cd852806114d7528061173e52506126fa6000f3fe6080604052600436106102725760003560e01c80636fcfff451161014f578063b6b55f25116100c1578063de5f62681161007a578063de5f626814610a01578063e380fcad14610a16578063e7a324dc14610a49578063ec55688914610a5e578063f1127ed814610a73578063f39c38a014610ad257610272565b8063b6b55f25146108a2578063c3cda520146108cc578063d505accf14610920578063d7b96d4e1461097e578063dd62ed3e14610993578063ddeae033146109ce57610272565b806397107d6d1161011357806397107d6d146107bb5780639ec5a894146104db578063a2e62045146107ee578063a9059cbb14610803578063ab033ea91461083c578063b4b5ea571461086f57610272565b80636fcfff45146106bb57806370a0823114610707578063782d6fe11461073a5780637ecebe001461077357806395d89b41146107a657610272565b806323b872dd116101e85780633d79d1c8116101ac5780633d79d1c8146105e3578063402914f5146105f85780634e71d92d1461062b578063587cde1e146106405780635aa6e675146106735780635c19a95c1461068857610272565b806323b872dd146105365780632479b177146105795780632986c0e51461058e57806330adf81f146105a3578063313ce567146105b857610272565b806318160ddd1161023a57806318160ddd146103dd5780631919db33146103f25780631cff79cd14610425578063200ea222146104db57806320606b701461050c578063238efcbc1461052157610272565b806306fdde0314610277578063095ea7b3146103015780630e0a59681461034e578063171060ec146103835780631778e29c146103b6575b600080fd5b34801561028357600080fd5b5061028c610ae7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c65781810151838201526020016102ae565b50505050905090810190601f1680156102f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030d57600080fd5b5061033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610b15565b604080519115158252519081900360200190f35b34801561035a57600080fd5b506103816004803603602081101561037157600080fd5b50356001600160a01b0316610b7c565b005b34801561038f57600080fd5b50610381600480360360208110156103a657600080fd5b50356001600160a01b0316610c5f565b3480156103c257600080fd5b506103cb610cd6565b60408051918252519081900360200190f35b3480156103e957600080fd5b506103cb610cfa565b3480156103fe57600080fd5b506103816004803603602081101561041557600080fd5b50356001600160a01b0316610d00565b61028c6004803603604081101561043b57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561046657600080fd5b82018360208201111561047857600080fd5b8035906020019184600183028401116401000000008311171561049a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d77945050505050565b3480156104e757600080fd5b506104f0610e5c565b604080516001600160a01b039092168252519081900360200190f35b34801561051857600080fd5b506103cb610e74565b34801561052d57600080fd5b50610381610e98565b34801561054257600080fd5b5061033a6004803603606081101561055957600080fd5b506001600160a01b03813581169160208101359091169060400135610f1b565b34801561058557600080fd5b506104f0610fe2565b34801561059a57600080fd5b506103cb610ff1565b3480156105af57600080fd5b506103cb610ff7565b3480156105c457600080fd5b506105cd61101b565b6040805160ff9092168252519081900360200190f35b3480156105ef57600080fd5b506103cb611020565b34801561060457600080fd5b506103cb6004803603602081101561061b57600080fd5b50356001600160a01b0316611026565b34801561063757600080fd5b50610381611038565b34801561064c57600080fd5b506104f06004803603602081101561066357600080fd5b50356001600160a01b0316611043565b34801561067f57600080fd5b506104f061105e565b34801561069457600080fd5b50610381600480360360208110156106ab57600080fd5b50356001600160a01b031661106d565b3480156106c757600080fd5b506106ee600480360360208110156106de57600080fd5b50356001600160a01b031661107a565b6040805163ffffffff9092168252519081900360200190f35b34801561071357600080fd5b506103cb6004803603602081101561072a57600080fd5b50356001600160a01b0316611092565b34801561074657600080fd5b506103cb6004803603604081101561075d57600080fd5b506001600160a01b0381351690602001356110ad565b34801561077f57600080fd5b506103cb6004803603602081101561079657600080fd5b50356001600160a01b03166112bc565b3480156107b257600080fd5b5061028c6112ce565b3480156107c757600080fd5b50610381600480360360208110156107de57600080fd5b50356001600160a01b03166112f0565b3480156107fa57600080fd5b50610381611367565b34801561080f57600080fd5b5061033a6004803603604081101561082657600080fd5b506001600160a01b03813516906020013561136f565b34801561084857600080fd5b506103816004803603602081101561085f57600080fd5b50356001600160a01b0316611385565b34801561087b57600080fd5b506103cb6004803603602081101561089257600080fd5b50356001600160a01b03166113fc565b3480156108ae57600080fd5b50610381600480360360208110156108c557600080fd5b5035611460565b3480156108d857600080fd5b50610381600480360360c08110156108ef57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611469565b34801561092c57600080fd5b50610381600480360360e081101561094357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356116a7565b34801561098a57600080fd5b506104f061194b565b34801561099f57600080fd5b506103cb600480360360408110156109b657600080fd5b506001600160a01b038135811691602001351661195a565b3480156109da57600080fd5b50610381600480360360208110156109f157600080fd5b50356001600160a01b0316611985565b348015610a0d57600080fd5b5061038161198e565b348015610a2257600080fd5b506103cb60048036036020811015610a3957600080fd5b50356001600160a01b0316611a15565b348015610a5557600080fd5b506103cb611a27565b348015610a6a57600080fd5b506104f0611a4b565b348015610a7f57600080fd5b50610ab260048036036040811015610a9657600080fd5b5080356001600160a01b0316906020013563ffffffff16611a5a565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610ade57600080fd5b506104f0611a87565b604051806040016040528060128152602001711c1a58dadb19481d99519614c815985d5b1d60721b81525081565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b610b84611a96565b6001600160a01b0381166000908152600560205260409020548015610c3e576001600160a01b0382166000908152600e602052604081208054600c54918290559190610bd09083611b90565b90508015610c37576000610bf6670de0b6b3a7640000610bf08685611bd2565b90611c2b565b6001600160a01b0386166000908152600f6020526040902054909150610c1c9082611c6d565b6001600160a01b0386166000908152600f6020526040902055505b5050610c5b565b600c546001600160a01b0383166000908152600e60205260409020555b5050565b6007546001600160a01b03163314610cb4576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005481565b6007546001600160a01b03163314610d55576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546060906001600160a01b03163314610dc7576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b038316610e0c576040805162461bcd60e51b8152602060048201526007602482015266085d185c99d95d60ca1b604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610e4c57610e53565b8160208501fd5b50505092915050565b733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b7f797cfab58fcb15f590eb8e4252d5c228ff88f94f907e119e80c4393a946e8f3581565b6008546001600160a01b03163314610ef7576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600854600780546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b038316600081815260046020908152604080832033808552925282205491929091908214801590610f5557506000198114155b15610fcb576000610f668286611b90565b6001600160a01b0380891660008181526004602090815260408083209489168084529482529182902085905581518581529151949550929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92592918290030190a3505b610fd6868686611cc7565b50600195945050505050565b600b546001600160a01b031681565b600c5481565b7f5fae9ec55a1e547936e0e74d606b44cd5f912f9adcd0bba561fea62d570259e981565b601281565b600d5481565b600f6020526000908152604090205481565b61104133611e3d565b565b6001602052600090815260409020546001600160a01b031681565b6007546001600160a01b031681565b6110773382611f7f565b50565b60036020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526005602052604090205490565b60004382106110f4576040805162461bcd60e51b815260206004820152600e60248201526d33b2ba283934b7b92b37ba32b99d60911b604482015290519081900360640190fd5b6001600160a01b03831660009081526003602052604090205463ffffffff1680611122576000915050610b76565b6001600160a01b038416600090815260026020908152604080832063ffffffff600019860181168552925290912054168310611191576001600160a01b03841660009081526002602090815260408083206000199490940163ffffffff16835292905220600101549050610b76565b6001600160a01b038416600090815260026020908152604080832083805290915290205463ffffffff168310156111cc576000915050610b76565b600060001982015b8163ffffffff168163ffffffff16111561128557600282820363ffffffff160481036111fe61268c565b506001600160a01b038716600090815260026020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561126057602001519450610b769350505050565b805163ffffffff168711156112775781935061127e565b6001820392505b50506111d4565b506001600160a01b038516600090815260026020908152604080832063ffffffff9094168352929052206001015491505092915050565b60066020526000908152604090205481565b6040518060400160405280600681526020016570766546585360d01b81525081565b6007546001600160a01b03163314611345576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b611041611a96565b600061137c338484611cc7565b50600192915050565b6007546001600160a01b031633146113da576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526003602052604081205463ffffffff1680611427576000611459565b6001600160a01b038316600090815260026020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b61107781611fff565b604080517f1ac861a6a8532f3704e1768564a53a32774f00d6cf20ccbbdf60ab61378302bc6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a08301845280519082012061190160f01b60c08401527f000000000000000000000000000000000000000000000000000000000000000060c284015260e2808401829052845180850390910181526101028401808652815191840191909120600091829052610122850180875281905260ff891661014286015261016285018890526101828501879052945191949390926001926101a280840193601f198301929081900390910190855afa15801561157c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115d9576040805162461bcd60e51b815260206004820152601260248201527164656c656761746542795369673a2073696760701b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611644576040805162461bcd60e51b815260206004820152601460248201527364656c656761746542795369673a206e6f6e636560601b604482015290519081900360640190fd5b86421115611692576040805162461bcd60e51b815260206004820152601660248201527519195b1959d85d19509e54da59ce88195e1c1a5c995960521b604482015290519081900360640190fd5b61169c818a611f7f565b505050505050505050565b6001600160a01b0380881660008181526006602090815260408083208054600180820190925582517f5fae9ec55a1e547936e0e74d606b44cd5f912f9adcd0bba561fea62d570259e98186015280840196909652958c166060860152608085018b905260a085019590955260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f000000000000000000000000000000000000000000000000000000000000000061010286015261012280860182905282518087039091018152610142860180845281519185019190912090859052610162860180845281905260ff8a166101828701526101a286018990526101c2860188905291519095919491926101e2808401939192601f1981019281900390910190855afa1580156117e2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661183e576040805162461bcd60e51b81526020600482015260116024820152707065726d69743a207369676e617475726560781b604482015290519081900360640190fd5b896001600160a01b0316816001600160a01b03161461189b576040805162461bcd60e51b81526020600482015260146024820152731c195c9b5a5d0e881d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b864211156118e2576040805162461bcd60e51b815260206004820152600f60248201526e1c195c9b5a5d0e88195e1c1a5c9959608a1b604482015290519081900360640190fd5b6001600160a01b03808b166000818152600460209081526040808320948e16808452948252918290208c905581518c815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505050505050505050565b6009546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b61107781611e3d565b604080516370a0823160e01b8152336004820152905161104191733432b6a60d23ca0dfca7761b7ab56459d9c964d0916370a0823191602480820192602092909190829003018186803b1580156119e457600080fd5b505afa1580156119f8573d6000803e3d6000fd5b505050506040513d6020811015611a0e57600080fd5b5051611fff565b600e6020526000908152604090205481565b7f1ac861a6a8532f3704e1768564a53a32774f00d6cf20ccbbdf60ab61378302bc81565b600a546001600160a01b031681565b60026020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6008546001600160a01b031681565b6000541561104157611aa661210d565b604080516370a0823160e01b81523060048201529051600091733432b6a60d23ca0dfca7761b7ab56459d9c964d0916370a0823191602480820192602092909190829003018186803b158015611afb57600080fd5b505afa158015611b0f573d6000803e3d6000fd5b505050506040513d6020811015611b2557600080fd5b5051600d54909150811115611077576000611b4b600d5483611b9090919063ffffffff16565b90508015610c5b5760008054611b6d90610bf084670de0b6b3a7640000611bd2565b90508015611b8b57600c54611b829082611c6d565b600c55600d8390555b505050565b600061145983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061217e565b600082611be157506000610b76565b82820282848281611bee57fe5b04146114595760405162461bcd60e51b81526004018080602001828103825260218152602001806126a46021913960400191505060405180910390fd5b600061145983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612215565b600082820183811015611459576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038316611d22576040805162461bcd60e51b815260206004820152601d60248201527f5f7472616e73666572546f6b656e733a207a65726f2061646472657373000000604482015290519081900360640190fd5b6001600160a01b038216611d7d576040805162461bcd60e51b815260206004820152601d60248201527f5f7472616e73666572546f6b656e733a207a65726f2061646472657373000000604482015290519081900360640190fd5b611d8683610b7c565b611d8f82610b7c565b6001600160a01b038316600090815260056020526040902054611db29082611b90565b6001600160a01b038085166000908152600560205260408082209390935590841681522054611de19082611c6d565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b611e4681610b7c565b6001600160a01b0381166000818152600f6020908152604080832054815163a9059cbb60e01b81526004810195909552602485015251733432b6a60d23ca0dfca7761b7ab56459d9c964d09363a9059cbb9360448083019493928390030190829087803b158015611eb657600080fd5b505af1158015611eca573d6000803e3d6000fd5b505050506040513d6020811015611ee057600080fd5b50506001600160a01b0381166000908152600f602090815260408083209290925581516370a0823160e01b81523060048201529151733432b6a60d23ca0dfca7761b7ab56459d9c964d0926370a08231926024808301939192829003018186803b158015611f4d57600080fd5b505afa158015611f61573d6000803e3d6000fd5b505050506040513d6020811015611f7757600080fd5b5051600d5550565b6001600160a01b03808316600081815260016020818152604080842080546005845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611ff982848361227a565b50505050565b600954604080516323b872dd60e01b81523360048201526001600160a01b0390921660248301526044820183905251733432b6a60d23ca0dfca7761b7ab56459d9c964d0916323b872dd9160648083019260209291908290030181600087803b15801561206b57600080fd5b505af115801561207f573d6000803e3d6000fd5b505050506040513d602081101561209557600080fd5b506120a2905033826123f8565b600a60009054906101000a90046001600160a01b03166001600160a01b031663f83d08ba6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156120f257600080fd5b505af1158015612106573d6000803e3d6000fd5b5050505050565b600b546001600160a01b03161561104157600b5460408051630f41a04d60e11b815230600482015290516001600160a01b0390921691631e83409a9160248082019260009290919082900301818387803b15801561216a57600080fd5b505af1158015611ff9573d6000803e3d6000fd5b6000818484111561220d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121d25781810151838201526020016121ba565b50505050905090810190601f1680156121ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836122645760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156121d25781810151838201526020016121ba565b50600083858161227057fe5b0495945050505050565b816001600160a01b0316836001600160a01b03161415801561229c5750600081115b15611b8b576001600160a01b03831615612367576001600160a01b03831660009081526003602052604081205463ffffffff1690816122dc57600061230e565b6001600160a01b038516600090815260026020908152604080832063ffffffff60001987011684529091529020600101545b9050600061235584604051806040016040528060168152602001755f6d6f7665566f7465733a20756e646572666c6f777360501b8152508461217e9092919063ffffffff16565b9050612363868484846124ac565b5050505b6001600160a01b03821615611b8b576001600160a01b03821660009081526003602052604081205463ffffffff1690816123a25760006123d4565b6001600160a01b038416600090815260026020908152604080832063ffffffff60001987011684529091529020600101545b905060006123e28285611c6d565b90506123f0858484846124ac565b505050505050565b61240182610b7c565b60005461240e9082611c6d565b60009081556001600160a01b0383168152600560205260409020546124339082611c6d565b6001600160a01b03831660008181526005602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36001600160a01b03808316600090815260016020526040812054610c5b92168361227a565b60006124ed436040518060400160405280601981526020017f5f7772697465436865636b706f696e743a20333220626974730000000000000081525061262e565b905060008463ffffffff1611801561253657506001600160a01b038516600090815260026020908152604080832063ffffffff6000198901811685529252909120548282169116145b15612573576001600160a01b038516600090815260026020908152604080832063ffffffff600019890116845290915290206001018290556125e4565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600284528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260039092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106126845760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156121d25781810151838201526020016121ba565b509192915050565b60408051808201909152600080825260208201529056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212207d4a2731baff22fea7bfca8bcee7b57a43ddaa92add3ca49fe7909c84853f06664736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106102725760003560e01c80636fcfff451161014f578063b6b55f25116100c1578063de5f62681161007a578063de5f626814610a01578063e380fcad14610a16578063e7a324dc14610a49578063ec55688914610a5e578063f1127ed814610a73578063f39c38a014610ad257610272565b8063b6b55f25146108a2578063c3cda520146108cc578063d505accf14610920578063d7b96d4e1461097e578063dd62ed3e14610993578063ddeae033146109ce57610272565b806397107d6d1161011357806397107d6d146107bb5780639ec5a894146104db578063a2e62045146107ee578063a9059cbb14610803578063ab033ea91461083c578063b4b5ea571461086f57610272565b80636fcfff45146106bb57806370a0823114610707578063782d6fe11461073a5780637ecebe001461077357806395d89b41146107a657610272565b806323b872dd116101e85780633d79d1c8116101ac5780633d79d1c8146105e3578063402914f5146105f85780634e71d92d1461062b578063587cde1e146106405780635aa6e675146106735780635c19a95c1461068857610272565b806323b872dd146105365780632479b177146105795780632986c0e51461058e57806330adf81f146105a3578063313ce567146105b857610272565b806318160ddd1161023a57806318160ddd146103dd5780631919db33146103f25780631cff79cd14610425578063200ea222146104db57806320606b701461050c578063238efcbc1461052157610272565b806306fdde0314610277578063095ea7b3146103015780630e0a59681461034e578063171060ec146103835780631778e29c146103b6575b600080fd5b34801561028357600080fd5b5061028c610ae7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c65781810151838201526020016102ae565b50505050905090810190601f1680156102f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030d57600080fd5b5061033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610b15565b604080519115158252519081900360200190f35b34801561035a57600080fd5b506103816004803603602081101561037157600080fd5b50356001600160a01b0316610b7c565b005b34801561038f57600080fd5b50610381600480360360208110156103a657600080fd5b50356001600160a01b0316610c5f565b3480156103c257600080fd5b506103cb610cd6565b60408051918252519081900360200190f35b3480156103e957600080fd5b506103cb610cfa565b3480156103fe57600080fd5b506103816004803603602081101561041557600080fd5b50356001600160a01b0316610d00565b61028c6004803603604081101561043b57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561046657600080fd5b82018360208201111561047857600080fd5b8035906020019184600183028401116401000000008311171561049a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d77945050505050565b3480156104e757600080fd5b506104f0610e5c565b604080516001600160a01b039092168252519081900360200190f35b34801561051857600080fd5b506103cb610e74565b34801561052d57600080fd5b50610381610e98565b34801561054257600080fd5b5061033a6004803603606081101561055957600080fd5b506001600160a01b03813581169160208101359091169060400135610f1b565b34801561058557600080fd5b506104f0610fe2565b34801561059a57600080fd5b506103cb610ff1565b3480156105af57600080fd5b506103cb610ff7565b3480156105c457600080fd5b506105cd61101b565b6040805160ff9092168252519081900360200190f35b3480156105ef57600080fd5b506103cb611020565b34801561060457600080fd5b506103cb6004803603602081101561061b57600080fd5b50356001600160a01b0316611026565b34801561063757600080fd5b50610381611038565b34801561064c57600080fd5b506104f06004803603602081101561066357600080fd5b50356001600160a01b0316611043565b34801561067f57600080fd5b506104f061105e565b34801561069457600080fd5b50610381600480360360208110156106ab57600080fd5b50356001600160a01b031661106d565b3480156106c757600080fd5b506106ee600480360360208110156106de57600080fd5b50356001600160a01b031661107a565b6040805163ffffffff9092168252519081900360200190f35b34801561071357600080fd5b506103cb6004803603602081101561072a57600080fd5b50356001600160a01b0316611092565b34801561074657600080fd5b506103cb6004803603604081101561075d57600080fd5b506001600160a01b0381351690602001356110ad565b34801561077f57600080fd5b506103cb6004803603602081101561079657600080fd5b50356001600160a01b03166112bc565b3480156107b257600080fd5b5061028c6112ce565b3480156107c757600080fd5b50610381600480360360208110156107de57600080fd5b50356001600160a01b03166112f0565b3480156107fa57600080fd5b50610381611367565b34801561080f57600080fd5b5061033a6004803603604081101561082657600080fd5b506001600160a01b03813516906020013561136f565b34801561084857600080fd5b506103816004803603602081101561085f57600080fd5b50356001600160a01b0316611385565b34801561087b57600080fd5b506103cb6004803603602081101561089257600080fd5b50356001600160a01b03166113fc565b3480156108ae57600080fd5b50610381600480360360208110156108c557600080fd5b5035611460565b3480156108d857600080fd5b50610381600480360360c08110156108ef57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611469565b34801561092c57600080fd5b50610381600480360360e081101561094357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356116a7565b34801561098a57600080fd5b506104f061194b565b34801561099f57600080fd5b506103cb600480360360408110156109b657600080fd5b506001600160a01b038135811691602001351661195a565b3480156109da57600080fd5b50610381600480360360208110156109f157600080fd5b50356001600160a01b0316611985565b348015610a0d57600080fd5b5061038161198e565b348015610a2257600080fd5b506103cb60048036036020811015610a3957600080fd5b50356001600160a01b0316611a15565b348015610a5557600080fd5b506103cb611a27565b348015610a6a57600080fd5b506104f0611a4b565b348015610a7f57600080fd5b50610ab260048036036040811015610a9657600080fd5b5080356001600160a01b0316906020013563ffffffff16611a5a565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610ade57600080fd5b506104f0611a87565b604051806040016040528060128152602001711c1a58dadb19481d99519614c815985d5b1d60721b81525081565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b610b84611a96565b6001600160a01b0381166000908152600560205260409020548015610c3e576001600160a01b0382166000908152600e602052604081208054600c54918290559190610bd09083611b90565b90508015610c37576000610bf6670de0b6b3a7640000610bf08685611bd2565b90611c2b565b6001600160a01b0386166000908152600f6020526040902054909150610c1c9082611c6d565b6001600160a01b0386166000908152600f6020526040902055505b5050610c5b565b600c546001600160a01b0383166000908152600e60205260409020555b5050565b6007546001600160a01b03163314610cb4576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b7f8b65f53a6c79e3794cc8f656a31e47fafb45b993cb3629ffc13f157954245d6b81565b60005481565b6007546001600160a01b03163314610d55576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546060906001600160a01b03163314610dc7576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b038316610e0c576040805162461bcd60e51b8152602060048201526007602482015266085d185c99d95d60ca1b604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610e4c57610e53565b8160208501fd5b50505092915050565b733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b7f797cfab58fcb15f590eb8e4252d5c228ff88f94f907e119e80c4393a946e8f3581565b6008546001600160a01b03163314610ef7576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600854600780546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b038316600081815260046020908152604080832033808552925282205491929091908214801590610f5557506000198114155b15610fcb576000610f668286611b90565b6001600160a01b0380891660008181526004602090815260408083209489168084529482529182902085905581518581529151949550929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92592918290030190a3505b610fd6868686611cc7565b50600195945050505050565b600b546001600160a01b031681565b600c5481565b7f5fae9ec55a1e547936e0e74d606b44cd5f912f9adcd0bba561fea62d570259e981565b601281565b600d5481565b600f6020526000908152604090205481565b61104133611e3d565b565b6001602052600090815260409020546001600160a01b031681565b6007546001600160a01b031681565b6110773382611f7f565b50565b60036020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526005602052604090205490565b60004382106110f4576040805162461bcd60e51b815260206004820152600e60248201526d33b2ba283934b7b92b37ba32b99d60911b604482015290519081900360640190fd5b6001600160a01b03831660009081526003602052604090205463ffffffff1680611122576000915050610b76565b6001600160a01b038416600090815260026020908152604080832063ffffffff600019860181168552925290912054168310611191576001600160a01b03841660009081526002602090815260408083206000199490940163ffffffff16835292905220600101549050610b76565b6001600160a01b038416600090815260026020908152604080832083805290915290205463ffffffff168310156111cc576000915050610b76565b600060001982015b8163ffffffff168163ffffffff16111561128557600282820363ffffffff160481036111fe61268c565b506001600160a01b038716600090815260026020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561126057602001519450610b769350505050565b805163ffffffff168711156112775781935061127e565b6001820392505b50506111d4565b506001600160a01b038516600090815260026020908152604080832063ffffffff9094168352929052206001015491505092915050565b60066020526000908152604090205481565b6040518060400160405280600681526020016570766546585360d01b81525081565b6007546001600160a01b03163314611345576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b611041611a96565b600061137c338484611cc7565b50600192915050565b6007546001600160a01b031633146113da576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526003602052604081205463ffffffff1680611427576000611459565b6001600160a01b038316600090815260026020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b61107781611fff565b604080517f1ac861a6a8532f3704e1768564a53a32774f00d6cf20ccbbdf60ab61378302bc6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a08301845280519082012061190160f01b60c08401527f8b65f53a6c79e3794cc8f656a31e47fafb45b993cb3629ffc13f157954245d6b60c284015260e2808401829052845180850390910181526101028401808652815191840191909120600091829052610122850180875281905260ff891661014286015261016285018890526101828501879052945191949390926001926101a280840193601f198301929081900390910190855afa15801561157c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115d9576040805162461bcd60e51b815260206004820152601260248201527164656c656761746542795369673a2073696760701b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611644576040805162461bcd60e51b815260206004820152601460248201527364656c656761746542795369673a206e6f6e636560601b604482015290519081900360640190fd5b86421115611692576040805162461bcd60e51b815260206004820152601660248201527519195b1959d85d19509e54da59ce88195e1c1a5c995960521b604482015290519081900360640190fd5b61169c818a611f7f565b505050505050505050565b6001600160a01b0380881660008181526006602090815260408083208054600180820190925582517f5fae9ec55a1e547936e0e74d606b44cd5f912f9adcd0bba561fea62d570259e98186015280840196909652958c166060860152608085018b905260a085019590955260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f8b65f53a6c79e3794cc8f656a31e47fafb45b993cb3629ffc13f157954245d6b61010286015261012280860182905282518087039091018152610142860180845281519185019190912090859052610162860180845281905260ff8a166101828701526101a286018990526101c2860188905291519095919491926101e2808401939192601f1981019281900390910190855afa1580156117e2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661183e576040805162461bcd60e51b81526020600482015260116024820152707065726d69743a207369676e617475726560781b604482015290519081900360640190fd5b896001600160a01b0316816001600160a01b03161461189b576040805162461bcd60e51b81526020600482015260146024820152731c195c9b5a5d0e881d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b864211156118e2576040805162461bcd60e51b815260206004820152600f60248201526e1c195c9b5a5d0e88195e1c1a5c9959608a1b604482015290519081900360640190fd5b6001600160a01b03808b166000818152600460209081526040808320948e16808452948252918290208c905581518c815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505050505050505050565b6009546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b61107781611e3d565b604080516370a0823160e01b8152336004820152905161104191733432b6a60d23ca0dfca7761b7ab56459d9c964d0916370a0823191602480820192602092909190829003018186803b1580156119e457600080fd5b505afa1580156119f8573d6000803e3d6000fd5b505050506040513d6020811015611a0e57600080fd5b5051611fff565b600e6020526000908152604090205481565b7f1ac861a6a8532f3704e1768564a53a32774f00d6cf20ccbbdf60ab61378302bc81565b600a546001600160a01b031681565b60026020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6008546001600160a01b031681565b6000541561104157611aa661210d565b604080516370a0823160e01b81523060048201529051600091733432b6a60d23ca0dfca7761b7ab56459d9c964d0916370a0823191602480820192602092909190829003018186803b158015611afb57600080fd5b505afa158015611b0f573d6000803e3d6000fd5b505050506040513d6020811015611b2557600080fd5b5051600d54909150811115611077576000611b4b600d5483611b9090919063ffffffff16565b90508015610c5b5760008054611b6d90610bf084670de0b6b3a7640000611bd2565b90508015611b8b57600c54611b829082611c6d565b600c55600d8390555b505050565b600061145983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061217e565b600082611be157506000610b76565b82820282848281611bee57fe5b04146114595760405162461bcd60e51b81526004018080602001828103825260218152602001806126a46021913960400191505060405180910390fd5b600061145983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612215565b600082820183811015611459576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038316611d22576040805162461bcd60e51b815260206004820152601d60248201527f5f7472616e73666572546f6b656e733a207a65726f2061646472657373000000604482015290519081900360640190fd5b6001600160a01b038216611d7d576040805162461bcd60e51b815260206004820152601d60248201527f5f7472616e73666572546f6b656e733a207a65726f2061646472657373000000604482015290519081900360640190fd5b611d8683610b7c565b611d8f82610b7c565b6001600160a01b038316600090815260056020526040902054611db29082611b90565b6001600160a01b038085166000908152600560205260408082209390935590841681522054611de19082611c6d565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b611e4681610b7c565b6001600160a01b0381166000818152600f6020908152604080832054815163a9059cbb60e01b81526004810195909552602485015251733432b6a60d23ca0dfca7761b7ab56459d9c964d09363a9059cbb9360448083019493928390030190829087803b158015611eb657600080fd5b505af1158015611eca573d6000803e3d6000fd5b505050506040513d6020811015611ee057600080fd5b50506001600160a01b0381166000908152600f602090815260408083209290925581516370a0823160e01b81523060048201529151733432b6a60d23ca0dfca7761b7ab56459d9c964d0926370a08231926024808301939192829003018186803b158015611f4d57600080fd5b505afa158015611f61573d6000803e3d6000fd5b505050506040513d6020811015611f7757600080fd5b5051600d5550565b6001600160a01b03808316600081815260016020818152604080842080546005845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611ff982848361227a565b50505050565b600954604080516323b872dd60e01b81523360048201526001600160a01b0390921660248301526044820183905251733432b6a60d23ca0dfca7761b7ab56459d9c964d0916323b872dd9160648083019260209291908290030181600087803b15801561206b57600080fd5b505af115801561207f573d6000803e3d6000fd5b505050506040513d602081101561209557600080fd5b506120a2905033826123f8565b600a60009054906101000a90046001600160a01b03166001600160a01b031663f83d08ba6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156120f257600080fd5b505af1158015612106573d6000803e3d6000fd5b5050505050565b600b546001600160a01b03161561104157600b5460408051630f41a04d60e11b815230600482015290516001600160a01b0390921691631e83409a9160248082019260009290919082900301818387803b15801561216a57600080fd5b505af1158015611ff9573d6000803e3d6000fd5b6000818484111561220d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121d25781810151838201526020016121ba565b50505050905090810190601f1680156121ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836122645760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156121d25781810151838201526020016121ba565b50600083858161227057fe5b0495945050505050565b816001600160a01b0316836001600160a01b03161415801561229c5750600081115b15611b8b576001600160a01b03831615612367576001600160a01b03831660009081526003602052604081205463ffffffff1690816122dc57600061230e565b6001600160a01b038516600090815260026020908152604080832063ffffffff60001987011684529091529020600101545b9050600061235584604051806040016040528060168152602001755f6d6f7665566f7465733a20756e646572666c6f777360501b8152508461217e9092919063ffffffff16565b9050612363868484846124ac565b5050505b6001600160a01b03821615611b8b576001600160a01b03821660009081526003602052604081205463ffffffff1690816123a25760006123d4565b6001600160a01b038416600090815260026020908152604080832063ffffffff60001987011684529091529020600101545b905060006123e28285611c6d565b90506123f0858484846124ac565b505050505050565b61240182610b7c565b60005461240e9082611c6d565b60009081556001600160a01b0383168152600560205260409020546124339082611c6d565b6001600160a01b03831660008181526005602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36001600160a01b03808316600090815260016020526040812054610c5b92168361227a565b60006124ed436040518060400160405280601981526020017f5f7772697465436865636b706f696e743a20333220626974730000000000000081525061262e565b905060008463ffffffff1611801561253657506001600160a01b038516600090815260026020908152604080832063ffffffff6000198901811685529252909120548282169116145b15612573576001600160a01b038516600090815260026020908152604080832063ffffffff600019890116845290915290206001018290556125e4565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600284528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260039092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106126845760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156121d25781810151838201526020016121ba565b509192915050565b60408051808201909152600080825260208201529056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212207d4a2731baff22fea7bfca8bcee7b57a43ddaa92add3ca49fe7909c84853f06664736f6c634300060c0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.