More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 476 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14131606 | 1065 days ago | IN | 0 ETH | 0.00787506 | ||||
Deposit | 14131576 | 1065 days ago | IN | 0 ETH | 0.00666438 | ||||
Deposit | 13932215 | 1096 days ago | IN | 0 ETH | 0.00523542 | ||||
Withdraw | 13932213 | 1096 days ago | IN | 0 ETH | 0.00799794 | ||||
Deposit | 13403253 | 1179 days ago | IN | 0 ETH | 0.0067655 | ||||
Deposit | 13299963 | 1195 days ago | IN | 0 ETH | 0.00388062 | ||||
Withdraw | 13267024 | 1200 days ago | IN | 0 ETH | 0.00670349 | ||||
Deposit | 13261885 | 1201 days ago | IN | 0 ETH | 0.00315052 | ||||
Withdraw | 13261431 | 1201 days ago | IN | 0 ETH | 0.00663974 | ||||
Withdraw | 13154627 | 1218 days ago | IN | 0 ETH | 0.01166022 | ||||
Withdraw | 13154501 | 1218 days ago | IN | 0 ETH | 0.01026151 | ||||
Deposit | 13113151 | 1224 days ago | IN | 0 ETH | 0.0054166 | ||||
Deposit | 13099171 | 1226 days ago | IN | 0 ETH | 0.00679402 | ||||
Deposit | 13053896 | 1233 days ago | IN | 0 ETH | 0.00267556 | ||||
Deposit | 13041517 | 1235 days ago | IN | 0 ETH | 0.00350536 | ||||
Deposit | 13041502 | 1235 days ago | IN | 0 ETH | 0.00321446 | ||||
Deposit | 13035088 | 1236 days ago | IN | 0 ETH | 0.00295623 | ||||
Withdraw | 13030387 | 1237 days ago | IN | 0 ETH | 0.00355223 | ||||
Withdraw | 13030362 | 1237 days ago | IN | 0 ETH | 0.00368319 | ||||
Withdraw | 13029408 | 1237 days ago | IN | 0 ETH | 0.00246953 | ||||
Deposit | 13029377 | 1237 days ago | IN | 0 ETH | 0.00251928 | ||||
Deposit | 13011738 | 1240 days ago | IN | 0 ETH | 0.00409381 | ||||
Deposit | 12985013 | 1244 days ago | IN | 0 ETH | 0.00635712 | ||||
Deposit | 12974456 | 1245 days ago | IN | 0 ETH | 0.003785 | ||||
Deposit | 12970782 | 1246 days ago | IN | 0 ETH | 0.0024023 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12394370 | 1336 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x32EFD246...7798F9332 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FarmStaking
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-15 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; library Address { function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } 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"); } 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"); (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { if (returndata.length > 0) { assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } 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)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { 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)); } function _callOptionalReturn(IERC20 token, bytes memory data) private { bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } library TransferHelper { function safeApprove(address token, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } interface IFarmFactory { function userEnteredFarm(address _user) external; function userLeftFarm(address _user) external; function registerFarm(address _farmAddress) external; } contract RewardHolder { using SafeMath for uint256; using SafeERC20 for IERC20; address public farmGenerator; address public farm; address public rewardToken; uint256 public farmableSupply; constructor(address _farmGenerator, address _farm) public { farmGenerator = _farmGenerator; farm = _farm; } function init(address _rewardToken, uint256 _amount) public { address msgSender = msg.sender; TransferHelper.safeTransferFrom(_rewardToken, msgSender, address(this), _amount); TransferHelper.safeApprove(_rewardToken, farm, _amount); rewardToken = _rewardToken; farmableSupply = _amount; } } contract FarmStaking { using SafeMath for uint256; using SafeERC20 for IERC20; /// @notice information stuct on each user than stakes tokens. struct UserInfo { uint256 amount; // How many tokens the user has provided. uint256 rewardDebt; // Reward debt. } /// @notice all the settings for this farm in one struct struct FarmInfo { IERC20 token; IERC20 rewardToken; address rewardHolder; uint256 startBlock; uint256 blockReward; uint256 bonusEndBlock; uint256 bonus; uint256 endBlock; uint256 lastRewardBlock; // Last block number that reward distribution occurs. uint256 accRewardPerShare; // Accumulated Rewards per share, times 1e12 uint256 farmableSupply; // set in init, total amount of tokens farmable uint256 numFarmers; } /// @notice farm type id. Useful for back-end systems to know how to read the contract (ABI) as we plan to launch multiple farm types uint256 public farmType = 2; IFarmFactory public factory; address public farmGenerator; FarmInfo public farmInfo; /// @notice information on each user than stakes tokens mapping (address => UserInfo) public userInfo; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); constructor(address _factory, address _farmGenerator) public { factory = IFarmFactory(_factory); farmGenerator = _farmGenerator; } /** * @notice initialize the farming contract. This is called only once upon farm creation and the FarmGenerator ensures the farm has the correct paramaters */ function init(address _rewardHolder, IERC20 _rewardToken, uint256 _amount, IERC20 _token, uint256 _blockReward, uint256 _startBlock, uint256 _endBlock, uint256 _bonusEndBlock, uint256 _bonus) public { address msgSender = _msgSender(); require(msgSender == address(farmGenerator), 'FORBIDDEN'); farmInfo.rewardToken = _rewardToken; farmInfo.rewardHolder = _rewardHolder; farmInfo.startBlock = _startBlock; farmInfo.blockReward = _blockReward; farmInfo.bonusEndBlock = _bonusEndBlock; farmInfo.bonus = _bonus; uint256 lastRewardBlock = block.number > _startBlock ? block.number : _startBlock; farmInfo.token = _token; farmInfo.lastRewardBlock = lastRewardBlock; farmInfo.accRewardPerShare = 0; farmInfo.endBlock = _endBlock; farmInfo.farmableSupply = _amount; } /** * @notice Gets the reward multiplier over the given _from_block until _to block * @param _from_block the start of the period to measure rewards for * @param _to the end of the period to measure rewards for * @return The weighted multiplier for the given period */ function getMultiplier(uint256 _from_block, uint256 _to) public view returns (uint256) { uint256 _from = _from_block >= farmInfo.startBlock ? _from_block : farmInfo.startBlock; uint256 to = farmInfo.endBlock > _to ? _to : farmInfo.endBlock; if (to <= farmInfo.bonusEndBlock) { return to.sub(_from).mul(farmInfo.bonus); } else if (_from >= farmInfo.bonusEndBlock) { return to.sub(_from); } else { return farmInfo.bonusEndBlock.sub(_from).mul(farmInfo.bonus).add( to.sub(farmInfo.bonusEndBlock) ); } } /** * @notice function to see accumulated balance of reward token for specified user * @param _user the user for whom unclaimed tokens will be shown * @return total amount of withdrawable reward tokens */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 accRewardPerShare = farmInfo.accRewardPerShare; uint256 tokenSupply = farmInfo.token.balanceOf(address(this)); if (block.number > farmInfo.lastRewardBlock && tokenSupply != 0) { uint256 multiplier = getMultiplier(farmInfo.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(farmInfo.blockReward); accRewardPerShare = accRewardPerShare.add(tokenReward.mul(1e12).div(tokenSupply)); } return user.amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt); } /** * @notice updates pool information to be up to date to the current block */ function updatePool() public { if (block.number <= farmInfo.lastRewardBlock) { return; } uint256 tokenSupply = farmInfo.token.balanceOf(address(this)); if (tokenSupply == 0) { farmInfo.lastRewardBlock = block.number < farmInfo.endBlock ? block.number : farmInfo.endBlock; return; } uint256 multiplier = getMultiplier(farmInfo.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(farmInfo.blockReward); farmInfo.accRewardPerShare = farmInfo.accRewardPerShare.add(tokenReward.mul(1e12).div(tokenSupply)); farmInfo.lastRewardBlock = block.number < farmInfo.endBlock ? block.number : farmInfo.endBlock; } /** * @notice deposit token function for msgSender * @param _amount the total deposit amount */ function deposit(uint256 _amount) public { address msgSender = _msgSender(); UserInfo storage user = userInfo[msgSender]; updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(farmInfo.accRewardPerShare).div(1e12).sub(user.rewardDebt); safeRewardTransfer(msgSender, pending); } if (user.amount == 0 && _amount > 0) { factory.userEnteredFarm(msgSender); farmInfo.numFarmers = farmInfo.numFarmers.add(1); } farmInfo.token.safeTransferFrom(address(msgSender), address(this), _amount); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(farmInfo.accRewardPerShare).div(1e12); emit Deposit(msgSender, _amount); } /** * @notice withdraw token function for msgSender * @param _amount the total withdrawable amount */ function withdraw(uint256 _amount) public { address msgSender = _msgSender(); UserInfo storage user = userInfo[msgSender]; require(user.amount >= _amount, "INSUFFICIENT"); updatePool(); if (user.amount == _amount && _amount > 0) { factory.userLeftFarm(msgSender); farmInfo.numFarmers = farmInfo.numFarmers.sub(1); } uint256 pending = user.amount.mul(farmInfo.accRewardPerShare).div(1e12).sub(user.rewardDebt); safeRewardTransfer(msgSender, pending); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(farmInfo.accRewardPerShare).div(1e12); farmInfo.token.safeTransfer(address(msgSender), _amount); emit Withdraw(msgSender, _amount); } /** * @notice emergency functoin to withdraw tokens and forego harvest rewards. Important to protect users tokens */ function emergencyWithdraw() public { address msgSender = _msgSender(); UserInfo storage user = userInfo[msgSender]; farmInfo.token.safeTransfer(address(msgSender), user.amount); emit EmergencyWithdraw(msgSender, user.amount); if (user.amount > 0) { factory.userLeftFarm(msgSender); farmInfo.numFarmers = farmInfo.numFarmers.sub(1); } user.amount = 0; user.rewardDebt = 0; } /** * @notice Safe reward transfer function, just in case a rounding error causes pool to not have enough reward tokens * @param _to the user address to transfer tokens to * @param _amount the total amount of tokens to transfer */ function safeRewardTransfer(address _to, uint256 _amount) internal { uint256 rewardBal = farmInfo.rewardToken.balanceOf(farmInfo.rewardHolder); if (_amount > rewardBal) { farmInfo.rewardToken.transferFrom(farmInfo.rewardHolder, _to, rewardBal); } else { farmInfo.rewardToken.transferFrom(farmInfo.rewardHolder, _to, _amount); } } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_farmGenerator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IFarmFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmGenerator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"address","name":"rewardHolder","type":"address"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"blockReward","type":"uint256"},{"internalType":"uint256","name":"bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"farmableSupply","type":"uint256"},{"internalType":"uint256","name":"numFarmers","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from_block","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardHolder","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_blockReward","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_bonus","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100d45760003560e01c8063b6b55f2511610081578063e3161ddd1161005b578063e3161ddd14610262578063e55a692b1461026a578063f40f0f52146102d5576100d4565b8063b6b55f2514610235578063c45a015514610252578063db2e21bc1461025a576100d4565b80632e1a7d4d116100b25780632e1a7d4d146101d95780632ebed9ec146101f85780638dbb1e3a14610212576100d4565b80631959a002146100d95780631d49d66c146101255780632dd99996146101a8575b600080fd5b61010c600480360360208110156100ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610308565b6040805192835260208301919091528051918290030190f35b61012d610321565b6040805173ffffffffffffffffffffffffffffffffffffffff9d8e1681529b8d1660208d015299909b168a8a015260608a0197909752608089019590955260a088019390935260c087019190915260e08601526101008501526101208401526101408301526101608201929092529051908190036101800190f35b6101b0610369565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101f6600480360360208110156101ef57600080fd5b5035610385565b005b6102006105cd565b60408051918252519081900360200190f35b6102006004803603604081101561022857600080fd5b50803590602001356105d3565b6101f66004803603602081101561024b57600080fd5b5035610678565b6101b061084b565b6101f6610867565b6101f66109af565b6101f6600480360361012081101561028157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359091169060808101359060a08101359060c08101359060e0810135906101000135610ae2565b610200600480360360208110156102eb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c53565b600f602052600090815260409020805460019091015482565b600354600454600554600654600754600854600954600a54600b54600c54600d54600e5473ffffffffffffffffffffffffffffffffffffffff9b8c169b9a8b169a909916988c565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b600061038f610d9a565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040902080549192509083111561042857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f494e53554646494349454e540000000000000000000000000000000000000000604482015290519081900360640190fd5b6104306109af565b8054831480156104405750600083115b156104e457600154604080517f76cb255400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916376cb255491602480830192600092919082900301818387803b1580156104b957600080fd5b505af11580156104cd573d6000803e3d6000fd5b5050600e546104e0925090506001610d9e565b600e555b600061051f826001015461051964e8d4a510006105136003600901548760000154610de790919063ffffffff16565b90610e5a565b90610d9e565b905061052b8382610e9c565b81546105379085610d9e565b808355600c546105529164e8d4a51000916105139190610de7565b600183015560035461057b9073ffffffffffffffffffffffffffffffffffffffff1684866110c0565b60408051858152905173ffffffffffffffffffffffffffffffffffffffff8516917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b60005481565b60008060038001548410156105ea576006546105ec565b835b90506000836003600701541161060457600a54610606565b835b600854909150811161063257600954610629906106238385610d9e565b90610de7565b92505050610672565b6008548210610645576106298183610d9e565b60085461062990610657908390610d9e565b60095460085461066c91906106239087610d9e565b9061114d565b92915050565b6000610682610d9a565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604090209091506106b26109af565b8054156106f65760006106e8826001015461051964e8d4a510006105136003600901548760000154610de790919063ffffffff16565b90506106f48382610e9c565b505b80541580156107055750600083115b156107a957600154604080517f79cdf99b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916379cdf99b91602480830192600092919082900301818387803b15801561077e57600080fd5b505af1158015610792573d6000803e3d6000fd5b5050600e546107a592509050600161114d565b600e555b6003546107ce9073ffffffffffffffffffffffffffffffffffffffff168330866111c1565b80546107da908461114d565b808255600c546107f59164e8d4a51000916105139190610de7565b600182015560408051848152905173ffffffffffffffffffffffffffffffffffffffff8416917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000610871610d9a565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600f60205260409020805460035493945090926108ae92169084906110c0565b8054604080519182525173ffffffffffffffffffffffffffffffffffffffff8416917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a28054156109a157600154604080517f76cb255400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916376cb255491602480830192600092919082900301818387803b15801561097657600080fd5b505af115801561098a573d6000803e3d6000fd5b5050600e5461099d925090506001610d9e565b600e555b600080825560019091015550565b600b5443116109bd57610ae0565b600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610a2e57600080fd5b505afa158015610a42573d6000803e3d6000fd5b505050506040513d6020811015610a5857600080fd5b5051905080610a7d57600a544310610a7257600a54610a74565b435b600b5550610ae0565b6000610a8e600360080154436105d3565b600754909150600090610aa2908390610de7565b9050610ac3610aba846105138464e8d4a51000610de7565b600c549061114d565b600c55600a544310610ad757600a54610ad9565b435b600b555050505b565b6000610aec610d9a565b60025490915073ffffffffffffffffffffffffffffffffffffffff808316911614610b7857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6004805473ffffffffffffffffffffffffffffffffffffffff808c167fffffffffffffffffffffffff00000000000000000000000000000000000000009283161790925560058054928d169290911691909117905560068590556007869055600883905560098290556000438610610bf05785610bf2565b435b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9a909a1699909917909855505050600b949094556000600c55600a55505050600d555050565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600f60209081526040808320600c5460035483517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529351959692959194879491909316926370a0823192602480840193829003018186803b158015610cdc57600080fd5b505afa158015610cf0573d6000803e3d6000fd5b505050506040513d6020811015610d0657600080fd5b5051600b5490915043118015610d1b57508015155b15610d69576000610d31600360080154436105d3565b600754909150600090610d45908390610de7565b9050610d64610d5d846105138464e8d4a51000610de7565b859061114d565b935050505b610d91836001015461051964e8d4a51000610513868860000154610de790919063ffffffff16565b95945050505050565b3390565b6000610de083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061125c565b9392505050565b600082610df657506000610672565b82820282848281610e0357fe5b0414610de0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061164e6021913960400191505060405180910390fd5b6000610de083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061130d565b60048054600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b158015610f1857600080fd5b505afa158015610f2c573d6000803e3d6000fd5b505050506040513d6020811015610f4257600080fd5b50519050808211156110075760048054600554604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831694810194909452868216602485015260448401859052519116916323b872dd9160648083019260209291908290030181600087803b158015610fd557600080fd5b505af1158015610fe9573d6000803e3d6000fd5b505050506040513d6020811015610fff57600080fd5b506110bb9050565b60048054600554604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831694810194909452868216602485015260448401869052519116916323b872dd9160648083019260209291908290030181600087803b15801561108e57600080fd5b505af11580156110a2573d6000803e3d6000fd5b505050506040513d60208110156110b857600080fd5b50505b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526110bb90849061138c565b600082820183811015610de057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261125690859061138c565b50505050565b60008184841115611305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112ca5781810151838201526020016112b2565b50505050905090810190601f1680156112f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611376576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156112ca5781810151838201526020016112b2565b50600083858161138257fe5b0495945050505050565b60606113ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114649092919063ffffffff16565b8051909150156110bb5780806020019051602081101561140d57600080fd5b50516110bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061166f602a913960400191505060405180910390fd5b6060611473848460008561147b565b949350505050565b606061148685611647565b6114f157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061155b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161151e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115bd576040519150601f19603f3d011682016040523d82523d6000602084013e6115c2565b606091505b509150915081156115d65791506114739050565b8051156115e65780518082602001fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528651602484015286518793919283926044019190850190808383600083156112ca5781810151838201526020016112b2565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207e9b8b4020b2253f8cffdeeec342f8b6c638640df70b06d719ddb78c148a95ac64736f6c634300060c0033
Deployed Bytecode Sourcemap
7583:8092:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8752:45;;;;;;;;;;;;;;;;-1:-1:-1;8752:45:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8662:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8627:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13645:734;;;;;;;;;;;;;;;;-1:-1:-1;13645:734:0;;:::i;:::-;;8561:27;;;:::i;:::-;;;;;;;;;;;;;;;;10442:569;;;;;;;;;;;;;;;;-1:-1:-1;10442:569:0;;;;;;;:::i;12789:733::-;;;;;;;;;;;;;;;;-1:-1:-1;12789:733:0;;:::i;8595:27::-;;;:::i;14513:431::-;;;:::i;11987:685::-;;;:::i;9305:840::-;;;;;;;;;;;;;;;;-1:-1:-1;9305:840:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;11241:649::-;;;;;;;;;;;;;;;;-1:-1:-1;11241:649:0;;;;:::i;8752:45::-;;;;;;;;;;;;;;;;;;;:::o;8662:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;8627:28::-;;;;;;:::o;13645:734::-;13694:17;13714:12;:10;:12::i;:::-;13757:19;;;13733:21;13757:19;;;:8;:19;;;;;13791:11;;13694:32;;-1:-1:-1;13757:19:0;13791:22;-1:-1:-1;13791:22:0;13783:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13837:12;:10;:12::i;:::-;13860:11;;:22;;:37;;;;;13896:1;13886:7;:11;13860:37;13856:148;;;13908:7;;:31;;;;;;:7;:31;;;;;;;;;:7;;;;;:20;;:31;;;;;:7;;:31;;;;;;;:7;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13970:19:0;;:26;;-1:-1:-1;13970:19:0;-1:-1:-1;13994:1:0;13970:23;:26::i;:::-;13948:19;:48;13856:148;14010:15;14028:74;14086:4;:15;;;14028:53;14076:4;14028:43;14044:8;:26;;;14028:4;:11;;;:15;;:43;;;;:::i;:::-;:47;;:53::i;:::-;:57;;:74::i;:::-;14010:92;;14109:38;14128:9;14139:7;14109:18;:38::i;:::-;14168:11;;:24;;14184:7;14168:15;:24::i;:::-;14154:38;;;14233:26;;14217:53;;14265:4;;14217:43;;14154:38;14217:15;:43::i;:53::-;14199:15;;;:71;14277:8;:14;:56;;:14;;14313:9;14325:7;14277:27;:56::i;:::-;14345:28;;;;;;;;;;;;;;;;;;;;;;13645:734;;;;:::o;8561:27::-;;;;:::o;10442:569::-;10520:7;10536:13;10567:8;:19;;;10552:11;:34;;:70;;10603:19;;10552:70;;;10589:11;10552:70;10536:86;;10629:10;10662:3;10642:8;:17;;;:23;:49;;10674:17;;10642:49;;;10668:3;10642:49;10708:22;;10629:62;;-1:-1:-1;10702:28:0;;10698:308;;10766:14;;10748:33;;:13;:2;10755:5;10748:6;:13::i;:::-;:17;;:33::i;:::-;10741:40;;;;;;10698:308;10808:22;;10799:31;;10795:211;;10848:13;:2;10855:5;10848:6;:13::i;10795:211::-;10966:22;;10891:107;;10959:30;;:2;;:6;:30::i;:::-;10929:14;;10891:22;;:53;;10929:14;10891:33;;10918:5;10891:26;:33::i;:53::-;:57;;:107::i;10442:569::-;;;;;:::o;12789:733::-;12837:17;12857:12;:10;:12::i;:::-;12900:19;;;12876:21;12900:19;;;:8;:19;;;;;12837:32;;-1:-1:-1;12926:12:0;:10;:12::i;:::-;12949:11;;:15;12945:177;;12975:15;12993:74;13051:4;:15;;;12993:53;13041:4;12993:43;13009:8;:26;;;12993:4;:11;;;:15;;:43;;;;:::i;:74::-;12975:92;;13076:38;13095:9;13106:7;13076:18;:38::i;:::-;12945:177;;13132:11;;:16;:31;;;;;13162:1;13152:7;:11;13132:31;13128:145;;;13174:7;;:34;;;;;;:7;:34;;;;;;;;;:7;;;;;:23;;:34;;;;;:7;;:34;;;;;;;:7;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13239:19:0;;:26;;-1:-1:-1;13239:19:0;-1:-1:-1;13263:1:0;13239:23;:26::i;:::-;13217:19;:48;13128:145;13279:8;:14;:75;;:14;;13319:9;13339:4;13346:7;13279:31;:75::i;:::-;13375:11;;:24;;13391:7;13375:15;:24::i;:::-;13361:38;;;13440:26;;13424:53;;13472:4;;13424:43;;13361:38;13424:15;:43::i;:53::-;13406:15;;;:71;13489:27;;;;;;;;;;;;;;;;;;;;;;12789:733;;;:::o;8595:27::-;;;;;;:::o;14513:431::-;14556:17;14576:12;:10;:12::i;:::-;14619:19;;;;14595:21;14619:19;;;:8;:19;;;;;14693:11;;14645:8;:14;14556:32;;-1:-1:-1;14619:19:0;;14645:60;;:14;;14556:32;;14645:27;:60::i;:::-;14746:11;;14717:41;;;;;;;;;;;;;;;;;;;;;14769:11;;:15;14765:126;;14795:7;;:31;;;;;;:7;:31;;;;;;;;;:7;;;;;:20;;:31;;;;;:7;;:31;;;;;;;:7;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14857:19:0;;:26;;-1:-1:-1;14857:19:0;-1:-1:-1;14881:1:0;14857:23;:26::i;:::-;14835:19;:48;14765:126;14911:1;14897:15;;;14919;;;;:19;-1:-1:-1;14513:431:0:o;11987:685::-;12043:24;;12027:12;:40;12023:69;;12078:7;;12023:69;12120:8;:14;:39;;;;;;12153:4;12120:39;;;;;;12098:19;;12120:14;;;:24;;:39;;;;;;;;;;;;;;:14;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12120:39:0;;-1:-1:-1;12170:16:0;12166:148;;12239:17;;12224:12;:32;:67;;12274:17;;12224:67;;;12259:12;12224:67;12197:24;:94;-1:-1:-1;12300:7:0;;12166:148;12320:18;12341:53;12355:8;:24;;;12381:12;12341:13;:53::i;:::-;12438:20;;12320:74;;-1:-1:-1;12401:19:0;;12423:36;;12320:74;;12423:14;:36::i;:::-;12401:58;-1:-1:-1;12495:70:0;12526:38;12552:11;12526:21;12401:58;12542:4;12526:15;:21::i;:38::-;12495:26;;;:30;:70::i;:::-;12466:26;:99;12614:17;;12599:12;:32;:67;;12649:17;;12599:67;;;12634:12;12599:67;12572:24;:94;-1:-1:-1;;;11987:685:0;:::o;9305:840::-;9511:17;9531:12;:10;:12::i;:::-;9579:13;;9511:32;;-1:-1:-1;9579:13:0;9558:35;;;9579:13;;9558:35;9550:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9616:20;:35;;;;;;;;;;;;;;9658:21;:37;;;;;;;;;;;;;;;9704:19;:33;;;9744:20;:35;;;9786:22;:39;;;9832:14;:23;;;9616:20;9890:12;:26;-1:-1:-1;9890:55:0;;9934:11;9890:55;;;9919:12;9890:55;9952:8;:23;;;;;;;;;;;;;;;;-1:-1:-1;;;9982:24:0;:42;;;;-1:-1:-1;10031:26:0;:30;10070:17;:29;-1:-1:-1;;;10106:23:0;:33;-1:-1:-1;;9305:840:0:o;11241:649::-;11342:15;;;;11302:7;11342:15;;;:8;:15;;;;;;;;11392:26;;:8;11447:14;:39;;;;;11480:4;11447:39;;;;;;11302:7;;11342:15;;11392:26;;11302:7;;11447:14;;;;;:24;;:39;;;;;;;;;;:14;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11447:39:0;11512:24;;11447:39;;-1:-1:-1;11497:12:0;:39;:59;;;;-1:-1:-1;11540:16:0;;;11497:59;11493:313;;;11567:18;11588:53;11602:8;:24;;;11628:12;11588:13;:53::i;:::-;11687:20;;11567:74;;-1:-1:-1;11650:19:0;;11672:36;;11567:74;;11672:14;:36::i;:::-;11650:58;-1:-1:-1;11737:61:0;11759:38;11785:11;11759:21;11650:58;11775:4;11759:15;:21::i;:38::-;11737:17;;:21;:61::i;:::-;11717:81;;11493:313;;;11819:65;11868:4;:15;;;11819:44;11858:4;11819:34;11835:17;11819:4;:11;;;:15;;:34;;;;:::i;:65::-;11812:72;11241:649;-1:-1:-1;;;;;11241:649:0:o;15572:100::-;15656:10;15572:100;:::o;2273:130::-;2331:7;2354:43;2358:1;2361;2354:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2347:50;2273:130;-1:-1:-1;;;2273:130:0:o;2591:218::-;2649:7;2669:6;2665:37;;-1:-1:-1;2693:1:0;2686:8;;2665:37;2720:5;;;2724:1;2720;:5;:1;2740:5;;;;;:10;2732:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2815:126;2873:7;2896:39;2900:1;2903;2896:39;;;;;;;;;;;;;;;;;:3;:39::i;15200:366::-;15294:20;;;15325:21;;15294:53;;;;;;:20;15325:21;;;15294:53;;;;;;;;15274:17;;15294:20;;;;;:30;;:53;;;;;;;;;;;;;;;:20;:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15294:53:0;;-1:-1:-1;15358:19:0;;;15354:207;;;15388:20;;;15422:21;;15388:72;;;;;;:20;15422:21;;;15388:72;;;;;;;;;;;;;;;;;;;;;:20;;;:33;;:72;;;;;;;;;;;;;;:20;;:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15354:207:0;;-1:-1:-1;15354:207:0;;15483:20;;;15517:21;;15483:70;;;;;;:20;15517:21;;;15483:70;;;;;;;;;;;;;;;;;;;;;:20;;;:33;;:70;;;;;;;;;;;;;;:20;;:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15354:207:0;15200:366;;;:::o;3507:171::-;3613:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3636:23;3613:58;;;3586:86;;3606:5;;3586:19;:86::i;2102:165::-;2160:7;2188:5;;;2208:6;;;;2200:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3684:199;3808:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3831:27;3808:68;;;3781:96;;3801:5;;3781:19;:96::i;:::-;3684:199;;;;:::o;2409:176::-;2495:7;2527:12;2519:6;;;;2511:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2559:5:0;;;2409:176::o;2947:175::-;3033:7;3064:12;3057:5;3049:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3084:9;3100:1;3096;:5;;;;;;;2947:175;-1:-1:-1;;;;;2947:175:0:o;4819:313::-;4896:23;4922:69;4950:4;4922:69;;;;;;;;;;;;;;;;;4930:5;4922:27;;;;:69;;;;;:::i;:::-;5002:17;;4896:95;;-1:-1:-1;5002:21:0;4998:129;;5053:10;5042:30;;;;;;;;;;;;;;;-1:-1:-1;5042:30:0;5034:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;739:190;842:12;870:53;893:6;901:4;907:1;910:12;870:22;:53::i;:::-;863:60;739:190;-1:-1:-1;;;;739:190:0:o;1473:600::-;1603:12;1632:18;1643:6;1632:10;:18::i;:::-;1624:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1692:12;1706:23;1733:6;:11;;1753:8;1764:4;1733:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1691:78;;;;1780:7;1776:292;;;1805:10;-1:-1:-1;1798:17:0;;-1:-1:-1;1798:17:0;1776:292;1842:17;;:21;1838:223;;1927:10;1921:17;1978:15;1965:10;1961:2;1957:19;1950:44;1885:120;2031:20;;;;;;;;;;;;;;;;;;;;2038:12;;2031:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89:160;200:20;235:8;;;89:160::o
Swarm Source
ipfs://7e9b8b4020b2253f8cffdeeec342f8b6c638640df70b06d719ddb78c148a95ac
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.