More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107545325 | 437 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107409011 | 441 days ago | 0 ETH | ||||
107302048 | 443 days ago | 0 ETH | ||||
107223898 | 445 days ago | 0 ETH | ||||
107223687 | 445 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107106767 | 448 days ago | 0 ETH | ||||
107085183 | 448 days ago | 0 ETH | ||||
107085183 | 448 days ago | 0 ETH | ||||
107085183 | 448 days ago | 0 ETH | ||||
107085183 | 448 days ago | 0 ETH | ||||
106944825 | 451 days ago | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x0E2d3f17...2fa36838F The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
InternalBribe
Compiler Version
v0.8.13+commit.abaa5c0e
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.8.13; import 'contracts/libraries/Math.sol'; import 'contracts/interfaces/IBribe.sol'; import 'contracts/interfaces/IERC20.sol'; import 'contracts/interfaces/IVoter.sol'; import 'contracts/interfaces/IVotingEscrow.sol'; // Bribes pay out rewards for a given pool based on the votes that were received from the user (goes hand in hand with Voter.vote()) contract InternalBribe is IBribe { address public immutable voter; // only voter can modify balances (since it only happens on vote()) address public immutable _ve; uint public constant DURATION = 7 days; // rewards are released over 7 days uint public constant PRECISION = 10 ** 18; uint internal constant MAX_REWARD_TOKENS = 16; // default snx staking contract implementation mapping(address => uint) public rewardRate; mapping(address => uint) public periodFinish; mapping(address => uint) public lastUpdateTime; mapping(address => uint) public rewardPerTokenStored; mapping(address => mapping(uint => uint)) public lastEarn; mapping(address => mapping(uint => uint)) public userRewardPerTokenStored; address[] public rewards; mapping(address => bool) public isReward; uint public totalSupply; mapping(uint => uint) public balanceOf; /// @notice A checkpoint for marking balance struct Checkpoint { uint timestamp; uint balanceOf; } /// @notice A checkpoint for marking reward rate struct RewardPerTokenCheckpoint { uint timestamp; uint rewardPerToken; } /// @notice A checkpoint for marking supply struct SupplyCheckpoint { uint timestamp; uint supply; } /// @notice A record of balance checkpoints for each account, by index mapping (uint => mapping (uint => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (uint => uint) public numCheckpoints; /// @notice A record of balance checkpoints for each token, by index mapping (uint => SupplyCheckpoint) public supplyCheckpoints; /// @notice The number of checkpoints uint public supplyNumCheckpoints; /// @notice A record of balance checkpoints for each token, by index mapping (address => mapping (uint => RewardPerTokenCheckpoint)) public rewardPerTokenCheckpoints; /// @notice The number of checkpoints for each token mapping (address => uint) public rewardPerTokenNumCheckpoints; event Deposit(address indexed from, uint tokenId, uint amount); event Withdraw(address indexed from, uint tokenId, uint amount); event NotifyReward(address indexed from, address indexed reward, uint amount); event ClaimRewards(address indexed from, address indexed reward, uint amount); constructor(address _voter, address[] memory _allowedRewardTokens) { voter = _voter; _ve = IVoter(_voter)._ve(); for (uint i; i < _allowedRewardTokens.length; i++) { if (_allowedRewardTokens[i] != address(0)) { isReward[_allowedRewardTokens[i]] = true; rewards.push(_allowedRewardTokens[i]); } } } // simple re-entrancy check uint internal _unlocked = 1; modifier lock() { require(_unlocked == 1); _unlocked = 2; _; _unlocked = 1; } /** * @notice Determine the prior balance 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 tokenId The token of the NFT to check * @param timestamp The timestamp to get the balance at * @return The balance the account had as of the given block */ function getPriorBalanceIndex(uint tokenId, uint timestamp) public view returns (uint) { uint nCheckpoints = numCheckpoints[tokenId]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[tokenId][nCheckpoints - 1].timestamp <= timestamp) { return (nCheckpoints - 1); } // Next check implicit zero balance if (checkpoints[tokenId][0].timestamp > timestamp) { return 0; } uint lower = 0; uint upper = nCheckpoints - 1; while (upper > lower) { uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[tokenId][center]; if (cp.timestamp == timestamp) { return center; } else if (cp.timestamp < timestamp) { lower = center; } else { upper = center - 1; } } return lower; } function getPriorSupplyIndex(uint timestamp) public view returns (uint) { uint nCheckpoints = supplyNumCheckpoints; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (supplyCheckpoints[nCheckpoints - 1].timestamp <= timestamp) { return (nCheckpoints - 1); } // Next check implicit zero balance if (supplyCheckpoints[0].timestamp > timestamp) { return 0; } uint lower = 0; uint upper = nCheckpoints - 1; while (upper > lower) { uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow SupplyCheckpoint memory cp = supplyCheckpoints[center]; if (cp.timestamp == timestamp) { return center; } else if (cp.timestamp < timestamp) { lower = center; } else { upper = center - 1; } } return lower; } function getPriorRewardPerToken(address token, uint timestamp) public view returns (uint, uint) { uint nCheckpoints = rewardPerTokenNumCheckpoints[token]; if (nCheckpoints == 0) { return (0,0); } // First check most recent balance if (rewardPerTokenCheckpoints[token][nCheckpoints - 1].timestamp <= timestamp) { return (rewardPerTokenCheckpoints[token][nCheckpoints - 1].rewardPerToken, rewardPerTokenCheckpoints[token][nCheckpoints - 1].timestamp); } // Next check implicit zero balance if (rewardPerTokenCheckpoints[token][0].timestamp > timestamp) { return (0,0); } uint lower = 0; uint upper = nCheckpoints - 1; while (upper > lower) { uint center = upper - (upper - lower) / 2; // ceil, avoiding overflow RewardPerTokenCheckpoint memory cp = rewardPerTokenCheckpoints[token][center]; if (cp.timestamp == timestamp) { return (cp.rewardPerToken, cp.timestamp); } else if (cp.timestamp < timestamp) { lower = center; } else { upper = center - 1; } } return (rewardPerTokenCheckpoints[token][lower].rewardPerToken, rewardPerTokenCheckpoints[token][lower].timestamp); } function _writeCheckpoint(uint tokenId, uint balance) internal { uint _timestamp = block.timestamp; uint _nCheckPoints = numCheckpoints[tokenId]; if (_nCheckPoints > 0 && checkpoints[tokenId][_nCheckPoints - 1].timestamp == _timestamp) { checkpoints[tokenId][_nCheckPoints - 1].balanceOf = balance; } else { checkpoints[tokenId][_nCheckPoints] = Checkpoint(_timestamp, balance); numCheckpoints[tokenId] = _nCheckPoints + 1; } } function _writeRewardPerTokenCheckpoint(address token, uint reward, uint timestamp) internal { uint _nCheckPoints = rewardPerTokenNumCheckpoints[token]; if (_nCheckPoints > 0 && rewardPerTokenCheckpoints[token][_nCheckPoints - 1].timestamp == timestamp) { rewardPerTokenCheckpoints[token][_nCheckPoints - 1].rewardPerToken = reward; } else { rewardPerTokenCheckpoints[token][_nCheckPoints] = RewardPerTokenCheckpoint(timestamp, reward); rewardPerTokenNumCheckpoints[token] = _nCheckPoints + 1; } } function _writeSupplyCheckpoint() internal { uint _nCheckPoints = supplyNumCheckpoints; uint _timestamp = block.timestamp; if (_nCheckPoints > 0 && supplyCheckpoints[_nCheckPoints - 1].timestamp == _timestamp) { supplyCheckpoints[_nCheckPoints - 1].supply = totalSupply; } else { supplyCheckpoints[_nCheckPoints] = SupplyCheckpoint(_timestamp, totalSupply); supplyNumCheckpoints = _nCheckPoints + 1; } } function rewardsListLength() external view returns (uint) { return rewards.length; } // returns the last time the reward was modified or periodFinish if the reward has ended function lastTimeRewardApplicable(address token) public view returns (uint) { return Math.min(block.timestamp, periodFinish[token]); } // allows a user to claim rewards for a given token function getReward(uint tokenId, address[] memory tokens) external lock { require(IVotingEscrow(_ve).isApprovedOrOwner(msg.sender, tokenId)); for (uint i = 0; i < tokens.length; i++) { (rewardPerTokenStored[tokens[i]], lastUpdateTime[tokens[i]]) = _updateRewardPerToken(tokens[i], type(uint).max, true); uint _reward = earned(tokens[i], tokenId); lastEarn[tokens[i]][tokenId] = block.timestamp; userRewardPerTokenStored[tokens[i]][tokenId] = rewardPerTokenStored[tokens[i]]; if (_reward > 0) _safeTransfer(tokens[i], msg.sender, _reward); emit ClaimRewards(msg.sender, tokens[i], _reward); } } // used by Voter to allow batched reward claims function getRewardForOwner(uint tokenId, address[] memory tokens) external lock { require(msg.sender == voter); address _owner = IVotingEscrow(_ve).ownerOf(tokenId); for (uint i = 0; i < tokens.length; i++) { (rewardPerTokenStored[tokens[i]], lastUpdateTime[tokens[i]]) = _updateRewardPerToken(tokens[i], type(uint).max, true); uint _reward = earned(tokens[i], tokenId); lastEarn[tokens[i]][tokenId] = block.timestamp; userRewardPerTokenStored[tokens[i]][tokenId] = rewardPerTokenStored[tokens[i]]; if (_reward > 0) _safeTransfer(tokens[i], _owner, _reward); emit ClaimRewards(_owner, tokens[i], _reward); } } function rewardPerToken(address token) public view returns (uint) { if (totalSupply == 0) { return rewardPerTokenStored[token]; } return rewardPerTokenStored[token] + ((lastTimeRewardApplicable(token) - Math.min(lastUpdateTime[token], periodFinish[token])) * rewardRate[token] * PRECISION / totalSupply); } function batchRewardPerToken(address token, uint maxRuns) external { (rewardPerTokenStored[token], lastUpdateTime[token]) = _batchRewardPerToken(token, maxRuns); } function _batchRewardPerToken(address token, uint maxRuns) internal returns (uint, uint) { uint _startTimestamp = lastUpdateTime[token]; uint reward = rewardPerTokenStored[token]; if (supplyNumCheckpoints == 0) { return (reward, _startTimestamp); } if (rewardRate[token] == 0) { return (reward, block.timestamp); } uint _startIndex = getPriorSupplyIndex(_startTimestamp); uint _endIndex = Math.min(supplyNumCheckpoints-1, maxRuns); for (uint i = _startIndex; i < _endIndex; i++) { SupplyCheckpoint memory sp0 = supplyCheckpoints[i]; if (sp0.supply > 0) { SupplyCheckpoint memory sp1 = supplyCheckpoints[i+1]; (uint _reward, uint endTime) = _calcRewardPerToken(token, sp1.timestamp, sp0.timestamp, sp0.supply, _startTimestamp); reward += _reward; _writeRewardPerTokenCheckpoint(token, reward, endTime); _startTimestamp = endTime; } } return (reward, _startTimestamp); } function _calcRewardPerToken(address token, uint timestamp1, uint timestamp0, uint supply, uint startTimestamp) internal view returns (uint, uint) { uint endTime = Math.max(timestamp1, startTimestamp); return (((Math.min(endTime, periodFinish[token]) - Math.min(Math.max(timestamp0, startTimestamp), periodFinish[token])) * rewardRate[token] * PRECISION / supply), endTime); } /// @dev Update stored rewardPerToken values without the last one snapshot /// If the contract will get "out of gas" error on users actions this will be helpful function batchUpdateRewardPerToken(address token, uint maxRuns) external { (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, maxRuns, false); } function _updateRewardForAllTokens() internal { uint length = rewards.length; for (uint i; i < length; i++) { address token = rewards[i]; (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, type(uint).max, true); } } function _updateRewardPerToken(address token, uint maxRuns, bool actualLast) internal returns (uint, uint) { uint _startTimestamp = lastUpdateTime[token]; uint reward = rewardPerTokenStored[token]; if (supplyNumCheckpoints == 0) { return (reward, _startTimestamp); } if (rewardRate[token] == 0) { return (reward, block.timestamp); } uint _startIndex = getPriorSupplyIndex(_startTimestamp); uint _endIndex = Math.min(supplyNumCheckpoints - 1, maxRuns); if (_endIndex > 0) { for (uint i = _startIndex; i <= _endIndex - 1; i++) { SupplyCheckpoint memory sp0 = supplyCheckpoints[i]; if (sp0.supply > 0) { SupplyCheckpoint memory sp1 = supplyCheckpoints[i+1]; (uint _reward, uint _endTime) = _calcRewardPerToken(token, sp1.timestamp, sp0.timestamp, sp0.supply, _startTimestamp); reward += _reward; _writeRewardPerTokenCheckpoint(token, reward, _endTime); _startTimestamp = _endTime; } } } if (actualLast) { SupplyCheckpoint memory sp = supplyCheckpoints[_endIndex]; if (sp.supply > 0) { (uint _reward,) = _calcRewardPerToken(token, lastTimeRewardApplicable(token), Math.max(sp.timestamp, _startTimestamp), sp.supply, _startTimestamp); reward += _reward; _writeRewardPerTokenCheckpoint(token, reward, block.timestamp); _startTimestamp = block.timestamp; } } return (reward, _startTimestamp); } function earned(address token, uint tokenId) public view returns (uint) { uint _startTimestamp = Math.max(lastEarn[token][tokenId], rewardPerTokenCheckpoints[token][0].timestamp); if (numCheckpoints[tokenId] == 0) { return 0; } uint _startIndex = getPriorBalanceIndex(tokenId, _startTimestamp); uint _endIndex = numCheckpoints[tokenId]-1; uint reward = 0; if (_endIndex > 0) { for (uint i = _startIndex; i <= _endIndex-1; i++) { Checkpoint memory cp0 = checkpoints[tokenId][i]; Checkpoint memory cp1 = checkpoints[tokenId][i+1]; (uint _rewardPerTokenStored0,) = getPriorRewardPerToken(token, cp0.timestamp); (uint _rewardPerTokenStored1,) = getPriorRewardPerToken(token, cp1.timestamp); reward += cp0.balanceOf * (_rewardPerTokenStored1 - _rewardPerTokenStored0) / PRECISION; } } Checkpoint memory cp = checkpoints[tokenId][_endIndex]; (uint _rewardPerTokenStored,) = getPriorRewardPerToken(token, cp.timestamp); reward += cp.balanceOf * (rewardPerToken(token) - Math.max(_rewardPerTokenStored, userRewardPerTokenStored[token][tokenId])) / PRECISION; return reward; } // This is an external function, but internal notation is used since it can only be called "internally" from Gauges function _deposit(uint amount, uint tokenId) external { require(msg.sender == voter); _updateRewardForAllTokens(); totalSupply += amount; balanceOf[tokenId] += amount; _writeCheckpoint(tokenId, balanceOf[tokenId]); _writeSupplyCheckpoint(); emit Deposit(msg.sender, tokenId, amount); } function _withdraw(uint amount, uint tokenId) external { require(msg.sender == voter); _updateRewardForAllTokens(); totalSupply -= amount; balanceOf[tokenId] -= amount; _writeCheckpoint(tokenId, balanceOf[tokenId]); _writeSupplyCheckpoint(); emit Withdraw(msg.sender, tokenId, amount); } function left(address token) external view returns (uint) { if (block.timestamp >= periodFinish[token]) return 0; uint _remaining = periodFinish[token] - block.timestamp; return _remaining * rewardRate[token]; } // used to notify a gauge/bribe of a given reward, this can create griefing attacks by extending rewards function notifyRewardAmount(address token, uint amount) external lock { require(amount > 0); require(isReward[token]); if (rewardRate[token] == 0) _writeRewardPerTokenCheckpoint(token, 0, block.timestamp); (rewardPerTokenStored[token], lastUpdateTime[token]) = _updateRewardPerToken(token, type(uint).max, true); if (block.timestamp >= periodFinish[token]) { _safeTransferFrom(token, msg.sender, address(this), amount); rewardRate[token] = amount / DURATION; } else { uint _remaining = periodFinish[token] - block.timestamp; uint _left = _remaining * rewardRate[token]; require(amount > _left); _safeTransferFrom(token, msg.sender, address(this), amount); rewardRate[token] = (amount + _left) / DURATION; } require(rewardRate[token] > 0); uint balance = IERC20(token).balanceOf(address(this)); require(rewardRate[token] <= balance / DURATION, "Provided reward too high"); periodFinish[token] = block.timestamp + DURATION; emit NotifyReward(msg.sender, token, amount); } function swapOutRewardToken(uint i, address oldToken, address newToken) external { require(msg.sender == IVotingEscrow(_ve).team(), 'only team'); require(rewards[i] == oldToken); isReward[oldToken] = false; isReward[newToken] = true; rewards[i] = newToken; } function _safeTransfer(address token, address to, uint256 value) internal { require(token.code.length > 0); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool)))); } function _safeTransferFrom(address token, address from, address to, uint256 value) internal { require(token.code.length > 0); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool)))); } }
pragma solidity 0.8.13; library Math { function max(uint a, uint b) internal pure returns (uint) { return a >= b ? a : b; } function min(uint a, uint b) internal pure returns (uint) { return a < b ? a : b; } function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } function cbrt(uint256 n) internal pure returns (uint256) { unchecked { uint256 x = 0; for (uint256 y = 1 << 255; y > 0; y >>= 3) { x <<= 1; uint256 z = 3 * x * (x + 1) + 1; if (n / y >= z) { n -= y * z; x += 1; } } return x; }} }
pragma solidity 0.8.13; interface IBribe { function _deposit(uint amount, uint tokenId) external; function _withdraw(uint amount, uint tokenId) external; function getRewardForOwner(uint tokenId, address[] memory tokens) external; function notifyRewardAmount(address token, uint amount) external; function left(address token) external view returns (uint); }
pragma solidity 0.8.13; interface IERC20 { function totalSupply() external view returns (uint256); function transfer(address recipient, uint amount) external returns (bool); function decimals() external view returns (uint8); function symbol() external view returns (string memory); function balanceOf(address) external view returns (uint); function transferFrom(address sender, address recipient, uint amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); }
pragma solidity 0.8.13; interface IVoter { function _ve() external view returns (address); function governor() external view returns (address); function emergencyCouncil() external view returns (address); function attachTokenToGauge(uint _tokenId, address account) external; function detachTokenFromGauge(uint _tokenId, address account) external; function emitDeposit(uint _tokenId, address account, uint amount) external; function emitWithdraw(uint _tokenId, address account, uint amount) external; function isWhitelisted(address token) external view returns (bool); function notifyRewardAmount(uint amount) external; function distribute(address _gauge) external; }
pragma solidity 0.8.13; interface IVotingEscrow { struct Point { int128 bias; int128 slope; // # -dweight / dt uint256 ts; uint256 blk; // block } function token() external view returns (address); function team() external returns (address); function epoch() external view returns (uint); function point_history(uint loc) external view returns (Point memory); function user_point_history(uint tokenId, uint loc) external view returns (Point memory); function user_point_epoch(uint tokenId) external view returns (uint); function ownerOf(uint) external view returns (address); function isApprovedOrOwner(address, uint) external view returns (bool); function transferFrom(address, address, uint) external; function voting(uint tokenId) external; function abstain(uint tokenId) external; function attach(uint tokenId) external; function detach(uint tokenId) external; function checkpoint() external; function deposit_for(uint tokenId, uint value) external; function create_lock_for(uint, uint, address) external returns (uint); function balanceOfNFT(uint) external view returns (uint); function totalSupply() external view returns (uint); }
{ "remappings": [ "LayerZero/=lib/LayerZero/contracts/", "ds-test/=lib/ds-test/src/", "forge-optimism/=lib/rollcall/lib/forge-optimism/src/", "forge-std/=lib/forge-std/src/", "lib/=lib/rollcall/src/lib/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "rollcall/=lib/rollcall/src/", "solmate/=lib/solmate/src/", "utils/=test/utils/", "contracts/=contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london" }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address[]","name":"_allowedRewardTokens","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_ve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"maxRuns","type":"uint256"}],"name":"batchRewardPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"maxRuns","type":"uint256"}],"name":"batchUpdateRewardPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"balanceOf","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorBalanceIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getPriorSupplyIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getRewardForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastEarn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"left","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPerTokenCheckpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"rewardPerToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenNumCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyCheckpoints","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyNumCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"oldToken","type":"address"},{"internalType":"address","name":"newToken","type":"address"}],"name":"swapOutRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userRewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80639cc7f70811610125578063e6886396116100ad578063f301af421161007c578063f301af4214610595578063f3207723146105a8578063f5f8d365146105bb578063f7412baf146105ce578063fd314098146105f557600080fd5b8063e688639614610546578063e8111a121461054e578063f122977714610557578063f25e55a51461056a57600080fd5b8063a7852afa116100f4578063a7852afa146104d1578063aa479652146104e4578063aaf5eb6814610504578063b66503cf14610513578063da09d19d1461052657600080fd5b80639cc7f7081461046b5780639ce43f901461048b5780639e2bf22c146104ab578063a28d4c9c146104be57600080fd5b80634d5ce038116101a857806368fcee1a1161017757806368fcee1a146103f857806376f4be361461040b5780638dd598fb1461041e5780639418f9391461044557806399bcc0521461045857600080fd5b80634d5ce0381461037d57806350589793146103b05780635a45d052146103d0578063638634ee146103e557600080fd5b80632ce9aead116101ef5780632ce9aead146102ae5780633b881999146102ce5780633e491d47146102f957806346c96aac1461030c57806349dcc2041461034b57600080fd5b806301316ddf1461022157806318160ddd1461026d5780631be0528914610284578063221ca18c1461028e575b600080fd5b61025361022f366004612472565b600e6020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61027660085481565b604051908152602001610264565b61027662093a8081565b61027661029c36600461249e565b60006020819052908152604090205481565b6102766102bc36600461249e565b60026020526000908152604090205481565b6102766102dc366004612472565b600560209081526000928352604080842090915290825290205481565b610276610307366004612472565b610608565b6103337f00000000000000000000000009236cff45047dbee6b921e00704bed6d6b8cf7e81565b6040516001600160a01b039091168152602001610264565b6102536103593660046124bb565b600a6020908152600092835260408084209091529082529020805460019091015482565b6103a061038b36600461249e565b60076020526000908152604090205460ff1681565b6040519015158152602001610264565b6102766103be3660046124dd565b600b6020526000908152604090205481565b6103e36103de366004612472565b610864565b005b6102766103f336600461249e565b61089c565b6103e3610406366004612472565b6108c0565b6102766104193660046124dd565b6108cc565b6103337f0000000000000000000000009c7305eb78a432ced5c4d14cac27e8ed569a2e2681565b6103e36104533660046124f6565b610a00565b61027661046636600461249e565b610b91565b6102766104793660046124dd565b60096020526000908152604090205481565b61027661049936600461249e565b60036020526000908152604090205481565b6103e36104b93660046124bb565b610c02565b6102766104cc3660046124bb565b610cdb565b6103e36104df36600461254e565b610e20565b6102766104f236600461249e565b600f6020526000908152604090205481565b610276670de0b6b3a764000081565b6103e3610521366004612472565b611165565b61027661053436600461249e565b60016020526000908152604090205481565b600654610276565b610276600d5481565b61027661056536600461249e565b61145b565b610276610578366004612472565b600460209081526000928352604080842090915290825290205481565b6103336105a33660046124dd565b611518565b6103e36105b63660046124bb565b611542565b6103e36105c936600461254e565b611613565b6102536105dc3660046124dd565b600c602052600090815260409020805460019091015482565b610253610603366004612472565b61191a565b6001600160a01b0382166000818152600460209081526040808320858452825280832054938352600e82528083208380529091528120549091829161064d9190611b3b565b6000848152600b60205260408120549192500361066e57600091505061085e565b600061067a8483610cdb565b6000858152600b60205260408120549192509061069990600190612635565b9050600081156107a257825b6106b0600184612635565b81116107a0576000878152600a60208181526040808420858552808352818520825180840190935280548352600190810154838501528c865293909252929182906106fc90869061264c565b8152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050600061073b8b846000015161191a565b509050600061074e8c846000015161191a565b509050670de0b6b3a76400006107648383612635565b85602001516107739190612664565b61077d9190612683565b610787908761264c565b9550505050508080610798906126a5565b9150506106a5565b505b6000868152600a602090815260408083208584528252808320815180830190925280548083526001909101549282019290925291906107e2908a9061191a565b506001600160a01b038a1660009081526005602090815260408083208c8452909152902054909150670de0b6b3a76400009061081f908390611b3b565b6108288b61145b565b6108329190612635565b83602001516108419190612664565b61084b9190612683565b610855908461264c565b96505050505050505b92915050565b61086e8282611b52565b6001600160a01b03909316600090815260036020908152604080832060029092529091209390935590915550565b6001600160a01b03811660009081526001602052604081205461085e904290611cb5565b61086e82826000611cc4565b600d546000908082036108e25750600092915050565b82600c60006108f2600185612635565b8152602001908152602001600020600001541161091b57610914600182612635565b9392505050565b60008052600c6020527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e8548310156109565750600092915050565b600080610964600184612635565b90505b818111156109f8576000600261097d8484612635565b6109879190612683565b6109919083612635565b6000818152600c60209081526040918290208251808401909352805480845260019091015491830191909152919250908790036109d2575095945050505050565b80518711156109e3578193506109f1565b6109ee600183612635565b92505b5050610967565b509392505050565b7f0000000000000000000000009c7305eb78a432ced5c4d14cac27e8ed569a2e266001600160a01b03166385f2aef26040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610a60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8491906126be565b6001600160a01b0316336001600160a01b031614610ad55760405162461bcd60e51b81526020600482015260096024820152686f6e6c79207465616d60b81b60448201526064015b60405180910390fd5b816001600160a01b031660068481548110610af257610af26126db565b6000918252602090912001546001600160a01b031614610b1157600080fd5b6001600160a01b03808316600090815260076020526040808220805460ff1990811690915592841682529020805490911660011790556006805482919085908110610b5e57610b5e6126db565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6001600160a01b0381166000908152600160205260408120544210610bb857506000919050565b6001600160a01b038216600090815260016020526040812054610bdc904290612635565b6001600160a01b0384166000908152602081905260409020549091506109149082612664565b336001600160a01b037f00000000000000000000000009236cff45047dbee6b921e00704bed6d6b8cf7e1614610c3757600080fd5b610c3f611eb4565b8160086000828254610c519190612635565b909155505060008181526009602052604081208054849290610c74908490612635565b9091555050600081815260096020526040902054610c93908290611f3c565b610c9b612015565b604080518281526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56891015b60405180910390a25050565b6000828152600b6020526040812054808203610cfb57600091505061085e565b6000848152600a602052604081208491610d16600185612635565b81526020019081526020016000206000015411610d4057610d38600182612635565b91505061085e565b6000848152600a60209081526040808320838052909152902054831015610d6b57600091505061085e565b600080610d79600184612635565b90505b81811115610e175760006002610d928484612635565b610d9c9190612683565b610da69083612635565b6000888152600a60209081526040808320848452825291829020825180840190935280548084526001909101549183019190915291925090879003610df15750935061085e92505050565b8051871115610e0257819350610e10565b610e0d600183612635565b92505b5050610d7c565b50949350505050565b601054600114610e2f57600080fd5b6002601055336001600160a01b037f00000000000000000000000009236cff45047dbee6b921e00704bed6d6b8cf7e1614610e6957600080fd5b6040516331a9108f60e11b8152600481018390526000907f0000000000000000000000009c7305eb78a432ced5c4d14cac27e8ed569a2e266001600160a01b031690636352211e90602401602060405180830381865afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef591906126be565b905060005b825181101561115a57610f2a838281518110610f1857610f186126db565b60200260200101516000196001611cc4565b60036000868581518110610f4057610f406126db565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600060026000888781518110610f8057610f806126db565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008491905055839190505550506000610fdb848381518110610fcd57610fcd6126db565b602002602001015186610608565b90504260046000868581518110610ff457610ff46126db565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008781526020019081526020016000208190555060036000858481518110611047576110476126db565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460056000868581518110611086576110866126db565b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812089825290925290205580156110e1576110e18483815181106110d2576110d26126db565b602002602001015184836120b9565b8382815181106110f3576110f36126db565b60200260200101516001600160a01b0316836001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc98360405161113f91815260200190565b60405180910390a35080611152816126a5565b915050610efa565b505060016010555050565b60105460011461117457600080fd5b60026010558061118357600080fd5b6001600160a01b03821660009081526007602052604090205460ff166111a857600080fd5b6001600160a01b03821660009081526020819052604081205490036111d3576111d3826000426121a8565b6111e1826000196001611cc4565b6001600160a01b038416600090815260036020908152604080832060028352818420949094559390925560019091522054421061124f5761122482333084612297565b61123162093a8082612683565b6001600160a01b0383166000908152602081905260409020556112e8565b6001600160a01b038216600090815260016020526040812054611273904290612635565b6001600160a01b0384166000908152602081905260408120549192509061129a9083612664565b90508083116112a857600080fd5b6112b484333086612297565b62093a806112c2828561264c565b6112cc9190612683565b6001600160a01b03851660009081526020819052604090205550505b6001600160a01b03821660009081526020819052604090205461130a57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611351573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137591906126f1565b905061138462093a8082612683565b6001600160a01b03841660009081526020819052604090205411156113eb5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610acc565b6113f862093a804261264c565b6001600160a01b0384166000818152600160205260409081902092909255905133907ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf50826906114499086815260200190565b60405180910390a35050600160105550565b600060085460000361148357506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b0383166000908152602081815260408083205460028352818420546001909352922054670de0b6b3a764000092916114c491611cb5565b6114cd8661089c565b6114d79190612635565b6114e19190612664565b6114eb9190612664565b6114f59190612683565b6001600160a01b03831660009081526003602052604090205461085e919061264c565b6006818154811061152857600080fd5b6000918252602090912001546001600160a01b0316905081565b336001600160a01b037f00000000000000000000000009236cff45047dbee6b921e00704bed6d6b8cf7e161461157757600080fd5b61157f611eb4565b8160086000828254611591919061264c565b9091555050600081815260096020526040812080548492906115b490849061264c565b90915550506000818152600960205260409020546115d3908290611f3c565b6115db612015565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159101610ccf565b60105460011461162257600080fd5b600260105560405163430c208160e01b8152336004820152602481018390527f0000000000000000000000009c7305eb78a432ced5c4d14cac27e8ed569a2e266001600160a01b03169063430c208190604401602060405180830381865afa158015611692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b6919061270a565b6116bf57600080fd5b60005b8151811015611910576116e0828281518110610f1857610f186126db565b600360008585815181106116f6576116f66126db565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600060026000878781518110611736576117366126db565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008491905055839190505550506000611791838381518110611783576117836126db565b602002602001015185610608565b905042600460008585815181106117aa576117aa6126db565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600086815260200190815260200160002081905550600360008484815181106117fd576117fd6126db565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546005600085858151811061183c5761183c6126db565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120888252909252902055801561189757611897838381518110611888576118886126db565b602002602001015133836120b9565b8282815181106118a9576118a96126db565b60200260200101516001600160a01b0316336001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc9836040516118f591815260200190565b60405180910390a35080611908816126a5565b9150506116c2565b5050600160105550565b6001600160a01b0382166000908152600f60205260408120548190808203611949576000809250925050611b34565b6001600160a01b0385166000908152600e60205260408120859161196e600185612635565b81526020019081526020016000206000015411611a0b576001600160a01b0385166000908152600e60205260408120906119a9600184612635565b815260200190815260200160002060010154600e6000876001600160a01b03166001600160a01b0316815260200190815260200160002060006001846119ef9190612635565b8152602001908152602001600020600001549250925050611b34565b6001600160a01b0385166000908152600e60209081526040808320838052909152902054841015611a43576000809250925050611b34565b600080611a51600184612635565b90505b81811115611b035760006002611a6a8484612635565b611a749190612683565b611a7e9083612635565b6001600160a01b0389166000908152600e60209081526040808320848452825291829020825180840190935280548084526001909101549183019190915291925090889003611add57602081015190519096509450611b349350505050565b8051881115611aee57819350611afc565b611af9600183612635565b92505b5050611a54565b506001600160a01b0386166000908152600e6020908152604080832093835292905220600181015490549093509150505b9250929050565b600081831015611b4b5781610914565b5090919050565b6001600160a01b0382166000908152600260209081526040808320546003909252822054600d54839291908303611b8c5792509050611b34565b6001600160a01b0386166000908152602081905260408120549003611bb7579250429150611b349050565b6000611bc2836108cc565b90506000611bde6001600d54611bd89190612635565b88611cb5565b9050815b81811015611ca6576000818152600c60209081526040918290208251808401909352805483526001015490820181905215611c93576000600c81611c2785600161264c565b8152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050600080611c728d8460000151866000015187602001518d61238f565b9092509050611c81828961264c565b9750611c8e8d89836121a8565b975050505b5080611c9e816126a5565b915050611be2565b50919792965091945050505050565b6000818310611b4b5781610914565b6001600160a01b0383166000908152600260209081526040808320546003909252822054600d54839291908303611cfe5792509050611eac565b6001600160a01b0387166000908152602081905260408120549003611d29579250429150611eac9050565b6000611d34836108cc565b90506000611d506001600d54611d4a9190612635565b89611cb5565b90508015611e2957815b611d65600183612635565b8111611e27576000818152600c60209081526040918290208251808401909352805483526001015490820181905215611e14576000600c81611da885600161264c565b8152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050600080611df38e8460000151866000015187602001518d61238f565b9092509050611e02828961264c565b9750611e0f8e89836121a8565b975050505b5080611e1f816126a5565b915050611d5a565b505b8615611ea3576000818152600c60209081526040918290208251808401909352805483526001015490820181905215611ea1576000611e828b611e6b8d61089c565b8451611e77908a611b3b565b85602001518a61238f565b509050611e8f818661264c565b9450611e9c8b86426121a8565b429550505b505b50909350909150505b935093915050565b60065460005b81811015611f3857600060068281548110611ed757611ed76126db565b6000918252602090912001546001600160a01b03169050611efc816000196001611cc4565b6001600160a01b039092166000908152600360209081526040808320600290925290912092909255905580611f30816126a5565b915050611eba565b5050565b6000828152600b602052604090205442908015801590611f8657506000848152600a602052604081208391611f72600185612635565b815260200190815260200160002060000154145b15611fbf576000848152600a602052604081208491611fa6600185612635565b815260208101919091526040016000206001015561200f565b60408051808201825283815260208082018681526000888152600a8352848120868252909252929020905181559051600191820155611fff90829061264c565b6000858152600b60205260409020555b50505050565b600d54428115801590612047575080600c6000612033600186612635565b815260200190815260200160002060000154145b1561207657600854600c600061205e600186612635565b81526020810191909152604001600020600101555050565b60408051808201825282815260085460208083019182526000868152600c909152929092209051815590516001918201556120b290839061264c565b600d555050565b6000836001600160a01b03163b116120d057600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161212c919061272c565b6000604051808303816000865af19150503d8060008114612169576040519150601f19603f3d011682016040523d82523d6000602084013e61216e565b606091505b5091509150818015612198575080511580612198575080806020019051810190612198919061270a565b6121a157600080fd5b5050505050565b6001600160a01b0383166000908152600f6020526040902054801580159061220457506001600160a01b0384166000908152600e6020526040812083916121f0600185612635565b815260200190815260200160002060000154145b1561222e576001600160a01b0384166000908152600e602052604081208491611fa6600185612635565b60408051808201825283815260208082018681526001600160a01b0388166000908152600e835284812086825290925292902090518155905160019182015561227890829061264c565b6001600160a01b0385166000908152600f602052604090205550505050565b6000846001600160a01b03163b116122ae57600080fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691612312919061272c565b6000604051808303816000865af19150503d806000811461234f576040519150601f19603f3d011682016040523d82523d6000602084013e612354565b606091505b509150915081801561237e57508051158061237e57508080602001905181019061237e919061270a565b61238757600080fd5b505050505050565b600080600061239e8785611b3b565b6001600160a01b0389166000908152602081905260409020549091508590670de0b6b3a7640000906123f16123d38a89611b3b565b6001600160a01b038d16600090815260016020526040902054611cb5565b6001600160a01b038c16600090815260016020526040902054612415908690611cb5565b61241f9190612635565b6124299190612664565b6124339190612664565b61243d9190612683565b9890975095505050505050565b6001600160a01b038116811461245f57600080fd5b50565b803561246d8161244a565b919050565b6000806040838503121561248557600080fd5b82356124908161244a565b946020939093013593505050565b6000602082840312156124b057600080fd5b81356109148161244a565b600080604083850312156124ce57600080fd5b50508035926020909101359150565b6000602082840312156124ef57600080fd5b5035919050565b60008060006060848603121561250b57600080fd5b83359250602084013561251d8161244a565b9150604084013561252d8161244a565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561256157600080fd5b8235915060208084013567ffffffffffffffff8082111561258157600080fd5b818601915086601f83011261259557600080fd5b8135818111156125a7576125a7612538565b8060051b604051601f19603f830116810181811085821117156125cc576125cc612538565b6040529182528482019250838101850191898311156125ea57600080fd5b938501935b8285101561260f5761260085612462565b845293850193928501926125ef565b8096505050505050509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156126475761264761261f565b500390565b6000821982111561265f5761265f61261f565b500190565b600081600019048311821515161561267e5761267e61261f565b500290565b6000826126a057634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016126b7576126b761261f565b5060010190565b6000602082840312156126d057600080fd5b81516109148161244a565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561270357600080fd5b5051919050565b60006020828403121561271c57600080fd5b8151801515811461091457600080fd5b6000825160005b8181101561274d5760208186018101518583015201612733565b8181111561275c576000828501525b50919091019291505056fea26469706673582212207b2ae32cb0cc7f1784866eb8794bff2ef146b197b6937eb7799f41eb9c772ef564736f6c634300080d0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.