Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,336 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Strategy Ok | 12836356 | 1246 days ago | IN | 0 ETH | 0.00045978 | ||||
Set Strategy Ok | 12087279 | 1362 days ago | IN | 0 ETH | 0.0024246 | ||||
Set Strategy Ok | 12048792 | 1368 days ago | IN | 0 ETH | 0.01455038 | ||||
Set Critical Str... | 12048771 | 1368 days ago | IN | 0 ETH | 0.00422791 | ||||
Reinvest | 11406000 | 1467 days ago | IN | 0 ETH | 0.0019711 | ||||
Reinvest | 11400987 | 1468 days ago | IN | 0 ETH | 0.00944559 | ||||
Reinvest | 11400410 | 1468 days ago | IN | 0 ETH | 0.01782173 | ||||
Reinvest | 11400224 | 1468 days ago | IN | 0 ETH | 0.0171263 | ||||
Reinvest | 11399827 | 1468 days ago | IN | 0 ETH | 0.01349345 | ||||
Reinvest | 11399535 | 1468 days ago | IN | 0 ETH | 0.00882264 | ||||
Reinvest | 11399256 | 1468 days ago | IN | 0 ETH | 0.01037958 | ||||
Reinvest | 11399044 | 1468 days ago | IN | 0 ETH | 0.00914722 | ||||
Reinvest | 11398696 | 1468 days ago | IN | 0 ETH | 0.0098606 | ||||
Reinvest | 11398390 | 1468 days ago | IN | 0 ETH | 0.00977181 | ||||
Reinvest | 11398270 | 1468 days ago | IN | 0 ETH | 0.01141174 | ||||
Reinvest | 11397964 | 1468 days ago | IN | 0 ETH | 0.00882264 | ||||
Reinvest | 11397738 | 1468 days ago | IN | 0 ETH | 0.0097568 | ||||
Reinvest | 11397503 | 1468 days ago | IN | 0 ETH | 0.00778468 | ||||
Reinvest | 11397317 | 1468 days ago | IN | 0 ETH | 0.00727089 | ||||
Reinvest | 11397123 | 1468 days ago | IN | 0 ETH | 0.00882264 | ||||
Reinvest | 11397119 | 1468 days ago | IN | 0 ETH | 0.0098606 | ||||
Reinvest | 11396937 | 1468 days ago | IN | 0 ETH | 0.01089855 | ||||
Reinvest | 11396558 | 1468 days ago | IN | 0 ETH | 0.00778468 | ||||
Reinvest | 11396380 | 1469 days ago | IN | 0 ETH | 0.00778468 | ||||
Reinvest | 11396139 | 1469 days ago | IN | 0 ETH | 0.00818168 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15235596 | 868 days ago | 0.0792742 ETH | ||||
15235596 | 868 days ago | 0.0792742 ETH | ||||
14267507 | 1023 days ago | 5.08758127 ETH | ||||
14267507 | 1023 days ago | 5.08758127 ETH | ||||
12700405 | 1268 days ago | 7.92407432 ETH | ||||
12700405 | 1268 days ago | 7.92407432 ETH | ||||
12615582 | 1281 days ago | 1.875 ETH | ||||
12615582 | 1281 days ago | 1.875 ETH | ||||
12483156 | 1301 days ago | 3.51567276 ETH | ||||
12483156 | 1301 days ago | 3.51567276 ETH | ||||
12443656 | 1307 days ago | 6.56142746 ETH | ||||
12443656 | 1307 days ago | 6.56142746 ETH | ||||
12443624 | 1307 days ago | 6.55362809 ETH | ||||
12443624 | 1307 days ago | 6.55362809 ETH | ||||
12372620 | 1318 days ago | 5.28887105 ETH | ||||
12372620 | 1318 days ago | 5.28887105 ETH | ||||
12322348 | 1326 days ago | 0.07559071 ETH | ||||
12322348 | 1326 days ago | 0.07559071 ETH | ||||
12220863 | 1342 days ago | 12.29154963 ETH | ||||
12220863 | 1342 days ago | 12.29154963 ETH | ||||
12120575 | 1357 days ago | 3.4916047 ETH | ||||
12120575 | 1357 days ago | 3.4916047 ETH | ||||
11974975 | 1380 days ago | 4.4727261 ETH | ||||
11974975 | 1380 days ago | 4.4727261 ETH | ||||
11942149 | 1385 days ago | 5.04760746 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x80D2fD69...1CB65075E The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
UniswapGoblin
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-07 */ // File: openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @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. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be aplied to your functions to restrict their use to * the owner. */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return msg.sender == _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 onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } } // File: openzeppelin-solidity-2.3.0/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.5.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied 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. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @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() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } // File: synthetix/contracts/interfaces/IStakingRewards.sol pragma solidity >=0.4.24; interface IStakingRewards { // Views function lastTimeRewardApplicable() external view returns (uint256); function rewardPerToken() external view returns (uint256); function earned(address account) external view returns (uint256); function getRewardForDuration() external view returns (uint256); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); // Mutative function stake(uint256 amount) external; function withdraw(uint256 amount) external; function getReward() external; function exit() external; } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File: @uniswap/v2-core/contracts/libraries/Math.sol pragma solidity =0.5.16; // a library for performing various math operations library Math { function min(uint x, uint y) internal pure returns (uint z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } // File: contracts/uniswap/IUniswapV2Router02.sol pragma solidity >=0.5.0; interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } // File: contracts/Strategy.sol pragma solidity 0.5.16; interface Strategy { /// @dev Execute worker strategy. Take LP tokens + ETH. Return LP tokens + ETH. /// @param user The original user that is interacting with the operator. /// @param debt The user's total debt, for better decision making context. /// @param data Extra calldata information passed along to this strategy. function execute(address user, uint256 debt, bytes calldata data) external payable; } // File: contracts/SafeToken.sol pragma solidity 0.5.16; interface ERC20Interface { function balanceOf(address user) external view returns (uint256); } library SafeToken { function myBalance(address token) internal view returns (uint256) { return ERC20Interface(token).balanceOf(address(this)); } function balanceOf(address token, address user) internal view returns (uint256) { return ERC20Interface(token).balanceOf(user); } function safeApprove(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeApprove"); } function safeTransfer(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransfer"); } function safeTransferFrom(address token, address from, address to, uint256 value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransferFrom"); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call.value(value)(new bytes(0)); require(success, "!safeTransferETH"); } } // File: contracts/Goblin.sol pragma solidity 0.5.16; interface Goblin { /// @dev Work on a (potentially new) position. Optionally send ETH back to Bank. function work(uint256 id, address user, uint256 debt, bytes calldata data) external payable; /// @dev Re-invest whatever the goblin is working on. function reinvest() external; /// @dev Return the amount of ETH wei to get back if we are to liquidate the position. function health(uint256 id) external view returns (uint256); /// @dev Liquidate the given position to ETH. Send all ETH back to Bank. function liquidate(uint256 id) external; } // File: contracts/UniswapGoblin.sol pragma solidity 0.5.16; contract UniswapGoblin is Ownable, ReentrancyGuard, Goblin { /// @notice Libraries using SafeToken for address; using SafeMath for uint256; /// @notice Events event Reinvest(address indexed caller, uint256 reward, uint256 bounty); event AddShare(uint256 indexed id, uint256 share); event RemoveShare(uint256 indexed id, uint256 share); event Liquidate(uint256 indexed id, uint256 wad); /// @notice Immutable variables IStakingRewards public staking; IUniswapV2Factory public factory; IUniswapV2Router02 public router; IUniswapV2Pair public lpToken; address public weth; address public fToken; address public uni; address public operator; /// @notice Mutable state variables mapping(uint256 => uint256) shares; mapping(address => bool) okStrats; uint256 public totalShare; Strategy public addStrat; Strategy public liqStrat; uint256 public reinvestBountyBps; constructor( address _operator, IStakingRewards _staking, IUniswapV2Router02 _router, address _fToken, address _uni, Strategy _addStrat, Strategy _liqStrat, uint256 _reinvestBountyBps ) public { operator = _operator; weth = _router.WETH(); staking = _staking; router = _router; factory = IUniswapV2Factory(_router.factory()); lpToken = IUniswapV2Pair(factory.getPair(weth, _fToken)); fToken = _fToken; uni = _uni; addStrat = _addStrat; liqStrat = _liqStrat; okStrats[address(addStrat)] = true; okStrats[address(liqStrat)] = true; reinvestBountyBps = _reinvestBountyBps; lpToken.approve(address(_staking), uint256(-1)); // 100% trust in the staking pool lpToken.approve(address(router), uint256(-1)); // 100% trust in the router _fToken.safeApprove(address(router), uint256(-1)); // 100% trust in the router _uni.safeApprove(address(router), uint256(-1)); // 100% trust in the router } /// @dev Require that the caller must be an EOA account to avoid flash loans. modifier onlyEOA() { require(msg.sender == tx.origin, "not eoa"); _; } /// @dev Require that the caller must be the operator (the bank). modifier onlyOperator() { require(msg.sender == operator, "not operator"); _; } /// @dev Return the entitied LP token balance for the given shares. /// @param share The number of shares to be converted to LP balance. function shareToBalance(uint256 share) public view returns (uint256) { if (totalShare == 0) return share; // When there's no share, 1 share = 1 balance. uint256 totalBalance = staking.balanceOf(address(this)); return share.mul(totalBalance).div(totalShare); } /// @dev Return the number of shares to receive if staking the given LP tokens. /// @param balance the number of LP tokens to be converted to shares. function balanceToShare(uint256 balance) public view returns (uint256) { if (totalShare == 0) return balance; // When there's no share, 1 share = 1 balance. uint256 totalBalance = staking.balanceOf(address(this)); return balance.mul(totalShare).div(totalBalance); } /// @dev Re-invest whatever this worker has earned back to staked LP tokens. function reinvest() public onlyEOA nonReentrant { // 1. Withdraw all the rewards. staking.getReward(); uint256 reward = uni.myBalance(); if (reward == 0) return; // 2. Send the reward bounty to the caller. uint256 bounty = reward.mul(reinvestBountyBps) / 10000; uni.safeTransfer(msg.sender, bounty); // 3. Convert all the remaining rewards to ETH. address[] memory path = new address[](2); path[0] = address(uni); path[1] = address(weth); router.swapExactTokensForETH(reward.sub(bounty), 0, path, address(this), now); // 4. Use add ETH strategy to convert all ETH to LP tokens. addStrat.execute.value(address(this).balance)(address(0), 0, abi.encode(fToken, 0)); // 5. Mint more LP tokens and stake them for more rewards. staking.stake(lpToken.balanceOf(address(this))); emit Reinvest(msg.sender, reward, bounty); } /// @dev Work on the given position. Must be called by the operator. /// @param id The position ID to work on. /// @param user The original user that is interacting with the operator. /// @param debt The amount of user debt to help the strategy make decisions. /// @param data The encoded data, consisting of strategy address and calldata. function work(uint256 id, address user, uint256 debt, bytes calldata data) external payable onlyOperator nonReentrant { // 1. Convert this position back to LP tokens. _removeShare(id); // 2. Perform the worker strategy; sending LP tokens + ETH; expecting LP tokens + ETH. (address strat, bytes memory ext) = abi.decode(data, (address, bytes)); require(okStrats[strat], "unapproved work strategy"); lpToken.transfer(strat, lpToken.balanceOf(address(this))); Strategy(strat).execute.value(msg.value)(user, debt, ext); // 3. Add LP tokens back to the farming pool. _addShare(id); // 4. Return any remaining ETH back to the operator. SafeToken.safeTransferETH(msg.sender, address(this).balance); } /// @dev Return maximum output given the input amount and the status of Uniswap reserves. /// @param aIn The amount of asset to market sell. /// @param rIn the amount of asset in reserve for input. /// @param rOut The amount of asset in reserve for output. function getMktSellAmount(uint256 aIn, uint256 rIn, uint256 rOut) public pure returns (uint256) { if (aIn == 0) return 0; require(rIn > 0 && rOut > 0, "bad reserve values"); uint256 aInWithFee = aIn.mul(997); uint256 numerator = aInWithFee.mul(rOut); uint256 denominator = rIn.mul(1000).add(aInWithFee); return numerator / denominator; } /// @dev Return the amount of ETH to receive if we are to liquidate the given position. /// @param id The position ID to perform health check. function health(uint256 id) external view returns (uint256) { // 1. Get the position's LP balance and LP total supply. uint256 lpBalance = shareToBalance(shares[id]); uint256 lpSupply = lpToken.totalSupply(); // Ignore pending mintFee as it is insignificant // 2. Get the pool's total supply of WETH and farming token. uint256 totalWETH = weth.balanceOf(address(lpToken)); uint256 totalfToken = fToken.balanceOf(address(lpToken)); // 3. Convert the position's LP tokens to the underlying assets. uint256 userWETH = lpBalance.mul(totalWETH).div(lpSupply); uint256 userfToken = lpBalance.mul(totalfToken).div(lpSupply); // 4. Convert all farming tokens to ETH and return total ETH. return getMktSellAmount( userfToken, totalfToken.sub(userfToken), totalWETH.sub(userWETH) ).add(userWETH); } /// @dev Liquidate the given position by converting it to ETH and return back to caller. /// @param id The position ID to perform liquidation function liquidate(uint256 id) external onlyOperator nonReentrant { // 1. Convert the position back to LP tokens and use liquidate strategy. _removeShare(id); lpToken.transfer(address(liqStrat), lpToken.balanceOf(address(this))); liqStrat.execute(address(0), 0, abi.encode(fToken, 0)); // 2. Return all available ETH back to the operator. uint256 wad = address(this).balance; SafeToken.safeTransferETH(msg.sender, wad); emit Liquidate(id, wad); } /// @dev Internal function to stake all outstanding LP tokens to the given position ID. function _addShare(uint256 id) internal { uint256 balance = lpToken.balanceOf(address(this)); if (balance > 0) { uint256 share = balanceToShare(balance); staking.stake(balance); shares[id] = shares[id].add(share); totalShare = totalShare.add(share); emit AddShare(id, share); } } /// @dev Internal function to remove shares of the ID and convert to outstanding LP tokens. function _removeShare(uint256 id) internal { uint256 share = shares[id]; if (share > 0) { uint256 balance = shareToBalance(share); staking.withdraw(balance); totalShare = totalShare.sub(share); shares[id] = 0; emit RemoveShare(id, share); } } /// @dev Recover ERC20 tokens that were accidentally sent to this smart contract. /// @param token The token contract. Can be anything. This contract should not hold ERC20 tokens. /// @param to The address to send the tokens to. /// @param value The number of tokens to transfer to `to`. function recover(address token, address to, uint256 value) external onlyOwner nonReentrant { token.safeTransfer(to, value); } /// @dev Set the reward bounty for calling reinvest operations. /// @param _reinvestBountyBps The bounty value to update. function setReinvestBountyBps(uint256 _reinvestBountyBps) external onlyOwner { reinvestBountyBps = _reinvestBountyBps; } /// @dev Set the given strategies' approval status. /// @param strats The strategy addresses. /// @param isOk Whether to approve or unapprove the given strategies. function setStrategyOk(address[] calldata strats, bool isOk) external onlyOwner { uint256 len = strats.length; for (uint256 idx = 0; idx < len; idx++) { okStrats[strats[idx]] = isOk; } } /// @dev Update critical strategy smart contracts. EMERGENCY ONLY. Bad strategies can steal funds. /// @param _addStrat The new add strategy contract. /// @param _liqStrat The new liquidate strategy contract. function setCriticalStrategies(Strategy _addStrat, Strategy _liqStrat) external onlyOwner { addStrat = _addStrat; liqStrat = _liqStrat; } function() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"contract IStakingRewards","name":"_staking","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"_router","type":"address"},{"internalType":"address","name":"_fToken","type":"address"},{"internalType":"address","name":"_uni","type":"address"},{"internalType":"contract Strategy","name":"_addStrat","type":"address"},{"internalType":"contract Strategy","name":"_liqStrat","type":"address"},{"internalType":"uint256","name":"_reinvestBountyBps","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"AddShare","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Liquidate","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":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bounty","type":"uint256"}],"name":"Reinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"RemoveShare","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"addStrat","outputs":[{"internalType":"contract Strategy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"balanceToShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"fToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"aIn","type":"uint256"},{"internalType":"uint256","name":"rIn","type":"uint256"},{"internalType":"uint256","name":"rOut","type":"uint256"}],"name":"getMktSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"health","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"liqStrat","outputs":[{"internalType":"contract Strategy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"liquidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"recover","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"reinvestBountyBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract Strategy","name":"_addStrat","type":"address"},{"internalType":"contract Strategy","name":"_liqStrat","type":"address"}],"name":"setCriticalStrategies","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_reinvestBountyBps","type":"uint256"}],"name":"setReinvestBountyBps","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"strats","type":"address[]"},{"internalType":"bool","name":"isOk","type":"bool"}],"name":"setStrategyOk","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"shareToBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"staking","outputs":[{"internalType":"contract IStakingRewards","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"uni","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"debt","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"work","outputs":[],"payable":true,"stateMutability":"payable","type":"function"}]
Deployed Bytecode
0x60806040526004361061019c5760003560e01c8063783b6d60116100ec578063c7aa6ae71161008a578063edc9af9511610064578063edc9af951461057e578063f2fde38b14610593578063f887ea40146105c6578063fdb5a03e146105db5761019c565b8063c7aa6ae7146104b6578063d75734c8146104cb578063e7956f21146105015761019c565b80638f32d59b116100c65780638f32d59b146104285780638fa4a94014610451578063a8694e571461048c578063c45a0155146104a15761019c565b8063783b6d60146103bf57806381955105146103e95780638da5cb5b146104135761019c565b806348db8cc4116101595780635789939911610133578063578993991461036b5780635fcbd285146103805780636191e37b14610395578063715018a6146103aa5761019c565b806348db8cc4146102b75780634cf088d914610341578063570ca735146103565761019c565b8063026c42071461019e5780631363bdd3146101c55780631620fbd5146101ef5780631ec82cb8146102195780633fc8cef31461025c578063415f12401461028d575b005b3480156101aa57600080fd5b506101b36105f0565b60408051918252519081900360200190f35b3480156101d157600080fd5b506101b3600480360360208110156101e857600080fd5b50356105f6565b3480156101fb57600080fd5b5061019c6004803603602081101561021257600080fd5b50356106b3565b34801561022557600080fd5b5061019c6004803603606081101561023c57600080fd5b506001600160a01b038135811691602081013590911690604001356106ff565b34801561026857600080fd5b506102716107b4565b604080516001600160a01b039092168252519081900360200190f35b34801561029957600080fd5b5061019c600480360360208110156102b057600080fd5b50356107c3565b61019c600480360360808110156102cd57600080fd5b8135916001600160a01b036020820135169160408201359190810190608081016060820135600160201b81111561030357600080fd5b82018360208201111561031557600080fd5b803590602001918460018302840111600160201b8311171561033657600080fd5b509092509050610ab1565b34801561034d57600080fd5b50610271610e64565b34801561036257600080fd5b50610271610e73565b34801561037757600080fd5b50610271610e82565b34801561038c57600080fd5b50610271610e91565b3480156103a157600080fd5b50610271610ea0565b3480156103b657600080fd5b5061019c610eaf565b3480156103cb57600080fd5b506101b3600480360360208110156103e257600080fd5b5035610f40565b3480156103f557600080fd5b506101b36004803603602081101561040c57600080fd5b503561109f565b34801561041f57600080fd5b50610271611144565b34801561043457600080fd5b5061043d611153565b604080519115158252519081900360200190f35b34801561045d57600080fd5b5061019c6004803603604081101561047457600080fd5b506001600160a01b0381358116916020013516611164565b34801561049857600080fd5b506102716111d9565b3480156104ad57600080fd5b506102716111e8565b3480156104c257600080fd5b506101b36111f7565b3480156104d757600080fd5b506101b3600480360360608110156104ee57600080fd5b50803590602081013590604001356111fd565b34801561050d57600080fd5b5061019c6004803603604081101561052457600080fd5b810190602081018135600160201b81111561053e57600080fd5b82018360208201111561055057600080fd5b803590602001918460208302840111600160201b8311171561057157600080fd5b91935091503515156112bd565b34801561058a57600080fd5b50610271611361565b34801561059f57600080fd5b5061019c600480360360208110156105b657600080fd5b50356001600160a01b0316611370565b3480156105d257600080fd5b506102716113c3565b3480156105e757600080fd5b5061019c6113d2565b600c5481565b6000600c546000141561060a5750806106ae565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561065557600080fd5b505afa158015610669573d6000803e3d6000fd5b505050506040513d602081101561067f57600080fd5b5051600c549091506106aa90829061069e90869063ffffffff61194316565b9063ffffffff6119a516565b9150505b919050565b6106bb611153565b6106fa576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b600f55565b610707611153565b610746576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b6001805481019081905561076a6001600160a01b038516848463ffffffff611a0f16565b60015481146107ae576040805162461bcd60e51b815260206004820152601f6024820152600080516020612270833981519152604482015290519081900360640190fd5b50505050565b6006546001600160a01b031681565b6009546001600160a01b03163314610811576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b6001805481019081905561082482611b62565b600554600e54604080516370a0823160e01b815230600482015290516001600160a01b039384169363a9059cbb93169184916370a0823191602480820192602092909190829003018186803b15801561087c57600080fd5b505afa158015610890573d6000803e3d6000fd5b505050506040513d60208110156108a657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b1580156108f757600080fd5b505af115801561090b573d6000803e3d6000fd5b505050506040513d602081101561092157600080fd5b5050600e54600754604080516001600160a01b039283166020828101919091526000828401819052835180840385018152606080850195869052635b0e93fb60e11b909552606484018281526084850183905260a48501958652815160c48601528151969097169663b61d27f6969295869592949193909260e40191850190808383895b838110156109bd5781810151838201526020016109a5565b50505050905090810190601f1680156109ea5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015610a0b57600080fd5b505af1158015610a1f573d6000803e3d6000fd5b505050506000479050610a323382611c4d565b60408051828152905184917f253e5385159062a101837d58c10ad4694c58979ebc3ba6b5cb2cbba2fe461692919081900360200190a2506001548114610aad576040805162461bcd60e51b815260206004820152601f6024820152600080516020612270833981519152604482015290519081900360640190fd5b5050565b6009546001600160a01b03163314610aff576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b60018054810190819055610b1286611b62565b6000606084846040811015610b2657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610b5057600080fd5b820183602082011115610b6257600080fd5b803590602001918460018302840111600160201b83111715610b8357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052506001600160a01b0389168152600b60205260409020549799509297505060ff9095169450610c2f9350505050576040805162461bcd60e51b815260206004820152601860248201527f756e617070726f76656420776f726b2073747261746567790000000000000000604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516001600160a01b039092169163a9059cbb91859184916370a08231916024808301926020929190829003018186803b158015610c8357600080fd5b505afa158015610c97573d6000803e3d6000fd5b505050506040513d6020811015610cad57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015610cfe57600080fd5b505af1158015610d12573d6000803e3d6000fd5b505050506040513d6020811015610d2857600080fd5b5050604051635b0e93fb60e11b81526001600160a01b0388811660048301908152602483018990526060604484019081528451606485015284519286169363b61d27f69334938d938d938993608490910190602085019080838360005b83811015610d9d578181015183820152602001610d85565b50505050905090810190601f168015610dca5780820380516001836020036101000a031916815260200191505b509450505050506000604051808303818588803b158015610dea57600080fd5b505af1158015610dfe573d6000803e3d6000fd5b5050505050610e0c88611d4e565b610e163347611c4d565b50506001548114610e5c576040805162461bcd60e51b815260206004820152601f6024820152600080516020612270833981519152604482015290519081900360640190fd5b505050505050565b6002546001600160a01b031681565b6009546001600160a01b031681565b600d546001600160a01b031681565b6005546001600160a01b031681565b600e546001600160a01b031681565b610eb7611153565b610ef6576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000818152600a60205260408120548190610f5a9061109f565b90506000600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fac57600080fd5b505afa158015610fc0573d6000803e3d6000fd5b505050506040513d6020811015610fd657600080fd5b5051600554600654919250600091611000916001600160a01b03918216911663ffffffff611ebf16565b600554600754919250600091611028916001600160a01b03918216911663ffffffff611ebf16565b905060006110408461069e878663ffffffff61194316565b905060006110588561069e888663ffffffff61194316565b90506110938261108783611072878263ffffffff611f4a16565b611082898863ffffffff611f4a16565b6111fd565b9063ffffffff611fa716565b98975050505050505050565b6000600c54600014156110b35750806106ae565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d602081101561112857600080fd5b5051600c549091506106aa9061069e858463ffffffff61194316565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b61116c611153565b6111ab576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b600d80546001600160a01b039384166001600160a01b031991821617909155600e8054929093169116179055565b6007546001600160a01b031681565b6003546001600160a01b031681565b600f5481565b60008361120c575060006112b6565b60008311801561121c5750600082115b611262576040805162461bcd60e51b815260206004820152601260248201527162616420726573657276652076616c75657360701b604482015290519081900360640190fd5b6000611276856103e563ffffffff61194316565b9050600061128a828563ffffffff61194316565b905060006112a483611087886103e863ffffffff61194316565b90508082816112af57fe5b0493505050505b9392505050565b6112c5611153565b611304576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b8160005b8181101561135a5782600b600087878581811061132157fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611308565b5050505050565b6008546001600160a01b031681565b611378611153565b6113b7576040805162461bcd60e51b815260206004820181905260248201526000805160206122d7833981519152604482015290519081900360640190fd5b6113c081612001565b50565b6004546001600160a01b031681565b333214611410576040805162461bcd60e51b81526020600482015260076024820152666e6f7420656f6160c81b604482015290519081900360640190fd5b6001805481019081905560025460408051631e8c5c8960e11b815290516001600160a01b0390921691633d18b9129160048082019260009290919082900301818387803b15801561146057600080fd5b505af1158015611474573d6000803e3d6000fd5b50506008546000925061149091506001600160a01b03166120a1565b90508061149d57506118ff565b60006127106114b7600f548461194390919063ffffffff16565b816114be57fe5b60085491900491506114e0906001600160a01b0316338363ffffffff611a0f16565b6040805160028082526060808301845292602083019080388339505060085482519293506001600160a01b03169183915060009061151a57fe5b6001600160a01b03928316602091820292909201015260065482519116908290600190811061154557fe5b6001600160a01b039283166020918202929092010152600454166318cbafe5611574858563ffffffff611f4a16565b60008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156115f25781810151838201526020016115da565b505050509050019650505050505050600060405180830381600087803b15801561161b57600080fd5b505af115801561162f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561165857600080fd5b8101908080516040519392919084600160201b82111561167757600080fd5b90830190602082018581111561168c57600080fd5b82518660208202830111600160201b821117156116a857600080fd5b82525081516020918201928201910280838360005b838110156116d55781810151838201526020016116bd565b50505050919091016040818152600d546007546001600160a01b039081166020808601919091526000848601819052845180870386018152606080880196879052635b0e93fb60e11b909652606487018281526084880183905260a48801968752815160c48901528151949095169b5063b61d27f69a504799509097508796509492939260e4019190850190808383895b8381101561177e578181015183820152602001611766565b50505050905090810190601f1680156117ab5780820380516001836020036101000a031916815260200191505b509450505050506000604051808303818588803b1580156117cb57600080fd5b505af11580156117df573d6000803e3d6000fd5b5050600254600554604080516370a0823160e01b815230600482015290516001600160a01b03938416965063a694fc3a95509290911692506370a08231916024808301926020929190829003018186803b15801561183c57600080fd5b505afa158015611850573d6000803e3d6000fd5b505050506040513d602081101561186657600080fd5b5051604080516001600160e01b031960e085901b168152600481019290925251602480830192600092919082900301818387803b1580156118a657600080fd5b505af11580156118ba573d6000803e3d6000fd5b5050604080518681526020810186905281513394507fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f2893509081900390910190a25050505b60015481146113c0576040805162461bcd60e51b815260206004820152601f6024820152600080516020612270833981519152604482015290519081900360640190fd5b6000826119525750600061199f565b8282028284828161195f57fe5b041461199c5760405162461bcd60e51b81526004018080602001828103825260218152602001806122b66021913960400191505060405180910390fd5b90505b92915050565b60008082116119fb576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481611a0657fe5b04949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310611a8c5780518252601f199092019160209182019101611a6d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611aee576040519150601f19603f3d011682016040523d82523d6000602084013e611af3565b606091505b5091509150818015611b21575080511580611b215750808060200190516020811015611b1e57600080fd5b50515b61135a576040805162461bcd60e51b815260206004820152600d60248201526c10b9b0b332aa3930b739b332b960991b604482015290519081900360640190fd5b6000818152600a60205260409020548015610aad576000611b828261109f565b60025460408051632e1a7d4d60e01b81526004810184905290519293506001600160a01b0390911691632e1a7d4d9160248082019260009290919082900301818387803b158015611bd257600080fd5b505af1158015611be6573d6000803e3d6000fd5b5050600c54611bfe925090508363ffffffff611f4a16565b600c556000838152600a60209081526040808320929092558151848152915185927fca07b1e9ff462c1feca0fa258869d03f3657c3a02eaceed810db4f58848856dc92908290030190a2505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310611c995780518252601f199092019160209182019101611c7a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611cfb576040519150601f19603f3d011682016040523d82523d6000602084013e611d00565b606091505b5050905080611d49576040805162461bcd60e51b815260206004820152601060248201526f042e6c2cccaa8e4c2dce6cccae48aa8960831b604482015290519081900360640190fd5b505050565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611d9957600080fd5b505afa158015611dad573d6000803e3d6000fd5b505050506040513d6020811015611dc357600080fd5b505190508015610aad576000611dd8826105f6565b6002546040805163534a7e1d60e11b81526004810186905290519293506001600160a01b039091169163a694fc3a9160248082019260009290919082900301818387803b158015611e2857600080fd5b505af1158015611e3c573d6000803e3d6000fd5b5050506000848152600a6020526040902054611e5f91508263ffffffff611fa716565b6000848152600a6020526040902055600c54611e81908263ffffffff611fa716565b600c5560408051828152905184917fdbdb2d65c9e75a246e9a50307e793774f5ad8d986766a102b8a0eacb58208da2919081900360200190a2505050565b6000826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611f1757600080fd5b505afa158015611f2b573d6000803e3d6000fd5b505050506040513d6020811015611f4157600080fd5b50519392505050565b600082821115611fa1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561199c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0381166120465760405162461bcd60e51b81526004018080602001828103825260268152602001806122906026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156120eb57600080fd5b505afa1580156120ff573d6000803e3d6000fd5b505050506040513d602081101561211557600080fd5b505192915050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b6020831061219a5780518252601f19909201916020918201910161217b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146121fc576040519150601f19603f3d011682016040523d82523d6000602084013e612201565b606091505b509150915081801561222f57508051158061222f575080806020019051602081101561222c57600080fd5b50515b61135a576040805162461bcd60e51b815260206004820152600c60248201526b2173616665417070726f766560a01b604482015290519081900360640190fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820400c46ab29ef087266e5a434914b8241f9a2ac0a4c2231a4270d65b5403d492764736f6c63430005100032
Deployed Bytecode Sourcemap
21204:10582:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22060:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22060:25:0;;;:::i;:::-;;;;;;;;;;;;;;;;24293:297;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24293:297:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24293:297:0;;:::i;30801:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30801:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30801:134:0;;:::i;30522:139::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30522:139:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;30522:139:0;;;;;;;;;;;;;;;;;:::i;21827:19::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21827:19:0;;;:::i;:::-;;;;-1:-1:-1;;;;;21827:19:0;;;;;;;;;;;;;;28762:523;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28762:523:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28762:523:0;;:::i;26026:820::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;26026:820:0;;;-1:-1:-1;;;;;26026:820:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;26026:820:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;26026:820:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;26026:820:0;;-1:-1:-1;26026:820:0;-1:-1:-1;26026:820:0;:::i;21676:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21676:30:0;;;:::i;21906:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21906:23:0;;;:::i;22092:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22092:24:0;;;:::i;21791:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21791:29:0;;;:::i;22123:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22123:24:0;;;:::i;1724:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1724:140:0;;;:::i;27688:914::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27688:914:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27688:914:0;;:::i;23834:291::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23834:291:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23834:291:0;;:::i;913:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;913:79:0;;;:::i;1279:92::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1279:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;31585:160;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31585:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31585:160:0;;;;;;;;;;:::i;21853:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21853:21:0;;;:::i;21713:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21713:32:0;;;:::i;22154:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22154:32:0;;;:::i;27131:396::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27131:396:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27131:396:0;;;;;;;;;;;;:::i;31122:231::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31122:231:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;31122:231:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;31122:231:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;31122:231:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;31122:231:0;;-1:-1:-1;31122:231:0;-1:-1:-1;31122:231:0;;;;:::i;21881:18::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21881:18:0;;;:::i;2019:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2019:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2019:109:0;-1:-1:-1;;;;;2019:109:0;;:::i;21752:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21752:32:0;;;:::i;24680:973::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24680:973:0;;;:::i;22060:25::-;;;;:::o;24293:297::-;24355:7;24379:10;;24393:1;24379:15;24375:35;;;-1:-1:-1;24403:7:0;24396:14;;24375:35;24491:7;;:32;;;-1:-1:-1;;;24491:32:0;;24517:4;24491:32;;;;;;24468:20;;-1:-1:-1;;;;;24491:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;24491:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24491:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24491:32:0;24553:10;;24491:32;;-1:-1:-1;24541:41:0;;24491:32;;24541:23;;:7;;:23;:11;:23;:::i;:::-;:27;:41;:27;:41;:::i;:::-;24534:48;;;24293:297;;;;:::o;30801:134::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;30889:17;:38;30801:134::o;30522:139::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;30624:29;-1:-1:-1;;;;;30624:18:0;;30643:2;30647:5;30624:29;:18;:29;:::i;:::-;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;;1182:1;30522:139;;;:::o;21827:19::-;;;-1:-1:-1;;;;;21827:19:0;;:::o;28762:523::-;23634:8;;-1:-1:-1;;;;;23634:8:0;23620:10;:22;23612:47;;;;;-1:-1:-1;;;23612:47:0;;;;;;;;;;;;-1:-1:-1;;;23612:47:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;28921:16;28934:2;28921:12;:16::i;:::-;28948:7;;28973:8;;28984:32;;;-1:-1:-1;;;28984:32:0;;29010:4;28984:32;;;;;;-1:-1:-1;;;;;28948:7:0;;;;:16;;28973:8;;28948:7;;28984:17;;:32;;;;;;;;;;;;;;;28948:7;28984:32;;;5:2:-1;;;;30:1;27;20:12;5:2;28984:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28984:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28984:32:0;28948:69;;;-1:-1:-1;;;;;;28948:69:0;;;;;;;-1:-1:-1;;;;;28948:69:0;;;;;;;;;;;;;;;;;;;;28984:32;;28948:69;;;;;;;-1:-1:-1;28948:69:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;28948:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28948:69:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;29028:8:0;;29071:6;;29060:21;;;-1:-1:-1;;;;;29071:6:0;;;28948:69;29060:21;;;;;;;29028:8;29060:21;;;;;;;;26::-1;;;22:32;;6:49;;29060:21:0;;;;;;;;-1:-1:-1;;;29028:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:8;;;;;:16;;:8;;;;29060:21;;29028:54;;;;;;;;;;;;;:8;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;29028:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29028:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29028:54:0;;;;29155:11;29169:21;29155:35;;29201:42;29227:10;29239:3;29201:25;:42::i;:::-;29259:18;;;;;;;;29269:2;;29259:18;;;;;;;;;;7660:1;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;;23670:1;28762:523;:::o;26026:820::-;23634:8;;-1:-1:-1;;;;;23634:8:0;23620:10;:22;23612:47;;;;;-1:-1:-1;;;23612:47:0;;;;;;;;;;;;-1:-1:-1;;;23612:47:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;26234:16;26247:2;26234:12;:16::i;:::-;26358:13;26373:16;26404:4;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;26393:34:0;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;26393:34:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;26393:34:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;26393:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;-1:-1;;;;;;26446:15:0;;;;:8;:15;;;;;;26357:70;;-1:-1:-1;26393:34:0;;-1:-1:-1;;26446:15:0;;;;;-1:-1:-1;26438:52:0;;-1:-1:-1;;;;26438:52:0;;;;-1:-1:-1;;;26438:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26501:7;;26525:32;;;-1:-1:-1;;;26525:32:0;;26551:4;26525:32;;;;;;-1:-1:-1;;;;;26501:7:0;;;;:16;;26518:5;;26501:7;;26525:17;;:32;;;;;;;;;;;;;;26501:7;26525:32;;;5:2:-1;;;;30:1;27;20:12;5:2;26525:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26525:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26525:32:0;26501:57;;;-1:-1:-1;;;;;;26501:57:0;;;;;;;-1:-1:-1;;;;;26501:57:0;;;;;;;;;;;;;;;;;;;;26525:32;;26501:57;;;;;;;-1:-1:-1;26501:57:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;26501:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26501:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;26569:57:0;;-1:-1:-1;;;26569:57:0;;-1:-1:-1;;;;;26569:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;;;;26599:9;;26610:4;;26616;;26622:3;;26569:57;;;;;26501;26569;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;26569:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26569:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26569:57:0;;;;;26692:13;26702:2;26692:9;:13::i;:::-;26778:60;26804:10;26816:21;26778:25;:60::i;:::-;7660:1;;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;;23670:1;26026:820;;;;;:::o;21676:30::-;;;-1:-1:-1;;;;;21676:30:0;;:::o;21906:23::-;;;-1:-1:-1;;;;;21906:23:0;;:::o;22092:24::-;;;-1:-1:-1;;;;;22092:24:0;;:::o;21791:29::-;;;-1:-1:-1;;;;;21791:29:0;;:::o;22123:24::-;;;-1:-1:-1;;;;;22123:24:0;;:::o;1724:140::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;1823:1;1807:6;;1786:40;;-1:-1:-1;;;;;1807:6:0;;;;1786:40;;1823:1;;1786:40;1854:1;1837:19;;-1:-1:-1;;;;;;1837:19:0;;;1724:140::o;27688:914::-;27739:7;27860:10;;;:6;:10;;;;;;27739:7;;27845:26;;:14;:26::i;:::-;27825:46;;27882:16;27901:7;;;;;;;;;-1:-1:-1;;;;;27901:7:0;-1:-1:-1;;;;;27901:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27901:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27901:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27901:21:0;28095:7;;28072:4;;27901:21;;-1:-1:-1;28052:17:0;;28072:32;;-1:-1:-1;;;;;28072:4:0;;;;28095:7;28072:32;:14;:32;:::i;:::-;28162:7;;28137:6;;28052:52;;-1:-1:-1;28115:19:0;;28137:34;;-1:-1:-1;;;;;28137:6:0;;;;28162:7;28137:34;:16;:34;:::i;:::-;28115:56;-1:-1:-1;28256:16:0;28275:38;28304:8;28275:24;:9;28289;28275:24;:13;:24;:::i;:38::-;28256:57;-1:-1:-1;28324:18:0;28345:40;28376:8;28345:26;:9;28359:11;28345:26;:13;:26;:::i;:40::-;28324:61;-1:-1:-1;28474:120:0;28585:8;28474:106;28324:61;28517:27;:11;28324:61;28517:27;:15;:27;:::i;:::-;28546:23;:9;28560:8;28546:23;:13;:23;:::i;:::-;28474:16;:106::i;:::-;:110;:120;:110;:120;:::i;:::-;28467:127;27688:914;-1:-1:-1;;;;;;;;27688:914:0:o;23834:291::-;23894:7;23918:10;;23932:1;23918:15;23914:33;;;-1:-1:-1;23942:5:0;23935:12;;23914:33;24028:7;;:32;;;-1:-1:-1;;;24028:32:0;;24054:4;24028:32;;;;;;24005:20;;-1:-1:-1;;;;;24028:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;24028:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24028:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24028:32:0;24106:10;;24028:32;;-1:-1:-1;24078:39:0;;:23;:5;24028:32;24078:23;:9;:23;:::i;913:79::-;951:7;978:6;-1:-1:-1;;;;;978:6:0;913:79;:::o;1279:92::-;1319:4;1357:6;-1:-1:-1;;;;;1357:6:0;1343:10;:20;;1279:92::o;31585:160::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;31686:8;:20;;-1:-1:-1;;;;;31686:20:0;;;-1:-1:-1;;;;;;31686:20:0;;;;;;;31717:8;:20;;;;;;;;;;;31585:160::o;21853:21::-;;;-1:-1:-1;;;;;21853:21:0;;:::o;21713:32::-;;;-1:-1:-1;;;;;21713:32:0;;:::o;22154:::-;;;;:::o;27131:396::-;27218:7;27242:8;27238:22;;-1:-1:-1;27259:1:0;27252:8;;27238:22;27285:1;27279:3;:7;:19;;;;;27297:1;27290:4;:8;27279:19;27271:50;;;;;-1:-1:-1;;;27271:50:0;;;;;;;;;;;;-1:-1:-1;;;27271:50:0;;;;;;;;;;;;;;;27332:18;27353:12;:3;27361;27353:12;:7;:12;:::i;:::-;27332:33;-1:-1:-1;27376:17:0;27396:20;27332:33;27411:4;27396:20;:14;:20;:::i;:::-;27376:40;-1:-1:-1;27427:19:0;27449:29;27467:10;27449:13;:3;27457:4;27449:13;:7;:13;:::i;:29::-;27427:51;;27508:11;27496:9;:23;;;;;;27489:30;;;;;27131:396;;;;;;:::o;31122:231::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;31227:6;31213:11;31251:95;31279:3;31273;:9;31251:95;;;31330:4;31306:8;:21;31315:6;;31322:3;31315:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31315:11:0;31306:21;;-1:-1:-1;31306:21:0;;;;;;;;-1:-1:-1;31306:21:0;:28;;-1:-1:-1;;31306:28:0;;;;;;;;;;-1:-1:-1;31284:5:0;31251:95;;;;1182:1;31122:231;;;:::o;21881:18::-;;;-1:-1:-1;;;;;21881:18:0;;:::o;2019:109::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;2092:28;2111:8;2092:18;:28::i;:::-;2019:109;:::o;21752:32::-;;;-1:-1:-1;;;;;21752:32:0;;:::o;24680:973::-;23443:10;23457:9;23443:23;23435:43;;;;;-1:-1:-1;;;23435:43:0;;;;;;;;;;;;-1:-1:-1;;;23435:43:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;24780:7;;:19;;;-1:-1:-1;;;24780:19:0;;;;-1:-1:-1;;;;;24780:7:0;;;;:17;;:19;;;;;7584:13;;24780:19;;;;;;;;7584:13;24780:7;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;24780:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;24827:3:0;;24810:14;;-1:-1:-1;24827:15:0;;-1:-1:-1;;;;;;24827:3:0;:13;:15::i;:::-;24810:32;-1:-1:-1;24857:11:0;24853:24;;24870:7;;;24853:24;24940:14;24989:5;24957:29;24968:17;;24957:6;:10;;:29;;;;:::i;:::-;:37;;;;;25005:3;;24957:37;;;;-1:-1:-1;25005:36:0;;-1:-1:-1;;;;;25005:3:0;25022:10;24957:37;25005:36;:16;:36;:::i;:::-;25133:16;;;25147:1;25133:16;;;25109:21;25133:16;;;;;25109:21;25133:16;;;;;105:10:-1;25133:16:0;88:34:-1;-1:-1;;25178:3:0;;25160:7;;;;-1:-1:-1;;;;;;25178:3:0;;25160:7;;-1:-1:-1;25178:3:0;;25160:7;;;;-1:-1:-1;;;;;25160:22:0;;;:7;;;;;;;;;:22;25211:4;;25193:7;;25211:4;;;25193;;25211;;25193:7;;;;;;-1:-1:-1;;;;;25193:23:0;;;:7;;;;;;;;;:23;25227:6;;;:28;25256:18;:6;25267;25256:18;:10;:18;:::i;:::-;25276:1;25279:4;25293;25300:3;25227:77;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25227:77:0;-1:-1:-1;;;;;25227:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;25227:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25227:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25227:77:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;25227:77:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;25227:77:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;25227:77:0;;421:4:-1;412:14;;;;25227:77:0;;;;;412:14:-1;25227:77:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;-1:-1;;;;25227:77:0;;;;;;;;25384:8;;25456:6;;-1:-1:-1;;;;;25456:6:0;;;25445:21;;;;;;;;25384:8;25445:21;;;;;;;;26::-1;;;22:32;;6:49;;25445:21:0;;;;;;;;-1:-1:-1;;;25384:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:8;;;;;-1:-1:-1;25384:16:0;;-1:-1:-1;25407:21:0;;-1:-1:-1;25384:8:0;;-1:-1:-1;25384:8:0;;-1:-1:-1;25445:21:0;25384:83;;;;;;;;;;;;;:8;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;25384:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25384:83:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25546:7:0;;25560;;:32;;;-1:-1:-1;;;25560:32:0;;25586:4;25560:32;;;;;;-1:-1:-1;;;;;25546:7:0;;;;-1:-1:-1;25546:13:0;;-1:-1:-1;25560:7:0;;;;;-1:-1:-1;25560:17:0;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;25560:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25560:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25560:32:0;25546:47;;;-1:-1:-1;;;;;;25546:47:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25546:47:0;;;;;;;-1:-1:-1;25546:47:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;25546:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25609:36:0;;;;;;;;;;;;;;25618:10;;-1:-1:-1;25609:36:0;;-1:-1:-1;25609:36:0;;;;;;;;;7660:1;;;;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;4288:470;4346:7;4590:6;4586:47;;-1:-1:-1;4620:1:0;4613:8;;4586:47;4657:5;;;4661:1;4657;:5;:1;4681:5;;;;;:10;4673:56;;;;-1:-1:-1;;;4673:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4749:1;-1:-1:-1;4288:470:0;;;;;:::o;5226:333::-;5284:7;5383:1;5379;:5;5371:44;;;;;-1:-1:-1;;;5371:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5426:9;5442:1;5438;:5;;;;;;;5226:333;-1:-1:-1;;;;5226:333:0:o;19529:346::-;19727:45;;;-1:-1:-1;;;;;19727:45:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19727:45:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19716:57:0;;;;19681:12;;19695:17;;19716:10;;;;19727:45;19716:57;;;25:18:-1;19716:57:0;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;19716:57:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;19680:93:0;;;;19792:7;:57;;;;-1:-1:-1;19804:11:0;;:16;;:44;;;19835:4;19824:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19824:24:0;19804:44;19784:83;;;;;-1:-1:-1;;;19784:83:0;;;;;;;;;;;;-1:-1:-1;;;19784:83:0;;;;;;;;;;;;;;29867:339;29921:13;29937:10;;;:6;:10;;;;;;29962:9;;29958:241;;29988:15;30006:21;30021:5;30006:14;:21::i;:::-;30042:7;;:25;;;-1:-1:-1;;;30042:25:0;;;;;;;;;;29988:39;;-1:-1:-1;;;;;;30042:7:0;;;;:16;;:25;;;;;:7;;:25;;;;;;;;:7;;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;30042:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;30095:10:0;;:21;;-1:-1:-1;30095:10:0;-1:-1:-1;30110:5:0;30095:21;:14;:21;:::i;:::-;30082:10;:34;30144:1;30131:10;;;:6;:10;;;;;;;;:14;;;;30165:22;;;;;;;30138:2;;30165:22;;;;;;;;;29958:241;29867:339;;:::o;20277:180::-;20389:12;;;20350;20389;;;;;;;;;-1:-1:-1;;;;;20368:7:0;;;20382:5;;20368:34;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;20368:34:0;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;20349:53:0;;;20421:7;20413:36;;;;;-1:-1:-1;;;20413:36:0;;;;;;;;;;;;-1:-1:-1;;;20413:36:0;;;;;;;;;;;;;;;20277:180;;;:::o;29386:376::-;29455:7;;:32;;;-1:-1:-1;;;29455:32:0;;29481:4;29455:32;;;;;;29437:15;;-1:-1:-1;;;;;29455:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;29455:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29455:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29455:32:0;;-1:-1:-1;29502:11:0;;29498:257;;29530:13;29546:23;29561:7;29546:14;:23::i;:::-;29584:7;;:22;;;-1:-1:-1;;;29584:22:0;;;;;;;;;;29530:39;;-1:-1:-1;;;;;;29584:7:0;;;;:13;;:22;;;;;:7;;:22;;;;;;;;:7;;:22;;;5:2:-1;;;;30:1;27;20:12;5:2;29584:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;29634:10:0;;;;:6;:10;;;;;;:21;;-1:-1:-1;29649:5:0;29634:21;:14;:21;:::i;:::-;29621:10;;;;:6;:10;;;;;:34;29683:10;;:21;;29698:5;29683:21;:14;:21;:::i;:::-;29670:10;:34;29724:19;;;;;;;;29733:2;;29724:19;;;;;;;;;;29498:257;29386:376;;:::o;19027:143::-;19098:7;19140:5;-1:-1:-1;;;;;19125:31:0;;19157:4;19125:37;;;;;;;;;;;;;-1:-1:-1;;;;;19125:37:0;-1:-1:-1;;;;;19125:37:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19125:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19125:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19125:37:0;;19027:143;-1:-1:-1;;;19027:143:0:o;3853:184::-;3911:7;3944:1;3939;:6;;3931:49;;;;;-1:-1:-1;;;3931:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4003:5:0;;;3853:184::o;3397:181::-;3455:7;3487:5;;;3511:6;;;;3503:46;;;;;-1:-1:-1;;;3503:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;2234:229;-1:-1:-1;;;;;2308:22:0;;2300:73;;;;-1:-1:-1;;;2300:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2410:6;;;2389:38;;-1:-1:-1;;;;;2389:38:0;;;;2410:6;;;2389:38;;;2438:6;:17;;-1:-1:-1;;;;;;2438:17:0;-1:-1:-1;;;;;2438:17:0;;;;;;;;;;2234:229::o;18881:138::-;18965:46;;;-1:-1:-1;;;18965:46:0;;19005:4;18965:46;;;;;;18938:7;;-1:-1:-1;;;;;18965:31:0;;;;;:46;;;;;;;;;;;;;;;:31;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;18965:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18965:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18965:46:0;;18881:138;-1:-1:-1;;18881:138:0:o;19178:343::-;19374:45;;;-1:-1:-1;;;;;19374:45:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19374:45:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19363:57:0;;;;19328:12;;19342:17;;19363:10;;;;19374:45;19363:57;;;25:18:-1;19363:57:0;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;19363:57:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;19327:93:0;;;;19439:7;:57;;;;-1:-1:-1;19451:11:0;;:16;;:44;;;19482:4;19471:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19471:24:0;19451:44;19431:82;;;;;-1:-1:-1;;;19431:82:0;;;;;;;;;;;;-1:-1:-1;;;19431:82:0;;;;;;;;;;;;;
Swarm Source
bzzr://400c46ab29ef087266e5a434914b8241f9a2ac0a4c2231a4270d65b5403d4927
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.