Source Code
Latest 25 from a total of 16,267 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit All | 31229527 | 1 hr ago | IN | 0 FRAX | 0.00001998 | ||||
| Deposit All | 31224689 | 4 hrs ago | IN | 0 FRAX | 0.00000476 | ||||
| Deposit All | 31196507 | 19 hrs ago | IN | 0 FRAX | 0.00000716 | ||||
| Deposit All | 31151377 | 44 hrs ago | IN | 0 FRAX | 0.00000544 | ||||
| Deposit All | 31149583 | 45 hrs ago | IN | 0 FRAX | 0.00000619 | ||||
| Deposit All | 31117641 | 2 days ago | IN | 0 FRAX | 0.00000393 | ||||
| Deposit All | 31117531 | 2 days ago | IN | 0 FRAX | 0.00000326 | ||||
| Deposit All | 31117265 | 2 days ago | IN | 0 FRAX | 0.00000326 | ||||
| Deposit All | 31109724 | 2 days ago | IN | 0 FRAX | 0.00001111 | ||||
| Deposit All | 31107435 | 2 days ago | IN | 0 FRAX | 0.00008359 | ||||
| Deposit All | 31106083 | 2 days ago | IN | 0 FRAX | 0.000014 | ||||
| Deposit All | 31094052 | 3 days ago | IN | 0 FRAX | 0.00001966 | ||||
| Deposit All | 31088198 | 3 days ago | IN | 0 FRAX | 0.00000877 | ||||
| Deposit All | 31069535 | 3 days ago | IN | 0 FRAX | 0.00001145 | ||||
| Deposit All | 31066867 | 3 days ago | IN | 0 FRAX | 0.00000425 | ||||
| Deposit All | 31035189 | 4 days ago | IN | 0 FRAX | 0.00000327 | ||||
| Deposit All | 31020224 | 4 days ago | IN | 0 FRAX | 0.000005 | ||||
| Deposit All | 31010867 | 5 days ago | IN | 0 FRAX | 0.00000692 | ||||
| Deposit All | 31001583 | 5 days ago | IN | 0 FRAX | 0.00000422 | ||||
| Deposit All | 30995637 | 5 days ago | IN | 0 FRAX | 0.00000322 | ||||
| Deposit All | 30987991 | 5 days ago | IN | 0 FRAX | 0.00000627 | ||||
| Deposit All | 30977552 | 5 days ago | IN | 0 FRAX | 0.00000292 | ||||
| Deposit All | 30956795 | 6 days ago | IN | 0 FRAX | 0.0000033 | ||||
| Deposit All | 30956487 | 6 days ago | IN | 0 FRAX | 0.00000342 | ||||
| Deposit All | 30948026 | 6 days ago | IN | 0 FRAX | 0.00000349 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Booster
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "./interfaces/IRewards.sol";
import "./interfaces/IRewardFactory.sol";
import "./interfaces/IStaker.sol";
import "./interfaces/IFeeDistro.sol";
import "./interfaces/IPoolFactory.sol";
import "./interfaces/IRewardManager.sol";
import "./interfaces/ITokenMinter.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/*
This is the main contract which will have operator role on the VoterProxy.
Handles pool creation, deposits/withdraws, as well as other managment functions like factories/managers/fees
*/
contract Booster is ReentrancyGuard{
using SafeERC20 for IERC20;
uint256 public fees = 1700; //platform fees
uint256 public constant MaxFees = 2500; //hard code max fees
uint256 public constant FEE_DENOMINATOR = 10000;
address public owner; //owner
address public pendingOwner; //pending owner
address public poolManager; //add and shutdown pools
address public mintManager; //mint tokens that voteproxy has ownership of
address public rescueManager; //specific role just for pulling non-lp/gauge tokens from voterproxy
address public rewardManager; //controls rewards
address public immutable staker; //voter proxy
address public rewardFactory; //factory for creating main reward/staking pools
address public feeDeposit; //address where fees are accumulated
bool public isShutdown; //flag if booster is shutdown or not
struct PoolInfo {
address lptoken; //the curve lp token
address gauge; //the curve gauge
address rewards; //the main reward/staking contract
bool shutdown; //is this pool shutdown?
address factory; //a reference to the curve factory used to create this pool (needed for minting crv)
}
PoolInfo[] public poolInfo;//list of convex pools, index(pid) -> pool
mapping(address => address) public factoryCrv;//map defining CRV token used by a Curve factory
mapping(address => bool) public activeMap;//map defining if a curve gauge/lp token is already being used or not
mapping(uint256 => uint256) public shutdownBalances; //lp balances of a shutdown pool, index(pid) -> lp balance
event Deposited(address indexed user, uint256 indexed poolid, uint256 amount);
event Withdrawn(address indexed user, uint256 indexed poolid, uint256 amount);
event SetPendingOwner(address indexed _address);
event OwnerChanged(address indexed _address);
event CrvFactorySet(address indexed _factory, address _crv);
event FeesChanged(uint256 _fees);
event FeeDepositChanged(address _feedeposit);
constructor(address _staker) {
isShutdown = false;
staker = _staker;
owner = msg.sender;
poolManager = msg.sender;
mintManager = msg.sender;
rescueManager = msg.sender;
}
function _proxyCall(address _to, bytes memory _data) internal{
(bool success,) = IStaker(staker).execute(_to,uint256(0),_data);
require(success, "Proxy Call Fail");
}
/// SETTER SECTION ///
//set next pending owner. owner must accept
function setPendingOwner(address _po) external {
require(msg.sender == owner, "!auth");
pendingOwner = _po;
emit SetPendingOwner(_po);
}
//claim ownership
function acceptPendingOwner() external {
require(msg.sender == pendingOwner, "!p_owner");
owner = pendingOwner;
pendingOwner = address(0);
emit OwnerChanged(owner);
}
//set CRV token address used by a specific Curve pool factory.
//While CRV could be set as immutable, there is no guarantee that a side chain token won't be changed.
//(for example a new/different bridge platform is used)
function setFactoryCrv(address _factory, address _crv) external {
require(msg.sender == owner, "!auth");
require(_factory != address(0) && _crv != address(0), "invalid");
factoryCrv[_factory] = _crv;
emit CrvFactorySet(_factory, _crv);
}
//set a pool manager
//note: only the pool manager can relinquish control
function setPoolManager(address _poolM) external {
require(msg.sender == poolManager, "!auth");
require(_poolM != address(0),"invalid address");
poolManager = _poolM;
}
//set a mint manager
//note: only the mint manager can relinquish control
function setMintManager(address _mintM) external {
require(msg.sender == mintManager, "!auth");
require(_mintM != address(0),"invalid address");
mintManager = _mintM;
}
//set a rescue manager for tokens
//set by owner. separate role though in case something needs to be streamlined like claiming outside rewards.
function setRescueManager(address _rescueM) external {
require(msg.sender == owner, "!auth");
rescueManager = _rescueM;
}
//set reward manager
//can add extra rewards and reward hooks on pools
function setRewardManager(address _rewardM) external {
require(msg.sender == owner, "!auth");
require(IRewardManager(_rewardM).rewardHook() != address(0), "!no hook");
require(IRewardManager(_rewardM).cvx() != address(0), "!no cvx");
rewardManager = _rewardM;
}
//set factories used when deploying new reward/token contracts
function setRewardFactory(address _rfactory) external {
require(msg.sender == owner, "!auth");
require(rewardFactory == address(0), "sealed");
rewardFactory = _rfactory;
}
//set address that receives platform fees
function setFeeDeposit(address _deposit) external {
require(msg.sender == owner, "!auth");
feeDeposit = _deposit;
emit FeeDepositChanged(_deposit);
}
//set platform fees
function setFees(uint256 _platformFees) external{
require(msg.sender == owner, "!auth");
require(_platformFees <= MaxFees, ">MaxFees");
fees = _platformFees;
emit FeesChanged(_platformFees);
}
//rescue a token from the voter proxy
//token must not be an lp or gauge token
function rescueToken(address _token, address _to) external{
require(msg.sender==rescueManager, "!auth");
IStaker(staker).rescue(_token, _to);
}
function setTokenMinterOperator(address _token, address _minter, bool _active) external{
require(msg.sender==mintManager, "!auth");
bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setOperator(address,bool)")), _minter, _active);
_proxyCall(_token, data);
}
/// END SETTER SECTION ///
//get pool count
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
//create a new pool
function addPool(address _lptoken, address _gauge, address _factory) external nonReentrant returns(bool){
//only manager
require(msg.sender==poolManager && !isShutdown, "!add");
//basic checks
require(_gauge != address(0) && _lptoken != address(0) && _factory != address(0),"!param");
//crv check
require(factoryCrv[_factory] != address(0), "!crv");
//an unused pool
require(!activeMap[_gauge] && !activeMap[_lptoken],"already reg");
//check that the given factory is indeed tied with the gauge
require(IPoolFactory(_factory).is_valid_gauge(_gauge),"!factory gauge");
//the next pool's pid
uint256 pid = poolInfo.length;
//create a reward contract for rewards
address newRewardPool = IRewardFactory(rewardFactory).CreateMainRewards(factoryCrv[_factory],_gauge,_lptoken,pid);
//add the new pool
poolInfo.push(
PoolInfo({
lptoken: _lptoken,
gauge: _gauge,
rewards: newRewardPool,
shutdown: false,
factory: _factory
})
);
//set gauge as being used
activeMap[_gauge] = true;
//also set the lp token as used
activeMap[_lptoken] = true;
//set gauge redirect
setGaugeRedirect(_gauge, newRewardPool);
return true;
}
//shutdown pool, only call from pool manager
function shutdownPool(uint256 _pid) external nonReentrant returns(bool){
require(msg.sender==poolManager, "!auth");
return _shutdownPool(_pid);
}
//shutdown pool internal call
function _shutdownPool(uint256 _pid) internal returns(bool){
PoolInfo storage pool = poolInfo[_pid];
if(pool.shutdown){
//already shut down
return false;
}
uint256 lpbalance = IERC20(pool.lptoken).balanceOf(address(this));
//withdraw from gauge
try IStaker(staker).withdrawAll(pool.lptoken,pool.gauge){
}catch{}
//lp difference
lpbalance = IERC20(pool.lptoken).balanceOf(address(this)) - lpbalance;
//record how many lp tokens were returned
//this is important to prevent a fake gauge attack which inflates deposit tokens
//in order to withdraw another pool's legitamate lp tokens
shutdownBalances[_pid] = lpbalance;
//flag pool as shutdown
pool.shutdown = true;
//reset active map
activeMap[pool.gauge] = false;
activeMap[pool.lptoken] = false;
return true;
}
//shutdown this contract.
// unstake and pull all lp tokens to this address
// only allow withdrawals
function shutdownSystem() external nonReentrant{
require(msg.sender == owner, "!auth");
//remove pool manager while shutting down so that no new pools can be added during the loop
address currentPoolManager = poolManager;
poolManager = address(0);
//shutdown all pools.
//gas cost could grow too large to do all, in which case individual pools should be shutdown first
for(uint i=0; i < poolInfo.length; i++){
_shutdownPool(i);
}
//flag system as shutdown at the end
isShutdown = true;
//revert pool manager
poolManager = currentPoolManager;
}
//deposit lp tokens and stake
function deposit(uint256 _pid, uint256 _amount) public nonReentrant returns(bool){
require(!isShutdown,"shutdown");
PoolInfo storage pool = poolInfo[_pid];
require(pool.shutdown == false, "pool is closed");
//send to proxy to stake
address lptoken = pool.lptoken;
IERC20(lptoken).safeTransferFrom(msg.sender, staker, _amount);
//stake
address gauge = pool.gauge;
require(gauge != address(0),"!gauge setting");
IStaker(staker).deposit(lptoken,gauge,_amount);
//mint reward tokens for user
IRewards(pool.rewards).stakeFor(msg.sender,_amount);
emit Deposited(msg.sender, _pid, _amount);
return true;
}
//deposit all lp tokens and stake
function depositAll(uint256 _pid) external returns(bool){
address lptoken = poolInfo[_pid].lptoken;
uint256 balance = IERC20(lptoken).balanceOf(msg.sender);
deposit(_pid,balance);
return true;
}
//withdraw lp tokens
function _withdraw(uint256 _pid, uint256 _amount, address _to) internal {
PoolInfo storage pool = poolInfo[_pid];
address lptoken = pool.lptoken;
address gauge = pool.gauge;
//pull from gauge if not shutdown
if (!pool.shutdown) {
//get prev balance to double check difference
uint256 lpbalance = IERC20(lptoken).balanceOf(address(this));
//because of activeMap, a gauge and its lp token can only be assigned to a single unique pool
//thus claims for withdraw here are enforced to be the correct pair
IStaker(staker).withdraw(lptoken, gauge, _amount);
//also check that the amount returned was correct
//which will safegaurd pools that have been shutdown
require(IERC20(lptoken).balanceOf(address(this)) - lpbalance >= _amount, "withdraw amount fail");
}else{
//if shutdown, tokens will be held in this contract
//remove from shutdown balances. revert if not enough
//would only revert if something was wrong with the pool
//and shutdown didnt return lp tokens
//thus this is a catch to stop other pools with same lp token from
//being affected
shutdownBalances[_pid] -= _amount;
}
//return lp tokens
IERC20(lptoken).safeTransfer(_to, _amount);
emit Withdrawn(_to, _pid, _amount);
}
//allow reward contracts to withdraw directly to user
function withdrawTo(uint256 _pid, uint256 _amount, address _to) external nonReentrant returns(bool){
//require sender to be the reward contract for a given pool
address rewardContract = poolInfo[_pid].rewards;
require(msg.sender == rewardContract,"!auth");
//trust is on the reward contract to properly bookkeep deposit token balance
//since the reward contract is now the deposit token itself
_withdraw(_pid,_amount,_to);
return true;
}
//claim crv for a pool from the pool's factory and send to rewards
function claimCrv(uint256 _pid, address _gauge) external {
//can only be called by the pool's reward contract
address rewardContract = poolInfo[_pid].rewards;
require(msg.sender == rewardContract,"!auth");
//only claim if the pool isnt shutdown, but no need to revert
if(!poolInfo[_pid].shutdown){
//claim crv and redirect to the reward contract
address _factory = poolInfo[_pid].factory;
IStaker(staker).claimCrv(factoryCrv[_factory], _factory, _gauge, rewardContract);
}
}
//set a gauge's redirect setting to claim extra rewards directly to a reward contract
//instead of being pulled to the voterproxy/staker contract
function setGaugeRedirect(address _gauge, address _rewards) internal returns(bool){
bytes memory data = abi.encodeWithSelector(bytes4(keccak256("set_rewards_receiver(address)")), _rewards);
_proxyCall(_gauge, data);
return true;
}
//given an amount of crv, calculate fees
function calculatePlatformFees(uint256 _amount) external view returns(uint256){
uint256 _fees = _amount * fees / FEE_DENOMINATOR;
return _fees;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface ITokenMinter{
function mint(address,uint256) external;
function burn(address,uint256) external;
function setOperator(address _operator, bool _valid) external;
function revokeOwnership() external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IStaker{
function deposit(address _lp, address _gauge, uint256 _amount) external;
function rescue(address _token, address _to) external;
function withdraw(address, address, uint256) external;
function withdrawAll(address, address) external;
function createLock(uint256, uint256) external;
function increaseAmount(uint256) external;
function increaseTime(uint256) external;
function release() external;
function claimRewards(address) external;
function claimFees(address,address) external;
function claimCrv(address _crv, address _minter, address _gauge, address _to) external;
function setStashAccess(address, bool) external;
function vote(uint256,address,bool) external;
function voteGaugeWeight(address,uint256) external;
function balanceOfPool(address) external view returns (uint256);
function operator() external view returns (address);
function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IRewards{
function stake(address, uint256) external;
function stakeFor(address, uint256) external;
function withdraw(address, uint256) external;
function setWeight(address _pool, uint256 _amount) external returns(bool);
function setWeights(address[] calldata _account, uint256[] calldata _amount) external;
function setDistributor(address _distro, bool _valid) external;
function getReward(address) external;
function queueNewRewards(uint256) external;
function addExtraReward(address) external;
function invalidateReward(address _token) external;
function setRewardHook(address) external;
function user_checkpoint(address _account) external returns(bool);
function rewardToken() external view returns(address);
function rewardMap(address) external view returns(bool);
function earned(address account) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IRewardManager {
function rewardHook() external view returns(address);
function cvx() external view returns(address);
function setPoolRewardToken(address _pool, address _token) external;
function setPoolRewardContract(address _pool, address _hook, address _token) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IRewardFactory{
function CreateMainRewards(address _crv, address _gauge, address _depositToken, uint256 _pid) external returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IPoolFactory {
function is_valid_gauge(address) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IFeeDistro {
function processFees() external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(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
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
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 `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_factory","type":"address"},{"indexed":false,"internalType":"address","name":"_crv","type":"address"}],"name":"CrvFactorySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_feedeposit","type":"address"}],"name":"FeeDepositChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fees","type":"uint256"}],"name":"FeesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"activeMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lptoken","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"address","name":"_factory","type":"address"}],"name":"addPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePlatformFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_gauge","type":"address"}],"name":"claimCrv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"depositAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"factoryCrv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDeposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isShutdown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"address","name":"lptoken","type":"address"},{"internalType":"address","name":"gauge","type":"address"},{"internalType":"address","name":"rewards","type":"address"},{"internalType":"bool","name":"shutdown","type":"bool"},{"internalType":"address","name":"factory","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rescueManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_crv","type":"address"}],"name":"setFactoryCrv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_deposit","type":"address"}],"name":"setFeeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_platformFees","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintM","type":"address"}],"name":"setMintManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_poolM","type":"address"}],"name":"setPoolManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rescueM","type":"address"}],"name":"setRescueManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rfactory","type":"address"}],"name":"setRewardFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardM","type":"address"}],"name":"setRewardManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setTokenMinterOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shutdownBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"shutdownPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdownSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040526106a46001553480156200001757600080fd5b5060405162002770380380620027708339810160408190526200003a9162000094565b60016000556009805460ff60a01b191690556001600160a01b031660805260028054336001600160a01b031991821681179092556004805482168317905560058054821683179055600680549091169091179055620000c6565b600060208284031215620000a757600080fd5b81516001600160a01b0381168114620000bf57600080fd5b9392505050565b60805161265d62000113600039600081816103a601528181610a1c01528181610b730152818161174f015281816117ee015281816119e601528181611c6c0152611db9015261265d6000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80637e4edf7011610130578063abca7290116100b8578063d8002c721161007c578063d8002c7214610516578063db52f3e514610529578063dc4c90d31461054c578063e2bbb1581461055f578063e30c39781461057257600080fd5b8063abca7290146104c0578063bf86d690146104d3578063c42069ec146104e7578063c6f678bd146104fa578063d73792a91461050d57600080fd5b80639af1d35a116100ff5780639af1d35a1461046b5780639d673ca3146104745780639ec1325b14610487578063a391d4b81461049a578063aba65098146104ad57600080fd5b80637e4edf701461042a5780638830eac01461043d5780638da5cb5b1461045057806399f4a3891461046357600080fd5b80633a0e5e10116101be57806360cafe841161018257806360cafe84146103c85780636bef2276146103db5780637303df9a146103fb5780637a883d6e146104045780637aef67151461041757600080fd5b80633a0e5e10146103555780633d18678e146103685780634707d0001461037b5780635e97358f1461038e5780635ebaf1db146103a157600080fd5b8063153ee55411610205578063153ee554146102e957806319d695e0146102fe578063245e4bf01461031157806325e5fd3d14610324578063354af9191461034d57600080fd5b8063081e3eda146102375780630f4ef8a61461024e57806314cd70e4146102795780631526fe271461029c575b600080fd5b600a545b6040519081526020015b60405180910390f35b600754610261906001600160a01b031681565b6040516001600160a01b039091168152602001610245565b61028c6102873660046121d2565b610585565b6040519015158152602001610245565b6102af6102aa36600461220b565b610628565b604080516001600160a01b03968716815294861660208601529285169284019290925215156060830152909116608082015260a001610245565b6102fc6102f7366004612224565b61067f565b005b61023b61030c36600461220b565b610828565b600854610261906001600160a01b031681565b610261610332366004612224565b600b602052600090815260409020546001600160a01b031681565b6102fc61084d565b6102fc610363366004612241565b61091f565b6102fc61037636600461220b565b610a7f565b6102fc610389366004612271565b610b22565b600654610261906001600160a01b031681565b6102617f000000000000000000000000000000000000000000000000000000000000000081565b61028c6103d636600461220b565b610bd3565b61023b6103e936600461220b565b600d6020526000908152604090205481565b61023b6109c481565b6102fc610412366004612224565b610c3b565b6102fc610425366004612224565b610cb3565b600554610261906001600160a01b031681565b6102fc61044b366004612224565b610d47565b600254610261906001600160a01b031681565b6102fc610ddb565b61023b60015481565b6102fc6104823660046122ad565b610e74565b6102fc610495366004612271565b610ef9565b6102fc6104a8366004612224565b610fe0565b61028c6104bb3660046122ed565b61102c565b600954610261906001600160a01b031681565b60095461028c90600160a01b900460ff1681565b6102fc6104f5366004612224565b6114ae565b61028c61050836600461220b565b611522565b61023b61271081565b6102fc610524366004612224565b6115cb565b61028c610537366004612224565b600c6020526000908152604090205460ff1681565b600454610261906001600160a01b031681565b61028c61056d36600461232d565b611659565b600354610261906001600160a01b031681565b6000600260005414156105b35760405162461bcd60e51b81526004016105aa9061234f565b60405180910390fd5b60026000908155600a8054869081106105ce576105ce612386565b60009182526020909120600260049092020101546001600160a01b0316905033811461060c5760405162461bcd60e51b81526004016105aa9061239c565b6106178585856118f9565b600191505060016000559392505050565b600a818154811061063857600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0392831694509082169282811692600160a01b90910460ff16911685565b6002546001600160a01b031633146106a95760405162461bcd60e51b81526004016105aa9061239c565b60006001600160a01b0316816001600160a01b03166344214ecf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071691906123bb565b6001600160a01b031614156107585760405162461bcd60e51b8152602060048201526008602482015267216e6f20686f6f6b60c01b60448201526064016105aa565b60006001600160a01b0316816001600160a01b031663923c1d616040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c591906123bb565b6001600160a01b031614156108065760405162461bcd60e51b8152602060048201526007602482015266042dcde40c6ecf60cb1b60448201526064016105aa565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000806127106001548461083c91906123ee565b610846919061240d565b9392505050565b600260005414156108705760405162461bcd60e51b81526004016105aa9061234f565b60026000819055546001600160a01b0316331461089f5760405162461bcd60e51b81526004016105aa9061239c565b600480546001600160a01b031981169091556001600160a01b031660005b600a548110156108e3576108d081611b89565b50806108db8161242f565b9150506108bd565b506009805460ff60a01b1916600160a01b179055600480546001600160a01b039092166001600160a01b03199092169190911790556001600055565b6000600a838154811061093457610934612386565b60009182526020909120600260049092020101546001600160a01b031690503381146109725760405162461bcd60e51b81526004016105aa9061239c565b600a838154811061098557610985612386565b906000526020600020906004020160020160149054906101000a900460ff16610a7a576000600a84815481106109bd576109bd612386565b60009182526020808320600492830201600301546001600160a01b03908116808552600b90925260409384902054935163030e463560e51b815293811692840192909252602483018190528582166044840152848216606484015292507f000000000000000000000000000000000000000000000000000000000000000016906361c8c6a090608401600060405180830381600087803b158015610a6057600080fd5b505af1158015610a74573d6000803e3d6000fd5b50505050505b505050565b6002546001600160a01b03163314610aa95760405162461bcd60e51b81526004016105aa9061239c565b6109c4811115610ae65760405162461bcd60e51b81526020600482015260086024820152673e4d61784665657360c01b60448201526064016105aa565b60018190556040518181527f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f822906020015b60405180910390a150565b6006546001600160a01b03163314610b4c5760405162461bcd60e51b81526004016105aa9061239c565b604051634fdf5d1d60e01b81526001600160a01b03838116600483015282811660248301527f00000000000000000000000000000000000000000000000000000000000000001690634fdf5d1d90604401600060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b505050505050565b600060026000541415610bf85760405162461bcd60e51b81526004016105aa9061234f565b60026000556004546001600160a01b03163314610c275760405162461bcd60e51b81526004016105aa9061239c565b610c3082611b89565b600160005592915050565b6002546001600160a01b03163314610c655760405162461bcd60e51b81526004016105aa9061239c565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f2808ed6e855ef423013f297c468906139ac31c60cec2a0ccdc3fa0ffbd91a0cf90602001610b17565b6004546001600160a01b03163314610cdd5760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b038116610d255760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016105aa565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610d715760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b038116610db95760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016105aa565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314610e205760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016105aa565b60038054600280546001600160a01b0383166001600160a01b031991821681179092559091169091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a2565b6005546001600160a01b03163314610e9e5760405162461bcd60e51b81526004016105aa9061239c565b604080516001600160a01b03841660248201528215156044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663558a729760e01b179052610ef38482611d9f565b50505050565b6002546001600160a01b03163314610f235760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b03821615801590610f4357506001600160a01b03811615155b610f795760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b60448201526064016105aa565b6001600160a01b038281166000818152600b602090815260409182902080546001600160a01b0319169486169485179055905192835290917fa965d04d140c5f07ee83a52659c53e3db66ac55a42eef85773012ac9622e6ea2910160405180910390a25050565b6002546001600160a01b0316331461100a5760405162461bcd60e51b81526004016105aa9061239c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260005414156110515760405162461bcd60e51b81526004016105aa9061234f565b60026000556004546001600160a01b03163314801561107a5750600954600160a01b900460ff16155b6110af5760405162461bcd60e51b81526004016105aa906020808252600490820152630858591960e21b604082015260600190565b6001600160a01b038316158015906110cf57506001600160a01b03841615155b80156110e357506001600160a01b03821615155b6111185760405162461bcd60e51b815260206004820152600660248201526521706172616d60d01b60448201526064016105aa565b6001600160a01b038281166000908152600b6020526040902054166111685760405162461bcd60e51b81526004016105aa9060208082526004908201526310b1b93b60e11b604082015260600190565b6001600160a01b0383166000908152600c602052604090205460ff161580156111aa57506001600160a01b0384166000908152600c602052604090205460ff16155b6111e45760405162461bcd60e51b815260206004820152600b60248201526a616c72656164792072656760a81b60448201526064016105aa565b604051634b92037960e01b81526001600160a01b038481166004830152831690634b92037990602401602060405180830381865afa15801561122a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124e919061244a565b61128b5760405162461bcd60e51b815260206004820152600e60248201526d21666163746f727920676175676560901b60448201526064016105aa565b600a546008546001600160a01b038481166000908152600b602052604080822054905163a261fd7b60e01b8152908316600482015287831660248201528883166044820152606481018590529092919091169063a261fd7b906084016020604051808303816000875af1158015611306573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132a91906123bb565b6040805160a0810182526001600160a01b03808a1680835289821660208085018281528488168688019081526000606088018181528e881660808a01908152600a8054600181810183559185529a516004909b027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8810180549c8c166001600160a01b03199d8e1617905595517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a987018054918c16918d1691909117905593517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa8601805493511515600160a01b026001600160a81b0319909416918b169190911792909217909155517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab9093018054939097169290971691909117909455908452600c9052838320805460ff199081168417909155908352929091208054909216179055905061149b8582611e7b565b5060019250505060016000559392505050565b6002546001600160a01b031633146114d85760405162461bcd60e51b81526004016105aa9061239c565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b600080600a838154811061153857611538612386565b600091825260208220600491820201546040516370a0823160e01b815233928101929092526001600160a01b0316925082906370a0823190602401602060405180830381865afa158015611590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b49190612467565b90506115c08482611659565b506001949350505050565b6002546001600160a01b031633146115f55760405162461bcd60e51b81526004016105aa9061239c565b6008546001600160a01b0316156116375760405162461bcd60e51b81526020600482015260066024820152651cd9585b195960d21b60448201526064016105aa565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006002600054141561167e5760405162461bcd60e51b81526004016105aa9061234f565b6002600055600954600160a01b900460ff16156116c85760405162461bcd60e51b815260206004820152600860248201526739b43aba3237bbb760c11b60448201526064016105aa565b6000600a84815481106116dd576116dd612386565b600091825260209091206004909102016002810154909150600160a01b900460ff161561173d5760405162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081a5cc818db1bdcd95960921b60448201526064016105aa565b80546001600160a01b031661177481337f000000000000000000000000000000000000000000000000000000000000000087611ed5565b60018201546001600160a01b0316806117c05760405162461bcd60e51b815260206004820152600e60248201526d2167617567652073657474696e6760901b60448201526064016105aa565b604051638340f54960e01b81526001600160a01b0383811660048301528281166024830152604482018790527f00000000000000000000000000000000000000000000000000000000000000001690638340f54990606401600060405180830381600087803b15801561183257600080fd5b505af1158015611846573d6000803e3d6000fd5b5050505060028301546040516305dc812160e31b8152336004820152602481018790526001600160a01b0390911690632ee4090890604401600060405180830381600087803b15801561189857600080fd5b505af11580156118ac573d6000803e3d6000fd5b50506040518781528892503391507f73a19dd210f1a7f902193214c0ee91dd35ee5b4d920cba8d519eca65a7b488ca9060200160405180910390a360019350505050600160005592915050565b6000600a848154811061190e5761190e612386565b600091825260209091206004909102018054600182015460028301549293506001600160a01b0391821692911690600160a01b900460ff16611b05576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b59190612467565b604051636ce5768960e11b81526001600160a01b0385811660048301528481166024830152604482018990529192507f00000000000000000000000000000000000000000000000000000000000000009091169063d9caed1290606401600060405180830381600087803b158015611a2c57600080fd5b505af1158015611a40573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528892508391506001600160a01b038616906370a0823190602401602060405180830381865afa158015611a8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab09190612467565b611aba9190612480565b1015611aff5760405162461bcd60e51b81526020600482015260146024820152731dda5d1a191c985dc8185b5bdd5b9d0819985a5b60621b60448201526064016105aa565b50611b29565b6000868152600d602052604081208054879290611b23908490612480565b90915550505b611b3d6001600160a01b0383168587611f40565b85846001600160a01b03167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc687604051611b7991815260200190565b60405180910390a3505050505050565b600080600a8381548110611b9f57611b9f612386565b906000526020600020906004020190508060020160149054906101000a900460ff1615611bcf5750600092915050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3b9190612467565b825460018401546040516301395c5960e31b81526001600160a01b03928316600482015290821660248201529192507f000000000000000000000000000000000000000000000000000000000000000016906309cae2c890604401600060405180830381600087803b158015611cb057600080fd5b505af1925050508015611cc1575060015b5081546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611d09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2d9190612467565b611d379190612480565b6000948552600d602090815260408087209290925560028401805460ff60a01b1916600160a01b1790556001848101546001600160a01b039081168852600c909252828720805460ff1990811690915594549091168652942080549092169091555090919050565b604051635b0e93fb60e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b61d27f690611df2908690859087906004016124ef565b6000604051808303816000875af1158015611e11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e399190810190612535565b50905080610a7a5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b60448201526064016105aa565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b0316635efcc08b60e11b179052600090611ecb8482611d9f565b5060019392505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ef39085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f70565b6040516001600160a01b038316602482015260448101829052610a7a90849063a9059cbb60e01b90606401611f09565b6000611fc5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120429092919063ffffffff16565b805190915015610a7a5780806020019051810190611fe3919061244a565b610a7a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105aa565b60606120518484600085612059565b949350505050565b6060824710156120ba5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105aa565b843b6121085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105aa565b600080866001600160a01b0316858760405161212491906125f8565b60006040518083038185875af1925050503d8060008114612161576040519150601f19603f3d011682016040523d82523d6000602084013e612166565b606091505b5091509150612176828286612181565b979650505050505050565b60608315612190575081610846565b8251156121a05782518084602001fd5b8160405162461bcd60e51b81526004016105aa9190612614565b6001600160a01b03811681146121cf57600080fd5b50565b6000806000606084860312156121e757600080fd5b83359250602084013591506040840135612200816121ba565b809150509250925092565b60006020828403121561221d57600080fd5b5035919050565b60006020828403121561223657600080fd5b8135610846816121ba565b6000806040838503121561225457600080fd5b823591506020830135612266816121ba565b809150509250929050565b6000806040838503121561228457600080fd5b823561228f816121ba565b91506020830135612266816121ba565b80151581146121cf57600080fd5b6000806000606084860312156122c257600080fd5b83356122cd816121ba565b925060208401356122dd816121ba565b915060408401356122008161229f565b60008060006060848603121561230257600080fd5b833561230d816121ba565b9250602084013561231d816121ba565b91506040840135612200816121ba565b6000806040838503121561234057600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260059082015264042c2eae8d60db1b604082015260600190565b6000602082840312156123cd57600080fd5b8151610846816121ba565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612408576124086123d8565b500290565b60008261242a57634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415612443576124436123d8565b5060010190565b60006020828403121561245c57600080fd5b81516108468161229f565b60006020828403121561247957600080fd5b5051919050565b600082821015612492576124926123d8565b500390565b60005b838110156124b257818101518382015260200161249a565b83811115610ef35750506000910152565b600081518084526124db816020860160208601612497565b601f01601f19169290920160200192915050565b60018060a01b038416815282602082015260606040820152600061251660608301846124c3565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561254857600080fd5b82516125538161229f565b602084015190925067ffffffffffffffff8082111561257157600080fd5b818501915085601f83011261258557600080fd5b8151818111156125975761259761251f565b604051601f8201601f19908116603f011681019083821181831017156125bf576125bf61251f565b816040528281528860208487010111156125d857600080fd5b6125e9836020830160208801612497565b80955050505050509250929050565b6000825161260a818460208701612497565b9190910192915050565b60208152600061084660208301846124c356fea264697066735822122074031315ff14bacf6bae471ca99ddcd43686194bbbfb5494d5bfe3f6630b153164736f6c634300080a0033000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80637e4edf7011610130578063abca7290116100b8578063d8002c721161007c578063d8002c7214610516578063db52f3e514610529578063dc4c90d31461054c578063e2bbb1581461055f578063e30c39781461057257600080fd5b8063abca7290146104c0578063bf86d690146104d3578063c42069ec146104e7578063c6f678bd146104fa578063d73792a91461050d57600080fd5b80639af1d35a116100ff5780639af1d35a1461046b5780639d673ca3146104745780639ec1325b14610487578063a391d4b81461049a578063aba65098146104ad57600080fd5b80637e4edf701461042a5780638830eac01461043d5780638da5cb5b1461045057806399f4a3891461046357600080fd5b80633a0e5e10116101be57806360cafe841161018257806360cafe84146103c85780636bef2276146103db5780637303df9a146103fb5780637a883d6e146104045780637aef67151461041757600080fd5b80633a0e5e10146103555780633d18678e146103685780634707d0001461037b5780635e97358f1461038e5780635ebaf1db146103a157600080fd5b8063153ee55411610205578063153ee554146102e957806319d695e0146102fe578063245e4bf01461031157806325e5fd3d14610324578063354af9191461034d57600080fd5b8063081e3eda146102375780630f4ef8a61461024e57806314cd70e4146102795780631526fe271461029c575b600080fd5b600a545b6040519081526020015b60405180910390f35b600754610261906001600160a01b031681565b6040516001600160a01b039091168152602001610245565b61028c6102873660046121d2565b610585565b6040519015158152602001610245565b6102af6102aa36600461220b565b610628565b604080516001600160a01b03968716815294861660208601529285169284019290925215156060830152909116608082015260a001610245565b6102fc6102f7366004612224565b61067f565b005b61023b61030c36600461220b565b610828565b600854610261906001600160a01b031681565b610261610332366004612224565b600b602052600090815260409020546001600160a01b031681565b6102fc61084d565b6102fc610363366004612241565b61091f565b6102fc61037636600461220b565b610a7f565b6102fc610389366004612271565b610b22565b600654610261906001600160a01b031681565b6102617f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad8081565b61028c6103d636600461220b565b610bd3565b61023b6103e936600461220b565b600d6020526000908152604090205481565b61023b6109c481565b6102fc610412366004612224565b610c3b565b6102fc610425366004612224565b610cb3565b600554610261906001600160a01b031681565b6102fc61044b366004612224565b610d47565b600254610261906001600160a01b031681565b6102fc610ddb565b61023b60015481565b6102fc6104823660046122ad565b610e74565b6102fc610495366004612271565b610ef9565b6102fc6104a8366004612224565b610fe0565b61028c6104bb3660046122ed565b61102c565b600954610261906001600160a01b031681565b60095461028c90600160a01b900460ff1681565b6102fc6104f5366004612224565b6114ae565b61028c61050836600461220b565b611522565b61023b61271081565b6102fc610524366004612224565b6115cb565b61028c610537366004612224565b600c6020526000908152604090205460ff1681565b600454610261906001600160a01b031681565b61028c61056d36600461232d565b611659565b600354610261906001600160a01b031681565b6000600260005414156105b35760405162461bcd60e51b81526004016105aa9061234f565b60405180910390fd5b60026000908155600a8054869081106105ce576105ce612386565b60009182526020909120600260049092020101546001600160a01b0316905033811461060c5760405162461bcd60e51b81526004016105aa9061239c565b6106178585856118f9565b600191505060016000559392505050565b600a818154811061063857600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0392831694509082169282811692600160a01b90910460ff16911685565b6002546001600160a01b031633146106a95760405162461bcd60e51b81526004016105aa9061239c565b60006001600160a01b0316816001600160a01b03166344214ecf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071691906123bb565b6001600160a01b031614156107585760405162461bcd60e51b8152602060048201526008602482015267216e6f20686f6f6b60c01b60448201526064016105aa565b60006001600160a01b0316816001600160a01b031663923c1d616040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c591906123bb565b6001600160a01b031614156108065760405162461bcd60e51b8152602060048201526007602482015266042dcde40c6ecf60cb1b60448201526064016105aa565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000806127106001548461083c91906123ee565b610846919061240d565b9392505050565b600260005414156108705760405162461bcd60e51b81526004016105aa9061234f565b60026000819055546001600160a01b0316331461089f5760405162461bcd60e51b81526004016105aa9061239c565b600480546001600160a01b031981169091556001600160a01b031660005b600a548110156108e3576108d081611b89565b50806108db8161242f565b9150506108bd565b506009805460ff60a01b1916600160a01b179055600480546001600160a01b039092166001600160a01b03199092169190911790556001600055565b6000600a838154811061093457610934612386565b60009182526020909120600260049092020101546001600160a01b031690503381146109725760405162461bcd60e51b81526004016105aa9061239c565b600a838154811061098557610985612386565b906000526020600020906004020160020160149054906101000a900460ff16610a7a576000600a84815481106109bd576109bd612386565b60009182526020808320600492830201600301546001600160a01b03908116808552600b90925260409384902054935163030e463560e51b815293811692840192909252602483018190528582166044840152848216606484015292507f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad8016906361c8c6a090608401600060405180830381600087803b158015610a6057600080fd5b505af1158015610a74573d6000803e3d6000fd5b50505050505b505050565b6002546001600160a01b03163314610aa95760405162461bcd60e51b81526004016105aa9061239c565b6109c4811115610ae65760405162461bcd60e51b81526020600482015260086024820152673e4d61784665657360c01b60448201526064016105aa565b60018190556040518181527f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f822906020015b60405180910390a150565b6006546001600160a01b03163314610b4c5760405162461bcd60e51b81526004016105aa9061239c565b604051634fdf5d1d60e01b81526001600160a01b03838116600483015282811660248301527f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad801690634fdf5d1d90604401600060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b505050505050565b600060026000541415610bf85760405162461bcd60e51b81526004016105aa9061234f565b60026000556004546001600160a01b03163314610c275760405162461bcd60e51b81526004016105aa9061239c565b610c3082611b89565b600160005592915050565b6002546001600160a01b03163314610c655760405162461bcd60e51b81526004016105aa9061239c565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f2808ed6e855ef423013f297c468906139ac31c60cec2a0ccdc3fa0ffbd91a0cf90602001610b17565b6004546001600160a01b03163314610cdd5760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b038116610d255760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016105aa565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610d715760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b038116610db95760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016105aa565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314610e205760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016105aa565b60038054600280546001600160a01b0383166001600160a01b031991821681179092559091169091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a2565b6005546001600160a01b03163314610e9e5760405162461bcd60e51b81526004016105aa9061239c565b604080516001600160a01b03841660248201528215156044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663558a729760e01b179052610ef38482611d9f565b50505050565b6002546001600160a01b03163314610f235760405162461bcd60e51b81526004016105aa9061239c565b6001600160a01b03821615801590610f4357506001600160a01b03811615155b610f795760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b60448201526064016105aa565b6001600160a01b038281166000818152600b602090815260409182902080546001600160a01b0319169486169485179055905192835290917fa965d04d140c5f07ee83a52659c53e3db66ac55a42eef85773012ac9622e6ea2910160405180910390a25050565b6002546001600160a01b0316331461100a5760405162461bcd60e51b81526004016105aa9061239c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260005414156110515760405162461bcd60e51b81526004016105aa9061234f565b60026000556004546001600160a01b03163314801561107a5750600954600160a01b900460ff16155b6110af5760405162461bcd60e51b81526004016105aa906020808252600490820152630858591960e21b604082015260600190565b6001600160a01b038316158015906110cf57506001600160a01b03841615155b80156110e357506001600160a01b03821615155b6111185760405162461bcd60e51b815260206004820152600660248201526521706172616d60d01b60448201526064016105aa565b6001600160a01b038281166000908152600b6020526040902054166111685760405162461bcd60e51b81526004016105aa9060208082526004908201526310b1b93b60e11b604082015260600190565b6001600160a01b0383166000908152600c602052604090205460ff161580156111aa57506001600160a01b0384166000908152600c602052604090205460ff16155b6111e45760405162461bcd60e51b815260206004820152600b60248201526a616c72656164792072656760a81b60448201526064016105aa565b604051634b92037960e01b81526001600160a01b038481166004830152831690634b92037990602401602060405180830381865afa15801561122a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124e919061244a565b61128b5760405162461bcd60e51b815260206004820152600e60248201526d21666163746f727920676175676560901b60448201526064016105aa565b600a546008546001600160a01b038481166000908152600b602052604080822054905163a261fd7b60e01b8152908316600482015287831660248201528883166044820152606481018590529092919091169063a261fd7b906084016020604051808303816000875af1158015611306573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132a91906123bb565b6040805160a0810182526001600160a01b03808a1680835289821660208085018281528488168688019081526000606088018181528e881660808a01908152600a8054600181810183559185529a516004909b027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8810180549c8c166001600160a01b03199d8e1617905595517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a987018054918c16918d1691909117905593517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa8601805493511515600160a01b026001600160a81b0319909416918b169190911792909217909155517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab9093018054939097169290971691909117909455908452600c9052838320805460ff199081168417909155908352929091208054909216179055905061149b8582611e7b565b5060019250505060016000559392505050565b6002546001600160a01b031633146114d85760405162461bcd60e51b81526004016105aa9061239c565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b600080600a838154811061153857611538612386565b600091825260208220600491820201546040516370a0823160e01b815233928101929092526001600160a01b0316925082906370a0823190602401602060405180830381865afa158015611590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b49190612467565b90506115c08482611659565b506001949350505050565b6002546001600160a01b031633146115f55760405162461bcd60e51b81526004016105aa9061239c565b6008546001600160a01b0316156116375760405162461bcd60e51b81526020600482015260066024820152651cd9585b195960d21b60448201526064016105aa565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006002600054141561167e5760405162461bcd60e51b81526004016105aa9061234f565b6002600055600954600160a01b900460ff16156116c85760405162461bcd60e51b815260206004820152600860248201526739b43aba3237bbb760c11b60448201526064016105aa565b6000600a84815481106116dd576116dd612386565b600091825260209091206004909102016002810154909150600160a01b900460ff161561173d5760405162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081a5cc818db1bdcd95960921b60448201526064016105aa565b80546001600160a01b031661177481337f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad8087611ed5565b60018201546001600160a01b0316806117c05760405162461bcd60e51b815260206004820152600e60248201526d2167617567652073657474696e6760901b60448201526064016105aa565b604051638340f54960e01b81526001600160a01b0383811660048301528281166024830152604482018790527f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad801690638340f54990606401600060405180830381600087803b15801561183257600080fd5b505af1158015611846573d6000803e3d6000fd5b5050505060028301546040516305dc812160e31b8152336004820152602481018790526001600160a01b0390911690632ee4090890604401600060405180830381600087803b15801561189857600080fd5b505af11580156118ac573d6000803e3d6000fd5b50506040518781528892503391507f73a19dd210f1a7f902193214c0ee91dd35ee5b4d920cba8d519eca65a7b488ca9060200160405180910390a360019350505050600160005592915050565b6000600a848154811061190e5761190e612386565b600091825260209091206004909102018054600182015460028301549293506001600160a01b0391821692911690600160a01b900460ff16611b05576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b59190612467565b604051636ce5768960e11b81526001600160a01b0385811660048301528481166024830152604482018990529192507f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad809091169063d9caed1290606401600060405180830381600087803b158015611a2c57600080fd5b505af1158015611a40573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528892508391506001600160a01b038616906370a0823190602401602060405180830381865afa158015611a8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab09190612467565b611aba9190612480565b1015611aff5760405162461bcd60e51b81526020600482015260146024820152731dda5d1a191c985dc8185b5bdd5b9d0819985a5b60621b60448201526064016105aa565b50611b29565b6000868152600d602052604081208054879290611b23908490612480565b90915550505b611b3d6001600160a01b0383168587611f40565b85846001600160a01b03167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc687604051611b7991815260200190565b60405180910390a3505050505050565b600080600a8381548110611b9f57611b9f612386565b906000526020600020906004020190508060020160149054906101000a900460ff1615611bcf5750600092915050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3b9190612467565b825460018401546040516301395c5960e31b81526001600160a01b03928316600482015290821660248201529192507f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad8016906309cae2c890604401600060405180830381600087803b158015611cb057600080fd5b505af1925050508015611cc1575060015b5081546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611d09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2d9190612467565b611d379190612480565b6000948552600d602090815260408087209290925560028401805460ff60a01b1916600160a01b1790556001848101546001600160a01b039081168852600c909252828720805460ff1990811690915594549091168652942080549092169091555090919050565b604051635b0e93fb60e11b81526000906001600160a01b037f000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad80169063b61d27f690611df2908690859087906004016124ef565b6000604051808303816000875af1158015611e11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e399190810190612535565b50905080610a7a5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b60448201526064016105aa565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b0316635efcc08b60e11b179052600090611ecb8482611d9f565b5060019392505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ef39085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f70565b6040516001600160a01b038316602482015260448101829052610a7a90849063a9059cbb60e01b90606401611f09565b6000611fc5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120429092919063ffffffff16565b805190915015610a7a5780806020019051810190611fe3919061244a565b610a7a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105aa565b60606120518484600085612059565b949350505050565b6060824710156120ba5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105aa565b843b6121085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105aa565b600080866001600160a01b0316858760405161212491906125f8565b60006040518083038185875af1925050503d8060008114612161576040519150601f19603f3d011682016040523d82523d6000602084013e612166565b606091505b5091509150612176828286612181565b979650505050505050565b60608315612190575081610846565b8251156121a05782518084602001fd5b8160405162461bcd60e51b81526004016105aa9190612614565b6001600160a01b03811681146121cf57600080fd5b50565b6000806000606084860312156121e757600080fd5b83359250602084013591506040840135612200816121ba565b809150509250925092565b60006020828403121561221d57600080fd5b5035919050565b60006020828403121561223657600080fd5b8135610846816121ba565b6000806040838503121561225457600080fd5b823591506020830135612266816121ba565b809150509250929050565b6000806040838503121561228457600080fd5b823561228f816121ba565b91506020830135612266816121ba565b80151581146121cf57600080fd5b6000806000606084860312156122c257600080fd5b83356122cd816121ba565b925060208401356122dd816121ba565b915060408401356122008161229f565b60008060006060848603121561230257600080fd5b833561230d816121ba565b9250602084013561231d816121ba565b91506040840135612200816121ba565b6000806040838503121561234057600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260059082015264042c2eae8d60db1b604082015260600190565b6000602082840312156123cd57600080fd5b8151610846816121ba565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612408576124086123d8565b500290565b60008261242a57634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415612443576124436123d8565b5060010190565b60006020828403121561245c57600080fd5b81516108468161229f565b60006020828403121561247957600080fd5b5051919050565b600082821015612492576124926123d8565b500390565b60005b838110156124b257818101518382015260200161249a565b83811115610ef35750506000910152565b600081518084526124db816020860160208601612497565b601f01601f19169290920160200192915050565b60018060a01b038416815282602082015260606040820152600061251660608301846124c3565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561254857600080fd5b82516125538161229f565b602084015190925067ffffffffffffffff8082111561257157600080fd5b818501915085601f83011261258557600080fd5b8151818111156125975761259761251f565b604051601f8201601f19908116603f011681019083821181831017156125bf576125bf61251f565b816040528281528860208487010111156125d857600080fd5b6125e9836020830160208801612497565b80955050505050509250929050565b6000825161260a818460208701612497565b9190910192915050565b60208152600061084660208301846124c356fea264697066735822122074031315ff14bacf6bae471ca99ddcd43686194bbbfb5494d5bfe3f6630b153164736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad80
-----Decoded View---------------
Arg [0] : _staker (address): 0x989AEb4d175e16225E39E87d0D97A3360524AD80
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000989aeb4d175e16225e39e87d0d97a3360524ad80
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.