Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11559770 | 1401 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x71661297...e52550cd9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FaaSRewardFund
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-16 */ /** *Submitted for verification at Etherscan.io on 2020-11-22 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; /** * @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); } /** * @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; } } /** * @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); } } } } /** * @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"); } } } interface IBPool is IERC20 { function version() external view returns(uint); function swapExactAmountIn(address, uint, address, uint, uint) external returns (uint, uint); function swapExactAmountOut(address, uint, address, uint, uint) external returns (uint, uint); function calcInGivenOut(uint, uint, uint, uint, uint, uint) external pure returns (uint); function calcOutGivenIn(uint, uint, uint, uint, uint, uint) external pure returns (uint); function getDenormalizedWeight(address) external view returns (uint); function swapFee() external view returns (uint); function setSwapFee(uint _swapFee) external; function bind(address token, uint balance, uint denorm) external; function rebind(address token, uint balance, uint denorm) external; function finalize( uint _swapFee, uint _initPoolSupply, address[] calldata _bindTokens, uint[] calldata _bindDenorms ) external; function setPublicSwap(bool _publicSwap) external; function setController(address _controller) external; function setExchangeProxy(address _exchangeProxy) external; function getFinalTokens() external view returns (address[] memory tokens); function getTotalDenormalizedWeight() external view returns (uint); function getBalance(address token) external view returns (uint); function joinPool(uint poolAmountOut, uint[] calldata maxAmountsIn) external; function joinPoolFor(address account, uint rewardAmountOut, uint[] calldata maxAmountsIn) external; function joinswapPoolAmountOut(address tokenIn, uint poolAmountOut, uint maxAmountIn) external returns (uint tokenAmountIn); function exitPool(uint poolAmountIn, uint[] calldata minAmountsOut) external; function exitswapPoolAmountIn(address tokenOut, uint poolAmountIn, uint minAmountOut) external returns (uint tokenAmountOut); function exitswapExternAmountOut(address tokenOut, uint tokenAmountOut, uint maxPoolAmountIn) external returns (uint poolAmountIn); function joinswapExternAmountIn( address tokenIn, uint tokenAmountIn, uint minPoolAmountOut ) external returns (uint poolAmountOut); function finalizeRewardFundInfo(address _rewardFund, uint _unstakingFrozenTime) external; function addRewardPool(IERC20 _rewardToken, uint256 _startBlock, uint256 _endRewardBlock, uint256 _rewardPerBlock, uint256 _lockRewardPercent, uint256 _startVestingBlock, uint256 _endVestingBlock) external; } interface IFreeFromUpTo { function freeFromUpTo(address from, uint256 value) external returns (uint256 freed); } interface IBFactory { function newBPool() external returns (IBPool); } interface IValueLiquidRegistry { function getBestPoolsWithLimit(address, address, uint) external view returns (address[] memory); } interface IWETH { function deposit() external payable; function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; function balanceOf(address account) external view returns (uint256); } // Token pool of arbitrary ERC20 token. // This is owned and used by a parent FaaSPool. contract FaaSRewardFund { using SafeERC20 for IERC20; using SafeMath for uint256; event NewAdmin(address indexed newAdmin); event NewPendingAdmin(address indexed newPendingAdmin); event NewDelay(uint indexed newDelay); event CancelTransaction(bytes32 indexed txHash, address indexed target, uint value, string signature, bytes data, uint eta); event ExecuteTransaction(bytes32 indexed txHash, address indexed target, uint value, string signature, bytes data, uint eta); event QueueTransaction(bytes32 indexed txHash, address indexed target, uint value, string signature, bytes data, uint eta); uint public constant GRACE_PERIOD = 14 days; uint public constant MINIMUM_DELAY = 1 days; uint public constant MAXIMUM_DELAY = 30 days; bool private _initialized; address public faasPool; address public admin; address public pendingAdmin; uint public delay; bool public admin_initialized; mapping(bytes32 => bool) public queuedTransactions; constructor() public { admin_initialized = false; _initialized = false; } function initialized(address admin_, uint delay_, address _faasPool) public { require(_initialized == false, "Timelock::constructor: Delay must exceed minimum delay."); require(delay_ >= MINIMUM_DELAY, "Timelock::constructor: Delay must exceed minimum delay."); require(delay_ <= MAXIMUM_DELAY, "Timelock::constructor: Delay must not exceed maximum delay."); admin = admin_; faasPool = _faasPool; delay = delay_; _initialized = true; } // XXX: function() external payable { } receive() external payable {} function setDelay(uint delay_) public { require(msg.sender == address(this), "Timelock::setDelay: Call must come from Timelock."); require(delay_ >= MINIMUM_DELAY, "Timelock::setDelay: Delay must exceed minimum delay."); require(delay_ <= MAXIMUM_DELAY, "Timelock::setDelay: Delay must not exceed maximum delay."); delay = delay_; emit NewDelay(delay); } function acceptAdmin() public { require(msg.sender == pendingAdmin, "Timelock::acceptAdmin: Call must come from pendingAdmin."); admin = msg.sender; pendingAdmin = address(0); emit NewAdmin(admin); } function setPendingAdmin(address pendingAdmin_) public { // allows one time setting of admin for deployment purposes if (admin_initialized) { require(msg.sender == address(this), "Timelock::setPendingAdmin: Call must come from Timelock."); } else { require(msg.sender == admin, "Timelock::setPendingAdmin: First call must come from admin."); admin_initialized = true; } pendingAdmin = pendingAdmin_; emit NewPendingAdmin(pendingAdmin); } function queueTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public returns (bytes32) { require(msg.sender == admin, "Timelock::queueTransaction: Call must come from admin."); require(eta >= getBlockTimestamp().add(delay), "Timelock::queueTransaction: Estimated execution block must satisfy delay."); bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta)); queuedTransactions[txHash] = true; emit QueueTransaction(txHash, target, value, signature, data, eta); return txHash; } function cancelTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public { require(msg.sender == admin, "Timelock::cancelTransaction: Call must come from admin."); bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta)); queuedTransactions[txHash] = false; emit CancelTransaction(txHash, target, value, signature, data, eta); } function executeTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public payable returns (bytes memory) { require(msg.sender == admin, "Timelock::executeTransaction: Call must come from admin."); bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta)); require(queuedTransactions[txHash], "Timelock::executeTransaction: Transaction hasn't been queued."); require(getBlockTimestamp() >= eta, "Timelock::executeTransaction: Transaction hasn't surpassed time lock."); require(getBlockTimestamp() <= eta.add(GRACE_PERIOD), "Timelock::executeTransaction: Transaction is stale."); queuedTransactions[txHash] = false; bytes memory callData; if (bytes(signature).length == 0) { callData = data; } else { callData = abi.encodePacked(bytes4(keccak256(bytes(signature))), data); } // solium-disable-next-line security/no-call-value (bool success, bytes memory returnData) = target.call{value : value}(callData); require(success, "Timelock::executeTransaction: Transaction execution reverted."); emit ExecuteTransaction(txHash, target, value, signature, data, eta); return returnData; } function getBlockTimestamp() internal view returns (uint) { return block.timestamp; } function balance(IERC20 _token) public view returns (uint256) { return _token.balanceOf(address(this)); } function safeTransfer(IERC20 _token, address _to, uint256 _value) external { require(msg.sender == faasPool, "!faasPool"); uint256 _tokenBal = balance(_token); _token.safeTransfer(_to, _tokenBal > _value ? _value : _tokenBal); } /** * This function allows governance to take unsupported tokens out of the contract. This is in an effort to make someone whole, should they seriously mess up. * There is no guarantee governance will vote to return these. It also allows for removal of airdropped tokens. */ function governanceRecoverUnsupported(IERC20 _token, uint _amount, address _to) external { require(msg.sender == address(this), "!timelock"); if ((address(_token) == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE))) { (bool xfer,) = _to.call{value : _amount}(""); require(xfer, "ERR_ETH_FAILED"); } else { _token.safeTransfer(_to, _amount); } } } contract FaasPoolProxy { using SafeMath for uint256; using SafeERC20 for IERC20; using Address for address; IFreeFromUpTo public constant chi = IFreeFromUpTo(0x0000000000004946c0e9F43F4Dee607b0eF1fA1c); modifier discountCHI(uint8 flag) { if ((flag & 0x1) == 0) { _; } else { uint256 gasStart = gasleft(); _; uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length; chi.freeFromUpTo(msg.sender, (gasSpent + 14154) / 41130); } } IWETH weth; address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); address public governance; address public exchangeProxy; constructor(address _weth,address _exchangeProxy) public { weth = IWETH(_weth); governance = tx.origin; exchangeProxy = _exchangeProxy; } struct PoolRewardInfo { IERC20 rewardToken; uint256 startBlock; uint256 endRewardBlock; uint256 rewardPerBlock; uint256 lockRewardPercent; uint256 startVestingBlock; uint256 endVestingBlock; uint unstakingFrozenTime; uint rewardFundAmount; } struct PoolInfo { IBFactory factory; address[] tokens; uint[] balances; uint[] denorms; uint swapFee; uint initPoolSupply; } receive() external payable {} function setExchangeProxy(address _exchangeProxy) external { require(msg.sender == governance, "!governance"); exchangeProxy = _exchangeProxy; } function createInternal( PoolInfo calldata poolInfo ) internal returns (IBPool pool) { address[] memory tokens = poolInfo.tokens; require(tokens.length == poolInfo.balances.length, "ERR_LENGTH_MISMATCH"); require(tokens.length == poolInfo.denorms.length, "ERR_LENGTH_MISMATCH"); pool = poolInfo.factory.newBPool(); bool containsETH = false; for (uint i = 0; i < tokens.length; i++) { if (transferFromAllTo(tokens[i], poolInfo.balances[i], address(pool))) { containsETH = true; tokens[i] = address(weth); } } require(msg.value == 0 || containsETH, "!invalid payable"); pool.finalize(poolInfo.swapFee, poolInfo.initPoolSupply, tokens, poolInfo.denorms); } function createFaaSReward( PoolInfo calldata poolInfo, PoolRewardInfo calldata poolRewardInfo, uint8 flag ) payable external discountCHI(flag) returns (IBPool pool) { pool = createInternal(poolInfo); { FaaSRewardFund faasRewardFund = new FaaSRewardFund(); pool.finalizeRewardFundInfo(address(faasRewardFund), poolRewardInfo.unstakingFrozenTime); pool.addRewardPool( poolRewardInfo.rewardToken, poolRewardInfo.startBlock, poolRewardInfo.endRewardBlock, poolRewardInfo.rewardPerBlock, poolRewardInfo.lockRewardPercent, poolRewardInfo.startVestingBlock, poolRewardInfo.endVestingBlock); transferFromAllTo(address(poolRewardInfo.rewardToken), poolRewardInfo.rewardFundAmount, address(faasRewardFund)); faasRewardFund.initialized(msg.sender, poolRewardInfo.unstakingFrozenTime + 1 days, address(pool)); pool.setExchangeProxy(exchangeProxy); pool.setController(address(faasRewardFund)); } uint lpAmount = pool.balanceOf(address(this)); if (lpAmount > 0) { IERC20(pool).safeTransfer(msg.sender, lpAmount); } } function isETH(IERC20 token) internal pure returns (bool) { return (address(token) == ETH_ADDRESS); } function transferFromAllTo(address token, uint amount, address to) internal returns (bool containsETH) { if (isETH(IERC20(token))) { require(amount == msg.value, "!invalid amount"); weth.deposit{value : amount}(); weth.transfer(to, amount); containsETH = true; } else { IERC20(token).safeTransferFrom(msg.sender, to, amount); } return containsETH; } function transferFromAllAndApprove(address token, uint amount, address spender) internal returns (bool containsETH) { if (isETH(IERC20(token))) { require(amount == msg.value, "!invalid amount"); weth.deposit{value : amount}(); if (weth.allowance(address(this), spender) > 0) { IERC20(address(weth)).safeApprove(address(spender), 0); } IERC20(address(weth)).safeApprove(spender, amount); containsETH = true; } else { IERC20(token).safeTransferFrom(msg.sender, address(this), amount); if (IERC20(token).allowance(address(this), spender) > 0) { IERC20(token).safeApprove(spender, 0); } IERC20(token).safeApprove(spender, amount); } return containsETH; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"CancelTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"NewDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"QueueTransaction","type":"event"},{"inputs":[],"name":"GRACE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin_initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"cancelTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"executeTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"faasPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"uint256","name":"delay_","type":"uint256"},{"internalType":"address","name":"_faasPool","type":"address"}],"name":"initialized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"queueTransaction","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queuedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"safeTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"delay_","type":"uint256"}],"name":"setDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingAdmin_","type":"address"}],"name":"setPendingAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106101485760003560e01c80637d645fab116100c0578063e177246e11610074578063f2b0653711610059578063f2b065371461032e578063f851a4401461034e578063fc80a1c7146103635761014f565b8063e177246e146102ee578063e3d670d71461030e5761014f565b8063c1a287e2116100a5578063c1a287e2146102a4578063d1660f99146102b9578063dfb4b724146102d95761014f565b80637d645fab1461027a578063b1b43ae51461028f5761014f565b80634dd18bf511610117578063591fcdfe116100fc578063591fcdfe146102235780636a42b8f8146102435780636fc1f57e146102585761014f565b80634dd18bf5146101e357806354575af4146102035761014f565b80630825f38f146101545780630e18b6811461017d57806326782247146101945780633a66f901146101b65761014f565b3661014f57005b600080fd5b61016761016236600461144f565b610383565b60405161017491906116de565b60405180910390f35b34801561018957600080fd5b50610192610682565b005b3480156101a057600080fd5b506101a961074e565b6040516101749190611629565b3480156101c257600080fd5b506101d66101d136600461144f565b61076a565b60405161017491906116d5565b3480156101ef57600080fd5b506101926101fe3660046113f2565b6108f3565b34801561020f57600080fd5b5061019261021e36600461154c565b610a2e565b34801561022f57600080fd5b5061019261023e36600461144f565b610b68565b34801561024f57600080fd5b506101d6610c9c565b34801561026457600080fd5b5061026d610ca2565b60405161017491906116ca565b34801561028657600080fd5b506101d6610cab565b34801561029b57600080fd5b506101d6610cb2565b3480156102b057600080fd5b506101d6610cb9565b3480156102c557600080fd5b506101926102d436600461150c565b610cc0565b3480156102e557600080fd5b506101a9610d5a565b3480156102fa57600080fd5b506101926103093660046114f4565b610d7b565b34801561031a57600080fd5b506101d66103293660046113f2565b610e61565b34801561033a57600080fd5b5061026d6103493660046114f4565b610f0c565b34801561035a57600080fd5b506101a9610f21565b34801561036f57600080fd5b5061019261037e36600461140e565b610f3d565b60015460609073ffffffffffffffffffffffffffffffffffffffff1633146103e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d7906116f1565b60405180910390fd5b600086868686866040516020016103fb959493929190611670565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600590935291205490915060ff1661047a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611a93565b82610483611098565b10156104bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d7906118f9565b6104c8836212750061109c565b6104d0611098565b1115610508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611865565b600081815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055845160609061054c575083610578565b8580519060200120856040516020016105669291906115c2565b60405160208183030381529060405290505b600060608973ffffffffffffffffffffffffffffffffffffffff1689846040516105a2919061160a565b60006040518083038185875af1925050503d80600081146105df576040519150601f19603f3d011682016040523d82523d6000602084013e6105e4565b606091505b509150915081610620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611c75565b8973ffffffffffffffffffffffffffffffffffffffff16847fa560e3198060a2f10670c1ec5b403077ea6ae93ca8de1c32b451dc1a943cd6e78b8b8b8b60405161066d9493929190611e7d565b60405180910390a39998505050505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff1633146106d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611b27565b60018054337fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179182905560028054909116905560405173ffffffffffffffffffffffffffffffffffffffff909116907f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c90600090a2565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146107be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611c18565b6107d26003546107cc611098565b9061109c565b82101561080b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611d09565b60008686868686604051602001610826959493929190611670565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206000818152600590925291902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055915073ffffffffffffffffffffffffffffffffffffffff88169082907f76e2796dc3a81d57b0e8504b647febcbeeb5f4af818e164f11eef8131a6a763f906108e1908a908a908a908a90611e7d565b60405180910390a39695505050505050565b60045460ff161561093c57333014610937576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611bbb565b6109b9565b60015473ffffffffffffffffffffffffffffffffffffffff16331461098d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d7906119d9565b600480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83811691909117918290556040519116907f69d78e38a01985fbb1462961809b4b2d65531bc93b2b94037f3334b82ca4a75690600090a250565b333014610a67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611e46565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610b425760008173ffffffffffffffffffffffffffffffffffffffff1683604051610abf90611626565b60006040518083038185875af1925050503d8060008114610afc576040519150601f19603f3d011682016040523d82523d6000602084013e610b01565b606091505b5050905080610b3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611b84565b50610b63565b610b6373ffffffffffffffffffffffffffffffffffffffff841682846110e2565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610bb9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d79061174e565b60008585858585604051602001610bd4959493929190611670565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206000818152600590925291902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055915073ffffffffffffffffffffffffffffffffffffffff87169082907f2fffc091a501fd91bfbff27141450d3acb40fb8e6d8382b243ec7a812a3aaf8790610c8c908990899089908990611e7d565b60405180910390a3505050505050565b60035481565b60045460ff1681565b62278d0081565b6201518081565b6212750081565b600054610100900473ffffffffffffffffffffffffffffffffffffffff163314610d16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611af0565b6000610d2184610e61565b9050610d5483838311610d345782610d36565b835b73ffffffffffffffffffffffffffffffffffffffff871691906110e2565b50505050565b600054610100900473ffffffffffffffffffffffffffffffffffffffff1681565b333014610db4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611de9565b62015180811015610df1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d79061197c565b62278d00811115610e2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611a36565b600381905560405181907f948b1f6a42ee138b7e34058ba85a37f716d55ff25ff05a763f15bed6a04c8d2c90600090a250565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190610eb6903090600401611629565b60206040518083038186803b158015610ece57600080fd5b505afa158015610ee2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f069190611560565b92915050565b60056020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60005460ff1615610f7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611808565b62015180821015610fb7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611808565b62278d00821115610ff4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d7906117ab565b6001805473ffffffffffffffffffffffffffffffffffffffff9485167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116178155600080546003949094557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0092909416610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9093169290921716179055565b4290565b6000828201838110156110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d7906118c2565b9392505050565b610b638363a9059cbb60e01b848460405160240161110192919061164a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915260606111e0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112349092919063ffffffff16565b805190915015610b6357808060200190518101906111fe91906114d4565b610b63576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611d8c565b6060611243848460008561124b565b949350505050565b606061125685611350565b61128c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d790611cd2565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516112b6919061160a565b60006040518083038185875af1925050503d80600081146112f3576040519150601f19603f3d011682016040523d82523d6000602084013e6112f8565b606091505b5091509150811561130c5791506112439050565b80511561131c5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d791906116de565b3b151590565b600082601f830112611366578081fd5b813567ffffffffffffffff8082111561137d578283fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011682010181811083821117156113bb578485fd5b6040528281529250828483016020018610156113d657600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215611403578081fd5b81356110db81611ee6565b600080600060608486031215611422578182fd5b833561142d81611ee6565b925060208401359150604084013561144481611ee6565b809150509250925092565b600080600080600060a08688031215611466578081fd5b853561147181611ee6565b945060208601359350604086013567ffffffffffffffff80821115611494578283fd5b6114a089838a01611356565b945060608801359150808211156114b5578283fd5b506114c288828901611356565b95989497509295608001359392505050565b6000602082840312156114e5578081fd5b815180151581146110db578182fd5b600060208284031215611505578081fd5b5035919050565b600080600060608486031215611520578283fd5b833561152b81611ee6565b9250602084013561153b81611ee6565b929592945050506040919091013590565b600080600060608486031215611422578283fd5b600060208284031215611571578081fd5b5051919050565b60008151808452611590816020860160208601611eba565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffff000000000000000000000000000000000000000000000000000000008416825282516115fc816004850160208701611eba565b919091016004019392505050565b6000825161161c818460208701611eba565b9190910192915050565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b600073ffffffffffffffffffffffffffffffffffffffff8716825285602083015260a060408301526116a560a0830186611578565b82810360608401526116b78186611578565b9150508260808301529695505050505050565b901515815260200190565b90815260200190565b6000602082526110db6020830184611578565b60208082526038908201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20436160408201527f6c6c206d75737420636f6d652066726f6d2061646d696e2e0000000000000000606082015260800190565b60208082526037908201527f54696d656c6f636b3a3a63616e63656c5472616e73616374696f6e3a2043616c60408201527f6c206d75737420636f6d652066726f6d2061646d696e2e000000000000000000606082015260800190565b6020808252603b908201527f54696d656c6f636b3a3a636f6e7374727563746f723a2044656c6179206d757360408201527f74206e6f7420657863656564206d6178696d756d2064656c61792e0000000000606082015260800190565b60208082526037908201527f54696d656c6f636b3a3a636f6e7374727563746f723a2044656c6179206d757360408201527f7420657863656564206d696e696d756d2064656c61792e000000000000000000606082015260800190565b60208082526033908201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260408201527f616e73616374696f6e206973207374616c652e00000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526045908201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260408201527f616e73616374696f6e206861736e2774207375727061737365642074696d652060608201527f6c6f636b2e000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526034908201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206560408201527f7863656564206d696e696d756d2064656c61792e000000000000000000000000606082015260800190565b6020808252603b908201527f54696d656c6f636b3a3a73657450656e64696e6741646d696e3a20466972737460408201527f2063616c6c206d75737420636f6d652066726f6d2061646d696e2e0000000000606082015260800190565b60208082526038908201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206e60408201527f6f7420657863656564206d6178696d756d2064656c61792e0000000000000000606082015260800190565b6020808252603d908201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260408201527f616e73616374696f6e206861736e2774206265656e207175657565642e000000606082015260800190565b60208082526009908201527f2166616173506f6f6c0000000000000000000000000000000000000000000000604082015260600190565b60208082526038908201527f54696d656c6f636b3a3a61636365707441646d696e3a2043616c6c206d75737460408201527f20636f6d652066726f6d2070656e64696e6741646d696e2e0000000000000000606082015260800190565b6020808252600e908201527f4552525f4554485f4641494c4544000000000000000000000000000000000000604082015260600190565b60208082526038908201527f54696d656c6f636b3a3a73657450656e64696e6741646d696e3a2043616c6c2060408201527f6d75737420636f6d652066726f6d2054696d656c6f636b2e0000000000000000606082015260800190565b60208082526036908201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a2043616c6c60408201527f206d75737420636f6d652066726f6d2061646d696e2e00000000000000000000606082015260800190565b6020808252603d908201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260408201527f616e73616374696f6e20657865637574696f6e2072657665727465642e000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526049908201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a204573746960408201527f6d6174656420657865637574696f6e20626c6f636b206d75737420736174697360608201527f66792064656c61792e0000000000000000000000000000000000000000000000608082015260a00190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f54696d656c6f636b3a3a73657444656c61793a2043616c6c206d75737420636f60408201527f6d652066726f6d2054696d656c6f636b2e000000000000000000000000000000606082015260800190565b60208082526009908201527f2174696d656c6f636b0000000000000000000000000000000000000000000000604082015260600190565b600085825260806020830152611e966080830186611578565b8281036040840152611ea88186611578565b91505082606083015295945050505050565b60005b83811015611ed5578181015183820152602001611ebd565b83811115610d545750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114611f0857600080fd5b5056fea2646970667358221220649af48a631493c626ba39e2468d60057c8e5323a0bf63151d2428546c2750d164736f6c634300060c0033
Deployed Bytecode Sourcemap
21115:6559:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25115:1318;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23262:242;;;;;;;;;;;;;:::i;:::-;;21998:27;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;24057:607::-;;;;;;;;;;-1:-1:-1;24057:607:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;23512:537::-;;;;;;;;;;-1:-1:-1;23512:537:0;;;;;:::i;:::-;;:::i;27243:428::-;;;;;;;;;;-1:-1:-1;27243:428:0;;;;;:::i;:::-;;:::i;24672:435::-;;;;;;;;;;-1:-1:-1;24672:435:0;;;;;:::i;:::-;;:::i;22032:17::-;;;;;;;;;;;;;:::i;22056:29::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;21858:44::-;;;;;;;;;;;;;:::i;21808:43::-;;;;;;;;;;;;;:::i;21758:::-;;;;;;;;;;;;;:::i;26677:260::-;;;;;;;;;;-1:-1:-1;26677:260:0;;;;;:::i;:::-;;:::i;21941:23::-;;;;;;;;;;;;;:::i;22848:406::-;;;;;;;;;;-1:-1:-1;22848:406:0;;;;;:::i;:::-;;:::i;26550:119::-;;;;;;;;;;-1:-1:-1;26550:119:0;;;;;:::i;:::-;;:::i;22092:50::-;;;;;;;;;;-1:-1:-1;22092:50:0;;;;;:::i;:::-;;:::i;21971:20::-;;;;;;;;;;;;;:::i;22255:503::-;;;;;;;;;;-1:-1:-1;22255:503:0;;;;;:::i;:::-;;:::i;25115:1318::-;25296:5;;25249:12;;25296:5;;25282:10;:19;25274:88;;;;;;;;;;;;:::i;:::-;;;;;;;;;25375:14;25413:6;25421:5;25428:9;25439:4;25445:3;25402:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;25392:58;;25402:47;25392:58;;;;25469:26;;;;:18;:26;;;;;;25392:58;;-1:-1:-1;25469:26:0;;25461:100;;;;;;;;;;;;:::i;:::-;25603:3;25580:19;:17;:19::i;:::-;:26;;25572:108;;;;;;;;;;;;:::i;:::-;25722:21;:3;21794:7;25722;:21::i;:::-;25699:19;:17;:19::i;:::-;:44;;25691:108;;;;;;;;;;;;:::i;:::-;25841:5;25812:26;;;:18;:26;;;;;:34;;;;;;25897:23;;25859:21;;25893:179;;-1:-1:-1;25953:4:0;25893:179;;;26041:9;26025:27;;;;;;26055:4;26001:59;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25990:70;;25893:179;26145:12;26159:23;26186:6;:11;;26206:5;26213:8;26186:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26144:78;;;;26241:7;26233:81;;;;;;;;;;;;:::i;:::-;26359:6;26332:63;;26351:6;26332:63;26367:5;26374:9;26385:4;26391:3;26332:63;;;;;;;;;:::i;:::-;;;;;;;;26415:10;25115:1318;-1:-1:-1;;;;;;;;;25115:1318:0:o;23262:242::-;23325:12;;;;23311:10;:26;23303:95;;;;;;;;;;;;:::i;:::-;23409:5;:18;;23417:10;23409:18;;;;;;;;;23438:12;:25;;;;;;;23481:15;;23409:18;23490:5;;;;23481:15;;-1:-1:-1;;23481:15:0;23262:242::o;21998:27::-;;;;;;:::o;24057:607::-;24223:5;;24181:7;;24223:5;;24209:10;:19;24201:86;;;;;;;;;;;;:::i;:::-;24313:30;24337:5;;24313:19;:17;:19::i;:::-;:23;;:30::i;:::-;24306:3;:37;;24298:123;;;;;;;;;;;;:::i;:::-;24434:14;24472:6;24480:5;24487:9;24498:4;24504:3;24461:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;24451:58;;24461:47;24451:58;;;;24520:26;;;;:18;:26;;;;;;:33;;;;24549:4;24520:33;;;24451:58;-1:-1:-1;24571:61:0;;;;24451:58;;24571:61;;;;24604:5;;24611:9;;24622:4;;24628:3;;24571:61;:::i;:::-;;;;;;;;24650:6;24057:607;-1:-1:-1;;;;;;24057:607:0:o;23512:537::-;23651:17;;;;23647:309;;;23693:10;23715:4;23693:27;23685:96;;;;;;;;;;;;:::i;:::-;23647:309;;;23836:5;;;;23822:10;:19;23814:91;;;;;;;;;;;;:::i;:::-;23920:17;:24;;;;23940:4;23920:24;;;23647:309;23966:12;:28;;;;;;;;;;;;;;;;24012:29;;24028:12;;;24012:29;;-1:-1:-1;;24012:29:0;23512:537;:::o;27243:428::-;27351:10;27373:4;27351:27;27343:49;;;;;;;;;;;;:::i;:::-;27408:70;;;27435:42;27408:70;27403:261;;;27497:9;27511:3;:8;;27528:7;27511:29;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27496:44;;;27563:4;27555:31;;;;;;;;;;;;:::i;:::-;27403:261;;;;27619:33;:19;;;27639:3;27644:7;27619:19;:33::i;:::-;27243:428;;;:::o;24672:435::-;24821:5;;;;24807:10;:19;24799:87;;;;;;;;;;;;:::i;:::-;24899:14;24937:6;24945:5;24952:9;24963:4;24969:3;24926:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;24916:58;;24926:47;24916:58;;;;25014:5;24985:26;;;:18;:26;;;;;;:34;;;;;;24916:58;-1:-1:-1;25037:62:0;;;;24916:58;;25037:62;;;;25071:5;;25078:9;;25089:4;;25095:3;;25037:62;:::i;:::-;;;;;;;;24672:435;;;;;;:::o;22032:17::-;;;;:::o;22056:29::-;;;;;;:::o;21858:44::-;21895:7;21858:44;:::o;21808:43::-;21845:6;21808:43;:::o;21758:::-;21794:7;21758:43;:::o;26677:260::-;26785:8;;;;;;;26771:10;:22;26763:44;;;;;;;;;;;;:::i;:::-;26818:17;26838:15;26846:6;26838:7;:15::i;:::-;26818:35;;26864:65;26884:3;26901:6;26889:9;:18;:39;;26919:9;26889:39;;;26910:6;26889:39;26864:19;;;;:65;:19;:65::i;:::-;26677:260;;;;:::o;21941:23::-;;;;;;;;;:::o;22848:406::-;22905:10;22927:4;22905:27;22897:89;;;;;;;;;;;;:::i;:::-;21845:6;23005;:23;;22997:88;;;;;;;;;;;;:::i;:::-;21895:7;23104:6;:23;;23096:92;;;;;;;;;;;;:::i;:::-;23199:5;:14;;;23231:15;;23207:6;;23231:15;;;;;22848:406;:::o;26550:119::-;26630:31;;;;;26603:7;;26630:16;;;;;;:31;;26655:4;;26630:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;26623:38;26550:119;-1:-1:-1;;26550:119:0:o;22092:50::-;;;;;;;;;;;;;;;:::o;21971:20::-;;;;;;:::o;22255:503::-;22350:12;;;;:21;22342:89;;;;;;;;;;;;:::i;:::-;21845:6;22450;:23;;22442:91;;;;;;;;;;;;:::i;:::-;21895:7;22552:6;:23;;22544:95;;;;;;;;;;;;:::i;:::-;22650:5;:14;;;;;;;;;;;;;:5;22675:20;;22706:5;:14;;;;22731:19;22675:20;;;;22650:14;22675:20;;;;;;;;;22731:19;;;;22255:503::o;26441:99::-;26517:15;26441:99;:::o;3723:181::-;3781:7;3813:5;;;3837:6;;;;3829:46;;;;;;;;;;;;:::i;:::-;3895:1;3723:181;-1:-1:-1;;;3723:181:0:o;14704:177::-;14787:86;14807:5;14837:23;;;14862:2;14866:5;14814:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17433:23;17459:69;17487:4;17459:69;;;;;;;;;;;;;;;;;17467:5;17459:27;;;;:69;;;;;:::i;:::-;17543:17;;17433:95;;-1:-1:-1;17543:21:0;17539:224;;17685:10;17674:30;;;;;;;;;;;;:::i;:::-;17666:85;;;;;;;;;;;;:::i;11782:196::-;11885:12;11917:53;11940:6;11948:4;11954:1;11957:12;11917:22;:53::i;:::-;11910:60;11782:196;-1:-1:-1;;;;11782:196:0:o;13159:979::-;13289:12;13322:18;13333:6;13322:10;:18::i;:::-;13314:60;;;;;;;;;;;;:::i;:::-;13448:12;13462:23;13489:6;:11;;13510:8;13520:4;13489:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13447:78;;;;13540:7;13536:595;;;13571:10;-1:-1:-1;13564:17:0;;-1:-1:-1;13564:17:0;13536:595;13685:17;;:21;13681:439;;13948:10;13942:17;14009:15;13996:10;13992:2;13988:19;13981:44;13896:148;14091:12;14084:20;;;;;;;;;;;:::i;8864:422::-;9231:20;9270:8;;;8864:422::o;415:440:-1:-;;516:3;509:4;501:6;497:17;493:27;483:2;;-1:-1;;524:12;483:2;571:6;558:20;31000:18;;30992:6;30989:30;30986:2;;;-1:-1;;31022:12;30986:2;30656;30650:9;31163:4;31095:9;509:4;31080:6;31076:17;31072:33;30686:6;30682:17;;30793:6;30781:10;30778:22;31000:18;30745:10;30742:34;30739:62;30736:2;;;-1:-1;;30804:12;30736:2;30656;30823:22;663:21;;;584:73;-1:-1;584:73;763:16;;;31163:4;763:16;760:25;-1:-1;757:2;;;798:1;;788:12;757:2;33466:6;31163:4;705:6;701:17;31163:4;739:5;735:16;33443:30;33522:1;31163:4;33513:6;739:5;33504:16;;33497:27;;;;476:379;;;;:::o;1755:241::-;;1859:2;1847:9;1838:7;1834:23;1830:32;1827:2;;;-1:-1;;1865:12;1827:2;85:6;72:20;97:33;124:5;97:33;:::i;2003:491::-;;;;2141:2;2129:9;2120:7;2116:23;2112:32;2109:2;;;-1:-1;;2147:12;2109:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2199:63;-1:-1;2299:2;2338:22;;1544:20;;-1:-1;2407:2;2446:22;;72:20;97:33;72:20;97:33;:::i;:::-;2415:63;;;;2103:391;;;;;:::o;2501:953::-;;;;;;2692:3;2680:9;2671:7;2667:23;2663:33;2660:2;;;-1:-1;;2699:12;2660:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2751:63;-1:-1;2851:2;2890:22;;1544:20;;-1:-1;2987:2;2972:18;;2959:32;3011:18;3000:30;;;2997:2;;;-1:-1;;3033:12;2997:2;3063:63;3118:7;3109:6;3098:9;3094:22;3063:63;:::i;:::-;3053:73;;3191:2;3180:9;3176:18;3163:32;3149:46;;3011:18;3207:6;3204:30;3201:2;;;-1:-1;;3237:12;3201:2;;3267:62;3321:7;3312:6;3301:9;3297:22;3267:62;:::i;:::-;2654:800;;;;-1:-1;2654:800;;3366:3;3406:22;1544:20;;2654:800;-1:-1;;;2654:800::o;3461:257::-;;3573:2;3561:9;3552:7;3548:23;3544:32;3541:2;;;-1:-1;;3579:12;3541:2;223:6;217:13;34205:5;32431:13;32424:21;34183:5;34180:32;34170:2;;-1:-1;;34216:12;3725:241;;3829:2;3817:9;3808:7;3804:23;3800:32;3797:2;;;-1:-1;;3835:12;3797:2;-1:-1;344:20;;3791:175;-1:-1;3791:175::o;4247:517::-;;;;4398:2;4386:9;4377:7;4373:23;4369:32;4366:2;;;-1:-1;;4404:12;4366:2;956:6;943:20;968:46;1008:5;968:46;:::i;:::-;4456:76;-1:-1;4569:2;4608:22;;72:20;97:33;72:20;97:33;:::i;:::-;4360:404;;4577:63;;-1:-1;;;4677:2;4716:22;;;;1544:20;;4360:404::o;4771:517::-;;;;4922:2;4910:9;4901:7;4897:23;4893:32;4890:2;;;-1:-1;;4928:12;5543:263;;5658:2;5646:9;5637:7;5633:23;5629:32;5626:2;;;-1:-1;;5664:12;5626:2;-1:-1;1692:13;;5620:186;-1:-1;5620:186::o;6468:343::-;;6610:5;31601:12;31886:6;31881:3;31874:19;6703:52;6748:6;31923:4;31918:3;31914:14;31923:4;6729:5;6725:16;6703:52;:::i;:::-;33983:2;33963:14;33979:7;33959:28;6767:39;;;;31923:4;6767:39;;6558:253;-1:-1;;6558:253::o;16511:405::-;;32608:66;6448:5;32597:78;6407:3;6400:56;6978:5;31601:12;7089:52;7134:6;16778:1;16773:3;16769:11;7122:4;7115:5;7111:16;7089:52;:::i;:::-;7153:16;;;;16778:1;7153:16;;16671:245;-1:-1;;;16671:245::o;16923:271::-;;6978:5;31601:12;7089:52;7134:6;7129:3;7122:4;7115:5;7111:16;7089:52;:::i;:::-;7153:16;;;;;17057:137;-1:-1;;17057:137::o;17201:379::-;17565:10;17389:191::o;17587:222::-;32871:42;32860:54;;;;6033:37;;17714:2;17699:18;;17685:124::o;18061:333::-;32871:42;32860:54;;;;6033:37;;18380:2;18365:18;;6264:37;18216:2;18201:18;;18187:207::o;18401:840::-;;32871:42;32864:5;32860:54;6040:3;6033:37;6294:5;18843:2;18832:9;18828:18;6264:37;18678:3;18880:2;18869:9;18865:18;18858:48;18920:78;18678:3;18667:9;18663:19;18984:6;18920:78;:::i;:::-;19046:9;19040:4;19036:20;19031:2;19020:9;19016:18;19009:48;19071:76;19142:4;19133:6;19071:76;:::i;:::-;19063:84;;;6294:5;19226:3;19215:9;19211:19;6264:37;18649:592;;;;;;;;:::o;19248:210::-;32431:13;;32424:21;6147:34;;19369:2;19354:18;;19340:118::o;19465:222::-;6264:37;;;19592:2;19577:18;;19563:124::o;19694:306::-;;19839:2;19860:17;19853:47;19914:76;19839:2;19828:9;19824:18;19976:6;19914:76;:::i;20324:416::-;20524:2;20538:47;;;7760:2;20509:18;;;31874:19;7796:34;31914:14;;;7776:55;7865:26;7851:12;;;7844:48;7911:12;;;20495:245::o;20747:416::-;20947:2;20961:47;;;8162:2;20932:18;;;31874:19;8198:34;31914:14;;;8178:55;8267:25;8253:12;;;8246:47;8312:12;;;20918:245::o;21170:416::-;21370:2;21384:47;;;8563:2;21355:18;;;31874:19;8599:34;31914:14;;;8579:55;8668:29;8654:12;;;8647:51;8717:12;;;21341:245::o;21593:416::-;21793:2;21807:47;;;8968:2;21778:18;;;31874:19;9004:34;31914:14;;;8984:55;9073:25;9059:12;;;9052:47;9118:12;;;21764:245::o;22016:416::-;22216:2;22230:47;;;9369:2;22201:18;;;31874:19;9405:34;31914:14;;;9385:55;9474:21;9460:12;;;9453:43;9515:12;;;22187:245::o;22439:416::-;22639:2;22653:47;;;9766:2;22624:18;;;31874:19;9802:29;31914:14;;;9782:50;9851:12;;;22610:245::o;22862:416::-;23062:2;23076:47;;;10102:2;23047:18;;;31874:19;10138:34;31914:14;;;10118:55;10207:34;10193:12;;;10186:56;10276:7;10262:12;;;10255:29;10303:12;;;23033:245::o;23285:416::-;23485:2;23499:47;;;10554:2;23470:18;;;31874:19;10590:34;31914:14;;;10570:55;10659:22;10645:12;;;10638:44;10701:12;;;23456:245::o;23708:416::-;23908:2;23922:47;;;10952:2;23893:18;;;31874:19;10988:34;31914:14;;;10968:55;11057:29;11043:12;;;11036:51;11106:12;;;23879:245::o;24131:416::-;24331:2;24345:47;;;11357:2;24316:18;;;31874:19;11393:34;31914:14;;;11373:55;11462:26;11448:12;;;11441:48;11508:12;;;24302:245::o;24554:416::-;24754:2;24768:47;;;11759:2;24739:18;;;31874:19;11795:34;31914:14;;;11775:55;11864:31;11850:12;;;11843:53;11915:12;;;24725:245::o;24977:416::-;25177:2;25191:47;;;12166:1;25162:18;;;31874:19;12201:11;31914:14;;;12181:32;12232:12;;;25148:245::o;25400:416::-;25600:2;25614:47;;;12483:2;25585:18;;;31874:19;12519:34;31914:14;;;12499:55;12588:26;12574:12;;;12567:48;12634:12;;;25571:245::o;25823:416::-;26023:2;26037:47;;;12885:2;26008:18;;;31874:19;12921:16;31914:14;;;12901:37;12957:12;;;25994:245::o;26246:416::-;26446:2;26460:47;;;13208:2;26431:18;;;31874:19;13244:34;31914:14;;;13224:55;13313:26;13299:12;;;13292:48;13359:12;;;26417:245::o;26669:416::-;26869:2;26883:47;;;13610:2;26854:18;;;31874:19;13646:34;31914:14;;;13626:55;13715:24;13701:12;;;13694:46;13759:12;;;26840:245::o;27092:416::-;27292:2;27306:47;;;14315:2;27277:18;;;31874:19;14351:34;31914:14;;;14331:55;14420:31;14406:12;;;14399:53;14471:12;;;27263:245::o;27515:416::-;27715:2;27729:47;;;14722:2;27700:18;;;31874:19;14758:31;31914:14;;;14738:52;14809:12;;;27686:245::o;27938:416::-;28138:2;28152:47;;;15060:2;28123:18;;;31874:19;15096:34;31914:14;;;15076:55;15165:34;15151:12;;;15144:56;15234:11;15220:12;;;15213:33;15265:12;;;28109:245::o;28361:416::-;28561:2;28575:47;;;15516:2;28546:18;;;31874:19;15552:34;31914:14;;;15532:55;15621:12;15607;;;15600:34;15653:12;;;28532:245::o;28784:416::-;28984:2;28998:47;;;15904:2;28969:18;;;31874:19;15940:34;31914:14;;;15920:55;16009:19;15995:12;;;15988:41;16048:12;;;28955:245::o;29207:416::-;29407:2;29421:47;;;16299:1;29392:18;;;31874:19;16334:11;31914:14;;;16314:32;16365:12;;;29378:245::o;29859:728::-;;6294:5;6271:3;6264:37;30108:3;30227:2;30216:9;30212:18;30205:48;30267:78;30108:3;30097:9;30093:19;30331:6;30267:78;:::i;:::-;30393:9;30387:4;30383:20;30378:2;30367:9;30363:18;30356:48;30418:76;30489:4;30480:6;30418:76;:::i;:::-;30410:84;;;6294:5;30573:2;30562:9;30558:18;6264:37;30079:508;;;;;;;:::o;33539:268::-;33604:1;33611:101;33625:6;33622:1;33619:13;33611:101;;;33692:11;;;33686:18;33673:11;;;33666:39;33647:2;33640:10;33611:101;;;33727:6;33724:1;33721:13;33718:2;;;-1:-1;;33604:1;33774:16;;33767:27;33588:219::o;34000:117::-;32871:42;34087:5;32860:54;34062:5;34059:35;34049:2;;34108:1;;34098:12;34049:2;34043:74;:::o
Swarm Source
ipfs://649af48a631493c626ba39e2468d60057c8e5323a0bf63151d2428546c2750d1
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000133 | 3,431,157.7336 | $455.34 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.