More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
UbeEcosystemVesting
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Ubeswap Partnership Ecosystem Vesting pragma solidity ^0.8.9; import "../openzeppelin-solidity/contracts/SafeERC20.sol"; import "../openzeppelin-solidity/contracts/Address.sol"; import "../openzeppelin-solidity/contracts/Context.sol"; import "../openzeppelin-solidity/contracts/Math.sol"; contract UbeEcosystemVesting is Context { event Released(uint256 amount); uint256 private _released; address private immutable _token; address private immutable _beneficiary; uint64 private immutable _start; uint64 private immutable _duration; uint64 private immutable _interval; /** * @dev Set the token, beneficiary, start timestamp, vesting duration and release interval of the vesting wallet. */ constructor( address token, address beneficiaryAddress, uint64 startTimestamp, uint64 durationSeconds, uint64 intervalSeconds ) { require(token != address(0), "invalid token"); require(beneficiaryAddress != address(0), "invalid beneficiary"); _token = token; _beneficiary = beneficiaryAddress; _start = startTimestamp; _duration = durationSeconds; _interval = intervalSeconds; } /** * @dev Getter for the beneficiary address. */ function beneficiary() public view virtual returns (address) { return _beneficiary; } /** * @dev Getter for the start timestamp. */ function start() public view virtual returns (uint256) { return _start; } /** * @dev Getter for the vesting duration. */ function duration() public view virtual returns (uint256) { return _duration; } /** * @dev Getter for the vesting interval. */ function interval() public view virtual returns (uint256) { return _interval; } /** * @dev Amount of eth already released */ function released() public view virtual returns (uint256) { return _released; } /** * @dev Release the tokens that have already vested. * * Emits a {Released} event. */ function release() public virtual { uint256 releasable = vestedAmount(uint64(block.timestamp)) - released(); require(releasable > 0, "Release: No vestable amount"); _released += releasable; emit Released(releasable); SafeERC20.safeTransfer(IERC20(_token), beneficiary(), releasable); } /** * @dev Release the tokens that have already vested. * * Emits a {Release} event. */ function releaseAmount(uint256 amount) public virtual { uint256 releasable = vestedAmount(uint64(block.timestamp)) - released(); require(releasable > 0, "Release: No vestable amount"); require(amount > 0, "Release: amount > 0"); require(amount <= releasable, "Release: amount <= releasable"); _released += amount; emit Released(amount); SafeERC20.safeTransfer(IERC20(_token), beneficiary(), amount); } /** * @dev Calculates the amount of tokens that has already vested. Default implementation is a linear vesting curve. */ function vestedAmount(uint64 timestamp) public view virtual returns (uint256) { return _vestingSchedule(IERC20(_token).balanceOf(address(this)) + released(), timestamp); } /** * Recovery function */ function withdraw( address to, address token, uint256 amount ) public returns (bool success) { require(_beneficiary == msg.sender, "only beneficiary"); require(_token != token, "invalid token"); if (token == address(0)) { (bool result, ) = to.call{value: amount}(""); return result; } IERC20(token).transfer(to, amount); return true; } /** * @dev Virtual implementation of the vesting formula. This returns the amout vested, as a function of time, for * an asset given its total historical allocation. */ function _vestingSchedule(uint256 totalAllocation, uint64 timestamp) internal view virtual returns (uint256) { if (timestamp < start()) { return 0; } else if (timestamp > start() + duration()) { return totalAllocation; } else { // totalAllocation = balance + released uint256 elapsedFromStart = timestamp - start(); uint256 vestingCount = duration() / interval(); uint256 vestingAmount = totalAllocation / vestingCount; uint256 passedIntervalCount = elapsedFromStart / interval(); return passedIntervalCount * vestingAmount; } } }
// 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; } }
// 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 Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./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" ); } } }
{ "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"beneficiaryAddress","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"durationSeconds","type":"uint64"},{"internalType":"uint64","name":"intervalSeconds","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"releaseAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"timestamp","type":"uint64"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162000ef438038062000ef4833981016040819052620000359162000142565b6001600160a01b038516620000815760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064015b60405180910390fd5b6001600160a01b038416620000d95760405162461bcd60e51b815260206004820152601360248201527f696e76616c69642062656e656669636961727900000000000000000000000000604482015260640162000078565b6001600160a01b039485166080529290931660a0526001600160401b0390811660c05291821660e0521661010052620001b2565b80516001600160a01b03811681146200012557600080fd5b919050565b80516001600160401b03811681146200012557600080fd5b600080600080600060a086880312156200015b57600080fd5b62000166866200010d565b945062000176602087016200010d565b935062000186604087016200012a565b925062000196606087016200012a565b9150620001a6608087016200012a565b90509295509295909350565b60805160a05160c05160e05161010051610cb86200023c600039600081816101440152818161078d01526107f601526000818160c00152818161070a01526107b1015260006104f8015260008181610110015281816103c4015281816104c5015261051f0152600081816101c8015281816103a3015281816104a401526105940152610cb86000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806386d1a69f1161006657806386d1a69f1461013a578063947a36fb146101425780639613252114610172578063be9a65551461017a578063d9caed121461018257600080fd5b80630a17b06b146100985780630fb5a6b4146100be5780632278f36b146100ee57806338af3eed14610103575b600080fd5b6100ab6100a6366004610ac4565b6101a5565b6040519081526020015b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166100ab565b6101016100fc366004610aee565b610251565b005b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016100b5565b6101016103ed565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166100ab565b6000546100ab565b6100ab6104ed565b610195610190366004610b23565b61051b565b60405190151581526020016100b5565b600061024b6101b360005490565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023b9190610b5f565b6102459190610b8e565b836106e5565b92915050565b6000805461025e426101a5565b6102689190610ba1565b9050600081116102bf5760405162461bcd60e51b815260206004820152601b60248201527f52656c656173653a204e6f207665737461626c6520616d6f756e74000000000060448201526064015b60405180910390fd5b600082116103055760405162461bcd60e51b8152602060048201526013602482015272052656c656173653a20616d6f756e74203e203606c1b60448201526064016102b6565b808211156103555760405162461bcd60e51b815260206004820152601d60248201527f52656c656173653a20616d6f756e74203c3d2072656c65617361626c6500000060448201526064016102b6565b816000808282546103669190610b8e565b90915550506040518281527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a16103e97f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000084610833565b5050565b600080546103fa426101a5565b6104049190610ba1565b9050600081116104565760405162461bcd60e51b815260206004820152601b60248201527f52656c656173653a204e6f207665737461626c6520616d6f756e74000000000060448201526064016102b6565b806000808282546104679190610b8e565b90915550506040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a16104ea7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000083610833565b50565b67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146105885760405162461bcd60e51b815260206004820152601060248201526f6f6e6c792062656e656669636961727960801b60448201526064016102b6565b826001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316036105f95760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016102b6565b6001600160a01b038316610665576000846001600160a01b03168360405160006040518083038185875af1925050503d8060008114610654576040519150601f19603f3d011682016040523d82523d6000602084013e610659565b606091505b509092506106de915050565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af11580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d89190610bb4565b50600190505b9392505050565b60006106ef6104ed565b8267ffffffffffffffff1610156107085750600061024b565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff1661073b6104ed565b6107459190610b8e565b8267ffffffffffffffff16111561075d57508161024b565b60006107676104ed565b61077b9067ffffffffffffffff8516610ba1565b905060006107d667ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116907f000000000000000000000000000000000000000000000000000000000000000016610bd6565b905060006107e48287610bd6565b9050600061081c67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001685610bd6565b90506108288282610bf8565b979650505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261088590849061088a565b505050565b60006108df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661095c9092919063ffffffff16565b80519091501561088557808060200190518101906108fd9190610bb4565b6108855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102b6565b606061096b8484600085610973565b949350505050565b6060824710156109d45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102b6565b843b610a225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b6565b600080866001600160a01b03168587604051610a3e9190610c33565b60006040518083038185875af1925050503d8060008114610a7b576040519150601f19603f3d011682016040523d82523d6000602084013e610a80565b606091505b509150915061082882828660608315610a9a5750816106de565b825115610aaa5782518084602001fd5b8160405162461bcd60e51b81526004016102b69190610c4f565b600060208284031215610ad657600080fd5b813567ffffffffffffffff811681146106de57600080fd5b600060208284031215610b0057600080fd5b5035919050565b80356001600160a01b0381168114610b1e57600080fd5b919050565b600080600060608486031215610b3857600080fd5b610b4184610b07565b9250610b4f60208501610b07565b9150604084013590509250925092565b600060208284031215610b7157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561024b5761024b610b78565b8181038181111561024b5761024b610b78565b600060208284031215610bc657600080fd5b815180151581146106de57600080fd5b600082610bf357634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761024b5761024b610b78565b60005b83811015610c2a578181015183820152602001610c12565b50506000910152565b60008251610c45818460208701610c0f565b9190910192915050565b6020815260008251806020840152610c6e816040850160208701610c0f565b601f01601f1916919091016040019291505056fea2646970667358221220fc47ef88b2b8c8c46c86da975bd95c5139660de3c6f57ba5fc99c0a430f2b4b764736f6c6343000817003300000000000000000000000071e26d0e519d14591b9de9a0fe9513a398101490000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae0000000000000000000000000000000000000000000000000000000065f4384000000000000000000000000000000000000000000000000000000000059fa6000000000000000000000000000000000000000000000000000000000000093a80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c806386d1a69f1161006657806386d1a69f1461013a578063947a36fb146101425780639613252114610172578063be9a65551461017a578063d9caed121461018257600080fd5b80630a17b06b146100985780630fb5a6b4146100be5780632278f36b146100ee57806338af3eed14610103575b600080fd5b6100ab6100a6366004610ac4565b6101a5565b6040519081526020015b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000059fa60067ffffffffffffffff166100ab565b6101016100fc366004610aee565b610251565b005b6040516001600160a01b037f000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae1681526020016100b5565b6101016103ed565b7f0000000000000000000000000000000000000000000000000000000000093a8067ffffffffffffffff166100ab565b6000546100ab565b6100ab6104ed565b610195610190366004610b23565b61051b565b60405190151581526020016100b5565b600061024b6101b360005490565b6040516370a0823160e01b81523060048201527f00000000000000000000000071e26d0e519d14591b9de9a0fe9513a3981014906001600160a01b0316906370a0823190602401602060405180830381865afa158015610217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023b9190610b5f565b6102459190610b8e565b836106e5565b92915050565b6000805461025e426101a5565b6102689190610ba1565b9050600081116102bf5760405162461bcd60e51b815260206004820152601b60248201527f52656c656173653a204e6f207665737461626c6520616d6f756e74000000000060448201526064015b60405180910390fd5b600082116103055760405162461bcd60e51b8152602060048201526013602482015272052656c656173653a20616d6f756e74203e203606c1b60448201526064016102b6565b808211156103555760405162461bcd60e51b815260206004820152601d60248201527f52656c656173653a20616d6f756e74203c3d2072656c65617361626c6500000060448201526064016102b6565b816000808282546103669190610b8e565b90915550506040518281527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a16103e97f00000000000000000000000071e26d0e519d14591b9de9a0fe9513a3981014907f000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae84610833565b5050565b600080546103fa426101a5565b6104049190610ba1565b9050600081116104565760405162461bcd60e51b815260206004820152601b60248201527f52656c656173653a204e6f207665737461626c6520616d6f756e74000000000060448201526064016102b6565b806000808282546104679190610b8e565b90915550506040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a16104ea7f00000000000000000000000071e26d0e519d14591b9de9a0fe9513a3981014907f000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae83610833565b50565b67ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000065f438401690565b60007f000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae6001600160a01b031633146105885760405162461bcd60e51b815260206004820152601060248201526f6f6e6c792062656e656669636961727960801b60448201526064016102b6565b826001600160a01b03167f00000000000000000000000071e26d0e519d14591b9de9a0fe9513a3981014906001600160a01b0316036105f95760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016102b6565b6001600160a01b038316610665576000846001600160a01b03168360405160006040518083038185875af1925050503d8060008114610654576040519150601f19603f3d011682016040523d82523d6000602084013e610659565b606091505b509092506106de915050565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af11580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d89190610bb4565b50600190505b9392505050565b60006106ef6104ed565b8267ffffffffffffffff1610156107085750600061024b565b7f00000000000000000000000000000000000000000000000000000000059fa60067ffffffffffffffff1661073b6104ed565b6107459190610b8e565b8267ffffffffffffffff16111561075d57508161024b565b60006107676104ed565b61077b9067ffffffffffffffff8516610ba1565b905060006107d667ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000093a808116907f00000000000000000000000000000000000000000000000000000000059fa60016610bd6565b905060006107e48287610bd6565b9050600061081c67ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000093a801685610bd6565b90506108288282610bf8565b979650505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261088590849061088a565b505050565b60006108df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661095c9092919063ffffffff16565b80519091501561088557808060200190518101906108fd9190610bb4565b6108855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102b6565b606061096b8484600085610973565b949350505050565b6060824710156109d45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102b6565b843b610a225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b6565b600080866001600160a01b03168587604051610a3e9190610c33565b60006040518083038185875af1925050503d8060008114610a7b576040519150601f19603f3d011682016040523d82523d6000602084013e610a80565b606091505b509150915061082882828660608315610a9a5750816106de565b825115610aaa5782518084602001fd5b8160405162461bcd60e51b81526004016102b69190610c4f565b600060208284031215610ad657600080fd5b813567ffffffffffffffff811681146106de57600080fd5b600060208284031215610b0057600080fd5b5035919050565b80356001600160a01b0381168114610b1e57600080fd5b919050565b600080600060608486031215610b3857600080fd5b610b4184610b07565b9250610b4f60208501610b07565b9150604084013590509250925092565b600060208284031215610b7157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561024b5761024b610b78565b8181038181111561024b5761024b610b78565b600060208284031215610bc657600080fd5b815180151581146106de57600080fd5b600082610bf357634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761024b5761024b610b78565b60005b83811015610c2a578181015183820152602001610c12565b50506000910152565b60008251610c45818460208701610c0f565b9190910192915050565b6020815260008251806020840152610c6e816040850160208701610c0f565b601f01601f1916919091016040019291505056fea2646970667358221220fc47ef88b2b8c8c46c86da975bd95c5139660de3c6f57ba5fc99c0a430f2b4b764736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000071e26d0e519d14591b9de9a0fe9513a398101490000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae0000000000000000000000000000000000000000000000000000000065f4384000000000000000000000000000000000000000000000000000000000059fa6000000000000000000000000000000000000000000000000000000000000093a80
-----Decoded View---------------
Arg [0] : token (address): 0x71e26d0E519D14591b9dE9a0fE9513A398101490
Arg [1] : beneficiaryAddress (address): 0xfa7692443CA45E7a8E6182586A46d6b69F2041aE
Arg [2] : startTimestamp (uint64): 1710504000
Arg [3] : durationSeconds (uint64): 94348800
Arg [4] : intervalSeconds (uint64): 604800
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000071e26d0e519d14591b9de9a0fe9513a398101490
Arg [1] : 000000000000000000000000fa7692443ca45e7a8e6182586a46d6b69f2041ae
Arg [2] : 0000000000000000000000000000000000000000000000000000000065f43840
Arg [3] : 00000000000000000000000000000000000000000000000000000000059fa600
Arg [4] : 0000000000000000000000000000000000000000000000000000000000093a80
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
CELO | 100.00% | $0.010966 | 22,693,910.2564 | $248,853.48 |
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.