Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Strategy Ok | 12836321 | 1147 days ago | IN | 0 ETH | 0.00042441 | ||||
Set Strategy Ok | 12087861 | 1263 days ago | IN | 0 ETH | 0.00278829 | ||||
Set Strategy Ok | 12053432 | 1269 days ago | IN | 0 ETH | 0.01379869 | ||||
Set Critical Str... | 12053365 | 1269 days ago | IN | 0 ETH | 0.00459368 | ||||
Set Strategy Ok | 11495287 | 1354 days ago | IN | 0 ETH | 0.00144496 | ||||
0x60806040 | 11495263 | 1354 days ago | IN | 0 ETH | 0.05360962 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14364042 | 909 days ago | 0.56801198 ETH | ||||
14364042 | 909 days ago | 0.56801198 ETH | ||||
14147933 | 943 days ago | 0.3426825 ETH | ||||
14147933 | 943 days ago | 0.3426825 ETH | ||||
14032656 | 961 days ago | 11.61132836 ETH | ||||
14032656 | 961 days ago | 11.61132836 ETH | ||||
12543833 | 1193 days ago | 0.5793257 ETH | ||||
12543833 | 1193 days ago | 0.5793257 ETH | ||||
12311967 | 1229 days ago | 0.04352064 ETH | ||||
12311967 | 1229 days ago | 0.04352064 ETH | ||||
12306542 | 1230 days ago | 50 ETH | ||||
12306542 | 1230 days ago | 50 ETH | ||||
12287633 | 1233 days ago | 22.41975904 ETH | ||||
12287633 | 1233 days ago | 22.41975904 ETH | ||||
12282183 | 1233 days ago | 1.50221354 ETH | ||||
12282183 | 1233 days ago | 1.50221354 ETH | ||||
12227722 | 1242 days ago | 90.00106424 ETH | ||||
12227722 | 1242 days ago | 90.00106424 ETH | ||||
12162421 | 1252 days ago | 6.97236777 ETH | ||||
12162421 | 1252 days ago | 6.97236777 ETH | ||||
12132432 | 1256 days ago | 0.7 ETH | ||||
12132432 | 1256 days ago | 0.7 ETH | ||||
12111793 | 1260 days ago | 7.91358932 ETH | ||||
12111793 | 1260 days ago | 7.91358932 ETH | ||||
12111763 | 1260 days ago | 5.63608349 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4354e09B...Ef7E6C77E 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-11-03 */ // 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) public shares; mapping(address => bool) public 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 r0, uint256 r1,) = lpToken.getReserves(); (uint256 totalWETH, uint256 totalfToken) = lpToken.token0() == weth ? (r0, r1) : (r1, r0); // 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":[{"internalType":"address","name":"","type":"address"}],"name":"okStrats","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shares","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
0x6080604052600436106101c25760003560e01c8063783b6d60116100f7578063c7aa6ae711610095578063f2fde38b11610064578063f2fde38b146105e3578063f3b8912b14610616578063f887ea4014610649578063fdb5a03e1461065e576101c2565b8063c7aa6ae714610506578063d75734c81461051b578063e7956f2114610551578063edc9af95146105ce576101c2565b80638f32d59b116100d15780638f32d59b146104785780638fa4a940146104a1578063a8694e57146104dc578063c45a0155146104f1576101c2565b8063783b6d601461040f57806381955105146104395780638da5cb5b14610463576101c2565b80634cf088d91161016457806357a858fc1161013e57806357a858fc146103a65780635fcbd285146103d05780636191e37b146103e5578063715018a6146103fa576101c2565b80634cf088d914610367578063570ca7351461037c5780635789939914610391576101c2565b80631ec82cb8116101a05780631ec82cb81461023f5780633fc8cef314610282578063415f1240146102b357806348db8cc4146102dd576101c2565b8063026c4207146101c45780631363bdd3146101eb5780631620fbd514610215575b005b3480156101d057600080fd5b506101d9610673565b60408051918252519081900360200190f35b3480156101f757600080fd5b506101d96004803603602081101561020e57600080fd5b5035610679565b34801561022157600080fd5b506101c26004803603602081101561023857600080fd5b5035610736565b34801561024b57600080fd5b506101c26004803603606081101561026257600080fd5b506001600160a01b03813581169160208101359091169060400135610782565b34801561028e57600080fd5b50610297610837565b604080516001600160a01b039092168252519081900360200190f35b3480156102bf57600080fd5b506101c2600480360360208110156102d657600080fd5b5035610846565b6101c2600480360360808110156102f357600080fd5b8135916001600160a01b036020820135169160408201359190810190608081016060820135600160201b81111561032957600080fd5b82018360208201111561033b57600080fd5b803590602001918460018302840111600160201b8311171561035c57600080fd5b509092509050610b34565b34801561037357600080fd5b50610297610ee7565b34801561038857600080fd5b50610297610ef6565b34801561039d57600080fd5b50610297610f05565b3480156103b257600080fd5b506101d9600480360360208110156103c957600080fd5b5035610f14565b3480156103dc57600080fd5b50610297610f26565b3480156103f157600080fd5b50610297610f35565b34801561040657600080fd5b506101c2610f44565b34801561041b57600080fd5b506101d96004803603602081101561043257600080fd5b5035610fd5565b34801561044557600080fd5b506101d96004803603602081101561045c57600080fd5b5035611211565b34801561046f57600080fd5b506102976112b6565b34801561048457600080fd5b5061048d6112c5565b604080519115158252519081900360200190f35b3480156104ad57600080fd5b506101c2600480360360408110156104c457600080fd5b506001600160a01b03813581169160200135166112d6565b3480156104e857600080fd5b5061029761134b565b3480156104fd57600080fd5b5061029761135a565b34801561051257600080fd5b506101d9611369565b34801561052757600080fd5b506101d96004803603606081101561053e57600080fd5b508035906020810135906040013561136f565b34801561055d57600080fd5b506101c26004803603604081101561057457600080fd5b810190602081018135600160201b81111561058e57600080fd5b8201836020820111156105a057600080fd5b803590602001918460208302840111600160201b831117156105c157600080fd5b919350915035151561142f565b3480156105da57600080fd5b506102976114d3565b3480156105ef57600080fd5b506101c26004803603602081101561060657600080fd5b50356001600160a01b03166114e2565b34801561062257600080fd5b5061048d6004803603602081101561063957600080fd5b50356001600160a01b0316611535565b34801561065557600080fd5b5061029761154a565b34801561066a57600080fd5b506101c2611559565b600c5481565b6000600c546000141561068d575080610731565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156106d857600080fd5b505afa1580156106ec573d6000803e3d6000fd5b505050506040513d602081101561070257600080fd5b5051600c5490915061072d90829061072190869063ffffffff611aca16565b9063ffffffff611b2c16565b9150505b919050565b61073e6112c5565b61077d576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b600f55565b61078a6112c5565b6107c9576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b600180548101908190556107ed6001600160a01b038516848463ffffffff611b9616565b6001548114610831576040805162461bcd60e51b815260206004820152601f602482015260008051602061236c833981519152604482015290519081900360640190fd5b50505050565b6006546001600160a01b031681565b6009546001600160a01b03163314610894576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600180548101908190556108a782611ce9565b600554600e54604080516370a0823160e01b815230600482015290516001600160a01b039384169363a9059cbb93169184916370a0823191602480820192602092909190829003018186803b1580156108ff57600080fd5b505afa158015610913573d6000803e3d6000fd5b505050506040513d602081101561092957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561097a57600080fd5b505af115801561098e573d6000803e3d6000fd5b505050506040513d60208110156109a457600080fd5b5050600e54600754604080516001600160a01b039283166020828101919091526000828401819052835180840385018152606080850195869052635b0e93fb60e11b909552606484018281526084850183905260a48501958652815160c48601528151969097169663b61d27f6969295869592949193909260e40191850190808383895b83811015610a40578181015183820152602001610a28565b50505050905090810190601f168015610a6d5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015610a8e57600080fd5b505af1158015610aa2573d6000803e3d6000fd5b505050506000479050610ab53382611dd4565b60408051828152905184917f253e5385159062a101837d58c10ad4694c58979ebc3ba6b5cb2cbba2fe461692919081900360200190a2506001548114610b30576040805162461bcd60e51b815260206004820152601f602482015260008051602061236c833981519152604482015290519081900360640190fd5b5050565b6009546001600160a01b03163314610b82576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b60018054810190819055610b9586611ce9565b6000606084846040811015610ba957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610bd357600080fd5b820183602082011115610be557600080fd5b803590602001918460018302840111600160201b83111715610c0657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052506001600160a01b0389168152600b60205260409020549799509297505060ff9095169450610cb29350505050576040805162461bcd60e51b815260206004820152601860248201527f756e617070726f76656420776f726b2073747261746567790000000000000000604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516001600160a01b039092169163a9059cbb91859184916370a08231916024808301926020929190829003018186803b158015610d0657600080fd5b505afa158015610d1a573d6000803e3d6000fd5b505050506040513d6020811015610d3057600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015610d8157600080fd5b505af1158015610d95573d6000803e3d6000fd5b505050506040513d6020811015610dab57600080fd5b5050604051635b0e93fb60e11b81526001600160a01b0388811660048301908152602483018990526060604484019081528451606485015284519286169363b61d27f69334938d938d938993608490910190602085019080838360005b83811015610e20578181015183820152602001610e08565b50505050905090810190601f168015610e4d5780820380516001836020036101000a031916815260200191505b509450505050506000604051808303818588803b158015610e6d57600080fd5b505af1158015610e81573d6000803e3d6000fd5b5050505050610e8f88611ed5565b610e993347611dd4565b50506001548114610edf576040805162461bcd60e51b815260206004820152601f602482015260008051602061236c833981519152604482015290519081900360640190fd5b505050505050565b6002546001600160a01b031681565b6009546001600160a01b031681565b600d546001600160a01b031681565b600a6020526000908152604090205481565b6005546001600160a01b031681565b600e546001600160a01b031681565b610f4c6112c5565b610f8b576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000818152600a60205260408120548190610fef90611211565b90506000600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561104157600080fd5b505afa158015611055573d6000803e3d6000fd5b505050506040513d602081101561106b57600080fd5b505160055460408051630240bc6b60e21b8152905192935060009283926001600160a01b031691630902f1ac916004808301926060929190829003018186803b1580156110b757600080fd5b505afa1580156110cb573d6000803e3d6000fd5b505050506040513d60608110156110e157600080fd5b50805160209182015160065460055460408051630dfe168160e01b815290516dffffffffffffffffffffffffffff958616985094909316955060009485946001600160a01b03938416949390921692630dfe16819260048083019392829003018186803b15801561115157600080fd5b505afa158015611165573d6000803e3d6000fd5b505050506040513d602081101561117b57600080fd5b50516001600160a01b031614611192578284611195565b83835b909250905060006111b086610721898663ffffffff611aca16565b905060006111c8876107218a8663ffffffff611aca16565b9050611203826111f7836111e2878263ffffffff61204616565b6111f2898863ffffffff61204616565b61136f565b9063ffffffff6120a316565b9a9950505050505050505050565b6000600c5460001415611225575080610731565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561127057600080fd5b505afa158015611284573d6000803e3d6000fd5b505050506040513d602081101561129a57600080fd5b5051600c5490915061072d90610721858463ffffffff611aca16565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6112de6112c5565b61131d576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b600d80546001600160a01b039384166001600160a01b031991821617909155600e8054929093169116179055565b6007546001600160a01b031681565b6003546001600160a01b031681565b600f5481565b60008361137e57506000611428565b60008311801561138e5750600082115b6113d4576040805162461bcd60e51b815260206004820152601260248201527162616420726573657276652076616c75657360701b604482015290519081900360640190fd5b60006113e8856103e563ffffffff611aca16565b905060006113fc828563ffffffff611aca16565b90506000611416836111f7886103e863ffffffff611aca16565b905080828161142157fe5b0493505050505b9392505050565b6114376112c5565b611476576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b8160005b818110156114cc5782600b600087878581811061149357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191691151591909117905560010161147a565b5050505050565b6008546001600160a01b031681565b6114ea6112c5565b611529576040805162461bcd60e51b815260206004820181905260248201526000805160206123d3833981519152604482015290519081900360640190fd5b611532816120fd565b50565b600b6020526000908152604090205460ff1681565b6004546001600160a01b031681565b333214611597576040805162461bcd60e51b81526020600482015260076024820152666e6f7420656f6160c81b604482015290519081900360640190fd5b6001805481019081905560025460408051631e8c5c8960e11b815290516001600160a01b0390921691633d18b9129160048082019260009290919082900301818387803b1580156115e757600080fd5b505af11580156115fb573d6000803e3d6000fd5b50506008546000925061161791506001600160a01b031661219d565b9050806116245750611a86565b600061271061163e600f5484611aca90919063ffffffff16565b8161164557fe5b6008549190049150611667906001600160a01b0316338363ffffffff611b9616565b6040805160028082526060808301845292602083019080388339505060085482519293506001600160a01b0316918391506000906116a157fe5b6001600160a01b0392831660209182029290920101526006548251911690829060019081106116cc57fe5b6001600160a01b039283166020918202929092010152600454166318cbafe56116fb858563ffffffff61204616565b60008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015611779578181015183820152602001611761565b505050509050019650505050505050600060405180830381600087803b1580156117a257600080fd5b505af11580156117b6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156117df57600080fd5b8101908080516040519392919084600160201b8211156117fe57600080fd5b90830190602082018581111561181357600080fd5b82518660208202830111600160201b8211171561182f57600080fd5b82525081516020918201928201910280838360005b8381101561185c578181015183820152602001611844565b50505050919091016040818152600d546007546001600160a01b039081166020808601919091526000848601819052845180870386018152606080880196879052635b0e93fb60e11b909652606487018281526084880183905260a48801968752815160c48901528151949095169b5063b61d27f69a504799509097508796509492939260e4019190850190808383895b838110156119055781810151838201526020016118ed565b50505050905090810190601f1680156119325780820380516001836020036101000a031916815260200191505b509450505050506000604051808303818588803b15801561195257600080fd5b505af1158015611966573d6000803e3d6000fd5b5050600254600554604080516370a0823160e01b815230600482015290516001600160a01b03938416965063a694fc3a95509290911692506370a08231916024808301926020929190829003018186803b1580156119c357600080fd5b505afa1580156119d7573d6000803e3d6000fd5b505050506040513d60208110156119ed57600080fd5b5051604080516001600160e01b031960e085901b168152600481019290925251602480830192600092919082900301818387803b158015611a2d57600080fd5b505af1158015611a41573d6000803e3d6000fd5b5050604080518681526020810186905281513394507fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f2893509081900390910190a25050505b6001548114611532576040805162461bcd60e51b815260206004820152601f602482015260008051602061236c833981519152604482015290519081900360640190fd5b600082611ad957506000611b26565b82820282848281611ae657fe5b0414611b235760405162461bcd60e51b81526004018080602001828103825260218152602001806123b26021913960400191505060405180910390fd5b90505b92915050565b6000808211611b82576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481611b8d57fe5b04949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310611c135780518252601f199092019160209182019101611bf4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611c75576040519150601f19603f3d011682016040523d82523d6000602084013e611c7a565b606091505b5091509150818015611ca8575080511580611ca85750808060200190516020811015611ca557600080fd5b50515b6114cc576040805162461bcd60e51b815260206004820152600d60248201526c10b9b0b332aa3930b739b332b960991b604482015290519081900360640190fd5b6000818152600a60205260409020548015610b30576000611d0982611211565b60025460408051632e1a7d4d60e01b81526004810184905290519293506001600160a01b0390911691632e1a7d4d9160248082019260009290919082900301818387803b158015611d5957600080fd5b505af1158015611d6d573d6000803e3d6000fd5b5050600c54611d85925090508363ffffffff61204616565b600c556000838152600a60209081526040808320929092558151848152915185927fca07b1e9ff462c1feca0fa258869d03f3657c3a02eaceed810db4f58848856dc92908290030190a2505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310611e205780518252601f199092019160209182019101611e01565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e82576040519150601f19603f3d011682016040523d82523d6000602084013e611e87565b606091505b5050905080611ed0576040805162461bcd60e51b815260206004820152601060248201526f042e6c2cccaa8e4c2dce6cccae48aa8960831b604482015290519081900360640190fd5b505050565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611f2057600080fd5b505afa158015611f34573d6000803e3d6000fd5b505050506040513d6020811015611f4a57600080fd5b505190508015610b30576000611f5f82610679565b6002546040805163534a7e1d60e11b81526004810186905290519293506001600160a01b039091169163a694fc3a9160248082019260009290919082900301818387803b158015611faf57600080fd5b505af1158015611fc3573d6000803e3d6000fd5b5050506000848152600a6020526040902054611fe691508263ffffffff6120a316565b6000848152600a6020526040902055600c54612008908263ffffffff6120a316565b600c5560408051828152905184917fdbdb2d65c9e75a246e9a50307e793774f5ad8d986766a102b8a0eacb58208da2919081900360200190a2505050565b60008282111561209d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611b23576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0381166121425760405162461bcd60e51b815260040180806020018281038252602681526020018061238c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156121e757600080fd5b505afa1580156121fb573d6000803e3d6000fd5b505050506040513d602081101561221157600080fd5b505192915050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b602083106122965780518252601f199092019160209182019101612277565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146122f8576040519150601f19603f3d011682016040523d82523d6000602084013e6122fd565b606091505b509150915081801561232b57508051158061232b575080806020019051602081101561232857600080fd5b50515b6114cc576040805162461bcd60e51b815260206004820152600c60248201526b2173616665417070726f766560a01b604482015290519081900360640190fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820b37e7cd4439ecf9ecfff2f09ffa6833ba6f5e0b989ad7c3f15dfab95fa8cc0c964736f6c63430005100032
Deployed Bytecode Sourcemap
21204:10626:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22074:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22074:25:0;;;:::i;:::-;;;;;;;;;;;;;;;;24307:297;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24307:297:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24307:297:0;;:::i;30845:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30845:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30845:134:0;;:::i;30566:139::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30566:139:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;30566: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;;;;;;;;;;;;;;28806:523;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28806:523:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28806:523:0;;:::i;26040:820::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;26040:820:0;;;-1:-1:-1;;;;;26040:820:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;26040:820:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;26040: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;26040:820:0;;-1:-1:-1;26040:820:0;-1:-1:-1;26040: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;22106:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22106:24:0;;;:::i;21979:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21979:41:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21979:41:0;;:::i;21791:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21791:29:0;;;:::i;22137:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22137:24:0;;;:::i;1724:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1724:140:0;;;:::i;27702:944::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27702:944:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27702:944:0;;:::i;23848:291::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23848:291:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23848: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;:::-;;;;;;;;;;;;;;;;;;31629:160;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31629:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31629: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;22168:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22168:32:0;;;:::i;27145:396::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27145:396:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27145:396:0;;;;;;;;;;;;:::i;31166:231::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31166:231:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;31166:231:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;31166:231:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;31166: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;31166:231:0;;-1:-1:-1;31166:231:0;-1:-1:-1;31166: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;22027:40::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22027:40:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22027:40:0;-1:-1:-1;;;;;22027:40:0;;:::i;21752:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21752:32:0;;;:::i;24694:973::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24694:973:0;;;:::i;22074:25::-;;;;:::o;24307:297::-;24369:7;24393:10;;24407:1;24393:15;24389:35;;;-1:-1:-1;24417:7:0;24410:14;;24389:35;24505:7;;:32;;;-1:-1:-1;;;24505:32:0;;24531:4;24505:32;;;;;;24482:20;;-1:-1:-1;;;;;24505:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;24505:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24505:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24505:32:0;24567:10;;24505:32;;-1:-1:-1;24555:41:0;;24505:32;;24555:23;;:7;;:23;:11;:23;:::i;:::-;:27;:41;:27;:41;:::i;:::-;24548:48;;;24307:297;;;;:::o;30845:134::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;30933:17;:38;30845:134::o;30566:139::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;30668:29;-1:-1:-1;;;;;30668:18:0;;30687:2;30691:5;30668: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;30566:139;;;:::o;21827:19::-;;;-1:-1:-1;;;;;21827:19:0;;:::o;28806:523::-;23648:8;;-1:-1:-1;;;;;23648:8:0;23634:10;:22;23626:47;;;;;-1:-1:-1;;;23626:47:0;;;;;;;;;;;;-1:-1:-1;;;23626:47:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;28965:16;28978:2;28965:12;:16::i;:::-;28992:7;;29017:8;;29028:32;;;-1:-1:-1;;;29028:32:0;;29054:4;29028:32;;;;;;-1:-1:-1;;;;;28992:7:0;;;;:16;;29017:8;;28992:7;;29028:17;;:32;;;;;;;;;;;;;;;28992:7;29028:32;;;5:2:-1;;;;30:1;27;20:12;5:2;29028:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29028:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29028:32:0;28992:69;;;-1:-1:-1;;;;;;28992:69:0;;;;;;;-1:-1:-1;;;;;28992:69:0;;;;;;;;;;;;;;;;;;;;29028:32;;28992:69;;;;;;;-1:-1:-1;28992:69:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;28992:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28992:69:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;29072:8:0;;29115:6;;29104:21;;;-1:-1:-1;;;;;29115:6:0;;;28992:69;29104:21;;;;;;;29072:8;29104:21;;;;;;;;26::-1;;;22:32;;6:49;;29104:21:0;;;;;;;;-1:-1:-1;;;29072:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:8;;;;;:16;;:8;;;;29104:21;;29072: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;29072:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29072:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29072:54:0;;;;29199:11;29213:21;29199:35;;29245:42;29271:10;29283:3;29245:25;:42::i;:::-;29303:18;;;;;;;;29313:2;;29303:18;;;;;;;;;;7660:1;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;;23684:1;28806:523;:::o;26040:820::-;23648:8;;-1:-1:-1;;;;;23648:8:0;23634:10;:22;23626:47;;;;;-1:-1:-1;;;23626:47:0;;;;;;;;;;;;-1:-1:-1;;;23626:47:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;26248:16;26261:2;26248:12;:16::i;:::-;26372:13;26387:16;26418:4;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;26407:34:0;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;26407:34:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;26407: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;26407:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;-1:-1;;;;;;26460:15:0;;;;:8;:15;;;;;;26371:70;;-1:-1:-1;26407:34:0;;-1:-1:-1;;26460:15:0;;;;;-1:-1:-1;26452:52:0;;-1:-1:-1;;;;26452:52:0;;;;-1:-1:-1;;;26452:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26515:7;;26539:32;;;-1:-1:-1;;;26539:32:0;;26565:4;26539:32;;;;;;-1:-1:-1;;;;;26515:7:0;;;;:16;;26532:5;;26515:7;;26539:17;;:32;;;;;;;;;;;;;;26515:7;26539:32;;;5:2:-1;;;;30:1;27;20:12;5:2;26539:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26539:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26539:32:0;26515:57;;;-1:-1:-1;;;;;;26515:57:0;;;;;;;-1:-1:-1;;;;;26515:57:0;;;;;;;;;;;;;;;;;;;;26539:32;;26515:57;;;;;;;-1:-1:-1;26515:57:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;26515:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26515:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;26583:57:0;;-1:-1:-1;;;26583:57:0;;-1:-1:-1;;;;;26583:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;;;;26613:9;;26624:4;;26630;;26636:3;;26583:57;;;;;26515;26583;;;;;;-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;26583:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26583:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26583:57:0;;;;;26706:13;26716:2;26706:9;:13::i;:::-;26792:60;26818:10;26830:21;26792:25;:60::i;:::-;7660:1;;7696:13;;7680:12;:29;7672:73;;;;;-1:-1:-1;;;7672:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;7672:73:0;;;;;;;;;;;;;;;23684:1;26040:820;;;;;:::o;21676:30::-;;;-1:-1:-1;;;;;21676:30:0;;:::o;21906:23::-;;;-1:-1:-1;;;;;21906:23:0;;:::o;22106:24::-;;;-1:-1:-1;;;;;22106:24:0;;:::o;21979:41::-;;;;;;;;;;;;;:::o;21791:29::-;;;-1:-1:-1;;;;;21791:29:0;;:::o;22137:24::-;;;-1:-1:-1;;;;;22137: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;27702:944::-;27753:7;27874:10;;;:6;:10;;;;;;27753:7;;27859:26;;:14;:26::i;:::-;27839:46;;27896:16;27915:7;;;;;;;;;-1:-1:-1;;;;;27915:7:0;-1:-1:-1;;;;;27915:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27915:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27915:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27915:21:0;28094:7;;:21;;;-1:-1:-1;;;28094:21:0;;;;27915;;-1:-1:-1;28067:10:0;;;;-1:-1:-1;;;;;28094:7:0;;:19;;:21;;;;;;;;;;;;;;:7;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;28094:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28094:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28094:21:0;;;;;;;28189:4;;28169:7;;28094:21;28169:16;;-1:-1:-1;;;28169:16:0;;;;28066:49;;;;;-1:-1:-1;28066:49:0;;;;;-1:-1:-1;28127:17:0;;;;-1:-1:-1;;;;;28189:4:0;;;;28169:7;;;;;:14;;:16;;;;;28094:21;28169:16;;;;;:7;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;28169:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28169:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28169:16:0;-1:-1:-1;;;;;28169:24:0;;:46;;28208:2;28212;28169:46;;;28197:2;28201;28169:46;28126:89;;-1:-1:-1;28126:89:0;-1:-1:-1;28300:16:0;28319:38;28348:8;28319:24;:9;28126:89;28319:24;:13;:24;:::i;:38::-;28300:57;-1:-1:-1;28368:18:0;28389:40;28420:8;28389:26;:9;28403:11;28389:26;:13;:26;:::i;:40::-;28368:61;-1:-1:-1;28518:120:0;28629:8;28518:106;28368:61;28561:27;:11;28368:61;28561:27;:15;:27;:::i;:::-;28590:23;:9;28604:8;28590:23;:13;:23;:::i;:::-;28518:16;:106::i;:::-;:110;:120;:110;:120;:::i;:::-;28511:127;27702:944;-1:-1:-1;;;;;;;;;;27702:944:0:o;23848:291::-;23908:7;23932:10;;23946:1;23932:15;23928:33;;;-1:-1:-1;23956:5:0;23949:12;;23928:33;24042:7;;:32;;;-1:-1:-1;;;24042:32:0;;24068:4;24042:32;;;;;;24019:20;;-1:-1:-1;;;;;24042:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;24042:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24042:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24042:32:0;24120:10;;24042:32;;-1:-1:-1;24092:39:0;;:23;:5;24042:32;24092: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;31629:160::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;31730:8;:20;;-1:-1:-1;;;;;31730:20:0;;;-1:-1:-1;;;;;;31730:20:0;;;;;;;31761:8;:20;;;;;;;;;;;31629:160::o;21853:21::-;;;-1:-1:-1;;;;;21853:21:0;;:::o;21713:32::-;;;-1:-1:-1;;;;;21713:32:0;;:::o;22168:::-;;;;:::o;27145:396::-;27232:7;27256:8;27252:22;;-1:-1:-1;27273:1:0;27266:8;;27252:22;27299:1;27293:3;:7;:19;;;;;27311:1;27304:4;:8;27293:19;27285:50;;;;;-1:-1:-1;;;27285:50:0;;;;;;;;;;;;-1:-1:-1;;;27285:50:0;;;;;;;;;;;;;;;27346:18;27367:12;:3;27375;27367:12;:7;:12;:::i;:::-;27346:33;-1:-1:-1;27390:17:0;27410:20;27346:33;27425:4;27410:20;:14;:20;:::i;:::-;27390:40;-1:-1:-1;27441:19:0;27463:29;27481:10;27463:13;:3;27471:4;27463:13;:7;:13;:::i;:29::-;27441:51;;27522:11;27510:9;:23;;;;;;27503:30;;;;;27145:396;;;;;;:::o;31166:231::-;1125:9;:7;:9::i;:::-;1117:54;;;;;-1:-1:-1;;;1117:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1117:54:0;;;;;;;;;;;;;;;31271:6;31257:11;31295:95;31323:3;31317;:9;31295:95;;;31374:4;31350:8;:21;31359:6;;31366:3;31359:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31359:11:0;31350:21;;-1:-1:-1;31350:21:0;;;;;;;;-1:-1:-1;31350:21:0;:28;;-1:-1:-1;;31350:28:0;;;;;;;;;;-1:-1:-1;31328:5:0;31295:95;;;;1182:1;31166: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;22027:40::-;;;;;;;;;;;;;;;:::o;21752:32::-;;;-1:-1:-1;;;;;21752:32:0;;:::o;24694:973::-;23457:10;23471:9;23457:23;23449:43;;;;;-1:-1:-1;;;23449:43:0;;;;;;;;;;;;-1:-1:-1;;;23449:43:0;;;;;;;;;;;;;;;7601:1;7584:18;;;;;;;;24794:7;;:19;;;-1:-1:-1;;;24794:19:0;;;;-1:-1:-1;;;;;24794:7:0;;;;:17;;:19;;;;;7584:13;;24794:19;;;;;;;;7584:13;24794:7;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;24794:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;24841:3:0;;24824:14;;-1:-1:-1;24841:15:0;;-1:-1:-1;;;;;;24841:3:0;:13;:15::i;:::-;24824:32;-1:-1:-1;24871:11:0;24867:24;;24884:7;;;24867:24;24954:14;25003:5;24971:29;24982:17;;24971:6;:10;;:29;;;;:::i;:::-;:37;;;;;25019:3;;24971:37;;;;-1:-1:-1;25019:36:0;;-1:-1:-1;;;;;25019:3:0;25036:10;24971:37;25019:36;:16;:36;:::i;:::-;25147:16;;;25161:1;25147:16;;;25123:21;25147:16;;;;;25123:21;25147:16;;;;;105:10:-1;25147:16:0;88:34:-1;-1:-1;;25192:3:0;;25174:7;;;;-1:-1:-1;;;;;;25192:3:0;;25174:7;;-1:-1:-1;25192:3:0;;25174:7;;;;-1:-1:-1;;;;;25174:22:0;;;:7;;;;;;;;;:22;25225:4;;25207:7;;25225:4;;;25207;;25225;;25207:7;;;;;;-1:-1:-1;;;;;25207:23:0;;;:7;;;;;;;;;:23;25241:6;;;:28;25270:18;:6;25281;25270:18;:10;:18;:::i;:::-;25290:1;25293:4;25307;25314:3;25241:77;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25241:77:0;-1:-1:-1;;;;;25241: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;25241:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25241:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25241:77:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;25241: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;25241: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;25241:77:0;;421:4:-1;412:14;;;;25241:77:0;;;;;412:14:-1;25241: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;;;;25241:77:0;;;;;;;;25398:8;;25470:6;;-1:-1:-1;;;;;25470:6:0;;;25459:21;;;;;;;;25398:8;25459:21;;;;;;;;26::-1;;;22:32;;6:49;;25459:21:0;;;;;;;;-1:-1:-1;;;25398:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:8;;;;;-1:-1:-1;25398:16:0;;-1:-1:-1;25421:21:0;;-1:-1:-1;25398:8:0;;-1:-1:-1;25398:8:0;;-1:-1:-1;25459:21:0;25398: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;25398:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25398:83:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25560:7:0;;25574;;:32;;;-1:-1:-1;;;25574:32:0;;25600:4;25574:32;;;;;;-1:-1:-1;;;;;25560:7:0;;;;-1:-1:-1;25560:13:0;;-1:-1:-1;25574:7:0;;;;;-1:-1:-1;25574:17:0;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;25574:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25574:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25574:32:0;25560:47;;;-1:-1:-1;;;;;;25560:47:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25560:47:0;;;;;;;-1:-1:-1;25560:47:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;25560:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25623:36:0;;;;;;;;;;;;;;25632:10;;-1:-1:-1;25623:36:0;;-1:-1:-1;25623: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;;;;;;;;;;;;;;29911:339;29965:13;29981:10;;;:6;:10;;;;;;30006:9;;30002:241;;30032:15;30050:21;30065:5;30050:14;:21::i;:::-;30086:7;;:25;;;-1:-1:-1;;;30086:25:0;;;;;;;;;;30032:39;;-1:-1:-1;;;;;;30086:7:0;;;;:16;;:25;;;;;:7;;:25;;;;;;;;:7;;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;30086:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;30139:10:0;;:21;;-1:-1:-1;30139:10:0;-1:-1:-1;30154:5:0;30139:21;:14;:21;:::i;:::-;30126:10;:34;30188:1;30175:10;;;:6;:10;;;;;;;;:14;;;;30209:22;;;;;;;30182:2;;30209:22;;;;;;;;;30002:241;29911: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;29430:376::-;29499:7;;:32;;;-1:-1:-1;;;29499:32:0;;29525:4;29499:32;;;;;;29481:15;;-1:-1:-1;;;;;29499:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;29499:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29499:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29499:32:0;;-1:-1:-1;29546:11:0;;29542:257;;29574:13;29590:23;29605:7;29590:14;:23::i;:::-;29628:7;;:22;;;-1:-1:-1;;;29628:22:0;;;;;;;;;;29574:39;;-1:-1:-1;;;;;;29628:7:0;;;;:13;;:22;;;;;:7;;:22;;;;;;;;:7;;:22;;;5:2:-1;;;;30:1;27;20:12;5:2;29628:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;29678:10:0;;;;:6;:10;;;;;;:21;;-1:-1:-1;29693:5:0;29678:21;:14;:21;:::i;:::-;29665:10;;;;:6;:10;;;;;:34;29727:10;;:21;;29742:5;29727:21;:14;:21;:::i;:::-;29714:10;:34;29768:19;;;;;;;;29777:2;;29768:19;;;;;;;;;;29542:257;29430:376;;:::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://b37e7cd4439ecf9ecfff2f09ffa6833ba6f5e0b989ad7c3f15dfab95fa8cc0c9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.