More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 25 from a total of 4,834 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 66588031 | 238 days ago | IN | 0 FTM | 0.01422195 | ||||
Harvest | 65094895 | 269 days ago | IN | 0 FTM | 0.03343695 | ||||
Harvest | 64281334 | 285 days ago | IN | 0 FTM | 0.03127055 | ||||
Harvest | 63560533 | 299 days ago | IN | 0 FTM | 0.02500884 | ||||
Harvest | 63090254 | 308 days ago | IN | 0 FTM | 0.03258424 | ||||
Harvest | 62640230 | 315 days ago | IN | 0 FTM | 0.03432107 | ||||
Harvest | 62385277 | 318 days ago | IN | 0 FTM | 0.05198869 | ||||
Harvest | 62074326 | 322 days ago | IN | 0 FTM | 0.06902626 | ||||
Harvest | 61705328 | 326 days ago | IN | 0 FTM | 0.05048432 | ||||
Harvest | 61441927 | 330 days ago | IN | 0 FTM | 0.07897816 | ||||
Harvest | 58086727 | 373 days ago | IN | 0 FTM | 0.02019557 | ||||
Harvest | 57441356 | 382 days ago | IN | 0 FTM | 0.04625258 | ||||
Harvest | 57173745 | 387 days ago | IN | 0 FTM | 0.01830918 | ||||
Harvest | 56321728 | 400 days ago | IN | 0 FTM | 0.01771058 | ||||
Harvest | 56086989 | 404 days ago | IN | 0 FTM | 0.01112438 | ||||
Harvest | 55976285 | 406 days ago | IN | 0 FTM | 0.02080623 | ||||
Harvest | 55770520 | 408 days ago | IN | 0 FTM | 0.01329464 | ||||
Harvest | 55647756 | 410 days ago | IN | 0 FTM | 0.0117812 | ||||
Harvest | 55540884 | 412 days ago | IN | 0 FTM | 0.01475072 | ||||
Harvest | 55411844 | 413 days ago | IN | 0 FTM | 0.02812884 | ||||
Harvest | 55243962 | 416 days ago | IN | 0 FTM | 0.02244337 | ||||
Harvest | 55126280 | 417 days ago | IN | 0 FTM | 0.04677855 | ||||
Harvest | 54860667 | 421 days ago | IN | 0 FTM | 0.01620111 | ||||
Harvest | 54776637 | 422 days ago | IN | 0 FTM | 0.01529844 | ||||
Harvest | 54698314 | 424 days ago | IN | 0 FTM | 0.01554434 |
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
44306840 | 601 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x432223f1...2b628D472 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
BeetsStrat
Compiler Version
v0.6.2+commit.bacdbe57
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /*MMMMMMMMMMMMMMMMMMMMMMMMMMWWNXK0Oxxdooooolllllccccccccccccccccccccccccccllllloodddxk0KNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWWXKOkdolc:;,,,,;;;:cllodddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdddoolcc::cclloxk0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMNkc;,......',:cloddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddoc:::cloxOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMWO' .':lodxxxxxxxxxxxxxxxxxxxxxxxxxxdddddddooooooooooooooooooooodddddddxxxxxxxxdolc:cloxOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMO. .;codxxxxxxxxxxxxxxxxxdddoolllccc:::::;;;;;;;;;;;;;;;;;;;;;;;;::::cccclllooodddxddocccodk0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMN: ';;codxxxxxxxxxddollcc::;;;;;;;;;;;,,,,''''....'''',,,,,,;;;;;;;;;;;;;;;;;;:::cclloodolcclox0NWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMX: .,;;;codxxddolcc:;;;;;;;;;;;;;,'.... .................'',,;;;;;;;;;;;;;;;;;;;;::clllc::cldONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMWNNNKl. .';;;;;;cllc:;;;;;;;;;;,;;;;,'.. ..',,;:::::::::;;,,,'.... .....''''',,,,,,,,,,;;;;,;;;:cc:;;:lx0NMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMNkc,,;;,.',,,,'.....',;;;;;;;;;;;;;;,'. ..,;:cc::;;;,,,,,,,,,,,,,;;::;,'.. ............''',,,,,,;;;;;:;,',;lkXWMMMMMMMMMMMMMMMMMMMMMMM MMWNXKXXNk...',,,,'... .....,;;;;;;;;;;;;,'. .';:::;,,''......................',;;;,.. ......''',,,,;;;,..':d0NMMMMMMMMMMMMMMMMMMMM xl;.....'...,,,... ........,;;;;;;;;;,,'. .,::;,''................................,;;;'. .;cc;,'.. .....',,,,,...;oONMMMMMMMMMMMMMMMMM ; . ...........,;;;;;;,,'.. .,;;,''......................................';:;'. .:d0NNX0Oxoc:,.. ....'''...,lONMMMMMMMMMMMMMM Xl. ..... ..............';;;;,,'.. .',,''''...................................... ..';:;.. .;d0NMMMMWWX0kdl:,.. .......'lONMMMMMMMMMMM MNx. ...... ..............,;;,,'... .....''''........................................ ..,::,. .,o0WMMMMMMMMMWX0kdl;'. 'lONMMMMMMMM MMW0; ....... .... ...,,,'.. ..''''''......................................',. .':c:;. .;dKWMMMMMMMMMMMMWNKOdl:'. .,dKWMMMMM MMMMXl. ...'.. .. .''. ..''''''''.......................................;;. .';c:,.. .:OWMMMMMMMMMMMMMMMMWNKOdl;.. .:kNMMM MMMMMNx. ...... .cxkd:. . .'. ..'''''''''...................................... .':' ..,:cc:;'. .l0WMMMMMMMMMMMMMMMMMMMMMMWNKkoc,';dKW MMMMMMW0; ...... .xWMMMW0c. .cx; .'''''''''''....................................... .;;. .,:;'.. .,dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOxkK MMMMMMMMXc. ...... ;XMMMMMMWkoONx. .'''........''...................................... .':. ... .cONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW MMMMMMMMMNd. .......dNMMMMMMMMMWo .'. ............................... ....... .;, ,dKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMWk' ...'...dWMMMMMMMMWl .. ........................... ...... .,:. ,xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMW0; .......xWMMMMMMMWo .. ......................... ...... .':' .dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMKc .......xWMMMMMMMx. .. ......... ............ ..... .:; lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMXl. ...'...xWMMMMMMk. .. ..... ........... ... .;:. ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMNl. .......xWMMMMM0' .. .. ........... .. .;c. oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMNl. .......kWMMMMX: .. .......... .. .;c, ,KMMMMMMMMMW0OXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMNl ......'kWMMMWd. . ..;. .......... . .;c;. .dWMMMMMWKd;.'0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMXc ......'kWMMM0, . .,cdOx, ......... ... .:c;. ,KMMWKx:. ,0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMX: ......'OWMMWo. . 'dO00k: ........ .:c; .lOo;. ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMK; ......'OWMMK; . .lo:. .d00Od;. ........ . .,cc, lWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMM0, ......'OWMMk. . .cO0d' .,;,'. ....... . .;cc. .. .kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMWO' ..... ,OWMWd. .. ,lc. ...... .':c:. .,,. ;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMWk. ...'. ,0MMNl .. ...... . .,cc, .::. .dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMWx. ..... ,0MMX: .. ...... . .:c:. .,cc' ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMNd. ..... ;0MMK; .. .... ..'cc' .:cc, .dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMNl ..... ;0MMK; ... .... ..;c;. .;ccc,. :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMXc ...... ;KMMK; ... ... ..'c:. .';:cc;. .OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMK; ...'.. ;KMMK: ... .... ..;:. .'..;c;. .oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMM0, ...... :KMMXc. ... ... ..':. .. .':,. cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMWk. ...'.. :XMMNo. .'. .... ...,. .':, ;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx. ...'.. cXMMNo. ... ... ..'. .,:' '0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo. ...'...cKXk; ... .. .... .;;. 'OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc ...'.. .. ... ....... .';' 'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK: ....'.. ....... ........ .';,. 'OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO. ....'. ...''...... ........ ..';,. ,0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXkl' ...''. ..'''........ .. ............',:,. :KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMNOl' ...''. ..'.................. ...........',::,. .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMXx,. ... ...''. .................... ...........,;::;.. 'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMXd' ..,;;,'. ....''. ................... .........';:c:;'.. ... .lKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNx' .,::;,,''.. ....''. ............................';:ccc:;;;;:;.. ,kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMW0: .;::;,,'''''. ...''.. ..............................',:ccc:,. 'dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMNx. .,c:;,,,'''''''. ....'.. ............................',;::,.. .oKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMNo. .'::;,,','''''''''. ...''.. ......................'';:::;'.. .oKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMXc .;:;,'''',,'''''''''. ....''.. ................',;;;;;,... ,dXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMK: .':;,,''''''''''''''''.. ....''.. .........'''''''... 'lONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMM0, .,;'..................... ....''.. ........... .;oONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMWO' ... ... .':okKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMWk' ......... ..',:ldxOKNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMWk. ..,:ldkO0KXXNNXXKOkdolc:;;;,,,,,,,,,,;;::cclloddkO0XNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMWk. .,cdkKXWMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMKc:d0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM*/ pragma solidity 0.6.2; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity 0.6.2; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @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(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { 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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity 0.6.2; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity 0.6.2; /** * @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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); 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-contracts/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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity 0.6.2; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity 0.6.2; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/utils/Pausable.sol pragma solidity 0.6.2; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } pragma solidity 0.6.2; interface IUniSwapRouter { function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); } pragma experimental ABIEncoderV2; struct SingleSwap { bytes32 poolid; SwapKind kind; address assetIn; address assetOut; uint256 amount; bytes userData; } struct FundManagement { address sender; bool fromInternalBalance; address recipient; bool toInternalBalance; } struct Request { address[] assets; uint256[] maxAmountsIn; bytes userData; bool fromInternalBalance; } enum SwapKind { GIVEN_IN, GIVEN_OUT } enum JoinKind { INIT, EXACT_TOKENS_IN_FOR_BPT_OUT, TOKEN_IN_FOR_EXACT_BPT_OUT } interface IBeetsRouter { function swap(SingleSwap calldata singleSwap, FundManagement calldata funds, uint256 limit, uint256 deadline) external returns (uint256); function joinPool(bytes32 poolId, address sender, address recipient, Request calldata request) external; } pragma solidity 0.6.2; interface IMasterChef { function deposit(uint256 _pid, uint256 _amount, address user) external; function withdrawAndHarvest(uint256 _pid, uint256 _amount, address user) external; function harvest(uint256 pid, address user) external; function harvestAll(uint256[] calldata pids, address user) external; function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256); function pendingBeets(uint256 pid, address user) external view returns (uint256); function emergencyWithdraw(uint256 _pid, address user) external; } pragma solidity 0.6.2; contract BeetsStrat is Ownable, Pausable { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; // Tokens address public wrapped = address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83); address public want; address public output = address(0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e); address[] public lpTokens; address public stakingToken; // Third party contracts address public masterchef = address(0x8166994d9ebBe5829EC86Bd81258149B87faCfd3); address public beets = address(0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce); address public spiritRouter = address(0x16327E3FbDaCA3bcF7E38F5Af2599D2DDc33aE52); // Grim addresses address public strategist; address public feeBatchAddress; address public vault; address public harvester = address(0xb8924595019aFB894150a9C7CBEc3362999b9f94); address public insuranceFund; address public sentinel; // Numbers uint256 public poolId; bytes32 pool; bytes32 wrappedPool; bytes32 stakingTokenPool; // Routes address[] outputToWrappedRoute; // Fee structure uint256 public WITHDRAWAL_MAX = 100000; uint256 public WITHDRAW_FEE = 100; // 0.1% uint256 public MAX_FEE = 1000; uint256 public CALL_FEE = 100; // 10% uint256 public STRATEGIST_FEE = 100; // 10% uint256 public INSURANCE_FEE = 50; // 5% uint256 public FEE_BATCH = 750; // 75% uint256 public PLATFORM_FEE = 40; // 4% constructor( address _want, uint256 _poolId, address _stakingToken, bytes32 _stakingTokenPool, address[] memory _tokens, bytes32 _pool, bytes32 _wrappedPool, address _insuranceFund, address _feeBatchAddress, address _sentinel) public { want = _want; poolId = _poolId; pool = _pool; wrappedPool = _wrappedPool; lpTokens = _tokens; stakingToken = _stakingToken; stakingTokenPool = _stakingTokenPool; strategist = msg.sender; insuranceFund = _insuranceFund; sentinel = _sentinel; feeBatchAddress = _feeBatchAddress; outputToWrappedRoute = [output, wrapped]; giveAllowances(); } /** * @dev Function that puts the funds to work. * It gets called whenever someone deposits in the strategy's vault contract. * It deposits want in the MasterChef to earn strategist in want. */ function deposit() public whenNotPaused { uint256 wantBal = IERC20(want).balanceOf(address(this)); if (wantBal > 0) { IMasterChef(masterchef).deposit(poolId, wantBal, address(this)); } } function setGrimFeeRecipient(address _feeBatchAddress) external onlyOwner { feeBatchAddress = _feeBatchAddress; } /** * @dev It withdraws {want} from the MasterChef and sends it to the vault. The contract owner * doesn't pay withdrawal fees. It makes it so that this strat can also be used as a worker * under a YieldBalancer. * @param _amount How much {want} to withdraw. */ function withdraw(uint256 _amount) external { require(msg.sender == vault, "!vault"); uint256 wantBal = IERC20(want).balanceOf(address(this)); if (wantBal < _amount) { IMasterChef(masterchef).withdrawAndHarvest(poolId, _amount.sub(wantBal), address(this)); wantBal = IERC20(want).balanceOf(address(this)); } if (wantBal > _amount) { wantBal = _amount; } if (tx.origin == owner()) { IERC20(want).safeTransfer(vault, wantBal); } else { uint256 withdrawalFeeAmount = wantBal.mul(WITHDRAW_FEE).div(WITHDRAWAL_MAX); IERC20(want).safeTransfer(vault, wantBal.sub(withdrawalFeeAmount)); } } function beforeDeposit() external virtual { uint256 wantBal = IERC20(want).balanceOf(address(this)); IMasterChef(masterchef).deposit(poolId, 0, address(this)); if (wantBal > 0) { chargeFees(); deposit(); } } function harvest() external whenNotPaused { require(!Address.isContract(msg.sender), "!contract"); IMasterChef(masterchef).harvest(poolId, address(this)); chargeFees(); addLiquidity(); deposit(); } function setVault(address _vault) external onlyOwner { vault = _vault; } function addLiquidity() internal { uint256 outputBal = IERC20(output).balanceOf(address(this)); uint256 stakingBal; if (output != stakingToken && stakingToken != wrapped) { SingleSwap memory swaps; FundManagement memory funds; swaps.poolid = stakingTokenPool; swaps.kind = SwapKind.GIVEN_IN; swaps.assetIn = output; swaps.assetOut = stakingToken; swaps.amount = outputBal; swaps.userData = abi.encode(0); funds.sender = address(this); funds.fromInternalBalance = false; funds.recipient = payable(address(this)); funds.toInternalBalance = false; approveTxnIfNeeded(output, beets, outputBal); IBeetsRouter(beets).swap(swaps, funds, 1, now.add(600)); stakingBal = IERC20(stakingToken).balanceOf(address(this)); } else { stakingBal = IERC20(wrapped).balanceOf(address(this)); } approveTxnIfNeeded(stakingToken, beets, stakingBal); balancerJoin(pool, stakingToken, stakingBal); } function balancerJoin(bytes32 _poolId, address _tokenIn, uint256 _amountIn) internal { uint256[] memory amounts = new uint256[](lpTokens.length); for (uint256 i = 0; i < amounts.length; i++) { amounts[i] = lpTokens[i] == _tokenIn ? _amountIn : 0; } bytes memory userData = abi.encode(1, amounts, 1); Request memory request; request.assets = lpTokens; request.maxAmountsIn = amounts; request.userData = userData; request.fromInternalBalance = false; IBeetsRouter(beets).joinPool(_poolId, address(this), address(this), request); } function chargeFees() internal { uint256 toWrapped = IERC20(output).balanceOf(address(this)).mul(PLATFORM_FEE).div(MAX_FEE); SingleSwap memory swaps; FundManagement memory funds; swaps.poolid = wrappedPool; swaps.kind = SwapKind.GIVEN_IN; swaps.assetIn = output; swaps.assetOut = wrapped; swaps.amount = toWrapped; swaps.userData = abi.encode(0); funds.sender = address(this); funds.fromInternalBalance = false; funds.recipient = payable(address(this)); funds.toInternalBalance = false; IBeetsRouter(beets).swap(swaps, funds, 1, now.add(600)); uint256 wrappedBal = IERC20(wrapped).balanceOf(address(this)); uint256 callFeeAmount = wrappedBal.mul(CALL_FEE).div(MAX_FEE); IERC20(wrapped).safeTransfer(tx.origin, callFeeAmount); uint256 grimFeeAmount = wrappedBal.mul(FEE_BATCH).div(MAX_FEE); IERC20(wrapped).safeTransfer(feeBatchAddress, grimFeeAmount); uint256 insuranceFeeAmount = wrappedBal.mul(INSURANCE_FEE).div(MAX_FEE); IERC20(wrapped).safeTransfer(insuranceFund, insuranceFeeAmount); uint256 strategistFee = wrappedBal.mul(STRATEGIST_FEE).div(MAX_FEE); IERC20(wrapped).safeTransfer(strategist, strategistFee); } function balanceOf() public view returns (uint256) { return balanceOfWant().add(balanceOfPool()); } /** * @dev It calculates how much {want} the contract holds. */ function balanceOfWant() public view returns (uint256) { return IERC20(want).balanceOf(address(this)); } /** * @dev It calculates how much {want} the strategy has allocated in the MasterChef */ function balanceOfPool() public view returns (uint256) { (uint256 _amount, ) = IMasterChef(masterchef).userInfo(poolId, address(this)); return _amount; } /** @dev Determines the amount of reward in WFTM upon calling the harvest function */ function callReward() public view returns (uint256) { uint256 outputBal = IMasterChef(masterchef).pendingBeets(poolId, address(this)); uint256 nativeOut; if (outputBal > 0) { try IUniSwapRouter(spiritRouter).getAmountsOut(outputBal, outputToWrappedRoute) returns (uint256[] memory amountOut) { nativeOut = amountOut[amountOut.length -1]; } catch {} } return nativeOut.mul(PLATFORM_FEE).div(MAX_FEE).mul(CALL_FEE).div(MAX_FEE); } /** * @dev Function that has to be called as part of strat migration. It sends all the available funds back to the * vault, ready to be migrated to the new strat. */ function retireStrat() external onlyOwner { IMasterChef(masterchef).emergencyWithdraw(poolId, address(this)); uint256 wantBal = IERC20(want).balanceOf(address(this)); IERC20(want).transfer(vault, wantBal); } /** * @dev Pauses deposits. Withdraws all funds from the MasterChef, leaving rewards behind */ function panic() external onlyOwner { pause(); IMasterChef(masterchef).emergencyWithdraw(poolId, address(this)); } /** * @dev Pauses the strat. */ function pause() public { require(msg.sender == strategist || msg.sender == sentinel, "!auth"); _pause(); IERC20(want).safeApprove(masterchef, 0); } /** * @dev Unpauses the strat. */ function unpause() external { require(msg.sender == strategist || msg.sender == sentinel, "!auth"); _unpause(); IERC20(want).safeApprove(masterchef, uint(-1)); } function giveAllowances() internal { IERC20(output).safeApprove(beets, uint(0)); IERC20(output).safeApprove(beets, uint(-1)); IERC20(wrapped).safeApprove(beets, uint(0)); IERC20(wrapped).safeApprove(beets, uint(-1)); IERC20(want).safeApprove(masterchef, uint(0)); IERC20(want).safeApprove(masterchef, uint(-1)); } function approveTxnIfNeeded(address _token, address _spender, uint256 _amount) internal { if (IERC20(_token).allowance(address(this), _spender) < _amount) { IERC20(_token).safeApprove(_spender, uint256(0)); IERC20(_token).safeApprove(_spender, uint256(-1)); } } function setFees(uint256 newCallFee, uint256 newStratFee, uint256 newWithdrawFee, uint256 newFeeBatchAmount, uint256 newInsuranceFee) external onlyOwner { require(newWithdrawFee <= 2000, "withdraw fee too high!"); CALL_FEE = newCallFee; STRATEGIST_FEE = newStratFee; WITHDRAW_FEE = newWithdrawFee; INSURANCE_FEE = newInsuranceFee; FEE_BATCH = newFeeBatchAmount; } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"bytes32","name":"_stakingTokenPool","type":"bytes32"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"bytes32","name":"_pool","type":"bytes32"},{"internalType":"bytes32","name":"_wrappedPool","type":"bytes32"},{"internalType":"address","name":"_insuranceFund","type":"address"},{"internalType":"address","name":"_feeBatchAddress","type":"address"},{"internalType":"address","name":"_sentinel","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_BATCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INSURANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRATEGIST_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeBatchAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvester","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"insuranceFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"output","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sentinel","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCallFee","type":"uint256"},{"internalType":"uint256","name":"newStratFee","type":"uint256"},{"internalType":"uint256","name":"newWithdrawFee","type":"uint256"},{"internalType":"uint256","name":"newFeeBatchAmount","type":"uint256"},{"internalType":"uint256","name":"newInsuranceFee","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeBatchAddress","type":"address"}],"name":"setGrimFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spiritRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapped","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063b7902303116100c3578063f20eaeb811610087578063f20eaeb814610619578063f2fde38b14610637578063f58c251c14610653578063fb1db27814610671578063fb6177871461068f578063fbfa77cf146106995761025e565b8063b790230314610599578063bc063e1a146105b7578063c1a3d44c146105d5578063d0e30db0146105f3578063d2969d01146105fd5761025e565b80638519359d1161010a5780638519359d146105035780638da5cb5b14610521578063951d6d201461053f57806397fd323d1461055d5780639bff5ddb1461057b5761025e565b8063715018a614610495578063722713f71461049f57806372f702f3146104bd5780637d38ca65146104db5780638456cb59146104f95761025e565b80633e0dc34e116101df57806350d7d613116101a357806350d7d613146103f757806350e70d481461041557806354518b1a14610433578063573fef0a146104515780635c975abb1461045b5780636817031b146104795761025e565b80633e0dc34e1461039d5780633f4ba83a146103bb5780634641257d146103c55780634700d305146103cf5780634bdaeac1146103d95761025e565b80631bb5e2dc116102265780631bb5e2dc146102f75780631f1fcd51146103275780631fe4a686146103455780632e1a7d4d1461036357806334fbc9a11461037f5761025e565b8063025e30b01461026357806304a66b4814610281578063115880861461029d5780631460d10a146102bb5780631573b577146102d9575b600080fd5b61026b6106b7565b604051610278919061485b565b60405180910390f35b61029b60048036036102969190810190613c2c565b6106bd565b005b6102a56107c2565b6040516102b2919061485b565b60405180910390f35b6102c361087d565b6040516102d09190614505565b60405180910390f35b6102e16108a3565b6040516102ee919061485b565b60405180910390f35b610311600480360361030c9190810190613b9e565b6108a9565b60405161031e9190614505565b60405180910390f35b61032f6108e5565b60405161033c9190614505565b60405180910390f35b61034d61090b565b60405161035a9190614505565b60405180910390f35b61037d60048036036103789190810190613b9e565b610931565b005b610387610d3a565b604051610394919061485b565b60405180910390f35b6103a5610d40565b6040516103b2919061485b565b60405180910390f35b6103c3610d46565b005b6103cd610ec7565b005b6103d761100b565b005b6103e161113c565b6040516103ee9190614505565b60405180910390f35b6103ff611162565b60405161040c9190614505565b60405180910390f35b61041d611188565b60405161042a9190614505565b60405180910390f35b61043b6111ae565b604051610448919061485b565b60405180910390f35b6104596111b4565b005b610463611314565b604051610470919061458d565b60405180910390f35b610493600480360361048e9190810190613b0b565b61132a565b005b61049d611404565b005b6104a7611559565b6040516104b4919061485b565b60405180910390f35b6104c5611581565b6040516104d29190614505565b60405180910390f35b6104e36115a7565b6040516104f0919061485b565b60405180910390f35b6105016115ad565b005b61050b61170f565b6040516105189190614505565b60405180910390f35b610529611735565b6040516105369190614505565b60405180910390f35b61054761175e565b604051610554919061485b565b60405180910390f35b610565611764565b604051610572919061485b565b60405180910390f35b61058361194c565b604051610590919061485b565b60405180910390f35b6105a1611952565b6040516105ae9190614505565b60405180910390f35b6105bf611978565b6040516105cc919061485b565b60405180910390f35b6105dd61197e565b6040516105ea919061485b565b60405180910390f35b6105fb611a30565b005b61061760048036036106129190810190613b0b565b611bcf565b005b610621611ca9565b60405161062e9190614505565b60405180910390f35b610651600480360361064c9190810190613b0b565b611ccf565b005b61065b611e93565b6040516106689190614505565b60405180910390f35b610679611eb9565b6040516106869190614505565b60405180910390f35b610697611edf565b005b6106a161218a565b6040516106ae9190614505565b60405180910390f35b601a5481565b6106c56121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074a9061474f565b60405180910390fd5b6107d0831115610798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078f9061476f565b60405180910390fd5b8460178190555083601881905550826015819055508060198190555081601a819055505050505050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166393f1a40b600f54306040518363ffffffff1660e01b8152600401610824929190614876565b604080518083038186803b15801561083b57600080fd5b505afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108739190810190613bf0565b5090508091505090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60195481565b600481815481106108b657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b89061472f565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a1e9190614505565b60206040518083038186803b158015610a3657600080fd5b505afa158015610a4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610a6e9190810190613bc7565b905081811015610bcb57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d1abb907600f54610acc84866121b890919063ffffffff16565b306040518463ffffffff1660e01b8152600401610aeb93929190614906565b600060405180830381600087803b158015610b0557600080fd5b505af1158015610b19573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b789190614505565b60206040518083038186803b158015610b9057600080fd5b505afa158015610ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610bc89190810190613bc7565b90505b81811115610bd7578190505b610bdf611735565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161415610c8657610c81600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b610d36565b6000610cb1601454610ca36015548561228890919063ffffffff16565b6122f890919063ffffffff16565b9050610d34600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610cec83856121b890919063ffffffff16565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b505b5050565b601b5481565b600f5481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610def5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e25906147af565b60405180910390fd5b610e36612342565b610ec5600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123eb9092919063ffffffff16565b565b600060149054906101000a900460ff1615610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e906146ef565b60405180910390fd5b610f2033612549565b15610f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f57906146af565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318fccc76600f54306040518363ffffffff1660e01b8152600401610fbf929190614876565b600060405180830381600087803b158015610fd957600080fd5b505af1158015610fed573d6000803e3d6000fd5b50505050610ff961255c565b611001612bbb565b611009611a30565b565b6110136121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110989061474f565b60405180910390fd5b6110a96115ad565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f940c70600f54306040518363ffffffff1660e01b8152600401611108929190614876565b600060405180830381600087803b15801561112257600080fd5b505af1158015611136573d6000803e3d6000fd5b50505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60145481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112119190614505565b60206040518083038186803b15801561122957600080fd5b505afa15801561123d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506112619190810190613bc7565b9050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d600f546000306040518463ffffffff1660e01b81526004016112c5939291906148cf565b600060405180830381600087803b1580156112df57600080fd5b505af11580156112f3573d6000803e3d6000fd5b5050505060008111156113115761130861255c565b611310611a30565b5b50565b60008060149054906101000a900460ff16905090565b6113326121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b79061474f565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61140c6121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461149a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114919061474f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600061157c6115666107c2565b61156e61197e565b61321590919063ffffffff16565b905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806116565750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168c906147af565b60405180910390fd5b61169d61326a565b61170d600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123eb9092919063ffffffff16565b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60175481565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663269db900600f54306040518363ffffffff1660e01b81526004016117c6929190614876565b60206040518083038186803b1580156117de57600080fd5b505afa1580156117f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118169190810190613bc7565b90506000808211156118f457600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d06ca61f8360136040518363ffffffff1660e01b815260040161188092919061489f565b60006040518083038186803b15801561189857600080fd5b505afa9250505080156118ce57506040513d6000823e3d601f19601f820116820180604052506118cb9190810190613b34565b60015b6118d7576118f3565b806001825103815181106118e757fe5b60200260200101519150505b5b61194560165461193760175461192960165461191b601b548861228890919063ffffffff16565b6122f890919063ffffffff16565b61228890919063ffffffff16565b6122f890919063ffffffff16565b9250505090565b60155481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60165481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016119db9190614505565b60206040518083038186803b1580156119f357600080fd5b505afa158015611a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611a2b9190810190613bc7565b905090565b600060149054906101000a900460ff1615611a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a77906146ef565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611add9190614505565b60206040518083038186803b158015611af557600080fd5b505afa158015611b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611b2d9190810190613bc7565b90506000811115611bcc57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d600f5483306040518463ffffffff1660e01b8152600401611b9993929190614906565b600060405180830381600087803b158015611bb357600080fd5b505af1158015611bc7573d6000803e3d6000fd5b505050505b50565b611bd76121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5c9061474f565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611cd76121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5c9061474f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcc9061468f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ee76121b0565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6c9061474f565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f940c70600f54306040518363ffffffff1660e01b8152600401611fd4929190614876565b600060405180830381600087803b158015611fee57600080fd5b505af1158015612002573d6000803e3d6000fd5b505050506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016120639190614505565b60206040518083038186803b15801561207b57600080fd5b505afa15801561208f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506120b39190810190613bc7565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401612134929190614564565b602060405180830381600087803b15801561214e57600080fd5b505af1158015612162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506121869190810190613b75565b5050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b60006121fa83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613315565b905092915050565b6122838363a9059cbb60e01b8484604051602401612221929190614564565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613370565b505050565b60008083141561229b57600090506122f2565b60008284029050828482816122ac57fe5b04146122ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e49061470f565b60405180910390fd5b809150505b92915050565b600061233a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613437565b905092915050565b600060149054906101000a900460ff16612391576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123889061466f565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6123d46121b0565b6040516123e19190614520565b60405180910390a1565b6000811480612484575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161243292919061453b565b60206040518083038186803b15801561244a57600080fd5b505afa15801561245e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506124829190810190613bc7565b145b6124c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ba906147ef565b60405180910390fd5b6125448363095ea7b360e01b84846040516024016124e2929190614564565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613370565b505050565b600080823b905060008111915050919050565b6000612631601654612623601b54600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016125c59190614505565b60206040518083038186803b1580156125dd57600080fd5b505afa1580156125f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506126159190810190613bc7565b61228890919063ffffffff16565b6122f890919063ffffffff16565b905061263b613942565b6126436139b2565b60115482600001818152505060008260200190600181111561266157fe5b9081600181111561266e57fe5b81525050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505082826080018181525050600060405160200161274291906145f4565b6040516020818303038152906040528260a0018190525030816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600081602001901515908115158152505030816040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000816060019015159081151581525050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166352bbbe29838360016128426102584261321590919063ffffffff16565b6040518563ffffffff1660e01b8152600401612861949392919061480f565b602060405180830381600087803b15801561287b57600080fd5b505af115801561288f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506128b39190810190613bc7565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016129119190614505565b60206040518083038186803b15801561292957600080fd5b505afa15801561293d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506129619190810190613bc7565b9050600061298e6016546129806017548561228890919063ffffffff16565b6122f890919063ffffffff16565b90506129dd3282600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b6000612a086016546129fa601a548661228890919063ffffffff16565b6122f890919063ffffffff16565b9050612a79600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b6000612aa4601654612a966019548761228890919063ffffffff16565b6122f890919063ffffffff16565b9050612b15600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b6000612b40601654612b326018548861228890919063ffffffff16565b6122f890919063ffffffff16565b9050612bb1600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122029092919063ffffffff16565b5050505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612c189190614505565b60206040518083038186803b158015612c3057600080fd5b505afa158015612c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612c689190810190613bc7565b90506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612d5c5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b156130e557612d69613942565b612d716139b2565b601254826000018181525050600082602001906001811115612d8f57fe5b90816001811115612d9c57fe5b81525050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838260800181815250506000604051602001612e7091906145f4565b6040516020818303038152906040528260a0018190525030816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600081602001901515908115158152505030816040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000816060019015159081151581525050612f68600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1686613498565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166352bbbe2983836001612fbf6102584261321590919063ffffffff16565b6040518563ffffffff1660e01b8152600401612fde949392919061480f565b602060405180830381600087803b158015612ff857600080fd5b505af115801561300c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506130309190810190613bc7565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161308c9190614505565b60206040518083038186803b1580156130a457600080fd5b505afa1580156130b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506130dc9190810190613bc7565b92505050613193565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016131409190614505565b60206040518083038186803b15801561315857600080fd5b505afa15801561316c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131909190810190613bc7565b90505b6131e2600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683613498565b613211601054600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836135a7565b5050565b600080828401905083811015613260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613257906146cf565b60405180910390fd5b8091505092915050565b600060149054906101000a900460ff16156132ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b1906146ef565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132fe6121b0565b60405161330b9190614520565b60405180910390a1565b600083831115829061335d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613354919061464d565b60405180910390fd5b5060008385039050809150509392505050565b60606133d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166138079092919063ffffffff16565b905060008151111561343257808060200190516133f29190810190613b75565b613431576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613428906147cf565b60405180910390fd5b5b505050565b6000808311829061347e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613475919061464d565b60405180910390fd5b50600083858161348a57fe5b049050809150509392505050565b808373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016134d492919061453b565b60206040518083038186803b1580156134ec57600080fd5b505afa158015613500573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506135249190810190613bc7565b10156135a2576135568260008573ffffffffffffffffffffffffffffffffffffffff166123eb9092919063ffffffff16565b6135a1827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8573ffffffffffffffffffffffffffffffffffffffff166123eb9092919063ffffffff16565b5b505050565b60606004805490506040519080825280602002602001820160405280156135dd5781602001602082028038833980820191505090505b50905060008090505b8151811015613687578373ffffffffffffffffffffffffffffffffffffffff166004828154811061361357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613660576000613662565b825b82828151811061366e57fe5b60200260200101818152505080806001019150506135e6565b50606060018260016040516020016136a19392919061460f565b60405160208183030381529060405290506136ba613a0a565b600480548060200260200160405190810160405280929190818152602001828054801561373c57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116136f2575b505050505081600001819052508281602001819052508181604001819052506000816060019015159081151581525050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b95cac28873030856040518563ffffffff1660e01b81526004016137cd94939291906145a8565b600060405180830381600087803b1580156137e757600080fd5b505af11580156137fb573d6000803e3d6000fd5b50505050505050505050565b6060613816848460008561381f565b90509392505050565b606061382a85612549565b613869576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138609061478f565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff16858760405161389391906144ee565b60006040518083038185875af1925050503d80600081146138d0576040519150601f19603f3d011682016040523d82523d6000602084013e6138d5565b606091505b509150915081156138ea57809250505061393a565b6000815111156138fd5780518082602001fd5b836040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613931919061464d565b60405180910390fd5b949350505050565b6040518060c00160405280600080191681526020016000600181111561396457fe5b8152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001606081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600015158152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525090565b60405180608001604052806060815260200160608152602001606081526020016000151581525090565b600081359050613a4381614c76565b92915050565b600082601f830112613a5a57600080fd5b8151613a6d613a688261496a565b61493d565b91508181835260208401935060208101905083856020840282011115613a9257600080fd5b60005b83811015613ac25781613aa88882613af6565b845260208401935060208301925050600181019050613a95565b5050505092915050565b600081519050613adb81614c8d565b92915050565b600081359050613af081614ca4565b92915050565b600081519050613b0581614ca4565b92915050565b600060208284031215613b1d57600080fd5b6000613b2b84828501613a34565b91505092915050565b600060208284031215613b4657600080fd5b600082015167ffffffffffffffff811115613b6057600080fd5b613b6c84828501613a49565b91505092915050565b600060208284031215613b8757600080fd5b6000613b9584828501613acc565b91505092915050565b600060208284031215613bb057600080fd5b6000613bbe84828501613ae1565b91505092915050565b600060208284031215613bd957600080fd5b6000613be784828501613af6565b91505092915050565b60008060408385031215613c0357600080fd5b6000613c1185828601613af6565b9250506020613c2285828601613af6565b9150509250929050565b600080600080600060a08688031215613c4457600080fd5b6000613c5288828901613ae1565b9550506020613c6388828901613ae1565b9450506040613c7488828901613ae1565b9350506060613c8588828901613ae1565b9250506080613c9688828901613ae1565b9150509295509295909350565b6000613caf8383613ce2565b60208301905092915050565b6000613cc783836144d0565b60208301905092915050565b613cdc81614b5b565b82525050565b613ceb81614ae9565b82525050565b613cfa81614ae9565b82525050565b6000613d0b826149d7565b613d158185614a58565b9350613d2083614992565b8060005b83811015613d51578151613d388882613ca3565b9750613d4383614a24565b925050600181019050613d24565b5085935050505092915050565b6000613d69826149e2565b613d738185614a69565b9350613d7e836149a2565b8060005b83811015613db657613d9382614c38565b613d9d8882613ca3565b9750613da883614a31565b925050600181019050613d82565b5085935050505092915050565b6000613dce826149f8565b613dd88185614a8b565b9350613de3836149c7565b8060005b83811015613e14578151613dfb8882613cbb565b9750613e0683614a4b565b925050600181019050613de7565b5085935050505092915050565b6000613e2c826149ed565b613e368185614a7a565b9350613e41836149b7565b8060005b83811015613e72578151613e598882613cbb565b9750613e6483614a3e565b925050600181019050613e45565b5085935050505092915050565b613e8881614afb565b82525050565b613e9781614afb565b82525050565b613ea681614b07565b82525050565b613eb581614b07565b82525050565b6000613ec682614a0e565b613ed08185614aad565b9350613ee0818560208601614beb565b80840191505092915050565b6000613ef782614a03565b613f018185614a9c565b9350613f11818560208601614beb565b613f1a81614c4b565b840191505092915050565b613f2e81614b6d565b82525050565b613f3d81614b7f565b82525050565b613f4c81614b91565b82525050565b613f5b81614ba3565b82525050565b613f6a81614bb5565b82525050565b6000613f7b82614a19565b613f858185614ab8565b9350613f95818560208601614beb565b613f9e81614c4b565b840191505092915050565b6000613fb6601483614ab8565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000613ff6602683614ab8565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061405c600983614ab8565b91507f21636f6e747261637400000000000000000000000000000000000000000000006000830152602082019050919050565b600061409c601b83614ab8565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006140dc601083614ab8565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b600061411c602183614ab8565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614182600683614ab8565b91507f217661756c7400000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006141c2602083614ab8565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614202601683614ab8565b91507f77697468647261772066656520746f6f206869676821000000000000000000006000830152602082019050919050565b6000614242601d83614ab8565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614282600583614ab8565b91507f21617574680000000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006142c2602a83614ab8565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614328603683614ab8565b91507f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008301527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006020830152604082019050919050565b6080820160008201516143976000850182613ce2565b5060208201516143aa6020850182613e7f565b5060408201516143bd6040850182613ce2565b5060608201516143d06060850182613e7f565b50505050565b600060808301600083015184820360008601526143f38282613d00565b9150506020830151848203602086015261440d8282613e21565b915050604083015184820360408601526144278282613eec565b915050606083015161443c6060860182613e7f565b508091505092915050565b600060c08301600083015161445f6000860182613e9d565b5060208301516144726020860182613f25565b5060408301516144856040860182613ce2565b5060608301516144986060860182613ce2565b5060808301516144ab60808601826144d0565b5060a083015184820360a08601526144c38282613eec565b9150508091505092915050565b6144d981614b44565b82525050565b6144e881614b44565b82525050565b60006144fa8284613ebb565b915081905092915050565b600060208201905061451a6000830184613cf1565b92915050565b60006020820190506145356000830184613cd3565b92915050565b60006040820190506145506000830185613cf1565b61455d6020830184613cf1565b9392505050565b60006040820190506145796000830185613cf1565b61458660208301846144df565b9392505050565b60006020820190506145a26000830184613e8e565b92915050565b60006080820190506145bd6000830187613eac565b6145ca6020830186613cf1565b6145d76040830185613cf1565b81810360608301526145e981846143d6565b905095945050505050565b60006020820190506146096000830184613f43565b92915050565b60006060820190506146246000830186613f61565b81810360208301526146368185613dc3565b90506146456040830184613f61565b949350505050565b600060208201905081810360008301526146678184613f70565b905092915050565b6000602082019050818103600083015261468881613fa9565b9050919050565b600060208201905081810360008301526146a881613fe9565b9050919050565b600060208201905081810360008301526146c88161404f565b9050919050565b600060208201905081810360008301526146e88161408f565b9050919050565b60006020820190508181036000830152614708816140cf565b9050919050565b600060208201905081810360008301526147288161410f565b9050919050565b6000602082019050818103600083015261474881614175565b9050919050565b60006020820190508181036000830152614768816141b5565b9050919050565b60006020820190508181036000830152614788816141f5565b9050919050565b600060208201905081810360008301526147a881614235565b9050919050565b600060208201905081810360008301526147c881614275565b9050919050565b600060208201905081810360008301526147e8816142b5565b9050919050565b600060208201905081810360008301526148088161431b565b9050919050565b600060e08201905081810360008301526148298187614447565b90506148386020830186614381565b61484560a0830185613f52565b61485260c08301846144df565b95945050505050565b600060208201905061487060008301846144df565b92915050565b600060408201905061488b60008301856144df565b6148986020830184613cf1565b9392505050565b60006040820190506148b460008301856144df565b81810360208301526148c68184613d5e565b90509392505050565b60006060820190506148e460008301866144df565b6148f16020830185613f34565b6148fe6040830184613cf1565b949350505050565b600060608201905061491b60008301866144df565b61492860208301856144df565b6149356040830184613cf1565b949350505050565b6000604051905081810181811067ffffffffffffffff8211171561496057600080fd5b8060405250919050565b600067ffffffffffffffff82111561498157600080fd5b602082029050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081549050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000600182019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614af482614b24565b9050919050565b60008115159050919050565b6000819050919050565b6000819050614b1f82614c69565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614b6682614bc7565b9050919050565b6000614b7882614b11565b9050919050565b6000614b8a82614b44565b9050919050565b6000614b9c82614b4e565b9050919050565b6000614bae82614b44565b9050919050565b6000614bc082614b4e565b9050919050565b6000614bd282614bd9565b9050919050565b6000614be482614b24565b9050919050565b60005b83811015614c09578082015181840152602081019050614bee565b83811115614c18576000848401525b50505050565b6000614c31614c2c83614c5c565b614ac9565b9050919050565b6000614c448254614c1e565b9050919050565b6000601f19601f8301169050919050565b60008160001c9050919050565b60028110614c7357fe5b50565b614c7f81614ae9565b8114614c8a57600080fd5b50565b614c9681614afb565b8114614ca157600080fd5b50565b614cad81614b44565b8114614cb857600080fd5b5056fea26469706673582212207e46aa4081bf424f017b9c2c33b4baf863f81c494bc4b6a959169b022774141c64736f6c63430006020033
Loading...
Loading
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.