More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 121,633 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 15764113 | 4 mins ago | IN | 0 CRO | 2.09567425 | ||||
Deposit | 15764109 | 4 mins ago | IN | 0 CRO | 2.09567425 | ||||
Deposit | 15763702 | 43 mins ago | IN | 0 CRO | 3.3592903 | ||||
Deposit | 15763699 | 43 mins ago | IN | 0 CRO | 3.4456453 | ||||
Deposit | 15763677 | 45 mins ago | IN | 0 CRO | 3.47930355 | ||||
Withdraw | 15763437 | 1 hr ago | IN | 0 CRO | 3.5578058 | ||||
Deposit | 15762313 | 2 hrs ago | IN | 0 CRO | 2.77199045 | ||||
Withdraw | 15762050 | 3 hrs ago | IN | 0 CRO | 2.8353124 | ||||
Withdraw | 15761873 | 3 hrs ago | IN | 0 CRO | 2.2633696 | ||||
Deposit | 15761847 | 3 hrs ago | IN | 0 CRO | 2.09567425 | ||||
Withdraw | 15761605 | 4 hrs ago | IN | 0 CRO | 2.4884481 | ||||
Deposit | 15761186 | 4 hrs ago | IN | 0 CRO | 2.82537112 | ||||
Withdraw | 15758974 | 8 hrs ago | IN | 0 CRO | 2.8353124 | ||||
Deposit | 15758844 | 8 hrs ago | IN | 0 CRO | 2.7877515 | ||||
Deposit | 15758134 | 9 hrs ago | IN | 0 CRO | 3.58042475 | ||||
Deposit | 15758046 | 9 hrs ago | IN | 0 CRO | 2.76698085 | ||||
Deposit | 15758027 | 9 hrs ago | IN | 0 CRO | 2.76304185 | ||||
Deposit | 15757904 | 9 hrs ago | IN | 0 CRO | 2.7333832 | ||||
Deposit | 15757551 | 10 hrs ago | IN | 0 CRO | 3.2877015 | ||||
Deposit | 15757546 | 10 hrs ago | IN | 0 CRO | 3.2877015 | ||||
Deposit | 15755223 | 14 hrs ago | IN | 0 CRO | 0.7001623 | ||||
Deposit | 15753404 | 16 hrs ago | IN | 0 CRO | 2.75856755 | ||||
Deposit | 15753007 | 17 hrs ago | IN | 0 CRO | 2.7219644 | ||||
Deposit | 15751224 | 20 hrs ago | IN | 0 CRO | 2.67221255 | ||||
Withdraw | 15749849 | 22 hrs ago | IN | 0 CRO | 2.2632484 |
Loading...
Loading
Contract Name:
FerroFarm
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IFerroToken.sol"; import "./interfaces/IFerroBar.sol"; import "./interfaces/IFerroBoost.sol"; // FerroFarm is the master of FER. He can make FER and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once Ferro is sufficiently // distributed and the community can show to govern itself. contract FerroFarm is Ownable { using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of FER // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accFerPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accFerPerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. FER to distribute per block. uint256 lastRewardBlock; // Last block number that FER distribution occurs. uint256 accFerPerShare; // Accumulated FER per share, times 1e18. See below. bool hasHarvestLock; // If true, harvesting from this pid will result in a percentage (harvestLockRatio) as locked xFER } // The FER TOKEN! IFerroToken public fer; IFerroBar public ferroBar; IFerroBoost public ferroBoost; // fer tokens created per block. uint256 public ferPerBlock; // upper limit of FER_PER_BLOCK emission configurable by admin uint256 public immutable MAX_FER_PER_BLOCK; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Info of each pool lp address mapping(address => PoolInfo) public poolInfoMap; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint; // The block number when fer mining starts. uint256 public startBlock; // The ratio of pid 0 pool against totalAllocPoint uint256 public pidZeroRatio = 20; // 20/100 = 20% // The percentage of harvested token becoming locked xFer, only applicable if pool.hasHarvestLock=true uint256 public harvestLockRatio = 40; // 40/100 = 40% // The pid of ferroBoost where locked xFer will get deposited into uint256 public constant LOCK_PID = 0; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event UpdatePidZeroRatio(uint256 newRatio); event UpdateLockRatio(uint256 newRatio); event UpdateEmissionRate(uint256 newFerPerBlock); event SetBarAndBoost(address ferroBar, address ferroBoost); modifier checkPoolDuplicate(IERC20 _lpToken) { IERC20 poolInfoMapLpToken = poolInfoMap[address(_lpToken)].lpToken; require(poolInfoMapLpToken != _lpToken, "FerroFarm: existing pool?"); _; } /// @param _ferPerBlock will also represent MAX_FER_PER_BLOCK constructor( IFerroToken _fer, IERC20 _ferroBoostDepositToken, uint256 _startBlock, uint256 _ferPerBlock ) { fer = _fer; startBlock = _startBlock; ferPerBlock = _ferPerBlock; MAX_FER_PER_BLOCK = _ferPerBlock; // ferroBoost deposit token's pool poolInfo.push( PoolInfo({ lpToken: _ferroBoostDepositToken, allocPoint: 1000, lastRewardBlock: startBlock, accFerPerShare: 0, hasHarvestLock: false }) ); totalAllocPoint = 1000; } /// @notice set bar and boost once bar and boost are deployed, only callable once function setBarAndBoost(IFerroBar _ferroBar, IFerroBoost _ferroBoost) external onlyOwner { require(address(ferroBar) == address(0), "FerroFarm: ferroBar has been set"); require(address(_ferroBar) != address(0), "FerroFarm: ferroBar should not be address(0)"); require(address(_ferroBoost) != address(0), "FerroFarm: ferroBoost should not be address(0)"); ferroBar = _ferroBar; ferroBoost = _ferroBoost; // Gas saving: ferro into ferroBar and xFer -> ferroBoost fer.approve(address(ferroBar), type(uint256).max); ferroBar.approve(address(ferroBoost), type(uint256).max); emit SetBarAndBoost(address(_ferroBar), address(_ferroBoost)); } function poolLength() external view returns (uint256) { return poolInfo.length; } /// @notice Add a new lp to the pool. Can only be called by the owner. function add( uint256 _allocPoint, IERC20 _lpToken, bool _hasHarvestLock, bool _withUpdate ) external onlyOwner checkPoolDuplicate(_lpToken) { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint += _allocPoint; PoolInfo memory pool = PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accFerPerShare: 0, hasHarvestLock: _hasHarvestLock }); poolInfo.push(pool); poolInfoMap[address(_lpToken)] = pool; _updatePidZeroPool(); } /// @notice Update the given pool's fer allocation point. Can only be called by the owner. function set( uint256 _pid, uint256 _allocPoint, bool _hasHarvestLock, bool _withUpdate ) external onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 prevAllocPoint = poolInfo[_pid].allocPoint; poolInfo[_pid].allocPoint = _allocPoint; poolInfo[_pid].hasHarvestLock = _hasHarvestLock; // Also update pool info map with the new pool detail poolInfoMap[address(poolInfo[_pid].lpToken)] = poolInfo[_pid]; if (prevAllocPoint != _allocPoint) { totalAllocPoint = totalAllocPoint - prevAllocPoint + _allocPoint; _updatePidZeroPool(); } } /// @notice view function to see pending fer on frontend. function pendingFer(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accFerPerShare = pool.accFerPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 multiplier = _getMultiplier(pool.lastRewardBlock, block.number); uint256 ferReward = multiplier * ferPerBlock * pool.allocPoint / totalAllocPoint; accFerPerShare += (ferReward * 1e18 / lpSupply); } return user.amount * accFerPerShare / 1e18 - user.rewardDebt; } /// @notice deposit LP tokens to FerroFarm for fer allocation. function deposit(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount * pool.accFerPerShare / 1e18 - user.rewardDebt; if (pending > 0) { _safeFerTransfer(msg.sender, pending, pool); } } if (_amount > 0) { pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount += _amount; } user.rewardDebt = user.amount * pool.accFerPerShare / 1e18; emit Deposit(msg.sender, _pid, _amount); } /// @notice withdraw LP tokens from FerroFarm. function withdraw(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount * pool.accFerPerShare / 1e18 - user.rewardDebt; if (pending > 0) { _safeFerTransfer(msg.sender, pending, pool); } if (_amount > 0) { user.amount -= _amount; pool.lpToken.safeTransfer(address(msg.sender), _amount); } user.rewardDebt = user.amount * pool.accFerPerShare / 1e18; emit Withdraw(msg.sender, _pid, _amount); } /// @notice withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } /// @notice update the % of emission to pid 0 /// @dev pid 0 is meant for locked xFER function updatePidZeroRatio(uint256 _ratio) external onlyOwner { require(_ratio <= 50, "FerroFarm: ratio must be lte 50%"); massUpdatePools(); pidZeroRatio = _ratio; _updatePidZeroPool(); emit UpdatePidZeroRatio(_ratio); } /// @notice update % of fer token harvested that would be locked function updateHarvestLockRatio(uint256 _ratio) external onlyOwner { require(_ratio <= 100, "FerroFarm: updateHarvestLockRatio: must be lte 100%"); harvestLockRatio = _ratio; emit UpdateLockRatio(_ratio); } function updateEmissionRate(uint256 _ferPerBlock) public onlyOwner { require(_ferPerBlock <= MAX_FER_PER_BLOCK, "FerroFarm: _ferPerBlock is too high"); require(_ferPerBlock != ferPerBlock, "FerroFarm: _ferPerBlock is same as existing"); massUpdatePools(); ferPerBlock = _ferPerBlock; emit UpdateEmissionRate(_ferPerBlock); } /// @notice Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } /// @notice Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = _getMultiplier(pool.lastRewardBlock, block.number); uint256 ferReward = multiplier * ferPerBlock * pool.allocPoint / totalAllocPoint; fer.mint(address(this), ferReward); pool.accFerPerShare += (ferReward * 1e18 / lpSupply); pool.lastRewardBlock = block.number; } /// @notice Return reward multiplier over the given _from to _to block. function _getMultiplier(uint256 _from, uint256 _to) internal pure returns (uint256) { return _to - _from; } /// @notice transfer fer to user, if pool hasHarvestLock mechanism, take a % and lock in xFer vault function _safeFerTransfer( address _to, uint256 _amount, PoolInfo memory pool ) internal { uint256 ferBal = fer.balanceOf(address(this)); // just in case if rounding error causes pool to not have enough fer. if (_amount > ferBal) { _amount = ferBal; } if (!pool.hasHarvestLock) { fer.transfer(_to, _amount); } else { // Take a percentage of ferro, staked in xFer and locked in uint256 lockedFerAmt = (_amount * harvestLockRatio) / 100; uint256 xFerAmt = ferroBar.enterPool(lockedFerAmt); ferroBoost.depositFor(LOCK_PID, xFerAmt, _to); // Send the remaining ferro to the user fer.transfer(_to, _amount - lockedFerAmt); } } /// @notice ensure pid 0 mantains a fixed percentage of total allocPoint function _updatePidZeroPool() internal { uint256 length = poolInfo.length; uint256 points; for (uint256 pid = 1; pid < length; ++pid) { points += poolInfo[pid].allocPoint; } if (points != 0) { points = points * pidZeroRatio / (100 - pidZeroRatio); totalAllocPoint = totalAllocPoint - poolInfo[0].allocPoint + points; poolInfo[0].allocPoint = points; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IFerroToken is IERC20 { function mint(address _to, uint256 _amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IFerroBar { function enterPool(uint256 _amount) external returns (uint256 xFERToMint); function approve(address spender, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IFerroBoost { function deposit(uint256 _pid, uint256 _amount) external; function depositFor( uint256 _pid, uint256 _amount, address _user ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IFerroToken","name":"_fer","type":"address"},{"internalType":"contract IERC20","name":"_ferroBoostDepositToken","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_ferPerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ferroBar","type":"address"},{"indexed":false,"internalType":"address","name":"ferroBoost","type":"address"}],"name":"SetBarAndBoost","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFerPerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"UpdateLockRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"UpdatePidZeroRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LOCK_PID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FER_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_hasHarvestLock","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fer","outputs":[{"internalType":"contract IFerroToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ferPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ferroBar","outputs":[{"internalType":"contract IFerroBar","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ferroBoost","outputs":[{"internalType":"contract IFerroBoost","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestLockRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingFer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pidZeroRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accFerPerShare","type":"uint256"},{"internalType":"bool","name":"hasHarvestLock","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolInfoMap","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accFerPerShare","type":"uint256"},{"internalType":"bool","name":"hasHarvestLock","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_hasHarvestLock","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFerroBar","name":"_ferroBar","type":"address"},{"internalType":"contract IFerroBoost","name":"_ferroBoost","type":"address"}],"name":"setBarAndBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ferPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratio","type":"uint256"}],"name":"updateHarvestLockRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratio","type":"uint256"}],"name":"updatePidZeroRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"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":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526014600a556028600b553480156200001b57600080fd5b50604051620023cf380380620023cf8339810160408190526200003e91620001e7565b620000493362000197565b600180546001600160a01b03199081166001600160a01b039687161782556009849055600483905560809283526040805160a08101825295871686526103e8602087018181529187019586526000606088018181529588018181526005805496870181559182905297517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0959091029485018054909416981697909717909155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db182015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db382015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909101805460ff19169115159190911790556008556200024c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620001fd578384fd5b84516200020a8162000233565b60208601519094506200021d8162000233565b6040860151606090960151949790965092505050565b6001600160a01b03811681146200024957600080fd5b50565b6080516121606200026f6000396000818161031f015261057301526121606000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063ce18117d116100a2578063e73f51c711610071578063e73f51c714610435578063eed403571461043e578063f2fde38b14610451578063fd6676491461046457600080fd5b8063ce18117d146103fe578063d8c6a98c14610407578063e2bbb1581461041a578063e2c95e041461042d57600080fd5b80638da5cb5b116100de5780638da5cb5b1461038057806393f1a40b14610391578063a1230ae9146103d8578063c507aeaa146103eb57600080fd5b8063715018a6146103525780637efd79871461035a5780638cb8c8f01461036d57600080fd5b8063441a3e70116101715780635312ea8e1161014b5780635312ea8e146103075780635bd1e45c1461031a578063630b5ba114610341578063680376fe1461034957600080fd5b8063441a3e70146102d857806348cd4cb1146102eb57806351eb05a6146102f457600080fd5b80630f86c24b116101ad5780630f86c24b146102135780631218c5981461023e5780631526fe27146102bc57806317caf6f1146102cf57600080fd5b8063081e3eda146101d45780630953c8c7146101eb5780630ba84cd214610200575b600080fd5b6005545b6040519081526020015b60405180910390f35b6101fe6101f9366004611ec3565b610477565b005b6101fe61020e366004611ec3565b610547565b600154610226906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b61028861024c366004611e53565b600760205260009081526040902080546001820154600283015460038401546004909401546001600160a01b0390931693919290919060ff1685565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a0016101e2565b6102886102ca366004611ec3565b610690565b6101d860085481565b6101fe6102e6366004611f69565b6106de565b6101d860095481565b6101fe610302366004611ec3565b6108a7565b6101fe610315366004611ec3565b610a60565b6101d87f000000000000000000000000000000000000000000000000000000000000000081565b6101fe610b10565b6101d8600b5481565b6101fe610b3b565b600354610226906001600160a01b031681565b6101fe61037b366004611f8a565b610b71565b6000546001600160a01b0316610226565b6103c361039f366004611ef3565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101e2565b6101fe6103e6366004611e8b565b610d66565b6101fe6103f9366004611f17565b611040565b6101d860045481565b600254610226906001600160a01b031681565b6101fe610428366004611f69565b611297565b6101d8600081565b6101d8600a5481565b6101d861044c366004611ef3565b611424565b6101fe61045f366004611e53565b6115b6565b6101fe610472366004611ec3565b611651565b6000546001600160a01b031633146104aa5760405162461bcd60e51b81526004016104a190612007565b60405180910390fd5b60328111156104fb5760405162461bcd60e51b815260206004820181905260248201527f466572726f4661726d3a20726174696f206d757374206265206c74652035302560448201526064016104a1565b610503610b10565b600a81905561051061171d565b6040518181527f1494a05c87f048e66e31c8aafb233cb52cca8267cf85d29fc1844f8aaadd0d52906020015b60405180910390a150565b6000546001600160a01b031633146105715760405162461bcd60e51b81526004016104a190612007565b7f00000000000000000000000000000000000000000000000000000000000000008111156105ed5760405162461bcd60e51b815260206004820152602360248201527f466572726f4661726d3a205f666572506572426c6f636b20697320746f6f20686044820152620d2ced60eb1b60648201526084016104a1565b6004548114156106535760405162461bcd60e51b815260206004820152602b60248201527f466572726f4661726d3a205f666572506572426c6f636b2069732073616d652060448201526a6173206578697374696e6760a81b60648201526084016104a1565b61065b610b10565b60048190556040518181527f232bc60e54c3a684fb69d1cde365a10c51105f4f8ba47a6cd0c5435192010a9c9060200161053c565b600581815481106106a057600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60006005838154811061070157634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600682526040808520338652909252922080546005909202909201925083111561076f5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016104a1565b610778846108a7565b60008160010154670de0b6b3a76400008460030154846000015461079c9190612074565b6107a69190612054565b6107b09190612093565b9050801561080b576040805160a08101825284546001600160a01b031681526001850154602082015260028501549181019190915260038401546060820152600484015460ff161515608082015261080b9033908390611839565b831561084057838260000160008282546108259190612093565b90915550508254610840906001600160a01b03163386611b0d565b60038301548254670de0b6b3a76400009161085a91612074565b6108649190612054565b6001830155604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6000600582815481106108ca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806002015443116108e9575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561092c57600080fd5b505afa158015610940573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109649190611edb565b90508061097657504360029091015550565b6000610986836002015443611b75565b905060006008548460010154600454846109a09190612074565b6109aa9190612074565b6109b49190612054565b6001546040516340c10f1960e01b8152306004820152602481018390529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610a0157600080fd5b505af1158015610a15573d6000803e3d6000fd5b505050508281670de0b6b3a7640000610a2e9190612074565b610a389190612054565b846003016000828254610a4b919061203c565b90915550504360029094019390935550505050565b600060058281548110610a8357634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600682526040808520338087529352909320805460059093029093018054909450610ac8926001600160a01b03919091169190611b0d565b8054604051908152839033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a360008082556001909101555050565b60055460005b81811015610b3757610b27816108a7565b610b30816120d6565b9050610b16565b5050565b6000546001600160a01b03163314610b655760405162461bcd60e51b81526004016104a190612007565b610b6f6000611b88565b565b6000546001600160a01b03163314610b9b5760405162461bcd60e51b81526004016104a190612007565b8015610ba957610ba9610b10565b600060058581548110610bcc57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016001015490508360058681548110610c0257634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101819055508260058681548110610c3957634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020160040160006101000a81548160ff02191690831515021790555060058581548110610c8257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016007600060058881548110610cb557634e487b7160e01b600052603260045260246000fd5b600091825260208083206005909202909101546001600160a01b0390811684529083019390935260409091019020825481546001600160a01b03191692169190911781556001828101549082015560028083015490820155600380830154908201556004918201549101805460ff909216151560ff19909216919091179055808414610d5f578381600854610d4a9190612093565b610d54919061203c565b600855610d5f61171d565b5050505050565b6000546001600160a01b03163314610d905760405162461bcd60e51b81526004016104a190612007565b6002546001600160a01b031615610de95760405162461bcd60e51b815260206004820181905260248201527f466572726f4661726d3a20666572726f42617220686173206265656e2073657460448201526064016104a1565b6001600160a01b038216610e545760405162461bcd60e51b815260206004820152602c60248201527f466572726f4661726d3a20666572726f4261722073686f756c64206e6f74206260448201526b65206164647265737328302960a01b60648201526084016104a1565b6001600160a01b038116610ec15760405162461bcd60e51b815260206004820152602e60248201527f466572726f4661726d3a20666572726f426f6f73742073686f756c64206e6f7460448201526d206265206164647265737328302960901b60648201526084016104a1565b600280546001600160a01b038481166001600160a01b031992831681179093556003805485831693169290921790915560015460405163095ea7b360e01b815260048101939093526000196024840152169063095ea7b390604401602060405180830381600087803b158015610f3657600080fd5b505af1158015610f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6e9190611e6f565b5060025460035460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b390604401602060405180830381600087803b158015610fc057600080fd5b505af1158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff89190611e6f565b50604080516001600160a01b038085168252831660208201527fe7014cc10d97a541ba81fe15f34d18559a6af65bf7308f26704ab8f511c7ed4b910160405180910390a15050565b6000546001600160a01b0316331461106a5760405162461bcd60e51b81526004016104a190612007565b6001600160a01b03808416600081815260076020526040902054859216908114156110d75760405162461bcd60e51b815260206004820152601960248201527f466572726f4661726d3a206578697374696e6720706f6f6c3f0000000000000060448201526064016104a1565b82156110e5576110e5610b10565b600060095443116110f8576009546110fa565b435b9050866008600082825461110e919061203c565b90915550506040805160a0810182526001600160a01b0380891680835260208084018c81528486018781526000606087018181528d15156080890190815260058054600181810183558286528b51919092027f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db081018054928c166001600160a01b031993841617905587517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db182015586517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015584517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db382015583517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909101805491151560ff1992831617905598855260079097529990922088518154981697909516969096178455915196830196909655945160028201559151600383015592516004919091018054911515919093161790915561128d61171d565b5050505050505050565b6000600583815481106112ba57634e487b7160e01b600052603260045260246000fd5b600091825260208083208684526006825260408085203386529092529220600590910290910191506112eb846108a7565b8054156113875760008160010154670de0b6b3a7640000846003015484600001546113169190612074565b6113209190612054565b61132a9190612093565b90508015611385576040805160a08101825284546001600160a01b031681526001850154602082015260028501549181019190915260038401546060820152600484015460ff16151560808201526113859033908390611839565b505b82156113be5781546113a4906001600160a01b0316333086611bd8565b828160000160008282546113b8919061203c565b90915550505b60038201548154670de0b6b3a7640000916113d891612074565b6113e29190612054565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a350505050565b6000806005848154811061144857634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526006825260408085206001600160a01b03898116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b1580156114be57600080fd5b505afa1580156114d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f69190611edb565b905083600201544311801561150a57508015155b1561157b57600061151f856002015443611b75565b905060006008548660010154600454846115399190612074565b6115439190612074565b61154d9190612054565b90508261156282670de0b6b3a7640000612074565b61156c9190612054565b611576908561203c565b935050505b60018301548354670de0b6b3a764000090611597908590612074565b6115a19190612054565b6115ab9190612093565b979650505050505050565b6000546001600160a01b031633146115e05760405162461bcd60e51b81526004016104a190612007565b6001600160a01b0381166116455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a1565b61164e81611b88565b50565b6000546001600160a01b0316331461167b5760405162461bcd60e51b81526004016104a190612007565b60648111156116e85760405162461bcd60e51b815260206004820152603360248201527f466572726f4661726d3a20757064617465486172766573744c6f636b526174696044820152726f3a206d757374206265206c7465203130302560681b60648201526084016104a1565b600b8190556040518181527f0aef0f02e0170c5ea07fd3b3fe553559b4e32419595ee0bf511b778d37048a499060200161053c565b600554600060015b8281101561177d576005818154811061174e57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101548261176b919061203c565b9150611776816120d6565b9050611725565b508015610b3757600a54611792906064612093565b600a5461179f9083612074565b6117a99190612054565b90508060056000815481106117ce57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101546008546117ed9190612093565b6117f7919061203c565b60088190555080600560008154811061182057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101819055505050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561187d57600080fd5b505afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b59190611edb565b9050808311156118c3578092505b81608001516119585760015460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529091169063a9059cbb90604401602060405180830381600087803b15801561191a57600080fd5b505af115801561192e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119529190611e6f565b50611b07565b60006064600b548561196a9190612074565b6119749190612054565b600254604051635f951eab60e01b8152600481018390529192506000916001600160a01b0390911690635f951eab90602401602060405180830381600087803b1580156119c057600080fd5b505af11580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f89190611edb565b60035460405163481086bf60e11b815260006004820152602481018390526001600160a01b0389811660448301529293509116906390210d7e90606401600060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b50506001546001600160a01b0316915063a9059cbb905087611a858589612093565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611acb57600080fd5b505af1158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b039190611e6f565b5050505b50505050565b6040516001600160a01b038316602482015260448101829052611b7090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c10565b505050565b6000611b818383612093565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b079085906323b872dd60e01b90608401611b39565b6000611c65826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ce29092919063ffffffff16565b805190915015611b705780806020019051810190611c839190611e6f565b611b705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104a1565b6060611cf18484600085611cf9565b949350505050565b606082471015611d5a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104a1565b6001600160a01b0385163b611db15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a1565b600080866001600160a01b03168587604051611dcd9190611fb8565b60006040518083038185875af1925050503d8060008114611e0a576040519150601f19603f3d011682016040523d82523d6000602084013e611e0f565b606091505b50915091506115ab82828660608315611e29575081611b81565b825115611e395782518084602001fd5b8160405162461bcd60e51b81526004016104a19190611fd4565b600060208284031215611e64578081fd5b8135611b8181612107565b600060208284031215611e80578081fd5b8151611b818161211c565b60008060408385031215611e9d578081fd5b8235611ea881612107565b91506020830135611eb881612107565b809150509250929050565b600060208284031215611ed4578081fd5b5035919050565b600060208284031215611eec578081fd5b5051919050565b60008060408385031215611f05578182fd5b823591506020830135611eb881612107565b60008060008060808587031215611f2c578182fd5b843593506020850135611f3e81612107565b92506040850135611f4e8161211c565b91506060850135611f5e8161211c565b939692955090935050565b60008060408385031215611f7b578182fd5b50508035926020909101359150565b60008060008060808587031215611f9f578384fd5b84359350602085013592506040850135611f4e8161211c565b60008251611fca8184602087016120aa565b9190910192915050565b6020815260008251806020840152611ff38160408501602087016120aa565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561204f5761204f6120f1565b500190565b60008261206f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561208e5761208e6120f1565b500290565b6000828210156120a5576120a56120f1565b500390565b60005b838110156120c55781810151838201526020016120ad565b83811115611b075750506000910152565b60006000198214156120ea576120ea6120f1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461164e57600080fd5b801515811461164e57600080fdfea2646970667358221220e2828626572f5f552efaf9eca57483b463c8e26c72a0c42548e5803abb3e548c64736f6c6343000804003300000000000000000000000039bc1e38c842c60775ce37566d03b41a7a66c78200000000000000000000000051c8f1ca3126cfe7fbce7ed8c24ac551a7fae4ae00000000000000000000000000000000000000000000000000000000003050d40000000000000000000000000000000000000000000000027cfd8ecfb66e0000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063ce18117d116100a2578063e73f51c711610071578063e73f51c714610435578063eed403571461043e578063f2fde38b14610451578063fd6676491461046457600080fd5b8063ce18117d146103fe578063d8c6a98c14610407578063e2bbb1581461041a578063e2c95e041461042d57600080fd5b80638da5cb5b116100de5780638da5cb5b1461038057806393f1a40b14610391578063a1230ae9146103d8578063c507aeaa146103eb57600080fd5b8063715018a6146103525780637efd79871461035a5780638cb8c8f01461036d57600080fd5b8063441a3e70116101715780635312ea8e1161014b5780635312ea8e146103075780635bd1e45c1461031a578063630b5ba114610341578063680376fe1461034957600080fd5b8063441a3e70146102d857806348cd4cb1146102eb57806351eb05a6146102f457600080fd5b80630f86c24b116101ad5780630f86c24b146102135780631218c5981461023e5780631526fe27146102bc57806317caf6f1146102cf57600080fd5b8063081e3eda146101d45780630953c8c7146101eb5780630ba84cd214610200575b600080fd5b6005545b6040519081526020015b60405180910390f35b6101fe6101f9366004611ec3565b610477565b005b6101fe61020e366004611ec3565b610547565b600154610226906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b61028861024c366004611e53565b600760205260009081526040902080546001820154600283015460038401546004909401546001600160a01b0390931693919290919060ff1685565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a0016101e2565b6102886102ca366004611ec3565b610690565b6101d860085481565b6101fe6102e6366004611f69565b6106de565b6101d860095481565b6101fe610302366004611ec3565b6108a7565b6101fe610315366004611ec3565b610a60565b6101d87f0000000000000000000000000000000000000000000000027cfd8ecfb66e000081565b6101fe610b10565b6101d8600b5481565b6101fe610b3b565b600354610226906001600160a01b031681565b6101fe61037b366004611f8a565b610b71565b6000546001600160a01b0316610226565b6103c361039f366004611ef3565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101e2565b6101fe6103e6366004611e8b565b610d66565b6101fe6103f9366004611f17565b611040565b6101d860045481565b600254610226906001600160a01b031681565b6101fe610428366004611f69565b611297565b6101d8600081565b6101d8600a5481565b6101d861044c366004611ef3565b611424565b6101fe61045f366004611e53565b6115b6565b6101fe610472366004611ec3565b611651565b6000546001600160a01b031633146104aa5760405162461bcd60e51b81526004016104a190612007565b60405180910390fd5b60328111156104fb5760405162461bcd60e51b815260206004820181905260248201527f466572726f4661726d3a20726174696f206d757374206265206c74652035302560448201526064016104a1565b610503610b10565b600a81905561051061171d565b6040518181527f1494a05c87f048e66e31c8aafb233cb52cca8267cf85d29fc1844f8aaadd0d52906020015b60405180910390a150565b6000546001600160a01b031633146105715760405162461bcd60e51b81526004016104a190612007565b7f0000000000000000000000000000000000000000000000027cfd8ecfb66e00008111156105ed5760405162461bcd60e51b815260206004820152602360248201527f466572726f4661726d3a205f666572506572426c6f636b20697320746f6f20686044820152620d2ced60eb1b60648201526084016104a1565b6004548114156106535760405162461bcd60e51b815260206004820152602b60248201527f466572726f4661726d3a205f666572506572426c6f636b2069732073616d652060448201526a6173206578697374696e6760a81b60648201526084016104a1565b61065b610b10565b60048190556040518181527f232bc60e54c3a684fb69d1cde365a10c51105f4f8ba47a6cd0c5435192010a9c9060200161053c565b600581815481106106a057600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60006005838154811061070157634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600682526040808520338652909252922080546005909202909201925083111561076f5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016104a1565b610778846108a7565b60008160010154670de0b6b3a76400008460030154846000015461079c9190612074565b6107a69190612054565b6107b09190612093565b9050801561080b576040805160a08101825284546001600160a01b031681526001850154602082015260028501549181019190915260038401546060820152600484015460ff161515608082015261080b9033908390611839565b831561084057838260000160008282546108259190612093565b90915550508254610840906001600160a01b03163386611b0d565b60038301548254670de0b6b3a76400009161085a91612074565b6108649190612054565b6001830155604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6000600582815481106108ca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806002015443116108e9575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561092c57600080fd5b505afa158015610940573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109649190611edb565b90508061097657504360029091015550565b6000610986836002015443611b75565b905060006008548460010154600454846109a09190612074565b6109aa9190612074565b6109b49190612054565b6001546040516340c10f1960e01b8152306004820152602481018390529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610a0157600080fd5b505af1158015610a15573d6000803e3d6000fd5b505050508281670de0b6b3a7640000610a2e9190612074565b610a389190612054565b846003016000828254610a4b919061203c565b90915550504360029094019390935550505050565b600060058281548110610a8357634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600682526040808520338087529352909320805460059093029093018054909450610ac8926001600160a01b03919091169190611b0d565b8054604051908152839033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a360008082556001909101555050565b60055460005b81811015610b3757610b27816108a7565b610b30816120d6565b9050610b16565b5050565b6000546001600160a01b03163314610b655760405162461bcd60e51b81526004016104a190612007565b610b6f6000611b88565b565b6000546001600160a01b03163314610b9b5760405162461bcd60e51b81526004016104a190612007565b8015610ba957610ba9610b10565b600060058581548110610bcc57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016001015490508360058681548110610c0257634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101819055508260058681548110610c3957634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020160040160006101000a81548160ff02191690831515021790555060058581548110610c8257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016007600060058881548110610cb557634e487b7160e01b600052603260045260246000fd5b600091825260208083206005909202909101546001600160a01b0390811684529083019390935260409091019020825481546001600160a01b03191692169190911781556001828101549082015560028083015490820155600380830154908201556004918201549101805460ff909216151560ff19909216919091179055808414610d5f578381600854610d4a9190612093565b610d54919061203c565b600855610d5f61171d565b5050505050565b6000546001600160a01b03163314610d905760405162461bcd60e51b81526004016104a190612007565b6002546001600160a01b031615610de95760405162461bcd60e51b815260206004820181905260248201527f466572726f4661726d3a20666572726f42617220686173206265656e2073657460448201526064016104a1565b6001600160a01b038216610e545760405162461bcd60e51b815260206004820152602c60248201527f466572726f4661726d3a20666572726f4261722073686f756c64206e6f74206260448201526b65206164647265737328302960a01b60648201526084016104a1565b6001600160a01b038116610ec15760405162461bcd60e51b815260206004820152602e60248201527f466572726f4661726d3a20666572726f426f6f73742073686f756c64206e6f7460448201526d206265206164647265737328302960901b60648201526084016104a1565b600280546001600160a01b038481166001600160a01b031992831681179093556003805485831693169290921790915560015460405163095ea7b360e01b815260048101939093526000196024840152169063095ea7b390604401602060405180830381600087803b158015610f3657600080fd5b505af1158015610f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6e9190611e6f565b5060025460035460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b390604401602060405180830381600087803b158015610fc057600080fd5b505af1158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff89190611e6f565b50604080516001600160a01b038085168252831660208201527fe7014cc10d97a541ba81fe15f34d18559a6af65bf7308f26704ab8f511c7ed4b910160405180910390a15050565b6000546001600160a01b0316331461106a5760405162461bcd60e51b81526004016104a190612007565b6001600160a01b03808416600081815260076020526040902054859216908114156110d75760405162461bcd60e51b815260206004820152601960248201527f466572726f4661726d3a206578697374696e6720706f6f6c3f0000000000000060448201526064016104a1565b82156110e5576110e5610b10565b600060095443116110f8576009546110fa565b435b9050866008600082825461110e919061203c565b90915550506040805160a0810182526001600160a01b0380891680835260208084018c81528486018781526000606087018181528d15156080890190815260058054600181810183558286528b51919092027f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db081018054928c166001600160a01b031993841617905587517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db182015586517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015584517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db382015583517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909101805491151560ff1992831617905598855260079097529990922088518154981697909516969096178455915196830196909655945160028201559151600383015592516004919091018054911515919093161790915561128d61171d565b5050505050505050565b6000600583815481106112ba57634e487b7160e01b600052603260045260246000fd5b600091825260208083208684526006825260408085203386529092529220600590910290910191506112eb846108a7565b8054156113875760008160010154670de0b6b3a7640000846003015484600001546113169190612074565b6113209190612054565b61132a9190612093565b90508015611385576040805160a08101825284546001600160a01b031681526001850154602082015260028501549181019190915260038401546060820152600484015460ff16151560808201526113859033908390611839565b505b82156113be5781546113a4906001600160a01b0316333086611bd8565b828160000160008282546113b8919061203c565b90915550505b60038201548154670de0b6b3a7640000916113d891612074565b6113e29190612054565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a350505050565b6000806005848154811061144857634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526006825260408085206001600160a01b03898116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b1580156114be57600080fd5b505afa1580156114d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f69190611edb565b905083600201544311801561150a57508015155b1561157b57600061151f856002015443611b75565b905060006008548660010154600454846115399190612074565b6115439190612074565b61154d9190612054565b90508261156282670de0b6b3a7640000612074565b61156c9190612054565b611576908561203c565b935050505b60018301548354670de0b6b3a764000090611597908590612074565b6115a19190612054565b6115ab9190612093565b979650505050505050565b6000546001600160a01b031633146115e05760405162461bcd60e51b81526004016104a190612007565b6001600160a01b0381166116455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a1565b61164e81611b88565b50565b6000546001600160a01b0316331461167b5760405162461bcd60e51b81526004016104a190612007565b60648111156116e85760405162461bcd60e51b815260206004820152603360248201527f466572726f4661726d3a20757064617465486172766573744c6f636b526174696044820152726f3a206d757374206265206c7465203130302560681b60648201526084016104a1565b600b8190556040518181527f0aef0f02e0170c5ea07fd3b3fe553559b4e32419595ee0bf511b778d37048a499060200161053c565b600554600060015b8281101561177d576005818154811061174e57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101548261176b919061203c565b9150611776816120d6565b9050611725565b508015610b3757600a54611792906064612093565b600a5461179f9083612074565b6117a99190612054565b90508060056000815481106117ce57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101546008546117ed9190612093565b6117f7919061203c565b60088190555080600560008154811061182057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101819055505050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561187d57600080fd5b505afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b59190611edb565b9050808311156118c3578092505b81608001516119585760015460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529091169063a9059cbb90604401602060405180830381600087803b15801561191a57600080fd5b505af115801561192e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119529190611e6f565b50611b07565b60006064600b548561196a9190612074565b6119749190612054565b600254604051635f951eab60e01b8152600481018390529192506000916001600160a01b0390911690635f951eab90602401602060405180830381600087803b1580156119c057600080fd5b505af11580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f89190611edb565b60035460405163481086bf60e11b815260006004820152602481018390526001600160a01b0389811660448301529293509116906390210d7e90606401600060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b50506001546001600160a01b0316915063a9059cbb905087611a858589612093565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611acb57600080fd5b505af1158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b039190611e6f565b5050505b50505050565b6040516001600160a01b038316602482015260448101829052611b7090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c10565b505050565b6000611b818383612093565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b079085906323b872dd60e01b90608401611b39565b6000611c65826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ce29092919063ffffffff16565b805190915015611b705780806020019051810190611c839190611e6f565b611b705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104a1565b6060611cf18484600085611cf9565b949350505050565b606082471015611d5a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104a1565b6001600160a01b0385163b611db15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a1565b600080866001600160a01b03168587604051611dcd9190611fb8565b60006040518083038185875af1925050503d8060008114611e0a576040519150601f19603f3d011682016040523d82523d6000602084013e611e0f565b606091505b50915091506115ab82828660608315611e29575081611b81565b825115611e395782518084602001fd5b8160405162461bcd60e51b81526004016104a19190611fd4565b600060208284031215611e64578081fd5b8135611b8181612107565b600060208284031215611e80578081fd5b8151611b818161211c565b60008060408385031215611e9d578081fd5b8235611ea881612107565b91506020830135611eb881612107565b809150509250929050565b600060208284031215611ed4578081fd5b5035919050565b600060208284031215611eec578081fd5b5051919050565b60008060408385031215611f05578182fd5b823591506020830135611eb881612107565b60008060008060808587031215611f2c578182fd5b843593506020850135611f3e81612107565b92506040850135611f4e8161211c565b91506060850135611f5e8161211c565b939692955090935050565b60008060408385031215611f7b578182fd5b50508035926020909101359150565b60008060008060808587031215611f9f578384fd5b84359350602085013592506040850135611f4e8161211c565b60008251611fca8184602087016120aa565b9190910192915050565b6020815260008251806020840152611ff38160408501602087016120aa565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561204f5761204f6120f1565b500190565b60008261206f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561208e5761208e6120f1565b500290565b6000828210156120a5576120a56120f1565b500390565b60005b838110156120c55781810151838201526020016120ad565b83811115611b075750506000910152565b60006000198214156120ea576120ea6120f1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461164e57600080fd5b801515811461164e57600080fdfea2646970667358221220e2828626572f5f552efaf9eca57483b463c8e26c72a0c42548e5803abb3e548c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000039bc1e38c842c60775ce37566d03b41a7a66c78200000000000000000000000051c8f1ca3126cfe7fbce7ed8c24ac551a7fae4ae00000000000000000000000000000000000000000000000000000000003050d40000000000000000000000000000000000000000000000027cfd8ecfb66e0000
-----Decoded View---------------
Arg [0] : _fer (address): 0x39bC1e38c842C60775Ce37566D03B41A7A66C782
Arg [1] : _ferroBoostDepositToken (address): 0x51c8F1Ca3126CFE7fBCE7eD8c24ac551a7FAe4aE
Arg [2] : _startBlock (uint256): 3166420
Arg [3] : _ferPerBlock (uint256): 45900000000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000039bc1e38c842c60775ce37566d03b41a7a66c782
Arg [1] : 00000000000000000000000051c8f1ca3126cfe7fbce7ed8c24ac551a7fae4ae
Arg [2] : 00000000000000000000000000000000000000000000000000000000003050d4
Arg [3] : 0000000000000000000000000000000000000000000000027cfd8ecfb66e0000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
CRONOS | 100.00% | $0.003692 | 130,748,335.9216 | $482,704.55 |
[ 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.