More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 98 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Deposits | 21425731 | 17 days ago | IN | 0 ETH | 0.00112628 | ||||
Claim Deposits | 21413542 | 18 days ago | IN | 0 ETH | 0.00044855 | ||||
Claim Deposits | 21412107 | 19 days ago | IN | 0 ETH | 0.00106931 | ||||
Claim Deposits | 21407718 | 19 days ago | IN | 0 ETH | 0.0004564 | ||||
Claim Deposits | 21405415 | 19 days ago | IN | 0 ETH | 0.0006494 | ||||
Claim Deposits | 21330064 | 30 days ago | IN | 0 ETH | 0.00370177 | ||||
Claim Deposits | 21281806 | 37 days ago | IN | 0 ETH | 0.00152277 | ||||
Claim Deposits | 21271039 | 38 days ago | IN | 0 ETH | 0.00063868 | ||||
Claim Deposits | 21209504 | 47 days ago | IN | 0 ETH | 0.00084168 | ||||
Claim Deposits | 21200947 | 48 days ago | IN | 0 ETH | 0.00113952 | ||||
Claim Deposits | 21193174 | 49 days ago | IN | 0 ETH | 0.00120169 | ||||
Claim Deposits | 21190089 | 50 days ago | IN | 0 ETH | 0.00045017 | ||||
Claim Deposits | 21190087 | 50 days ago | IN | 0 ETH | 0.00118643 | ||||
Claim Deposits | 21189399 | 50 days ago | IN | 0 ETH | 0.00068411 | ||||
Claim Deposits | 21187106 | 50 days ago | IN | 0 ETH | 0.00097656 | ||||
Claim Deposits | 21180997 | 51 days ago | IN | 0 ETH | 0.00446061 | ||||
Claim Deposits | 21180990 | 51 days ago | IN | 0 ETH | 0.00201602 | ||||
Claim Deposits | 20980191 | 79 days ago | IN | 0 ETH | 0.00102612 | ||||
Claim Deposits | 20975673 | 79 days ago | IN | 0 ETH | 0.00070199 | ||||
Claim Deposits | 20971516 | 80 days ago | IN | 0 ETH | 0.00278676 | ||||
Claim Deposits | 20970078 | 80 days ago | IN | 0 ETH | 0.00033943 | ||||
Claim Deposits | 20970049 | 80 days ago | IN | 0 ETH | 0.00039475 | ||||
Claim Deposits | 20970035 | 80 days ago | IN | 0 ETH | 0.00107152 | ||||
Claim Deposits | 20967490 | 81 days ago | IN | 0 ETH | 0.00042851 | ||||
Claim Deposits | 20967477 | 81 days ago | IN | 0 ETH | 0.00042 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PremiaMultiVesting
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; /// @author Premia /// @title A vesting contract allowing to set multiple deposits for multiple users, with 1 year vesting contract PremiaMultiVesting is Ownable { using SafeERC20 for IERC20; struct Deposit { uint256 amount; // Amount of tokens uint256 eta; // Timestamp at which tokens will unlock } IERC20 public premia; uint256 constant vestingPeriod = 365 days; // User -> Deposit id -> Deposit mapping(address => mapping(uint256 => Deposit)) public deposits; // User -> Last deposit id claimed mapping(address => uint256) public lastClaimedDepositId; // User -> Id of last deposit added mapping(address => uint256) public depositsLength; event DepositAdded(address indexed user, uint256 depositId, uint256 amount, uint256 eta); event DepositClaimed(address indexed user, uint256 depositId, uint256 amount); constructor(IERC20 _premia) { premia = _premia; } function addDeposits(address[] memory _users, uint256[] memory _amounts) external onlyOwner { require(_users.length == _amounts.length, "Array diff length"); uint256 total; for (uint256 i = 0; i < _users.length; ++i) { total += _amounts[i]; } premia.safeTransferFrom(msg.sender, address(this), total); uint256 eta = block.timestamp + vestingPeriod; for (uint256 i = 0; i < _users.length; ++i) { if (_amounts[i] == 0) continue; depositsLength[_users[i]] += 1; uint256 depositId = depositsLength[_users[i]]; deposits[_users[i]][depositId] = Deposit(_amounts[i], eta); emit DepositAdded(_users[i], depositId, _amounts[i], eta); } } function claimDeposits() external { uint256 lastIdClaimed = lastClaimedDepositId[msg.sender]; uint256 tokenAmount; Deposit memory deposit = deposits[msg.sender][lastIdClaimed + 1]; while (deposit.eta != 0 && deposit.eta < block.timestamp) { tokenAmount += deposit.amount; lastIdClaimed++; deposit = deposits[msg.sender][lastIdClaimed + 1]; emit DepositClaimed(msg.sender, lastIdClaimed, tokenAmount); } if (tokenAmount > 0) { lastClaimedDepositId[msg.sender] = lastIdClaimed; premia.transfer(msg.sender, tokenAmount); } } function getPendingDeposits(address _user) external view returns(Deposit[] memory) { Deposit[] memory result = new Deposit[](depositsLength[_user] - lastClaimedDepositId[_user]); uint256 idx = 0; for (uint256 i = lastClaimedDepositId[_user] + 1; i < depositsLength[_user] + 1; ++i) { result[idx] = deposits[_user][i]; idx++; } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../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; 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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. * * 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_premia","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"DepositAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositClaimed","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"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"addDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"eta","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getPendingDeposits","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"eta","type":"uint256"}],"internalType":"struct PremiaMultiVesting.Deposit[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimedDepositId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516110b23803806110b283398101604081905261002f91610095565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100c3565b6000602082840312156100a6578081fd5b81516001600160a01b03811681146100bc578182fd5b9392505050565b610fe0806100d26000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638da5cb5b116100665780638da5cb5b14610126578063b0f7551214610137578063cb85b97214610157578063d6d6817714610177578063f2fde38b146101be5761009e565b80631432c281146100a35780632805b3ff146100ad5780633f5f7bcd146100e0578063715018a61461010b57806374bcb21914610113575b600080fd5b6100ab6101d1565b005b6100cd6100bb366004610cbc565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b6001546100f3906001600160a01b031681565b6040516001600160a01b0390911681526020016100d7565b6100ab61038a565b6100ab610121366004610cff565b610407565b6000546001600160a01b03166100f3565b61014a610145366004610cbc565b610739565b6040516100d79190610dfc565b6100cd610165366004610cbc565b60046020526000908152604090205481565b6101a9610185366004610cd6565b60026020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016100d7565b6100ab6101cc366004610cbc565b6108bd565b33600090815260036020908152604080832054600290925282209091908190816101fc856001610f08565b81526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090505b6020810151158015906102425750428160200151105b156102e65780516102539083610f08565b91508261025f81610f63565b33600090815260026020526040812091955090915061027f856001610f08565b815260208082019290925260409081016000208151808301835281548152600190910154818401528151868152928301859052925033917f6b1069552f63b401b74bc71e75594d0a8bc61f7a42998e0f201b78f9aa600d32910160405180910390a261022c565b8115610385573360008181526003602052604090819020859055600154905163a9059cbb60e01b81526004810192909252602482018490526001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103839190610dc0565b505b505050565b6000546001600160a01b031633146103bd5760405162461bcd60e51b81526004016103b490610e7e565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146104315760405162461bcd60e51b81526004016103b490610e7e565b80518251146104765760405162461bcd60e51b8152602060048201526011602482015270082e4e4c2f240c8d2cccc40d8cadccee8d607b1b60448201526064016103b4565b6000805b83518110156104c8578281815181106104a357634e487b7160e01b600052603260045260246000fd5b6020026020010151826104b69190610f08565b91506104c181610f63565b905061047a565b506001546104e1906001600160a01b03163330846109a7565b60006104f16301e1338042610f08565b905060005b84518110156107325783818151811061051f57634e487b7160e01b600052603260045260246000fd5b60200260200101516000141561053457610722565b60016004600087848151811061055a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546105919190610f08565b925050819055506000600460008784815181106105be57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050604051806040016040528086848151811061061457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001848152506002600088858151811061064957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b0316825281810192909252604090810160009081208582528352208251815591015160019091015585518690839081106106a657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03167fb37ee076389d0e0226e28f5eb753578001087ab4722dc31f831f024efb41da6f828785815181106106f957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516040805193845291830152810186905260600160405180910390a2505b61072b81610f63565b90506104f6565b5050505050565b6001600160a01b03811660009081526003602090815260408083205460049092528220546060929161076a91610f20565b67ffffffffffffffff81111561079057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156107d557816020015b60408051808201909152600080825260208201528152602001906001900390816107ae5790505b506001600160a01b038416600090815260036020526040812054919250908190610800906001610f08565b90505b6001600160a01b038516600090815260046020526040902054610827906001610f08565b8110156108b2576001600160a01b03851660009081526002602090815260408083208484528252918290208251808401909352805483526001015490820152835184908490811061088857634e487b7160e01b600052603260045260246000fd5b6020026020010181905250818061089e90610f63565b925050806108ab90610f63565b9050610803565b50909150505b919050565b6000546001600160a01b031633146108e75760405162461bcd60e51b81526004016103b490610e7e565b6001600160a01b03811661094c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261038392879291600091610a3f918516908490610abc565b8051909150156103855780806020019051810190610a5d9190610dc0565b6103855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b4565b6060610acb8484600085610ad5565b90505b9392505050565b606082471015610b365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103b4565b843b610b845760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b4565b600080866001600160a01b03168587604051610ba09190610de0565b60006040518083038185875af1925050503d8060008114610bdd576040519150601f19603f3d011682016040523d82523d6000602084013e610be2565b606091505b5091509150610bf2828286610bfd565b979650505050505050565b60608315610c0c575081610ace565b825115610c1c5782518084602001fd5b8160405162461bcd60e51b81526004016103b49190610e4b565b80356001600160a01b03811681146108b857600080fd5b600082601f830112610c5d578081fd5b81356020610c72610c6d83610ee4565b610eb3565b80838252828201915082860187848660051b8901011115610c91578586fd5b855b85811015610caf57813584529284019290840190600101610c93565b5090979650505050505050565b600060208284031215610ccd578081fd5b610ace82610c36565b60008060408385031215610ce8578081fd5b610cf183610c36565b946020939093013593505050565b60008060408385031215610d11578182fd5b823567ffffffffffffffff80821115610d28578384fd5b818501915085601f830112610d3b578384fd5b81356020610d4b610c6d83610ee4565b8083825282820191508286018a848660051b8901011115610d6a578889fd5b8896505b84871015610d9357610d7f81610c36565b835260019690960195918301918301610d6e565b5096505086013592505080821115610da9578283fd5b50610db685828601610c4d565b9150509250929050565b600060208284031215610dd1578081fd5b81518015158114610ace578182fd5b60008251610df2818460208701610f37565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b82811015610e3e57815180518552860151868501529284019290850190600101610e19565b5091979650505050505050565b6000602082528251806020840152610e6a816040850160208701610f37565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610edc57610edc610f94565b604052919050565b600067ffffffffffffffff821115610efe57610efe610f94565b5060051b60200190565b60008219821115610f1b57610f1b610f7e565b500190565b600082821015610f3257610f32610f7e565b500390565b60005b83811015610f52578181015183820152602001610f3a565b838111156103835750506000910152565b6000600019821415610f7757610f77610f7e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212209d440767216fded322fc3fb5165689d0ca4bb23cfb405915c9e7922480bd300264736f6c634300080300330000000000000000000000006399c842dd2be3de30bf99bc7d1bbf6fa3650e70
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80638da5cb5b116100665780638da5cb5b14610126578063b0f7551214610137578063cb85b97214610157578063d6d6817714610177578063f2fde38b146101be5761009e565b80631432c281146100a35780632805b3ff146100ad5780633f5f7bcd146100e0578063715018a61461010b57806374bcb21914610113575b600080fd5b6100ab6101d1565b005b6100cd6100bb366004610cbc565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b6001546100f3906001600160a01b031681565b6040516001600160a01b0390911681526020016100d7565b6100ab61038a565b6100ab610121366004610cff565b610407565b6000546001600160a01b03166100f3565b61014a610145366004610cbc565b610739565b6040516100d79190610dfc565b6100cd610165366004610cbc565b60046020526000908152604090205481565b6101a9610185366004610cd6565b60026020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016100d7565b6100ab6101cc366004610cbc565b6108bd565b33600090815260036020908152604080832054600290925282209091908190816101fc856001610f08565b81526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090505b6020810151158015906102425750428160200151105b156102e65780516102539083610f08565b91508261025f81610f63565b33600090815260026020526040812091955090915061027f856001610f08565b815260208082019290925260409081016000208151808301835281548152600190910154818401528151868152928301859052925033917f6b1069552f63b401b74bc71e75594d0a8bc61f7a42998e0f201b78f9aa600d32910160405180910390a261022c565b8115610385573360008181526003602052604090819020859055600154905163a9059cbb60e01b81526004810192909252602482018490526001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103839190610dc0565b505b505050565b6000546001600160a01b031633146103bd5760405162461bcd60e51b81526004016103b490610e7e565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146104315760405162461bcd60e51b81526004016103b490610e7e565b80518251146104765760405162461bcd60e51b8152602060048201526011602482015270082e4e4c2f240c8d2cccc40d8cadccee8d607b1b60448201526064016103b4565b6000805b83518110156104c8578281815181106104a357634e487b7160e01b600052603260045260246000fd5b6020026020010151826104b69190610f08565b91506104c181610f63565b905061047a565b506001546104e1906001600160a01b03163330846109a7565b60006104f16301e1338042610f08565b905060005b84518110156107325783818151811061051f57634e487b7160e01b600052603260045260246000fd5b60200260200101516000141561053457610722565b60016004600087848151811061055a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546105919190610f08565b925050819055506000600460008784815181106105be57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050604051806040016040528086848151811061061457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001848152506002600088858151811061064957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b0316825281810192909252604090810160009081208582528352208251815591015160019091015585518690839081106106a657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03167fb37ee076389d0e0226e28f5eb753578001087ab4722dc31f831f024efb41da6f828785815181106106f957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516040805193845291830152810186905260600160405180910390a2505b61072b81610f63565b90506104f6565b5050505050565b6001600160a01b03811660009081526003602090815260408083205460049092528220546060929161076a91610f20565b67ffffffffffffffff81111561079057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156107d557816020015b60408051808201909152600080825260208201528152602001906001900390816107ae5790505b506001600160a01b038416600090815260036020526040812054919250908190610800906001610f08565b90505b6001600160a01b038516600090815260046020526040902054610827906001610f08565b8110156108b2576001600160a01b03851660009081526002602090815260408083208484528252918290208251808401909352805483526001015490820152835184908490811061088857634e487b7160e01b600052603260045260246000fd5b6020026020010181905250818061089e90610f63565b925050806108ab90610f63565b9050610803565b50909150505b919050565b6000546001600160a01b031633146108e75760405162461bcd60e51b81526004016103b490610e7e565b6001600160a01b03811661094c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261038392879291600091610a3f918516908490610abc565b8051909150156103855780806020019051810190610a5d9190610dc0565b6103855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b4565b6060610acb8484600085610ad5565b90505b9392505050565b606082471015610b365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103b4565b843b610b845760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b4565b600080866001600160a01b03168587604051610ba09190610de0565b60006040518083038185875af1925050503d8060008114610bdd576040519150601f19603f3d011682016040523d82523d6000602084013e610be2565b606091505b5091509150610bf2828286610bfd565b979650505050505050565b60608315610c0c575081610ace565b825115610c1c5782518084602001fd5b8160405162461bcd60e51b81526004016103b49190610e4b565b80356001600160a01b03811681146108b857600080fd5b600082601f830112610c5d578081fd5b81356020610c72610c6d83610ee4565b610eb3565b80838252828201915082860187848660051b8901011115610c91578586fd5b855b85811015610caf57813584529284019290840190600101610c93565b5090979650505050505050565b600060208284031215610ccd578081fd5b610ace82610c36565b60008060408385031215610ce8578081fd5b610cf183610c36565b946020939093013593505050565b60008060408385031215610d11578182fd5b823567ffffffffffffffff80821115610d28578384fd5b818501915085601f830112610d3b578384fd5b81356020610d4b610c6d83610ee4565b8083825282820191508286018a848660051b8901011115610d6a578889fd5b8896505b84871015610d9357610d7f81610c36565b835260019690960195918301918301610d6e565b5096505086013592505080821115610da9578283fd5b50610db685828601610c4d565b9150509250929050565b600060208284031215610dd1578081fd5b81518015158114610ace578182fd5b60008251610df2818460208701610f37565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b82811015610e3e57815180518552860151868501529284019290850190600101610e19565b5091979650505050505050565b6000602082528251806020840152610e6a816040850160208701610f37565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610edc57610edc610f94565b604052919050565b600067ffffffffffffffff821115610efe57610efe610f94565b5060051b60200190565b60008219821115610f1b57610f1b610f7e565b500190565b600082821015610f3257610f32610f7e565b500390565b60005b83811015610f52578181015183820152602001610f3a565b838111156103835750506000910152565b6000600019821415610f7757610f77610f7e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212209d440767216fded322fc3fb5165689d0ca4bb23cfb405915c9e7922480bd300264736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006399c842dd2be3de30bf99bc7d1bbf6fa3650e70
-----Decoded View---------------
Arg [0] : _premia (address): 0x6399C842dD2bE3dE30BF99Bc7D1bBF6Fa3650E70
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006399c842dd2be3de30bf99bc7d1bbf6fa3650e70
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.15818 | 3,850,332 | $609,045.52 |
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.