More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 11,906 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14916463 | 22 hrs ago | IN | 0 ETH | 0.00001053 | ||||
Withdraw | 14916456 | 22 hrs ago | IN | 0 ETH | 0.00001232 | ||||
Withdraw | 14909277 | 28 hrs ago | IN | 0 ETH | 0.00000362 | ||||
Withdraw | 14884831 | 2 days ago | IN | 0 ETH | 0.00000432 | ||||
Withdraw | 14884824 | 2 days ago | IN | 0 ETH | 0.00000406 | ||||
Withdraw | 14813797 | 5 days ago | IN | 0 ETH | 0.00000257 | ||||
Deposit | 14794367 | 6 days ago | IN | 0 ETH | 0.00000423 | ||||
Withdraw | 14794350 | 6 days ago | IN | 0 ETH | 0.00000284 | ||||
Withdraw | 14794346 | 6 days ago | IN | 0 ETH | 0.00000269 | ||||
Withdraw | 14784746 | 6 days ago | IN | 0 ETH | 0.00000616 | ||||
Withdraw | 14777006 | 7 days ago | IN | 0 ETH | 0.00000304 | ||||
Withdraw | 14776607 | 7 days ago | IN | 0 ETH | 0.00000252 | ||||
Withdraw | 14776593 | 7 days ago | IN | 0 ETH | 0.00000236 | ||||
Deposit | 14761954 | 7 days ago | IN | 0 ETH | 0.00000255 | ||||
Withdraw | 14757135 | 7 days ago | IN | 0 ETH | 0.00000408 | ||||
Withdraw | 14725879 | 9 days ago | IN | 0 ETH | 0.00000384 | ||||
Withdraw | 14725875 | 9 days ago | IN | 0 ETH | 0.00000437 | ||||
Withdraw | 14687394 | 10 days ago | IN | 0 ETH | 0.00000237 | ||||
Withdraw | 14672254 | 10 days ago | IN | 0 ETH | 0.00000454 | ||||
Withdraw | 14559967 | 14 days ago | IN | 0 ETH | 0.00000468 | ||||
Deposit | 14521018 | 16 days ago | IN | 0 ETH | 0.00000605 | ||||
Withdraw | 14521013 | 16 days ago | IN | 0 ETH | 0.00000472 | ||||
Withdraw | 14490682 | 17 days ago | IN | 0 ETH | 0.00000353 | ||||
Withdraw | 14475059 | 17 days ago | IN | 0 ETH | 0.00000241 | ||||
Deposit | 14458953 | 18 days ago | IN | 0 ETH | 0.00000227 |
Loading...
Loading
Contract Name:
DogemStake
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at scrollscan.com on 2024-07-19 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } /** * @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"); } } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } /** * @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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @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. */ abstract 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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; } } contract DogemStake is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Address of the ERC20 Token contract. IERC20 public erc20 = IERC20(0xB52870f9b2B0D5C12CAd1AC70D9c04F744872bcB); uint256 public deci= 10**13; uint256 public rewardPerBlock = 1068375; //daily percent 1 1 / 7200(for 12 secs) //0.00013888888 //1150 86888888 (for zksync era) uint256 public endBlock = block.number + 3500000000000; mapping (address => uint256) public userDeposit; mapping (address => uint256) public userStartBlock; uint256 public totalDeposit=0; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); function setRewardBlock(uint256 _rewardPerBlock) external onlyOwner { rewardPerBlock = _rewardPerBlock; } function setEndBlock(uint256 _endBlock) external onlyOwner { endBlock = _endBlock; } // Fund the farm, increase the end block function fund(uint256 _amount) public { erc20.safeTransferFrom(address(msg.sender), address(this), _amount); } // View function to see deposited LP for a user. function deposited(address _user) external view returns (uint256) { return userDeposit[_user]; } // View function to see pending ERC20s for a user. function pending(address _user) external view returns (uint256) { uint256 allBlock=block.number-userStartBlock[_user]; if (block.number > endBlock ) { allBlock = endBlock-userStartBlock[_user]; } return (userDeposit[_user]*(allBlock*rewardPerBlock)).div(deci); } // Deposit LP tokens to Farm for ERC20 allocation. function deposit(uint256 _amount) public { if (userDeposit[msg.sender] == 0) { userStartBlock[msg.sender] = block.number; userDeposit[msg.sender] = _amount; erc20.safeTransferFrom(address(msg.sender), address(this), _amount); totalDeposit = totalDeposit + _amount; emit Deposit(msg.sender, _amount); } } // Withdraw LP tokens from Farm. function withdraw(uint256 _pid, uint256 _amount) public { require(userDeposit[msg.sender]>= _amount, "withdraw: can't withdraw more than deposit"); uint256 allBlock=block.number-userStartBlock[msg.sender]; if (block.number > endBlock ) { allBlock = endBlock-userStartBlock[msg.sender]; } uint256 reward=(userDeposit[msg.sender]*(allBlock*rewardPerBlock)).div(deci); if (_amount==0) { erc20Transfer(msg.sender, reward); } else { erc20Transfer(msg.sender, reward+userDeposit[msg.sender]); totalDeposit = totalDeposit - userDeposit[msg.sender]; userDeposit[msg.sender]=0; } userStartBlock[msg.sender]=block.number; emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw() public onlyOwner { erc20Transfer(owner(), erc20.balanceOf(address(this))); emit EmergencyWithdraw(msg.sender, 0 , erc20.balanceOf(address(this))); totalDeposit = 0; } // Transfer ERC20 and update the required ERC20 to payout all rewards function erc20Transfer(address _to, uint256 _amount) internal { erc20.transfer(_to, _amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"deci","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"deposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"setEndBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userStartBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b03191673b52870f9b2b0d5c12cad1ac70d9c04f744872bcb1790556509184e72a00060025562104d5760035561004b4365032ee841b8006100be565b600455600060075534801561005f57600080fd5b506100693361006e565b6100e5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b808201808211156100df57634e487b7160e01b600052601160045260246000fd5b92915050565b610d6c806100f46000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063b6b55f25116100a2578063cf8e8e9211610071578063cf8e8e9214610237578063d1260edd1461024a578063db2e21bc1461026a578063f2fde38b14610272578063f6153ccd1461028557600080fd5b8063b6b55f25146101d5578063c713aa94146101e8578063ca1d209d146101fb578063cb13cddb1461020e57600080fd5b8063715018a6116100e9578063715018a61461017f578063785e9e86146101875780638ae39cac146101b25780638da5cb5b146101bb578063a18c189c146101cc57600080fd5b8063083c63231461011b578063441a3e701461013757806358e914f01461014c5780635eebea201461016c575b600080fd5b61012460045481565b6040519081526020015b60405180910390f35b61014a610145366004610baf565b61028e565b005b61012461015a366004610bd1565b60066020526000908152604090205481565b61012461017a366004610bd1565b610444565b61014a6104dc565b60015461019a906001600160a01b031681565b6040516001600160a01b03909116815260200161012e565b61012460035481565b6000546001600160a01b031661019a565b61012460025481565b61014a6101e3366004610bfa565b6104f0565b61014a6101f6366004610bfa565b610589565b61014a610209366004610bfa565b610596565b61012461021c366004610bd1565b6001600160a01b031660009081526005602052604090205490565b61014a610245366004610bfa565b6105ae565b610124610258366004610bd1565b60056020526000908152604090205481565b61014a6105bb565b61014a610280366004610bd1565b6106ed565b61012460075481565b336000908152600560205260409020548111156103055760405162461bcd60e51b815260206004820152602a60248201527f77697468647261773a2063616e2774207769746864726177206d6f7265207468604482015269185b8819195c1bdcda5d60b21b60648201526084015b60405180910390fd5b3360009081526006602052604081205461031f9043610c29565b905060045443111561034b57336000908152600660205260409020546004546103489190610c29565b90505b6000610381600254600354846103619190610c3c565b3360009081526005602052604090205461037b9190610c3c565b90610763565b90508260000361039a5761039533826107c7565b6103ef565b336000818152600560205260409020546103be91906103b99084610c53565b6107c7565b336000908152600560205260409020546007546103db9190610c29565b600755336000908152600560205260408120555b3360008181526006602052604090819020439055518591907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906104369087815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526006602052604081205481906104699043610c29565b905060045443111561049e576001600160a01b03831660009081526006602052604090205460045461049b9190610c29565b90505b6104d5600254600354836104b29190610c3c565b6001600160a01b03861660009081526005602052604090205461037b9190610c3c565b9392505050565b6104e4610843565b6104ee600061089d565b565b336000908152600560205260408120549003610586573360008181526006602090815260408083204390556005909152902082905560015461053f916001600160a01b039091169030846108ed565b8060075461054d9190610c53565b60075560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25b50565b610591610843565b600455565b600154610586906001600160a01b03163330846108ed565b6105b6610843565b600355565b6105c3610843565b6106446105d86000546001600160a01b031690565b6001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b99190610c66565b6001546040516370a0823160e01b815230600482015260009133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190610c66565b60405190815260200160405180910390a36000600755565b6106f5610843565b6001600160a01b03811661075a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fc565b6105868161089d565b60008082116107b45760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f00000000000060448201526064016102fc565b6107be8284610c7f565b90505b92915050565b60015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af115801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190610ca1565b505050565b6000546001600160a01b031633146104ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261094790859061094d565b50505050565b60006109a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a1f9092919063ffffffff16565b80519091501561083e57808060200190518101906109c09190610ca1565b61083e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102fc565b6060610a2e8484600085610a36565b949350505050565b606082471015610a975760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102fc565b600080866001600160a01b03168587604051610ab39190610ce7565b60006040518083038185875af1925050503d8060008114610af0576040519150601f19603f3d011682016040523d82523d6000602084013e610af5565b606091505b5091509150610b0687838387610b11565b979650505050505050565b60608315610b80578251600003610b79576001600160a01b0385163b610b795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fc565b5081610a2e565b610a2e8383815115610b955781518083602001fd5b8060405162461bcd60e51b81526004016102fc9190610d03565b60008060408385031215610bc257600080fd5b50508035926020909101359150565b600060208284031215610be357600080fd5b81356001600160a01b03811681146104d557600080fd5b600060208284031215610c0c57600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156107c1576107c1610c13565b80820281158282048414176107c1576107c1610c13565b808201808211156107c1576107c1610c13565b600060208284031215610c7857600080fd5b5051919050565b600082610c9c57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610cb357600080fd5b815180151581146104d557600080fd5b60005b83811015610cde578181015183820152602001610cc6565b50506000910152565b60008251610cf9818460208701610cc3565b9190910192915050565b6020815260008251806020840152610d22816040850160208701610cc3565b601f01601f1916919091016040019291505056fea264697066735822122071fc6a02a4c9056ccbb9eb4ff2029dfe614a4e4cb8a8bae783364a70f583da3a64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063b6b55f25116100a2578063cf8e8e9211610071578063cf8e8e9214610237578063d1260edd1461024a578063db2e21bc1461026a578063f2fde38b14610272578063f6153ccd1461028557600080fd5b8063b6b55f25146101d5578063c713aa94146101e8578063ca1d209d146101fb578063cb13cddb1461020e57600080fd5b8063715018a6116100e9578063715018a61461017f578063785e9e86146101875780638ae39cac146101b25780638da5cb5b146101bb578063a18c189c146101cc57600080fd5b8063083c63231461011b578063441a3e701461013757806358e914f01461014c5780635eebea201461016c575b600080fd5b61012460045481565b6040519081526020015b60405180910390f35b61014a610145366004610baf565b61028e565b005b61012461015a366004610bd1565b60066020526000908152604090205481565b61012461017a366004610bd1565b610444565b61014a6104dc565b60015461019a906001600160a01b031681565b6040516001600160a01b03909116815260200161012e565b61012460035481565b6000546001600160a01b031661019a565b61012460025481565b61014a6101e3366004610bfa565b6104f0565b61014a6101f6366004610bfa565b610589565b61014a610209366004610bfa565b610596565b61012461021c366004610bd1565b6001600160a01b031660009081526005602052604090205490565b61014a610245366004610bfa565b6105ae565b610124610258366004610bd1565b60056020526000908152604090205481565b61014a6105bb565b61014a610280366004610bd1565b6106ed565b61012460075481565b336000908152600560205260409020548111156103055760405162461bcd60e51b815260206004820152602a60248201527f77697468647261773a2063616e2774207769746864726177206d6f7265207468604482015269185b8819195c1bdcda5d60b21b60648201526084015b60405180910390fd5b3360009081526006602052604081205461031f9043610c29565b905060045443111561034b57336000908152600660205260409020546004546103489190610c29565b90505b6000610381600254600354846103619190610c3c565b3360009081526005602052604090205461037b9190610c3c565b90610763565b90508260000361039a5761039533826107c7565b6103ef565b336000818152600560205260409020546103be91906103b99084610c53565b6107c7565b336000908152600560205260409020546007546103db9190610c29565b600755336000908152600560205260408120555b3360008181526006602052604090819020439055518591907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906104369087815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526006602052604081205481906104699043610c29565b905060045443111561049e576001600160a01b03831660009081526006602052604090205460045461049b9190610c29565b90505b6104d5600254600354836104b29190610c3c565b6001600160a01b03861660009081526005602052604090205461037b9190610c3c565b9392505050565b6104e4610843565b6104ee600061089d565b565b336000908152600560205260408120549003610586573360008181526006602090815260408083204390556005909152902082905560015461053f916001600160a01b039091169030846108ed565b8060075461054d9190610c53565b60075560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25b50565b610591610843565b600455565b600154610586906001600160a01b03163330846108ed565b6105b6610843565b600355565b6105c3610843565b6106446105d86000546001600160a01b031690565b6001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b99190610c66565b6001546040516370a0823160e01b815230600482015260009133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190610c66565b60405190815260200160405180910390a36000600755565b6106f5610843565b6001600160a01b03811661075a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fc565b6105868161089d565b60008082116107b45760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f00000000000060448201526064016102fc565b6107be8284610c7f565b90505b92915050565b60015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af115801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190610ca1565b505050565b6000546001600160a01b031633146104ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261094790859061094d565b50505050565b60006109a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a1f9092919063ffffffff16565b80519091501561083e57808060200190518101906109c09190610ca1565b61083e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102fc565b6060610a2e8484600085610a36565b949350505050565b606082471015610a975760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102fc565b600080866001600160a01b03168587604051610ab39190610ce7565b60006040518083038185875af1925050503d8060008114610af0576040519150601f19603f3d011682016040523d82523d6000602084013e610af5565b606091505b5091509150610b0687838387610b11565b979650505050505050565b60608315610b80578251600003610b79576001600160a01b0385163b610b795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fc565b5081610a2e565b610a2e8383815115610b955781518083602001fd5b8060405162461bcd60e51b81526004016102fc9190610d03565b60008060408385031215610bc257600080fd5b50508035926020909101359150565b600060208284031215610be357600080fd5b81356001600160a01b03811681146104d557600080fd5b600060208284031215610c0c57600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156107c1576107c1610c13565b80820281158282048414176107c1576107c1610c13565b808201808211156107c1576107c1610c13565b600060208284031215610c7857600080fd5b5051919050565b600082610c9c57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610cb357600080fd5b815180151581146104d557600080fd5b60005b83811015610cde578181015183820152602001610cc6565b50506000910152565b60008251610cf9818460208701610cc3565b9190910192915050565b6020815260008251806020840152610d22816040850160208701610cc3565b601f01601f1916919091016040019291505056fea264697066735822122071fc6a02a4c9056ccbb9eb4ff2029dfe614a4e4cb8a8bae783364a70f583da3a64736f6c63430008110033
Deployed Bytecode Sourcemap
36009:3690:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36416:54;;;;;;;;;160:25:1;;;148:2;133:18;36416:54:0;;;;;;;;38346:859;;;;;;:::i;:::-;;:::i;:::-;;36531:50;;;;;;:::i;:::-;;;;;;;;;;;;;;37502:355;;;;;;:::i;:::-;;:::i;27803:103::-;;;:::i;36160:72::-;;;;;-1:-1:-1;;;;;36160:72:0;;;;;;-1:-1:-1;;;;;918:32:1;;;900:51;;888:2;873:18;36160:72:0;740:217:1;36273:39:0;;;;;;27155:87;27201:7;27228:6;-1:-1:-1;;;;;27228:6:0;27155:87;;36239:27;;;;;;37923:377;;;;;;:::i;:::-;;:::i;36986:98::-;;;;;;:::i;:::-;;:::i;37138:124::-;;;;;;:::i;:::-;;:::i;37328:110::-;;;;;;:::i;:::-;-1:-1:-1;;;;;37412:18:0;37385:7;37412:18;;;:11;:18;;;;;;;37328:110;36859:119;;;;;;:::i;:::-;;:::i;36477:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;39276:228;;;:::i;28061:201::-;;;;;;:::i;:::-;;:::i;36590:29::-;;;;;;38346:859;38433:10;38421:23;;;;:11;:23;;;;;;:33;-1:-1:-1;38421:33:0;38413:88;;;;-1:-1:-1;;;38413:88:0;;1557:2:1;38413:88:0;;;1539:21:1;1596:2;1576:18;;;1569:30;1635:34;1615:18;;;1608:62;-1:-1:-1;;;1686:18:1;;;1679:40;1736:19;;38413:88:0;;;;;;;;;38575:10;38530:16;38560:26;;;:14;:26;;;;;;38547:39;;:12;:39;:::i;:::-;38530:56;;38620:8;;38605:12;:23;38601:116;;;38686:10;38671:26;;;;:14;:26;;;;;;38662:8;;:35;;38671:26;38662:35;:::i;:::-;38651:46;;38601:116;38731:14;38746:61;38802:4;;38781:14;;38772:8;:23;;;;:::i;:::-;38759:10;38747:23;;;;:11;:23;;;;;;:49;;;;:::i;:::-;38746:55;;:61::i;:::-;38731:76;;38822:7;38831:1;38822:10;38818:279;;38850:33;38864:10;38876:6;38850:13;:33::i;:::-;38818:279;;;38932:10;38951:23;;;;:11;:23;;;;;;38918:57;;38932:10;38944:30;;:6;:30;:::i;:::-;38918:13;:57::i;:::-;39033:10;39021:23;;;;:11;:23;;;;;;39006:12;;:38;;39021:23;39006:38;:::i;:::-;38991:12;:53;39072:10;39084:1;39060:23;;;:11;:23;;;;;:25;38818:279;39122:10;39107:26;;;;:14;:26;;;;;;;39134:12;39107:39;;39162:35;39183:4;;39122:10;39162:35;;;;39189:7;160:25:1;;148:2;133:18;;14:177;39162:35:0;;;;;;;;38402:803;;38346:859;;:::o;37502:355::-;-1:-1:-1;;;;;37611:21:0;;37557:7;37611:21;;;:14;:21;;;;;;37557:7;;37598:34;;:12;:34;:::i;:::-;37581:51;;37666:8;;37651:12;:23;37647:111;;;-1:-1:-1;;;;;37717:21:0;;;;;;:14;:21;;;;;;37708:8;;:30;;37717:21;37708:30;:::i;:::-;37697:41;;37647:111;37779:56;37830:4;;37809:14;;37800:8;:23;;;;:::i;:::-;-1:-1:-1;;;;;37780:18:0;;;;;;:11;:18;;;;;;:44;;;;:::i;37779:56::-;37772:63;37502:355;-1:-1:-1;;;37502:355:0:o;27803:103::-;27041:13;:11;:13::i;:::-;27868:30:::1;27895:1;27868:18;:30::i;:::-;27803:103::o:0;37923:377::-;37991:10;37979:23;;;;:11;:23;;;;;;:28;;37975:318;;38035:10;38020:26;;;;:14;:26;;;;;;;;38049:12;38020:41;;38072:11;:23;;;;;:33;;;38120:5;;:67;;-1:-1:-1;;;;;38120:5:0;;;;38172:4;38072:33;38120:22;:67::i;:::-;38230:7;38215:12;;:22;;;;:::i;:::-;38200:12;:37;38253:28;;160:25:1;;;38261:10:0;;38253:28;;148:2:1;133:18;38253:28:0;;;;;;;37975:318;37923:377;:::o;36986:98::-;27041:13;:11;:13::i;:::-;37056:8:::1;:20:::0;36986:98::o;37138:124::-;37187:5;;:67;;-1:-1:-1;;;;;37187:5:0;37218:10;37239:4;37246:7;37187:22;:67::i;36859:119::-;27041:13;:11;:13::i;:::-;36938:14:::1;:32:::0;36859:119::o;39276:228::-;27041:13;:11;:13::i;:::-;39333:54:::1;39347:7;27201::::0;27228:6;-1:-1:-1;;;;;27228:6:0;;27155:87;39347:7:::1;39356:5;::::0;:30:::1;::::0;-1:-1:-1;;;39356:30:0;;39380:4:::1;39356:30;::::0;::::1;900:51:1::0;-1:-1:-1;;;;;39356:5:0;;::::1;::::0;:15:::1;::::0;873:18:1;;39356:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;39333:54::-;39437:5;::::0;:30:::1;::::0;-1:-1:-1;;;39437:30:0;;39461:4:::1;39437:30;::::0;::::1;900:51:1::0;39433:1:0::1;::::0;39421:10:::1;::::0;39403:65:::1;::::0;-1:-1:-1;;;;;39437:5:0::1;::::0;:15:::1;::::0;873:18:1;;39437:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39403:65;::::0;160:25:1;;;148:2;133:18;39403:65:0::1;;;;;;;39495:1;39479:12;:17:::0;39276:228::o;28061:201::-;27041:13;:11;:13::i;:::-;-1:-1:-1;;;;;28150:22:0;::::1;28142:73;;;::::0;-1:-1:-1;;;28142:73:0;;2725:2:1;28142:73:0::1;::::0;::::1;2707:21:1::0;2764:2;2744:18;;;2737:30;2803:34;2783:18;;;2776:62;-1:-1:-1;;;2854:18:1;;;2847:36;2900:19;;28142:73:0::1;2523:402:1::0;28142:73:0::1;28226:28;28245:8;28226:18;:28::i;32913:153::-:0;32971:7;33003:1;32999;:5;32991:44;;;;-1:-1:-1;;;32991:44:0;;3132:2:1;32991:44:0;;;3114:21:1;3171:2;3151:18;;;3144:30;3210:28;3190:18;;;3183:56;3256:18;;32991:44:0;2930:350:1;32991:44:0;33053:5;33057:1;33053;:5;:::i;:::-;33046:12;;32913:153;;;;;:::o;39587:109::-;39660:5;;:28;;-1:-1:-1;;;39660:28:0;;-1:-1:-1;;;;;3699:32:1;;;39660:28:0;;;3681:51:1;3748:18;;;3741:34;;;39660:5:0;;;;:14;;3654:18:1;;39660:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;39587:109;;:::o;27320:132::-;27201:7;27228:6;-1:-1:-1;;;;;27228:6:0;25942:10;27384:23;27376:68;;;;-1:-1:-1;;;27376:68:0;;4270:2:1;27376:68:0;;;4252:21:1;;;4289:18;;;4282:30;4348:34;4328:18;;;4321:62;4400:18;;27376:68:0;4068:356:1;28422:191:0;28496:16;28515:6;;-1:-1:-1;;;;;28532:17:0;;;-1:-1:-1;;;;;;28532:17:0;;;;;;28565:40;;28515:6;;;;;;;28565:40;;28496:16;28565:40;28485:128;28422:191;:::o;10431:205::-;10559:68;;;-1:-1:-1;;;;;4687:15:1;;;10559:68:0;;;4669:34:1;4739:15;;4719:18;;;4712:43;4771:18;;;;4764:34;;;10559:68:0;;;;;;;;;;4604:18:1;;;;10559:68:0;;;;;;;;-1:-1:-1;;;;;10559:68:0;-1:-1:-1;;;10559:68:0;;;10532:96;;10552:5;;10532:19;:96::i;:::-;10431:205;;;;:::o;12551:761::-;12975:23;13001:69;13029:4;13001:69;;;;;;;;;;;;;;;;;13009:5;-1:-1:-1;;;;;13001:27:0;;;:69;;;;;:::i;:::-;13085:17;;12975:95;;-1:-1:-1;13085:21:0;13081:224;;13227:10;13216:30;;;;;;;;;;;;:::i;:::-;13208:85;;;;-1:-1:-1;;;13208:85:0;;5011:2:1;13208:85:0;;;4993:21:1;5050:2;5030:18;;;5023:30;5089:34;5069:18;;;5062:62;-1:-1:-1;;;5140:18:1;;;5133:40;5190:19;;13208:85:0;4809:406:1;19880:229:0;20017:12;20049:52;20071:6;20079:4;20085:1;20088:12;20049:21;:52::i;:::-;20042:59;19880:229;-1:-1:-1;;;;19880:229:0:o;21000:455::-;21170:12;21228:5;21203:21;:30;;21195:81;;;;-1:-1:-1;;;21195:81:0;;5422:2:1;21195:81:0;;;5404:21:1;5461:2;5441:18;;;5434:30;5500:34;5480:18;;;5473:62;-1:-1:-1;;;5551:18:1;;;5544:36;5597:19;;21195:81:0;5220:402:1;21195:81:0;21288:12;21302:23;21329:6;-1:-1:-1;;;;;21329:11:0;21348:5;21355:4;21329:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21287:73;;;;21378:69;21405:6;21413:7;21422:10;21434:12;21378:26;:69::i;:::-;21371:76;21000:455;-1:-1:-1;;;;;;;21000:455:0:o;23573:644::-;23758:12;23787:7;23783:427;;;23815:10;:17;23836:1;23815:22;23811:290;;-1:-1:-1;;;;;17418:19:0;;;24025:60;;;;-1:-1:-1;;;24025:60:0;;6376:2:1;24025:60:0;;;6358:21:1;6415:2;6395:18;;;6388:30;6454:31;6434:18;;;6427:59;6503:18;;24025:60:0;6174:353:1;24025:60:0;-1:-1:-1;24122:10:0;24115:17;;23783:427;24165:33;24173:10;24185:12;24920:17;;:21;24916:388;;25152:10;25146:17;25209:15;25196:10;25192:2;25188:19;25181:44;24916:388;25279:12;25272:20;;-1:-1:-1;;;25272:20:0;;;;;;;;:::i;196:248:1:-;264:6;272;325:2;313:9;304:7;300:23;296:32;293:52;;;341:1;338;331:12;293:52;-1:-1:-1;;364:23:1;;;434:2;419:18;;;406:32;;-1:-1:-1;196:248:1:o;449:286::-;508:6;561:2;549:9;540:7;536:23;532:32;529:52;;;577:1;574;567:12;529:52;603:23;;-1:-1:-1;;;;;655:31:1;;645:42;;635:70;;701:1;698;691:12;1170:180;1229:6;1282:2;1270:9;1261:7;1257:23;1253:32;1250:52;;;1298:1;1295;1288:12;1250:52;-1:-1:-1;1321:23:1;;1170:180;-1:-1:-1;1170:180:1:o;1766:127::-;1827:10;1822:3;1818:20;1815:1;1808:31;1858:4;1855:1;1848:15;1882:4;1879:1;1872:15;1898:128;1965:9;;;1986:11;;;1983:37;;;2000:18;;:::i;2031:168::-;2104:9;;;2135;;2152:15;;;2146:22;;2132:37;2122:71;;2173:18;;:::i;2204:125::-;2269:9;;;2290:10;;;2287:36;;;2303:18;;:::i;2334:184::-;2404:6;2457:2;2445:9;2436:7;2432:23;2428:32;2425:52;;;2473:1;2470;2463:12;2425:52;-1:-1:-1;2496:16:1;;2334:184;-1:-1:-1;2334:184:1:o;3285:217::-;3325:1;3351;3341:132;;3395:10;3390:3;3386:20;3383:1;3376:31;3430:4;3427:1;3420:15;3458:4;3455:1;3448:15;3341:132;-1:-1:-1;3487:9:1;;3285:217::o;3786:277::-;3853:6;3906:2;3894:9;3885:7;3881:23;3877:32;3874:52;;;3922:1;3919;3912:12;3874:52;3954:9;3948:16;4007:5;4000:13;3993:21;3986:5;3983:32;3973:60;;4029:1;4026;4019:12;5627:250;5712:1;5722:113;5736:6;5733:1;5730:13;5722:113;;;5812:11;;;5806:18;5793:11;;;5786:39;5758:2;5751:10;5722:113;;;-1:-1:-1;;5869:1:1;5851:16;;5844:27;5627:250::o;5882:287::-;6011:3;6049:6;6043:13;6065:66;6124:6;6119:3;6112:4;6104:6;6100:17;6065:66;:::i;:::-;6147:16;;;;;5882:287;-1:-1:-1;;5882:287:1:o;6532:396::-;6681:2;6670:9;6663:21;6644:4;6713:6;6707:13;6756:6;6751:2;6740:9;6736:18;6729:34;6772:79;6844:6;6839:2;6828:9;6824:18;6819:2;6811:6;6807:15;6772:79;:::i;:::-;6912:2;6891:15;-1:-1:-1;;6887:29:1;6872:45;;;;6919:2;6868:54;;6532:396;-1:-1:-1;;6532:396:1:o
Swarm Source
ipfs://71fc6a02a4c9056ccbb9eb4ff2029dfe614a4e4cb8a8bae783364a70f583da3a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.