ETH Price: $1,993.97 (+0.36%)

Contract

0x20EBf8D5C6CB3Ba26F5f5aeF993a78411457D183
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...34758472024-05-15 8:25:09311 days ago1715761509IN
0x20EBf8D5...11457D183
0 ETH0.000000350.01245355
Vests11036002024-03-21 10:30:15366 days ago1711017015IN
0x20EBf8D5...11457D183
0 ETH0.00000010.00080824
Vests11035742024-03-21 10:29:23366 days ago1711016963IN
0x20EBf8D5...11457D183
0 ETH0.00000010.00085899
Vests11035572024-03-21 10:28:49366 days ago1711016929IN
0x20EBf8D5...11457D183
0 ETH0.000000110.00088555
Vests11035482024-03-21 10:28:31366 days ago1711016911IN
0x20EBf8D5...11457D183
0 ETH0.000000110.00091293
Vests11035152024-03-21 10:27:25366 days ago1711016845IN
0x20EBf8D5...11457D183
0 ETH0.000000090.00074529
Vests11034872024-03-21 10:26:29366 days ago1711016789IN
0x20EBf8D5...11457D183
0 ETH0.000000090.000784
Vests11034482024-03-21 10:25:11366 days ago1711016711IN
0x20EBf8D5...11457D183
0 ETH0.00000010.000859
Vests11034242024-03-21 10:24:23366 days ago1711016663IN
0x20EBf8D5...11457D183
0 ETH0.000000110.00091294
Vests11034172024-03-21 10:24:09366 days ago1711016649IN
0x20EBf8D5...11457D183
0 ETH0.000000110.00091294
Vests11034082024-03-21 10:23:51366 days ago1711016631IN
0x20EBf8D5...11457D183
0 ETH0.000000150.00119553
Vests11033892024-03-21 10:23:13366 days ago1711016593IN
0x20EBf8D5...11457D183
0 ETH0.000000120.00097026
Vests11033062024-03-21 10:20:27366 days ago1711016427IN
0x20EBf8D5...11457D183
0 ETH0.000000010.00009906
Vests11033002024-03-21 10:20:15366 days ago1711016415IN
0x20EBf8D5...11457D183
0 ETH0.000000120.00097
Vests11032262024-03-21 10:17:47366 days ago1711016267IN
0x20EBf8D5...11457D183
0 ETH0.000000010.00012539
Vests11032092024-03-21 10:17:13366 days ago1711016233IN
0x20EBf8D5...11457D183
0 ETH0.000000130.0011
Vests11031972024-03-21 10:16:49366 days ago1711016209IN
0x20EBf8D5...11457D183
0 ETH0.000000090.00071493
Vests11031582024-03-21 10:15:31366 days ago1711016131IN
0x20EBf8D5...11457D183
0 ETH0.000000020.00015991
Vests11031542024-03-21 10:15:23366 days ago1711016123IN
0x20EBf8D5...11457D183
0 ETH0.000000020.00015991
Vests11031182024-03-21 10:14:11366 days ago1711016051IN
0x20EBf8D5...11457D183
0 ETH0.000000020.0001806
Vests11030562024-03-21 10:12:07366 days ago1711015927IN
0x20EBf8D5...11457D183
0 ETH0.000000090.00073769
Vests11030542024-03-21 10:12:03366 days ago1711015923IN
0x20EBf8D5...11457D183
0 ETH0.000000130.0011
Vests11030312024-03-21 10:11:17366 days ago1711015877IN
0x20EBf8D5...11457D183
0 ETH0.000000220.00173768
Vests11030252024-03-21 10:11:05366 days ago1711015865IN
0x20EBf8D5...11457D183
0 ETH0.00000010.00080824
Vests11030102024-03-21 10:10:35366 days ago1711015835IN
0x20EBf8D5...11457D183
0 ETH0.00000010.00085899
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardDistributor

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 13 : RewardDistributor.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import {IERC20} from "@openzeppelin-5/contracts/token/ERC20/IERC20.sol";
import {Erc20Utils} from "./common/Erc20Utils.sol";
import {SignatureLib} from "./libraries/SignatureLib.sol";
import {BlastAdapter} from "./BlastAdapter.sol";

/**
 * @title RewardDistributor
 * @dev This contract is designed to distribute rewards in a linear fashion over a specified vesting duration.
 */
contract RewardDistributor is BlastAdapter {
    using Erc20Utils for IERC20;

    error InvalidParams();
    error AlreadyVested();
    error InvalidSignature();
    error NoReward();
    error InvalidWithdrawn();
    error InvalidAddress();
    error InvalidDuration();

    struct Reward {
        uint256 total; // total amount to be vested
        uint256 withdrawn; // withdrawn amount by the user
        uint256 startTime; // vest start time
        uint256 endTime; // vest start time
    }

    event VestStarted(bytes32 vestId, address account, uint256 total, uint256 startTime, uint256 endTime);
    event Withdrawn(bytes32 vestId, address account, uint256 amount);
    event SignerChanged(address newSigner);
    event VestDurationChanged(uint256 newVestDuration);

    IERC20 public immutable OLE;
    uint256 public vestDuration;
    address public signerAddress;
    mapping(address user => mapping(uint256 airdropId => bool vested)) public vestedRecord;
    mapping(address user => mapping(bytes32 vestId => Reward reward)) public rewards;

    constructor(IERC20 _oleToken, address _signerAddress, uint256 _vestDuration) {
        OLE = IERC20(_oleToken);
        signerAddress = _signerAddress;
        vestDuration = _vestDuration;
    }

    function vests(uint256[] calldata _airdropIds, uint256 amount, bytes memory signature) external {
        uint256 airdropLength = _airdropIds.length;
        if (airdropLength == 0) revert InvalidParams();
        // check the airdrop was vested
        for (uint256 i = 0; i < airdropLength; i++) {
            if (vestedRecord[_msgSender()][_airdropIds[i]]) revert AlreadyVested();
            vestedRecord[_msgSender()][_airdropIds[i]] = true;
        }
        // check the signature
        bytes memory data = abi.encodePacked(_msgSender(), amount);
        for (uint256 i = 0; i < airdropLength; i++) {
            data = abi.encodePacked(data, _airdropIds[i]);
        }
        bytes32 vestId = keccak256(data);
        if (signerAddress != SignatureLib.recoverSigner(SignatureLib.prefixed(vestId), signature)) revert InvalidSignature();
        // start vest
        rewards[_msgSender()][vestId] = Reward(amount, 0, block.timestamp, block.timestamp + vestDuration);
        emit VestStarted(vestId, _msgSender(), amount, block.timestamp, block.timestamp + vestDuration);
    }

    function withdraws(bytes32[] calldata vestIds) external {
        uint256 total;
        for (uint256 i = 0; i < vestIds.length; i++) {
            total += _withdraw(vestIds[i]);
        }
        OLE.transferOut(msg.sender, total);
    }

    function setSignerAddress(address newSigner) external onlyOwner {
        if (newSigner == address(0)) revert InvalidAddress();
        signerAddress = newSigner;
        emit SignerChanged(newSigner);
    }

    function setVestDuration(uint256 newVestDuration) external onlyOwner {
        if (newVestDuration == 0) revert InvalidDuration();
        vestDuration = newVestDuration;
        emit VestDurationChanged(newVestDuration);
    }

    function recycle(address to, uint256 amount) external onlyOwner {
        OLE.transferOut(to, amount);
    }

    function getWithdrawable(bytes32[] calldata vestIds, address user) external view returns (uint256 total) {
        for (uint256 i = 0; i < vestIds.length; i++) {
            Reward memory reward = rewards[user][vestIds[i]];
            if (reward.total == reward.withdrawn) {
                continue;
            }
            total += _getReleaseable(reward.startTime, reward.endTime, reward.total) - reward.withdrawn;
        }
    }

    function _withdraw(bytes32 vestId) internal returns (uint256) {
        Reward storage reward = rewards[_msgSender()][vestId];
        if (reward.total == 0) revert NoReward();
        if (reward.total == reward.withdrawn) revert InvalidWithdrawn();
        uint256 withdrawing = _getReleaseable(reward.startTime, reward.endTime, reward.total) - reward.withdrawn;
        reward.withdrawn += withdrawing;
        emit Withdrawn(vestId, _msgSender(), withdrawing);
        return withdrawing;
    }

    function _getReleaseable(uint256 startTime, uint256 endTime, uint256 amount) internal view returns (uint256) {
        return block.timestamp > endTime ? amount : ((block.timestamp - startTime) * amount) / (endTime - startTime);
    }
}

File 2 of 13 : Ownable.sol
// 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);
    }
}

File 3 of 13 : IERC20Permit.sol
// 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);
}

File 4 of 13 : IERC20.sol
// 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);
}

File 5 of 13 : SafeERC20.sol
// 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;
    }
}

File 6 of 13 : Address.sol
// 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();
        }
    }
}

File 7 of 13 : Context.sol
// 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;
    }
}

File 8 of 13 : IBlast.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

interface IBlast {
    enum YieldMode {
        AUTOMATIC,
        DISABLED,
        CLAIMABLE
    }

    enum GasMode {
        VOID,
        CLAIMABLE
    }

    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 9 of 13 : IBlastPoints.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

interface IBlastPoints {
    function configurePointsOperator(address operator) external;
}

File 10 of 13 : BlastAdapter.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import {Ownable} from "@openzeppelin-5/contracts/access/Ownable.sol";
import {IBlast} from "./blast/IBlast.sol";
import {IBlastPoints} from "./blast/IBlastPoints.sol";

contract BlastAdapter is Ownable {
    constructor() Ownable(_msgSender()) {}

    function enableClaimable(address gov) public onlyOwner {
        IBlast(0x4300000000000000000000000000000000000002).configure(IBlast.YieldMode.CLAIMABLE, IBlast.GasMode.CLAIMABLE, gov);
        IBlastPoints(0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800).configurePointsOperator(gov);
    }
}

File 11 of 13 : Erc20Utils.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import {SafeERC20, IERC20} from "@openzeppelin-5/contracts/token/ERC20/utils/SafeERC20.sol";
import {IWETH} from "../common/IWETH.sol";

library Erc20Utils {
    error ETHTransferFailed();
    using SafeERC20 for IERC20;

    function balanceOfThis(IERC20 token) internal view returns (uint256) {
        return token.balanceOf(address(this));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        token.forceApprove(spender, value);
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 amount) internal returns (uint256) {
        uint256 balance = balanceOfThis(token);
        token.safeTransferFrom(from, to, amount);
        return balanceOfThis(token) - balance;
    }

    function safeTransferIn(IERC20 token, address from, uint256 amount) internal returns (uint256) {
        uint256 balance = balanceOfThis(token);
        token.safeTransferFrom(from, address(this), amount);
        return balanceOfThis(token) - balance;
    }

    function transferOut(IERC20 token, address to, uint256 amount) internal {
        token.safeTransfer(to, amount);
    }

    function uniTransferOut(IERC20 token, address to, uint256 amount, address weth) internal {
        if (address(token) == weth) {
            IWETH(weth).withdraw(amount);
            (bool success, ) = to.call{value: amount}("");
            if (!success) revert ETHTransferFailed();
        } else {
            transferOut(token, to, amount);
        }
    }
}

File 12 of 13 : IWETH.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;
}

File 13 of 13 : SignatureLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

library SignatureLib {
    struct SignedData {
        address user;
        uint256 timestamp;
        uint256 spaceId;
    }

    function verify(SignedData memory signedData, bytes memory signature, address issuerAddress, uint256 validDuration) internal view returns (bool) {
        require(block.timestamp <= signedData.timestamp + validDuration, "Signature is expired");

        bytes32 dataHash = keccak256(abi.encodePacked(signedData.user, signedData.timestamp, signedData.spaceId));
        bytes32 message = prefixed(dataHash);

        address signer = recoverSigner(message, signature);
        return signer == issuerAddress;
    }

    function recoverSigner(bytes32 message, bytes memory sig) internal pure returns (address) {
        (uint8 v, bytes32 r, bytes32 s) = splitSignature(sig);
        return ecrecover(message, v, r, s);
    }

    function splitSignature(bytes memory sig) internal pure returns (uint8, bytes32, bytes32) {
        require(sig.length == 65, "Invalid signature length");

        bytes32 r;
        bytes32 s;
        uint8 v;

        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))
            v := byte(0, mload(add(sig, 96)))
        }

        return (v, r, s);
    }

    function prefixed(bytes32 hash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_oleToken","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"uint256","name":"_vestDuration","type":"uint256"}],"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":"AlreadyVested","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidDuration","type":"error"},{"inputs":[],"name":"InvalidParams","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidWithdrawn","type":"error"},{"inputs":[],"name":"NoReward","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":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":"newSigner","type":"address"}],"name":"SignerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newVestDuration","type":"uint256"}],"name":"VestDurationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"vestId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"VestStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"vestId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"OLE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gov","type":"address"}],"name":"enableClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"vestIds","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getWithdrawable","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32","name":"vestId","type":"bytes32"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVestDuration","type":"uint256"}],"name":"setVestDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"airdropId","type":"uint256"}],"name":"vestedRecord","outputs":[{"internalType":"bool","name":"vested","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_airdropIds","type":"uint256[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"vests","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"vestIds","type":"bytes32[]"}],"name":"withdraws","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b506040516200134138038062001341833981016040819052610031916100f8565b338061005757604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006081610090565b506001600160a01b03928316608052600280546001600160a01b031916929093169190911790915560015561013b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100f557600080fd5b50565b60008060006060848603121561010d57600080fd5b8351610118816100e0565b6020850151909350610129816100e0565b80925050604084015190509250925092565b6080516111dc620001656000396000818161021701528181610795015261090701526111dc6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063be4d0ae711610066578063be4d0ae714610242578063eae5610914610255578063f2fde38b14610268578063fdb4bd891461027b57600080fd5b8063715018a6146101f95780638da5cb5b1461020157806391df383f1461021257806394761e2a1461023957600080fd5b80635568587a116100d35780635568587a146101875780635ac829dc1461019a5780635b7633d0146101bb5780635d36d182146101e657600080fd5b8063046dc166146100fa578063150e45521461010f578063178fc23714610174575b600080fd5b61010d610108366004610df4565b6102b9565b005b61014f61011d366004610e0f565b600460209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b61010d610182366004610e9b565b61033d565b61010d610195366004610f80565b61063e565b6101ad6101a8366004610f99565b61069c565b60405190815260200161016b565b6002546101ce906001600160a01b031681565b6040516001600160a01b03909116815260200161016b565b61010d6101f4366004610e0f565b610780565b61010d6107c0565b6000546001600160a01b03166101ce565b6101ce7f000000000000000000000000000000000000000000000000000000000000000081565b6101ad60015481565b61010d610250366004610df4565b6107d4565b61010d610263366004610fed565b6108ae565b61010d610276366004610df4565b610933565b6102a9610289366004610e0f565b600360209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161016b565b6102c1610976565b6001600160a01b0381166102e85760405163e6c4247b60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d906020015b60405180910390a150565b82600081900361036057604051635435b28960e11b815260040160405180910390fd5b60005b8181101561042b573360009081526003602052604081209087878481811061038d5761038d61102f565b602090810292909201358352508101919091526040016000205460ff16156103c85760405163ef89654560e01b815260040160405180910390fd5b3360009081526003602052604081206001918888858181106103ec576103ec61102f565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806104239061105b565b915050610363565b506040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052905060005b828110156104bf57818787838181106104835761048361102f565b9050602002013560405160200161049b9291906110a4565b604051602081830303815290604052915080806104b79061105b565b915050610468565b5080516020820120610527610521826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b856109a3565b6002546001600160a01b0390811691161461055557604051638baa579f60e01b815260040160405180910390fd5b6040518060800160405280868152602001600081526020014281526020016001544261058191906110bd565b905260046000336001600160a01b031681526020808201929092526040908101600090812085825283528190208351815591830151600183015582015160028201556060909101516003909101557f8e297c95bdbaec8c2f84ef5cc656fedcae87d7f8302ae3ea55c28114747455d9813387426001544261060291906110bd565b604080519586526001600160a01b039094166020860152928401919091526060830152608082015260a00160405180910390a150505050505050565b610646610976565b8060000361066757604051637616640160e01b815260040160405180910390fd5b60018190556040518181527f241dea0ff9602c8a4f38defd1a64dab032d4b42e583924358917f6de5381c46d90602001610332565b6000805b83811015610778576001600160a01b0383166000908152600460205260408120818787858181106106d3576106d361102f565b905060200201358152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080602001518160000151036107325750610766565b806020015161074e826040015183606001518460000151610a23565b61075891906110d0565b61076290846110bd565b9250505b806107708161105b565b9150506106a0565b509392505050565b610788610976565b6107bc6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383610a66565b5050565b6107c8610976565b6107d26000610a7a565b565b6107dc610976565b60405163c8992e6160e01b81526002604360981b019063c8992e619061080c9060029060019086906004016110f9565b600060405180830381600087803b15801561082657600080fd5b505af115801561083a573d6000803e3d6000fd5b50506040516336b91f2b60e01b81526001600160a01b0384166004820152732536fe9ab3f511540f2f9e2ec2a805005c3dd80092506336b91f2b9150602401600060405180830381600087803b15801561089357600080fd5b505af11580156108a7573d6000803e3d6000fd5b5050505050565b6000805b828110156108f9576108db8484838181106108cf576108cf61102f565b90506020020135610aca565b6108e590836110bd565b9150806108f18161105b565b9150506108b2565b5061092e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610a66565b505050565b61093b610976565b6001600160a01b03811661096a57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61097381610a7a565b50565b6000546001600160a01b031633146107d25760405163118cdaa760e01b8152336004820152602401610961565b6000806000806109b285610bb3565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610a0d573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b6000824211610a5a57610a3684846110d0565b82610a4186426110d0565b610a4b919061113f565b610a559190611156565b610a5c565b815b90505b9392505050565b61092e6001600160a01b0384168383610c25565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336000908152600460209081526040808320848452909152812080548203610b055760405163374c934360e11b815260040160405180910390fd5b6001810154815403610b2a576040516360bcaab360e11b815260040160405180910390fd5b60008160010154610b48836002015484600301548560000154610a23565b610b5291906110d0565b905080826001016000828254610b6891906110bd565b90915550506040805185815233602082015280820183905290517f04eda370f8b8612fa7266d7ebbd41af9d694e19793fe9d9ff31b3ddbd99b08e19181900360600190a19392505050565b60008060008351604114610c095760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610961565b5050506020810151604082015160609092015160001a92909190565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092019092526020810180516001600160e01b031663a9059cbb60e01b17905261092e91859190600090610c8390841683610cd1565b90508051600014158015610ca8575080806020019051810190610ca69190611178565b155b1561092e57604051635274afe760e01b81526001600160a01b0384166004820152602401610961565b6060610a5f8383600084600080856001600160a01b03168486604051610cf7919061119a565b60006040518083038185875af1925050503d8060008114610d34576040519150601f19603f3d011682016040523d82523d6000602084013e610d39565b606091505b5091509150610d49868383610d53565b9695505050505050565b606082610d6857610d6382610daf565b610a5f565b8151158015610d7f57506001600160a01b0384163b155b15610da857604051639996b31560e01b81526001600160a01b0385166004820152602401610961565b5080610a5f565b805115610dbf5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610def57600080fd5b919050565b600060208284031215610e0657600080fd5b610a5f82610dd8565b60008060408385031215610e2257600080fd5b610e2b83610dd8565b946020939093013593505050565b60008083601f840112610e4b57600080fd5b50813567ffffffffffffffff811115610e6357600080fd5b6020830191508360208260051b8501011115610e7e57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060608587031215610eb157600080fd5b843567ffffffffffffffff80821115610ec957600080fd5b610ed588838901610e39565b9096509450602087013593506040870135915080821115610ef557600080fd5b818701915087601f830112610f0957600080fd5b813581811115610f1b57610f1b610e85565b604051601f8201601f19908116603f01168101908382118183101715610f4357610f43610e85565b816040528281528a6020848701011115610f5c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215610f9257600080fd5b5035919050565b600080600060408486031215610fae57600080fd5b833567ffffffffffffffff811115610fc557600080fd5b610fd186828701610e39565b9094509250610fe4905060208501610dd8565b90509250925092565b6000806020838503121561100057600080fd5b823567ffffffffffffffff81111561101757600080fd5b61102385828601610e39565b90969095509350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161106d5761106d611045565b5060010190565b6000815160005b81811015611095576020818501810151868301520161107b565b50600093019283525090919050565b60006110b08285611074565b9283525050602001919050565b80820180821115610a1d57610a1d611045565b81810381811115610a1d57610a1d611045565b634e487b7160e01b600052602160045260246000fd5b606081016003851061110d5761110d6110e3565b84825260028410611120576111206110e3565b60208201939093526001600160a01b0391909116604090910152919050565b8082028115828204841417610a1d57610a1d611045565b60008261117357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561118a57600080fd5b81518015158114610a5f57600080fd5b6000610a5f828461107456fea2646970667358221220f7477ddc012e409c2dce1f74538f54be1123da3184b74ee3c7df56c12f7987db64736f6c6343000815003300000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc000000000000000000000000bc2beee86f74fe7e86f58d46d2a6c09019be0c3c0000000000000000000000000000000000000000000000000000000000093a80

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063be4d0ae711610066578063be4d0ae714610242578063eae5610914610255578063f2fde38b14610268578063fdb4bd891461027b57600080fd5b8063715018a6146101f95780638da5cb5b1461020157806391df383f1461021257806394761e2a1461023957600080fd5b80635568587a116100d35780635568587a146101875780635ac829dc1461019a5780635b7633d0146101bb5780635d36d182146101e657600080fd5b8063046dc166146100fa578063150e45521461010f578063178fc23714610174575b600080fd5b61010d610108366004610df4565b6102b9565b005b61014f61011d366004610e0f565b600460209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b61010d610182366004610e9b565b61033d565b61010d610195366004610f80565b61063e565b6101ad6101a8366004610f99565b61069c565b60405190815260200161016b565b6002546101ce906001600160a01b031681565b6040516001600160a01b03909116815260200161016b565b61010d6101f4366004610e0f565b610780565b61010d6107c0565b6000546001600160a01b03166101ce565b6101ce7f00000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc81565b6101ad60015481565b61010d610250366004610df4565b6107d4565b61010d610263366004610fed565b6108ae565b61010d610276366004610df4565b610933565b6102a9610289366004610e0f565b600360209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161016b565b6102c1610976565b6001600160a01b0381166102e85760405163e6c4247b60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d906020015b60405180910390a150565b82600081900361036057604051635435b28960e11b815260040160405180910390fd5b60005b8181101561042b573360009081526003602052604081209087878481811061038d5761038d61102f565b602090810292909201358352508101919091526040016000205460ff16156103c85760405163ef89654560e01b815260040160405180910390fd5b3360009081526003602052604081206001918888858181106103ec576103ec61102f565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806104239061105b565b915050610363565b506040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052905060005b828110156104bf57818787838181106104835761048361102f565b9050602002013560405160200161049b9291906110a4565b604051602081830303815290604052915080806104b79061105b565b915050610468565b5080516020820120610527610521826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b856109a3565b6002546001600160a01b0390811691161461055557604051638baa579f60e01b815260040160405180910390fd5b6040518060800160405280868152602001600081526020014281526020016001544261058191906110bd565b905260046000336001600160a01b031681526020808201929092526040908101600090812085825283528190208351815591830151600183015582015160028201556060909101516003909101557f8e297c95bdbaec8c2f84ef5cc656fedcae87d7f8302ae3ea55c28114747455d9813387426001544261060291906110bd565b604080519586526001600160a01b039094166020860152928401919091526060830152608082015260a00160405180910390a150505050505050565b610646610976565b8060000361066757604051637616640160e01b815260040160405180910390fd5b60018190556040518181527f241dea0ff9602c8a4f38defd1a64dab032d4b42e583924358917f6de5381c46d90602001610332565b6000805b83811015610778576001600160a01b0383166000908152600460205260408120818787858181106106d3576106d361102f565b905060200201358152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080602001518160000151036107325750610766565b806020015161074e826040015183606001518460000151610a23565b61075891906110d0565b61076290846110bd565b9250505b806107708161105b565b9150506106a0565b509392505050565b610788610976565b6107bc6001600160a01b037f00000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc168383610a66565b5050565b6107c8610976565b6107d26000610a7a565b565b6107dc610976565b60405163c8992e6160e01b81526002604360981b019063c8992e619061080c9060029060019086906004016110f9565b600060405180830381600087803b15801561082657600080fd5b505af115801561083a573d6000803e3d6000fd5b50506040516336b91f2b60e01b81526001600160a01b0384166004820152732536fe9ab3f511540f2f9e2ec2a805005c3dd80092506336b91f2b9150602401600060405180830381600087803b15801561089357600080fd5b505af11580156108a7573d6000803e3d6000fd5b5050505050565b6000805b828110156108f9576108db8484838181106108cf576108cf61102f565b90506020020135610aca565b6108e590836110bd565b9150806108f18161105b565b9150506108b2565b5061092e6001600160a01b037f00000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc163383610a66565b505050565b61093b610976565b6001600160a01b03811661096a57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61097381610a7a565b50565b6000546001600160a01b031633146107d25760405163118cdaa760e01b8152336004820152602401610961565b6000806000806109b285610bb3565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610a0d573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b6000824211610a5a57610a3684846110d0565b82610a4186426110d0565b610a4b919061113f565b610a559190611156565b610a5c565b815b90505b9392505050565b61092e6001600160a01b0384168383610c25565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336000908152600460209081526040808320848452909152812080548203610b055760405163374c934360e11b815260040160405180910390fd5b6001810154815403610b2a576040516360bcaab360e11b815260040160405180910390fd5b60008160010154610b48836002015484600301548560000154610a23565b610b5291906110d0565b905080826001016000828254610b6891906110bd565b90915550506040805185815233602082015280820183905290517f04eda370f8b8612fa7266d7ebbd41af9d694e19793fe9d9ff31b3ddbd99b08e19181900360600190a19392505050565b60008060008351604114610c095760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610961565b5050506020810151604082015160609092015160001a92909190565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092019092526020810180516001600160e01b031663a9059cbb60e01b17905261092e91859190600090610c8390841683610cd1565b90508051600014158015610ca8575080806020019051810190610ca69190611178565b155b1561092e57604051635274afe760e01b81526001600160a01b0384166004820152602401610961565b6060610a5f8383600084600080856001600160a01b03168486604051610cf7919061119a565b60006040518083038185875af1925050503d8060008114610d34576040519150601f19603f3d011682016040523d82523d6000602084013e610d39565b606091505b5091509150610d49868383610d53565b9695505050505050565b606082610d6857610d6382610daf565b610a5f565b8151158015610d7f57506001600160a01b0384163b155b15610da857604051639996b31560e01b81526001600160a01b0385166004820152602401610961565b5080610a5f565b805115610dbf5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610def57600080fd5b919050565b600060208284031215610e0657600080fd5b610a5f82610dd8565b60008060408385031215610e2257600080fd5b610e2b83610dd8565b946020939093013593505050565b60008083601f840112610e4b57600080fd5b50813567ffffffffffffffff811115610e6357600080fd5b6020830191508360208260051b8501011115610e7e57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060608587031215610eb157600080fd5b843567ffffffffffffffff80821115610ec957600080fd5b610ed588838901610e39565b9096509450602087013593506040870135915080821115610ef557600080fd5b818701915087601f830112610f0957600080fd5b813581811115610f1b57610f1b610e85565b604051601f8201601f19908116603f01168101908382118183101715610f4357610f43610e85565b816040528281528a6020848701011115610f5c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215610f9257600080fd5b5035919050565b600080600060408486031215610fae57600080fd5b833567ffffffffffffffff811115610fc557600080fd5b610fd186828701610e39565b9094509250610fe4905060208501610dd8565b90509250925092565b6000806020838503121561100057600080fd5b823567ffffffffffffffff81111561101757600080fd5b61102385828601610e39565b90969095509350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161106d5761106d611045565b5060010190565b6000815160005b81811015611095576020818501810151868301520161107b565b50600093019283525090919050565b60006110b08285611074565b9283525050602001919050565b80820180821115610a1d57610a1d611045565b81810381811115610a1d57610a1d611045565b634e487b7160e01b600052602160045260246000fd5b606081016003851061110d5761110d6110e3565b84825260028410611120576111206110e3565b60208201939093526001600160a01b0391909116604090910152919050565b8082028115828204841417610a1d57610a1d611045565b60008261117357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561118a57600080fd5b81518015158114610a5f57600080fd5b6000610a5f828461107456fea2646970667358221220f7477ddc012e409c2dce1f74538f54be1123da3184b74ee3c7df56c12f7987db64736f6c63430008150033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc000000000000000000000000bc2beee86f74fe7e86f58d46d2a6c09019be0c3c0000000000000000000000000000000000000000000000000000000000093a80

-----Decoded View---------------
Arg [0] : _oleToken (address): 0x73c369F61c90f03eb0Dd172e95c90208A28dC5bc
Arg [1] : _signerAddress (address): 0xbC2BEEe86F74fe7e86f58d46D2A6C09019Be0C3c
Arg [2] : _vestDuration (uint256): 604800

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000073c369f61c90f03eb0dd172e95c90208a28dc5bc
Arg [1] : 000000000000000000000000bc2beee86f74fe7e86f58d46d2a6c09019be0c3c
Arg [2] : 0000000000000000000000000000000000000000000000000000000000093a80


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.