More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 94 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Admin Withdraw | 20044390 | 154 days ago | IN | 0 ETH | 0.00058552 | ||||
Update Distribut... | 20002665 | 160 days ago | IN | 0 ETH | 0.00025347 | ||||
Update Distribut... | 20002662 | 160 days ago | IN | 0 ETH | 0.00025922 | ||||
Update Deposit C... | 20002651 | 160 days ago | IN | 0 ETH | 0.00021865 | ||||
Deposit | 20002568 | 160 days ago | IN | 0 ETH | 0.00098442 | ||||
Deposit | 20002423 | 160 days ago | IN | 0 ETH | 0.00057077 | ||||
Deposit | 20002351 | 160 days ago | IN | 0 ETH | 0.00045982 | ||||
Update Deposit C... | 20000593 | 160 days ago | IN | 0 ETH | 0.00014351 | ||||
Deposit | 19967595 | 164 days ago | IN | 0 ETH | 0.00200515 | ||||
Deposit | 19951493 | 167 days ago | IN | 0 ETH | 0.0003889 | ||||
Deposit | 19951485 | 167 days ago | IN | 0 ETH | 0.00036721 | ||||
Deposit | 19951480 | 167 days ago | IN | 0 ETH | 0.00036976 | ||||
Deposit | 19951477 | 167 days ago | IN | 0 ETH | 0.00037569 | ||||
Deposit | 19951473 | 167 days ago | IN | 0 ETH | 0.00038808 | ||||
Deposit | 19951471 | 167 days ago | IN | 0 ETH | 0.00040886 | ||||
Deposit | 19951467 | 167 days ago | IN | 0 ETH | 0.00038778 | ||||
Deposit | 19951466 | 167 days ago | IN | 0 ETH | 0.00041724 | ||||
Deposit | 19951462 | 167 days ago | IN | 0 ETH | 0.00031412 | ||||
Deposit | 19951460 | 167 days ago | IN | 0 ETH | 0.0003617 | ||||
Deposit | 19951451 | 167 days ago | IN | 0 ETH | 0.00033348 | ||||
Deposit | 19951440 | 167 days ago | IN | 0 ETH | 0.00034785 | ||||
Deposit | 19951425 | 167 days ago | IN | 0 ETH | 0.00035357 | ||||
Deposit | 19951380 | 167 days ago | IN | 0 ETH | 0.00041253 | ||||
Deposit | 19951338 | 167 days ago | IN | 0 ETH | 0.00035306 | ||||
Update Deposit C... | 19949633 | 167 days ago | IN | 0 ETH | 0.00010611 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19386114 | 246 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xE071bA82...36754c520 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
SaleVault
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/IHelper.sol"; struct Parameters { uint id; IERC20 depositToken; IERC20 distributeToken; address receiver; uint price; uint distribution_start; uint distribution_end; uint deposit_open; uint deposit_close; uint category; bool onlyWhitelist; string name; address helper; address manager; address owner; uint8 gfi_tier_access; uint8 access_type; uint256 maxDeposit; uint256 maxPerUser; uint256 minPerUser; address adminFeeReceiver; uint256 adminFeeAmount; address[3] partnerFeeReceivers; uint256[3] partnerFeeAmounts; bool feeType; } struct SaleVaultInfo { uint id; uint category; uint price; uint distribution_start; uint distribution_end; uint deposit_open; uint deposit_close; uint256 totalDeposit; uint256 totalDistributed; bool allowWithdraw; bool onlyWhitelisted; uint256 maxTotalDeposit; uint256 maxUserDeposit; uint256 minUserDeposit; string name; address self; uint8 status; uint8 gfi_tier_access; uint8 access_type; address depositToken; address distributeToken; } contract SaleVault is Ownable { using SafeERC20 for IERC20; struct UserInfo { uint256 amount; uint256 withdraw; uint256 admin; } struct Deposit { uint256 amount; uint256 distribute; uint when; } uint256 public id; uint256 public category; uint256 public price; uint256 public maxTotalDeposit; uint256 public maxUserDeposit; uint256 public minUserDeposit; IERC20 public depositToken; IERC20 public distributeToken; address public adminReceiver; uint256 public adminFee; address public partnerReceiver; uint256 public partnerFee; address public partnerReceiver2; uint256 public partnerFee2; address public partnerReceiver3; uint256 public partnerFee3; uint256 constant FEE_DECIMAL = 1000; bool allowWithdraw = false; bool public adminWithdrawed = false; uint256 public distribution_start; bool public onlyWhitelisted; uint256 public distribution_end; uint256 public deposit_open; uint256 public deposit_close; uint256 public totalDeposit; uint256 public totalDistributed; Deposit[] public distributeInfo; address public helper; uint8 public gfi_tier_access; uint8 public access_type; address public withdrawReceiver; string public name; string[] public descripton; uint8 public status; bool public feeType; mapping(address => bool) public managers; mapping(address => UserInfo) public userInfo; event Withdrawal(address user, uint amount, uint when); event UserDeposit(address user, uint amount, uint when); event AdminDeposit(uint amount, uint when); modifier checkManager() { require(msg.sender == owner() || managers[msg.sender], "not manager"); _; } constructor(Parameters memory param) Ownable(param.owner) { require( block.timestamp < param.distribution_start && param.distribution_start < param.distribution_end, "invalid vault duration" ); require(address(param.depositToken) != address(0), "wrong token"); require(address(param.distributeToken) != address(0), "wrong token"); distributeToken = param.distributeToken; depositToken = param.depositToken; feeType = param.feeType; require(param.category > 0, "invalid category"); id = param.id; price = param.price; withdrawReceiver = param.receiver; category = param.category; distribution_start = param.distribution_start; distribution_end = param.distribution_end; deposit_open = param.deposit_open; deposit_close = param.deposit_close; name = param.name; helper = param.helper; onlyWhitelisted = param.onlyWhitelist; managers[param.manager] = true; gfi_tier_access = param.gfi_tier_access; access_type = param.access_type; maxTotalDeposit = param.maxDeposit; maxUserDeposit = param.maxPerUser; minUserDeposit = param.minPerUser; adminReceiver = param.adminFeeReceiver; adminFee = param.adminFeeAmount; partnerReceiver = param.partnerFeeReceivers[0]; partnerFee = param.partnerFeeAmounts[0]; partnerReceiver2 = param.partnerFeeReceivers[1]; partnerFee2 = param.partnerFeeAmounts[1]; partnerReceiver3 = param.partnerFeeReceivers[1]; partnerFee3 = param.partnerFeeAmounts[1]; require(gfi_tier_access > 0, "wrong gfi tier"); } function info() external view returns (SaleVaultInfo memory) { return SaleVaultInfo({ id: id, category: category, price: price, distribution_start: distribution_start, distribution_end: distribution_end, deposit_open: deposit_open, deposit_close: deposit_close, totalDeposit: totalDeposit, totalDistributed: totalDistributed, allowWithdraw: allowWithdraw, onlyWhitelisted: onlyWhitelisted, maxTotalDeposit: maxTotalDeposit, maxUserDeposit: maxUserDeposit, minUserDeposit: minUserDeposit, name: name, self: address(this), status: status, gfi_tier_access: gfi_tier_access, access_type: access_type, depositToken: address(depositToken), distributeToken: address(distributeToken) }); } function distributeLength() external view returns (uint256) { return distributeInfo.length; } function feeInfo() external view returns (address[4] memory feeReceivers, uint256[4] memory feeAmounts) { feeReceivers[0] = adminReceiver; feeReceivers[1] = partnerReceiver; feeReceivers[2] = partnerReceiver2; feeReceivers[3] = partnerReceiver3; feeAmounts[0] = adminFee; feeAmounts[1] = partnerFee; feeAmounts[2] = partnerFee2; feeAmounts[3] = partnerFee3; } function distribute(uint256 _amount) external checkManager { require(_amount > 0, "zero amount"); require(block.timestamp > deposit_close, "deposit deposit_open"); uint256 userAmount = _amount; distributeToken.safeTransferFrom( address(msg.sender), address(this), _amount ); if (!feeType) { uint256 totalFeeAmount = _amount; uint256 adminFeeAmount = (totalFeeAmount * adminFee) / FEE_DECIMAL; uint256 partnerFeeAmount = (totalFeeAmount * partnerFee) / FEE_DECIMAL; uint256 partnerFeeAmount2 = (totalFeeAmount * partnerFee2) / FEE_DECIMAL; uint256 partnerFeeAmount3 = (totalFeeAmount * partnerFee3) / FEE_DECIMAL; userAmount = _amount - adminFeeAmount - partnerFeeAmount - partnerFeeAmount2 - partnerFeeAmount3; if (adminFeeAmount > 0 && adminReceiver != address(0)) { distributeToken.safeTransfer(adminReceiver, adminFeeAmount); } if (partnerFeeAmount > 0 && partnerReceiver != address(0)) { distributeToken.safeTransfer(partnerReceiver, partnerFeeAmount); } if (partnerFeeAmount2 > 0 && partnerReceiver2 != address(0)) { distributeToken.safeTransfer( partnerReceiver2, partnerFeeAmount2 ); } if (partnerFeeAmount3 > 0 && partnerReceiver3 != address(0)) { distributeToken.safeTransfer( partnerReceiver3, partnerFeeAmount3 ); } } totalDistributed += _amount; distributeInfo.push( Deposit({ amount: _amount, distribute: userAmount, when: block.timestamp }) ); if (!allowWithdraw) { allowWithdraw = true; } emit AdminDeposit(_amount, block.timestamp); } function deposit(uint256 _amount) external { require(block.timestamp > deposit_open, "not deposit window yet"); require(block.timestamp < deposit_close, "deposit ended"); require(_amount > 0, "invalid amount"); if (access_type == 1) { require( IHelper(helper).checkWhitelist(msg.sender, address(this)), "not whitelisted for this category vault" ); } depositToken.safeTransferFrom( address(msg.sender), address(this), _amount ); if (feeType) { uint256 totalFeeAmount = _amount; uint256 adminFeeAmount = (totalFeeAmount * adminFee) / FEE_DECIMAL; uint256 partnerFeeAmount = (totalFeeAmount * partnerFee) / FEE_DECIMAL; uint256 partnerFeeAmount2 = (totalFeeAmount * partnerFee2) / FEE_DECIMAL; uint256 partnerFeeAmount3 = (totalFeeAmount * partnerFee3) / FEE_DECIMAL; if (adminFeeAmount > 0 && adminReceiver != address(0)) { depositToken.safeTransfer(adminReceiver, adminFeeAmount); } if (partnerFeeAmount > 0 && partnerReceiver != address(0)) { depositToken.safeTransfer(partnerReceiver, partnerFeeAmount); } if (partnerFeeAmount2 > 0 && partnerReceiver2 != address(0)) { depositToken.safeTransfer(partnerReceiver2, partnerFeeAmount2); } if (partnerFeeAmount3 > 0 && partnerReceiver3 != address(0)) { depositToken.safeTransfer(partnerReceiver3, partnerFeeAmount3); } } UserInfo storage user = userInfo[msg.sender]; user.amount += _amount; totalDeposit += _amount; require(maxTotalDeposit >= totalDeposit, "reached max deposit"); require(maxUserDeposit >= user.amount, "reached user max deposit"); require(minUserDeposit <= _amount, "small deposit"); emit UserDeposit(address(msg.sender), _amount, block.timestamp); } function updateDescription(string[] memory _des) external checkManager { descripton = _des; } function getDescription() external view returns (string[] memory) { return descripton; } function adminWithdraw() external checkManager { require(!adminWithdrawed, "double admin withdraw"); require(block.timestamp > deposit_close, "deposit deposit_open"); uint256 total = depositToken.balanceOf(address(this)); adminWithdrawed = true; depositToken.safeTransfer(withdrawReceiver, total); } function availableWithdraw(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 amount; for (uint256 j = user.admin; j < distributeInfo.length; j++) { Deposit memory depositInfo = distributeInfo[j]; amount += (user.amount * depositInfo.distribute) / totalDeposit; } return amount; } function withdraw() external { require(block.timestamp >= deposit_close, "You can't withdraw yet"); require(allowWithdraw, "You can't withdraw yet"); UserInfo storage user = userInfo[msg.sender]; require(user.amount > 0, "not deposited"); uint256 amount; for (uint256 j = user.admin; j < distributeInfo.length; j++) { Deposit memory depositInfo = distributeInfo[j]; amount += (user.amount * depositInfo.distribute) / totalDeposit; } require(amount > 0, "invalid withdraw"); user.admin = distributeInfo.length; user.withdraw += amount; distributeToken.safeTransfer(address(msg.sender), amount); emit Withdrawal(address(msg.sender), amount, block.timestamp); } function updateCategory(uint256 _category) external onlyOwner { category = _category; } function updateDistributeToken(address _distributeToken) external onlyOwner { distributeToken = IERC20(_distributeToken); } function updateFeeType(bool _feeType) external onlyOwner { require(block.timestamp < deposit_open, "deposit started"); feeType = _feeType; } function updateGFITier(uint8 _tier) external onlyOwner { require(gfi_tier_access > 0, "wrong gfi tier"); gfi_tier_access = _tier; } function updateAccessType(uint8 _access) external onlyOwner { access_type = _access; } function updateHelper(address _helper) external onlyOwner { helper = _helper; } function updateWithdrawReceiver(address _receiver) external onlyOwner { withdrawReceiver = _receiver; } function updateDisplay(bool _flag) external checkManager { onlyWhitelisted = _flag; } function updateStrategyName(string memory _name) external checkManager { name = _name; } function updateStatus(uint8 _status) external checkManager { status = _status; } function updateManager(address _manager, bool flag) external onlyOwner { managers[_manager] = flag; } function updateMaxTotal(uint256 _max) external checkManager { maxTotalDeposit = _max; } function updateMaxUser(uint256 _max) external checkManager { maxUserDeposit = _max; } function updateMinUser(uint256 _min) external checkManager { minUserDeposit = _min; } function updateDistributionStart(uint256 _start) external checkManager { distribution_start = _start; } function updateDistributionEnd(uint256 _end) external checkManager { distribution_end = _end; } function updateDepositOpen(uint256 _open) external checkManager { require(block.timestamp < deposit_open, "deposit started"); deposit_open = _open; } function updateDepositClose(uint256 _close) external checkManager { deposit_close = _close; } function updatePrice(uint256 _price) external checkManager { price = _price; } function updateAdmin(address _admin) external onlyOwner { adminReceiver = _admin; } function updateAdminFee(uint256 _admin) external onlyOwner { adminFee = _admin; } function updatePartner(address _partner) external onlyOwner { partnerReceiver = _partner; } function updatePartnerFee(uint256 _partner) external onlyOwner { partnerFee = _partner; } function updatePartner2(address _partner) external onlyOwner { partnerReceiver2 = _partner; } function updatePartnerFee2(uint256 _partner) external onlyOwner { partnerFee2 = _partner; } function updatePartner3(address _partner) external onlyOwner { partnerReceiver3 = _partner; } function updatePartnerFee3(uint256 _partner) external onlyOwner { partnerFee3 = _partner; } function updateWithdrawal(bool _flag) external onlyOwner { allowWithdraw = _flag; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @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 Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; interface IHelper { function checkWhitelist( address _user, address _vault ) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"contract IERC20","name":"depositToken","type":"address"},{"internalType":"contract IERC20","name":"distributeToken","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"distribution_start","type":"uint256"},{"internalType":"uint256","name":"distribution_end","type":"uint256"},{"internalType":"uint256","name":"deposit_open","type":"uint256"},{"internalType":"uint256","name":"deposit_close","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"},{"internalType":"bool","name":"onlyWhitelist","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"helper","type":"address"},{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint8","name":"gfi_tier_access","type":"uint8"},{"internalType":"uint8","name":"access_type","type":"uint8"},{"internalType":"uint256","name":"maxDeposit","type":"uint256"},{"internalType":"uint256","name":"maxPerUser","type":"uint256"},{"internalType":"uint256","name":"minPerUser","type":"uint256"},{"internalType":"address","name":"adminFeeReceiver","type":"address"},{"internalType":"uint256","name":"adminFeeAmount","type":"uint256"},{"internalType":"address[3]","name":"partnerFeeReceivers","type":"address[3]"},{"internalType":"uint256[3]","name":"partnerFeeAmounts","type":"uint256[3]"},{"internalType":"bool","name":"feeType","type":"bool"}],"internalType":"struct Parameters","name":"param","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"when","type":"uint256"}],"name":"AdminDeposit","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":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"when","type":"uint256"}],"name":"UserDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"when","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"access_type","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminWithdrawed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"availableWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"category","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":[],"name":"depositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit_close","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit_open","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"descripton","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributeInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"distribute","type":"uint256"},{"internalType":"uint256","name":"when","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribution_end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribution_start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeInfo","outputs":[{"internalType":"address[4]","name":"feeReceivers","type":"address[4]"},{"internalType":"uint256[4]","name":"feeAmounts","type":"uint256[4]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDescription","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gfi_tier_access","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"helper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"info","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"distribution_start","type":"uint256"},{"internalType":"uint256","name":"distribution_end","type":"uint256"},{"internalType":"uint256","name":"deposit_open","type":"uint256"},{"internalType":"uint256","name":"deposit_close","type":"uint256"},{"internalType":"uint256","name":"totalDeposit","type":"uint256"},{"internalType":"uint256","name":"totalDistributed","type":"uint256"},{"internalType":"bool","name":"allowWithdraw","type":"bool"},{"internalType":"bool","name":"onlyWhitelisted","type":"bool"},{"internalType":"uint256","name":"maxTotalDeposit","type":"uint256"},{"internalType":"uint256","name":"maxUserDeposit","type":"uint256"},{"internalType":"uint256","name":"minUserDeposit","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"self","type":"address"},{"internalType":"uint8","name":"status","type":"uint8"},{"internalType":"uint8","name":"gfi_tier_access","type":"uint8"},{"internalType":"uint8","name":"access_type","type":"uint8"},{"internalType":"address","name":"depositToken","type":"address"},{"internalType":"address","name":"distributeToken","type":"address"}],"internalType":"struct SaleVaultInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"managers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxUserDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minUserDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerFee2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerFee3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerReceiver2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerReceiver3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributed","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":"uint8","name":"_access","type":"uint8"}],"name":"updateAccessType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_admin","type":"uint256"}],"name":"updateAdminFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_category","type":"uint256"}],"name":"updateCategory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_close","type":"uint256"}],"name":"updateDepositClose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_open","type":"uint256"}],"name":"updateDepositOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_des","type":"string[]"}],"name":"updateDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"updateDisplay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distributeToken","type":"address"}],"name":"updateDistributeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"updateDistributionEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"updateDistributionStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_feeType","type":"bool"}],"name":"updateFeeType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"}],"name":"updateGFITier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_helper","type":"address"}],"name":"updateHelper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"bool","name":"flag","type":"bool"}],"name":"updateManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"updateMaxTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"updateMaxUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"}],"name":"updateMinUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"updatePartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"updatePartner2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"updatePartner3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_partner","type":"uint256"}],"name":"updatePartnerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_partner","type":"uint256"}],"name":"updatePartnerFee2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_partner","type":"uint256"}],"name":"updatePartnerFee3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_status","type":"uint8"}],"name":"updateStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"updateStrategyName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"updateWithdrawReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"updateWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"withdraw","type":"uint256"},{"internalType":"uint256","name":"admin","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104545760003560e01c80639666ee5c11610241578063d299e2141161013b578063eee5d2f4116100c3578063f2fde38b11610087578063f2fde38b14610967578063f6153ccd1461097a578063f90b983a14610983578063fb8dc1791461098c578063fdff9b4d1461099e57600080fd5b8063eee5d2f414610931578063ef430aa614610944578063efca2eed1461094d578063effb0b3814610956578063f18d20be1461095f57600080fd5b8063d9a8d8351161010a578063d9a8d835146108dc578063e0475dc4146108e5578063e06e82da146108f8578063e2f273bd1461090b578063e747a55f1461091e57600080fd5b8063d299e21414610899578063d301658b146108ac578063d5a2ab53146108bf578063d853ed04146108c857600080fd5b8063aa9c5fc4116101c9578063c4d50b7b1161018d578063c4d50b7b1461083a578063c6ae81161461084d578063c89039c514610860578063ccb0b28d14610873578063cff1b6ef1461088657600080fd5b8063aa9c5fc4146107f9578063af640d0f14610802578063af904e8c1461080b578063b6b55f2514610814578063b779916e1461082757600080fd5b8063a035b1fe11610210578063a035b1fe146107b8578063a0be06f9146107c1578063a68652eb146107ca578063a9e444bd146107d3578063aa72e46b146107e657600080fd5b80639666ee5c1461076f578063995b5aae146107825780639b42be0d146107985780639c70b512146107ab57600080fd5b80633df2c6d31161035257806363b0e66a116102da57806381c2069b1161029e57806381c2069b146107125780638bcc4166146107255780638d6cc56d146107385780638da5cb5b1461074b57806391c05b0b1461075c57600080fd5b806363b0e66a146106c857806370051d02146106db578063715018a6146106ee57806371a6cab7146106f657806380097f27146106ff57600080fd5b80634b4cfa27116103215780634b4cfa27146106635780634e2d483014610677578063566fb028146106995780635b99176c146106ac57806360cc2c76146106b557600080fd5b80633df2c6d314610621578063401f46631461063457806343431bec14610647578063448de4411461065a57600080fd5b80631a092541116103e057806334273637116103a457806334273637146105b357806334b5e35b146105de578063370158ea146105f15780633a35ae2d146106065780633ccfd60b1461061957600080fd5b80631a092541146105465780631fc140d11461055b578063200d2ed21461056e5780632ace939c1461058d57806330749102146105a057600080fd5b80630c7f15cb116104275780630c7f15cb146104b25780630df28608146104c55780631617aeb1146104d857806319411329146104ea5780631959a002146104fd57600080fd5b806304b534151461045957806306fdde031461046e5780630b3af7f91461048c5780630c5a4f4f1461049f575b600080fd5b61046c61046736600461257c565b6109c1565b005b6104766109eb565b60405161048391906125e7565b60405180910390f35b61046c61049a3660046125fa565b610a79565b61046c6104ad36600461257c565b610adc565b61046c6104c036600461262b565b610b06565b61046c6104d33660046126ff565b610b5d565b6019545b604051908152602001610483565b61046c6104f83660046127c2565b610bb8565b61052b61050b36600461257c565b602080526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610483565b61054e610bc5565b60405161048391906127db565b61046c6105693660046127c2565b610c9e565b601e5461057b9060ff1681565b60405160ff9091168152602001610483565b61046c61059b3660046127c2565b610d2a565b61046c6105ae3660046127c2565b610d37565b6008546105c6906001600160a01b031681565b6040516001600160a01b039091168152602001610483565b61046c6105ec36600461257c565b610d80565b6105f9610daa565b604051610483919061283f565b61046c6106143660046129ad565b610fe7565b61046c61101a565b6104dc61062f36600461257c565b611250565b61046c61064236600461257c565b6112fb565b61046c61065536600461262b565b611325565b6104dc60125481565b601a5461057b90600160a01b900460ff1681565b60115461068990610100900460ff1681565b6040519015158152602001610483565b61046c6106a73660046127c2565b61138a565b6104dc600c5481565b61046c6106c33660046127c2565b611397565b601a546105c6906001600160a01b031681565b61046c6106e93660046127c2565b6113a4565b61046c6113ed565b6104dc60045481565b61046c61070d3660046127c2565b611401565b6104766107203660046127c2565b61144a565b61046c61073336600461257c565b611475565b61046c6107463660046127c2565b61149f565b6000546001600160a01b03166105c6565b61046c61076a3660046127c2565b6114e8565b6009546105c6906001600160a01b031681565b61078a611884565b6040516104839291906129e4565b61052b6107a63660046127c2565b6118f3565b6013546106899060ff1681565b6104dc60035481565b6104dc600a5481565b6104dc600e5481565b61046c6107e13660046127c2565b611926565b61046c6107f4366004612a4a565b61196f565b6104dc60055481565b6104dc60015481565b6104dc60165481565b61046c6108223660046127c2565b6119bf565b600b546105c6906001600160a01b031681565b61046c6108483660046125fa565b611e69565b61046c61085b36600461257c565b611e91565b6007546105c6906001600160a01b031681565b61046c6108813660046125fa565b611ebb565b61046c6108943660046127c2565b611f2d565b600f546105c6906001600160a01b031681565b61046c6108ba3660046127c2565b611f3a565b6104dc60065481565b601a5461057b90600160a81b900460ff1681565b6104dc60145481565b61046c6108f33660046127c2565b611f83565b601b546105c6906001600160a01b031681565b61046c61091936600461257c565b611fcc565b600d546105c6906001600160a01b031681565b61046c61093f36600461262b565b611ff6565b6104dc60025481565b6104dc60185481565b6104dc60155481565b61046c612011565b61046c61097536600461257c565b61218c565b6104dc60175481565b6104dc60105481565b601e5461068990610100900460ff1681565b6106896109ac36600461257c565b601f6020526000908152604090205460ff1681565b6109c96121c7565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b601c80546109f890612a87565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2490612a87565b8015610a715780601f10610a4657610100808354040283529160200191610a71565b820191906000526020600020905b815481529060010190602001808311610a5457829003601f168201915b505050505081565b6000546001600160a01b0316331480610aa15750336000908152601f602052604090205460ff165b610ac65760405162461bcd60e51b8152600401610abd90612ac1565b60405180910390fd5b601e805460ff191660ff92909216919091179055565b610ae46121c7565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480610b2e5750336000908152601f602052604090205460ff165b610b4a5760405162461bcd60e51b8152600401610abd90612ac1565b6013805460ff1916911515919091179055565b6000546001600160a01b0316331480610b855750336000908152601f602052604090205460ff165b610ba15760405162461bcd60e51b8152600401610abd90612ac1565b8051610bb490601d906020840190612485565b5050565b610bc06121c7565b600255565b6060601d805480602002602001604051908101604052809291908181526020016000905b82821015610c95578382906000526020600020018054610c0890612a87565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3490612a87565b8015610c815780601f10610c5657610100808354040283529160200191610c81565b820191906000526020600020905b815481529060010190602001808311610c6457829003601f168201915b505050505081526020019060010190610be9565b50505050905090565b6000546001600160a01b0316331480610cc65750336000908152601f602052604090205460ff165b610ce25760405162461bcd60e51b8152600401610abd90612ac1565b6015544210610d255760405162461bcd60e51b815260206004820152600f60248201526e19195c1bdcda5d081cdd185c9d1959608a1b6044820152606401610abd565b601555565b610d326121c7565b600e55565b6000546001600160a01b0316331480610d5f5750336000908152601f602052604090205460ff165b610d7b5760405162461bcd60e51b8152600401610abd90612ac1565b600555565b610d886121c7565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b610e75604051806102a001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000815260200160008152602001600081526020016060815260200160006001600160a01b03168152602001600060ff168152602001600060ff168152602001600060ff16815260200160006001600160a01b0316815260200160006001600160a01b031681525090565b604080516102a08101825260015481526002546020820152600354918101919091526012546060820152601454608082015260155460a082015260165460c082015260175460e082015260185461010082015260115460ff90811615156101208301526013541615156101408201526004546101608201526005546101808201526006546101a0820152601c80546101c083019190610f1390612a87565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3f90612a87565b8015610f8c5780601f10610f6157610100808354040283529160200191610f8c565b820191906000526020600020905b815481529060010190602001808311610f6f57829003601f168201915b5050509183525050306020820152601e5460ff9081166040830152601a54600160a01b810482166060840152600160a81b90041660808201526007546001600160a01b0390811660a08301526008541660c090910152919050565b610fef6121c7565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6016544210156110655760405162461bcd60e51b8152602060048201526016602482015275165bdd4818d85b89dd081dda5d1a191c985dc81e595d60521b6044820152606401610abd565b60115460ff166110b05760405162461bcd60e51b8152602060048201526016602482015275165bdd4818d85b89dd081dda5d1a191c985dc81e595d60521b6044820152606401610abd565b336000908152602080526040902080546110fc5760405162461bcd60e51b815260206004820152600d60248201526c1b9bdd0819195c1bdcda5d1959609a1b6044820152606401610abd565b60028101546000905b6019548110156111895760006019828154811061112457611124612ae6565b6000918252602091829020604080516060810182526003909302909101805483526001810154938301849052600201549082015260175486549193509161116a91612b12565b6111749190612b29565b61117e9084612b4b565b925050600101611105565b50600081116111cd5760405162461bcd60e51b815260206004820152601060248201526f696e76616c696420776974686472617760801b6044820152606401610abd565b60195460028301556001820180548291906000906111ec908490612b4b565b9091555050600854611208906001600160a01b031633836121f4565b604080513381526020810183905242918101919091527fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb906060015b60405180910390a15050565b6001600160a01b03811660009081526020805260408120600281015482905b6019548110156112f35760006019828154811061128e5761128e612ae6565b600091825260209182902060408051606081018252600390930290910180548352600181015493830184905260020154908201526017548654919350916112d491612b12565b6112de9190612b29565b6112e89084612b4b565b92505060010161126f565b509392505050565b6113036121c7565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b61132d6121c7565b60155442106113705760405162461bcd60e51b815260206004820152600f60248201526e19195c1bdcda5d081cdd185c9d1959608a1b6044820152606401610abd565b601e80549115156101000261ff0019909216919091179055565b6113926121c7565b601055565b61139f6121c7565b600c55565b6000546001600160a01b03163314806113cc5750336000908152601f602052604090205460ff165b6113e85760405162461bcd60e51b8152600401610abd90612ac1565b600655565b6113f56121c7565b6113ff6000612258565b565b6000546001600160a01b03163314806114295750336000908152601f602052604090205460ff165b6114455760405162461bcd60e51b8152600401610abd90612ac1565b601455565b601d818154811061145a57600080fd5b9060005260206000200160009150905080546109f890612a87565b61147d6121c7565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314806114c75750336000908152601f602052604090205460ff165b6114e35760405162461bcd60e51b8152600401610abd90612ac1565b600355565b6000546001600160a01b03163314806115105750336000908152601f602052604090205460ff165b61152c5760405162461bcd60e51b8152600401610abd90612ac1565b6000811161156a5760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b6044820152606401610abd565b60165442116115b25760405162461bcd60e51b81526020600482015260146024820152733232b837b9b4ba103232b837b9b4ba2fb7b832b760611b6044820152606401610abd565b60085481906115cc906001600160a01b03163330846122a8565b601e54610100900460ff1661177d57600a5482906000906103e8906115f19084612b12565b6115fb9190612b29565b905060006103e8600c54846116109190612b12565b61161a9190612b29565b905060006103e8600e548561162f9190612b12565b6116399190612b29565b905060006103e86010548661164e9190612b12565b6116589190612b29565b9050808284611667878b612b5e565b6116719190612b5e565b61167b9190612b5e565b6116859190612b5e565b95506000841180156116a157506009546001600160a01b031615155b156116c3576009546008546116c3916001600160a01b039182169116866121f4565b6000831180156116dd5750600b546001600160a01b031615155b156116ff57600b546008546116ff916001600160a01b039182169116856121f4565b6000821180156117195750600d546001600160a01b031615155b1561173b57600d5460085461173b916001600160a01b039182169116846121f4565b6000811180156117555750600f546001600160a01b031615155b1561177757600f54600854611777916001600160a01b039182169116836121f4565b50505050505b816018600082825461178f9190612b4b565b90915550506040805160608101825283815260208101838152429282019283526019805460018101825560009190915291517f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695600390930292830155517f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c969682015590517f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96979091015560115460ff1661184f576011805460ff191660011790555b604080518381524260208201527fd7168172de50c2f047d1edcb370e866a5d614a9d3d6d8ba9f7951f8465d134bd9101611244565b61188c6124db565b6118946124db565b6009546001600160a01b039081168352600b548116602080850191909152600d548216604080860191909152600f54909216606080860191909152600a548452600c5491840191909152600e5491830191909152601054908201529091565b6019818154811061190357600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000546001600160a01b031633148061194e5750336000908152601f602052604090205460ff165b61196a5760405162461bcd60e51b8152600401610abd90612ac1565b601655565b6000546001600160a01b03163314806119975750336000908152601f602052604090205460ff165b6119b35760405162461bcd60e51b8152600401610abd90612ac1565b601c610bb48282612bc1565b6015544211611a095760405162461bcd60e51b81526020600482015260166024820152751b9bdd0819195c1bdcda5d081dda5b991bddc81e595d60521b6044820152606401610abd565b6016544210611a4a5760405162461bcd60e51b815260206004820152600d60248201526c19195c1bdcda5d08195b991959609a1b6044820152606401610abd565b60008111611a8b5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610abd565b601a54600160a81b900460ff16600103611b6d57601a5460405163dc1a091160e01b81523360048201523060248201526001600160a01b039091169063dc1a091190604401602060405180830381865afa158015611aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b119190612c81565b611b6d5760405162461bcd60e51b815260206004820152602760248201527f6e6f742077686974656c697374656420666f7220746869732063617465676f726044820152661e481d985d5b1d60ca1b6064820152608401610abd565b600754611b85906001600160a01b03163330846122a8565b601e54610100900460ff1615611d0a57600a5481906000906103e890611bab9084612b12565b611bb59190612b29565b905060006103e8600c5484611bca9190612b12565b611bd49190612b29565b905060006103e8600e5485611be99190612b12565b611bf39190612b29565b905060006103e860105486611c089190612b12565b611c129190612b29565b9050600084118015611c2e57506009546001600160a01b031615155b15611c5057600954600754611c50916001600160a01b039182169116866121f4565b600083118015611c6a5750600b546001600160a01b031615155b15611c8c57600b54600754611c8c916001600160a01b039182169116856121f4565b600082118015611ca65750600d546001600160a01b031615155b15611cc857600d54600754611cc8916001600160a01b039182169116846121f4565b600081118015611ce25750600f546001600160a01b031615155b15611d0457600f54600754611d04916001600160a01b039182169116836121f4565b50505050505b3360009081526020805260408120805490918391839190611d2c908490612b4b565b925050819055508160176000828254611d459190612b4b565b90915550506017546004541015611d945760405162461bcd60e51b81526020600482015260136024820152721c995858da1959081b585e0819195c1bdcda5d606a1b6044820152606401610abd565b80546005541015611de75760405162461bcd60e51b815260206004820152601860248201527f726561636865642075736572206d6178206465706f73697400000000000000006044820152606401610abd565b816006541115611e295760405162461bcd60e51b815260206004820152600d60248201526c1cdb585b1b0819195c1bdcda5d609a1b6044820152606401610abd565b604080513381526020810184905242918101919091527f2f1a7fda57b5fd5cb62770aebd7fc9a8a0a834c5ff558eb7562f85f2b28c437590606001611244565b611e716121c7565b601a805460ff909216600160a81b0260ff60a81b19909216919091179055565b611e996121c7565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611ec36121c7565b601a54600160a01b900460ff16611f0d5760405162461bcd60e51b815260206004820152600e60248201526d3bb937b7339033b334903a34b2b960911b6044820152606401610abd565b601a805460ff909216600160a01b0260ff60a01b19909216919091179055565b611f356121c7565b600a55565b6000546001600160a01b0316331480611f625750336000908152601f602052604090205460ff165b611f7e5760405162461bcd60e51b8152600401610abd90612ac1565b600455565b6000546001600160a01b0316331480611fab5750336000908152601f602052604090205460ff165b611fc75760405162461bcd60e51b8152600401610abd90612ac1565b601255565b611fd46121c7565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b611ffe6121c7565b6011805460ff1916911515919091179055565b6000546001600160a01b03163314806120395750336000908152601f602052604090205460ff165b6120555760405162461bcd60e51b8152600401610abd90612ac1565b601154610100900460ff16156120a55760405162461bcd60e51b8152602060048201526015602482015274646f75626c652061646d696e20776974686472617760581b6044820152606401610abd565b60165442116120ed5760405162461bcd60e51b81526020600482015260146024820152733232b837b9b4ba103232b837b9b4ba2fb7b832b760611b6044820152606401610abd565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215a9190612c9e565b6011805461ff001916610100179055601b54600754919250612189916001600160a01b039081169116836121f4565b50565b6121946121c7565b6001600160a01b0381166121be57604051631e4fbdf760e01b815260006004820152602401610abd565b61218981612258565b6000546001600160a01b031633146113ff5760405163118cdaa760e01b8152336004820152602401610abd565b6040516001600160a01b0383811660248301526044820183905261225391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506122e7565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0384811660248301528381166044830152606482018390526122e19186918216906323b872dd90608401612221565b50505050565b60006122fc6001600160a01b0384168361234a565b9050805160001415801561232157508080602001905181019061231f9190612c81565b155b1561225357604051635274afe760e01b81526001600160a01b0384166004820152602401610abd565b606061235883836000612361565b90505b92915050565b6060814710156123865760405163cd78605960e01b8152306004820152602401610abd565b600080856001600160a01b031684866040516123a29190612cb7565b60006040518083038185875af1925050503d80600081146123df576040519150601f19603f3d011682016040523d82523d6000602084013e6123e4565b606091505b50915091506123f4868383612400565b925050505b9392505050565b606082612415576124108261245c565b6123f9565b815115801561242c57506001600160a01b0384163b155b1561245557604051639996b31560e01b81526001600160a01b0385166004820152602401610abd565b50806123f9565b80511561246c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b8280548282559060005260206000209081019282156124cb579160200282015b828111156124cb57825182906124bb9082612bc1565b50916020019190600101906124a5565b506124d79291506124f9565b5090565b60405180608001604052806004906020820280368337509192915050565b808211156124d757600061250d8282612516565b506001016124f9565b50805461252290612a87565b6000825580601f10612532575050565b601f01602090049060005260206000209081019061218991905b808211156124d7576000815560010161254c565b80356001600160a01b038116811461257757600080fd5b919050565b60006020828403121561258e57600080fd5b61235882612560565b60005b838110156125b257818101518382015260200161259a565b50506000910152565b600081518084526125d3816020860160208601612597565b601f01601f19169290920160200192915050565b60208152600061235860208301846125bb565b60006020828403121561260c57600080fd5b813560ff811681146123f957600080fd5b801515811461218957600080fd5b60006020828403121561263d57600080fd5b81356123f98161261d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561268757612687612648565b604052919050565b600082601f8301126126a057600080fd5b813567ffffffffffffffff8111156126ba576126ba612648565b6126cd601f8201601f191660200161265e565b8181528460208386010111156126e257600080fd5b816020850160208301376000918101602001919091529392505050565b6000602080838503121561271257600080fd5b823567ffffffffffffffff8082111561272a57600080fd5b818501915085601f83011261273e57600080fd5b81358181111561275057612750612648565b8060051b61275f85820161265e565b918252838101850191858101908984111561277957600080fd5b86860192505b838310156127b5578235858111156127975760008081fd5b6127a58b89838a010161268f565b835250918601919086019061277f565b9998505050505050505050565b6000602082840312156127d457600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561283257603f198886030184526128208583516125bb565b94509285019290850190600101612804565b5092979650505050505050565b6020815281516020820152602082015160408201526040820151606082015260608201516080820152608082015160a082015260a082015160c082015260c082015160e0820152600060e08301516101008181850152808501519150506101208181850152808501519150506101406128bb8185018315159052565b84015190506101606128d08482018315159052565b840151610180848101919091528401516101a0808501919091528401516101c0808501919091528401516102a06101e0808601829052919250906129186102c08601846125bb565b90860151909250610200612936868201836001600160a01b03169052565b860151905061022061294c8682018360ff169052565b86015190506102406129628682018360ff169052565b86015190506102606129788682018360ff169052565b8601519050610280612994868201836001600160a01b03169052565b909501516001600160a01b031693019290925250919050565b600080604083850312156129c057600080fd5b6129c983612560565b915060208301356129d98161261d565b809150509250929050565b6101008101818460005b6004811015612a165781516001600160a01b03168352602092830192909101906001016129ee565b505050608082018360005b6004811015612a40578151835260209283019290910190600101612a21565b5050509392505050565b600060208284031215612a5c57600080fd5b813567ffffffffffffffff811115612a7357600080fd5b612a7f8482850161268f565b949350505050565b600181811c90821680612a9b57607f821691505b602082108103612abb57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600b908201526a3737ba1036b0b730b3b2b960a91b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761235b5761235b612afc565b600082612b4657634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561235b5761235b612afc565b8181038181111561235b5761235b612afc565b601f821115612253576000816000526020600020601f850160051c81016020861015612b9a5750805b601f850160051c820191505b81811015612bb957828155600101612ba6565b505050505050565b815167ffffffffffffffff811115612bdb57612bdb612648565b612bef81612be98454612a87565b84612b71565b602080601f831160018114612c245760008415612c0c5750858301515b600019600386901b1c1916600185901b178555612bb9565b600085815260208120601f198616915b82811015612c5357888601518255948401946001909101908401612c34565b5085821015612c715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612c9357600080fd5b81516123f98161261d565b600060208284031215612cb057600080fd5b5051919050565b60008251612cc9818460208701612597565b919091019291505056fea264697066735822122090a32e6419063b849cd949cf19c8e10d81e016275ea0878ad33b5554c07320ac64736f6c63430008170033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.