ETH Price: $3,357.57 (-0.77%)
Gas: 1 Gwei

Contract

0x90Ef220F222e8c319504bdB510a2B739222a5f4f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Withdraw200788532024-06-12 22:52:4717 days ago1718232767IN
DIA Data: Staking
0 ETH0.0006027712.34788551
Withdraw195351672024-03-28 21:22:1193 days ago1711660931IN
DIA Data: Staking
0 ETH0.0018789738.49086556
Withdraw193023662024-02-25 4:59:23126 days ago1708837163IN
DIA Data: Staking
0 ETH0.0010510121.530177
Withdraw192253482024-02-14 9:34:35136 days ago1707903275IN
DIA Data: Staking
0 ETH0.0012038824.66162127
Withdraw192253482024-02-14 9:34:35136 days ago1707903275IN
DIA Data: Staking
0 ETH0.0011504723.56751339
Withdraw191985102024-02-10 15:12:59140 days ago1707577979IN
DIA Data: Staking
0 ETH0.0020964631.8051653
Withdraw191699682024-02-06 15:05:11144 days ago1707231911IN
DIA Data: Staking
0 ETH0.00521613106.85291071
Withdraw191281092024-01-31 18:01:23150 days ago1706724083IN
DIA Data: Staking
0 ETH0.0013311727.26930931
Withdraw189170782024-01-02 3:37:59180 days ago1704166679IN
DIA Data: Staking
0 ETH0.000951214.43056757
Withdraw189149442024-01-01 20:25:59180 days ago1704140759IN
DIA Data: Staking
0 ETH0.0008990318.4168926
Withdraw189147942024-01-01 19:55:47180 days ago1704138947IN
DIA Data: Staking
0 ETH0.0010287115.60645384
Withdraw188991412023-12-30 15:12:23182 days ago1703949143IN
DIA Data: Staking
0 ETH0.0014908422.61727332
Withdraw187086342023-12-03 21:48:11209 days ago1701640091IN
DIA Data: Staking
0 ETH0.0022048745.16710659
Withdraw186579512023-11-26 19:33:47216 days ago1701027227IN
DIA Data: Staking
0 ETH0.0014921130.56617687
Withdraw186475052023-11-25 8:25:23217 days ago1700900723IN
DIA Data: Staking
0 ETH0.0009285619.02164891
Withdraw185770202023-11-15 11:34:59227 days ago1700048099IN
DIA Data: Staking
0 ETH0.0023512235.67009387
Withdraw185532282023-11-12 3:43:23231 days ago1699760603IN
DIA Data: Staking
0 ETH0.0009389619.23476945
Withdraw184348392023-10-26 13:59:11247 days ago1698328751IN
DIA Data: Staking
0 ETH0.0013274227.19239134
Withdraw183736252023-10-18 0:19:23256 days ago1697588363IN
DIA Data: Staking
0 ETH0.000392768.04587711
Withdraw182843552023-10-05 12:36:59268 days ago1696509419IN
DIA Data: Staking
0 ETH0.000310356.35762948
Withdraw182758202023-10-04 7:59:11269 days ago1696406351IN
DIA Data: Staking
0 ETH0.000518347.86366771
Withdraw180562412023-09-03 13:23:35300 days ago1693747415IN
DIA Data: Staking
0 ETH0.0006165812.63076478
Withdraw177568282023-07-23 15:52:59342 days ago1690127579IN
DIA Data: Staking
0 ETH0.0016096624.41999103
Withdraw176420422023-07-07 12:52:11358 days ago1688734331IN
DIA Data: Staking
0 ETH0.0014705330.12394355
Withdraw176353972023-07-06 14:28:59359 days ago1688653739IN
DIA Data: Staking
0 ETH0.0026151539.67410818
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YieldContract

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license, Audited

Contract Source Code (Solidity)Audit Report

/**
 *Submitted for verification at Etherscan.io on 2021-04-23
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/*
For libraries Roles, SafeMath, Address, SafeERC20 and interface IERC20:
The MIT License (MIT)

Copyright (c) 2016-2020 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

library Roles {
	struct Role {
		mapping (address => bool) bearer;
	}

	/**
	 * @dev give an account access to this role
	 */
	function add(Role storage role, address account) internal {
		require(account != address(0));
		require(!has(role, account));

		role.bearer[account] = true;
	}

	/**
	 * @dev remove an account's access to this role
	 */
	function remove(Role storage role, address account) internal {
		require(account != address(0));
		require(has(role, account));

		role.bearer[account] = false;
	}

	/**
	 * @dev check if an account has this role
	 * @return bool
	 */
	function has(Role storage role, address account) internal view returns (bool) {
		require(account != address(0));
		return role.bearer[account];
	}
}

abstract contract YieldRoles {
	using Roles for Roles.Role;

	constructor() {
		_addOwner(msg.sender);
	}

	/*
	 * Owner functions
	 */
	event OwnerAdded(address indexed account);
	event OwnerRemoved(address indexed account);

	Roles.Role private _owners;

	modifier onlyOwner() {
		require(isOwner(msg.sender), "Sender is not owner");
		_;
	}

	function isOwner(address account) public view returns (bool) {
		return _owners.has(account);
	}

	function addOwner(address account) public onlyOwner {
		_addOwner(account);
	}

	function renounceOwner() public {
		_removeOwner(msg.sender);
	}

	function _addOwner(address account) internal {
		_owners.add(account);
		emit OwnerAdded(account);
	}

	function _removeOwner(address account) internal {
		_owners.remove(account);
		emit OwnerRemoved(account);
	}
}

/**
 * @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);
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        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);
            }
        }
    }
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


/**
 * @dev A token holder contract that will allow a beneficiary to extract the
 * tokens after a given release time.
 *
 * Useful for simple vesting schedules like "advisors get all of their tokens
 * after 1 year".
 */

contract YieldContract is YieldRoles {
    using SafeERC20 for IERC20;
    IERC20 token;
    
    // Timeframe in which it it possible to deposit tokens
    uint256 public endDepositTime;
    
    // Max tokens to be deposited
    uint256 internal maxTokens;
    
    // Originating wallet for yield payments
    address internal yieldWallet;
    
    // Yield rates in 1e18 granularity
    uint256 public nineMonthPercentage;
    uint256 public twelveMonthPercentage;
    uint256 public twentyfourMonthPercentage;

    // Main struct for lockup
    struct LockBoxStruct {
        address beneficiary;
        uint balance;
        uint releaseTime;
    }

    LockBoxStruct[] public lockBoxStructs; // This could be a mapping by address, but these numbered lockBoxes support possibility of multiple tranches per address

    event LogLockupDeposit(address sender, address beneficiary, uint amount, uint releaseTime);   
    event LogLockupWithdrawal(address receiver, uint amount);

    constructor(address tokenContract, uint256 _endDepositTime, address _yieldWallet, uint256 _maxTokens) {
        token = IERC20(tokenContract);
        endDepositTime = _endDepositTime;
        
        yieldWallet = _yieldWallet;
        maxTokens = _maxTokens;
    }
    
    function getLockBoxBeneficiary(uint256 lockBoxNumber) public view returns(address) {
        return lockBoxStructs[lockBoxNumber].beneficiary;
    }
    
    function getLockBoxesForAddress(address query) public view returns(uint256[] memory) {
        // Get length of return array
        uint256 arrayLength = 0;
        for (uint256 i = 0; i < lockBoxStructs.length; ++i) {
            if (lockBoxStructs[i].beneficiary == query) {
                arrayLength++;
            }
        }
        uint256[] memory output = new uint256[](arrayLength);
        uint256 j = 0;
        for (uint256 i = 0; i < lockBoxStructs.length; ++i) {
            if (lockBoxStructs[i].beneficiary == query) {
                output[j] = i;
                j++;
            }
        }
        return output;
    }

    // Deposit for 9, 12 or 24 months
    function deposit9m(address beneficiary, uint256 amount) external {
        deposit(beneficiary, amount, 270 days);
    }
    
    function deposit12m(address beneficiary, uint256 amount) external {
        deposit(beneficiary, amount, 360 days);
    }
    
    function deposit24m(address beneficiary, uint256 amount) external {
        deposit(beneficiary, amount, 720 days);
    }

    function deposit(address beneficiary, uint256 amount, uint256 duration) internal {
        require(block.timestamp < endDepositTime, "Deposit time has ended.");
        require(amount < maxTokens, "Token deposit too high, limit breached.");
        maxTokens -= amount;

        // Define and get amount of yield
        uint256 yieldAmount;
        if (duration == 270 days) {
            yieldAmount = (nineMonthPercentage * amount) / 1e20;
        } else if (duration == 360 days) {
            yieldAmount = (twelveMonthPercentage * amount) / 1e20;
        } else if (duration == 720 days) {
            yieldAmount = (twentyfourMonthPercentage * amount) / 1e20;
        } else {
            revert("Error: duration not allowed!");
        }
        require(token.transferFrom(yieldWallet, address(this), yieldAmount));
        
        // Get lockable tokens from user
        require(token.transferFrom(msg.sender, address(this), amount));
        
        // Build lockbox
        LockBoxStruct memory l;
        l.beneficiary = beneficiary;
        l.balance = amount + yieldAmount;
        l.releaseTime = block.timestamp + duration;
        lockBoxStructs.push(l);
        emit LogLockupDeposit(msg.sender, l.beneficiary, l.balance, l.releaseTime);
    }
    
    // Beneficiaries can update the receiver wallet
    function updateBeneficiary(uint256 lockBoxNumber, address newBeneficiary) public {
        LockBoxStruct storage l = lockBoxStructs[lockBoxNumber];
        require(msg.sender == l.beneficiary);
        l.beneficiary = newBeneficiary;
    }

    function withdraw(uint lockBoxNumber) public {
        LockBoxStruct storage l = lockBoxStructs[lockBoxNumber];
        require(l.releaseTime <= block.timestamp);
        uint amount = l.balance;
        l.balance = 0;
        emit LogLockupWithdrawal(l.beneficiary, amount);
        require(token.transfer(l.beneficiary, amount));
    }

    // Helper function to release everything    
    function triggerWithdrawAll() public {
        for (uint256 i = 0; i < lockBoxStructs.length; ++i) {
            if (lockBoxStructs[i].releaseTime <= block.timestamp && lockBoxStructs[i].balance > 0) {
                withdraw(i);
            }
        }
    }
    
    // Admin update functions
    function updateEndDepositTime (uint256 newEndTime) public onlyOwner {
        endDepositTime = newEndTime;
    }
    
    function updateYieldWallet(address newWallet) public onlyOwner {
        yieldWallet = newWallet;
    }
    
    function updateYields(uint256 nineMonths, uint256 twelveMonths, uint256 twentyfourMonths) public onlyOwner {
        nineMonthPercentage = nineMonths;
        twelveMonthPercentage = twelveMonths;
        twentyfourMonthPercentage = twentyfourMonths;
    }
    
    function updateMaxTokens(uint256 newMaxTokens) public onlyOwner {
        maxTokens = newMaxTokens;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256","name":"_endDepositTime","type":"uint256"},{"internalType":"address","name":"_yieldWallet","type":"address"},{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"releaseTime","type":"uint256"}],"name":"LogLockupDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogLockupWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"OwnerRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit12m","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit24m","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit9m","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endDepositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockBoxNumber","type":"uint256"}],"name":"getLockBoxBeneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"query","type":"address"}],"name":"getLockBoxesForAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockBoxStructs","outputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nineMonthPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerWithdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"twelveMonthPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"twentyfourMonthPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockBoxNumber","type":"uint256"},{"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newEndTime","type":"uint256"}],"name":"updateEndDepositTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTokens","type":"uint256"}],"name":"updateMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateYieldWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nineMonths","type":"uint256"},{"internalType":"uint256","name":"twelveMonths","type":"uint256"},{"internalType":"uint256","name":"twentyfourMonths","type":"uint256"}],"name":"updateYields","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockBoxNumber","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001f9938038062001f998339818101604052810190620000379190620002ba565b6200004833620000e260201b60201c565b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260028190555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806003819055505050505062000398565b620000fd8160006200014360201b62000ca41790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200017e57600080fd5b620001908282620001f960201b60201c565b156200019b57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200023557600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000815190506200029d8162000364565b92915050565b600081519050620002b4816200037e565b92915050565b60008060008060808587031215620002d157600080fd5b6000620002e1878288016200028c565b9450506020620002f487828801620002a3565b935050604062000307878288016200028c565b92505060606200031a87828801620002a3565b91505092959194509250565b600062000333826200033a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6200036f8162000326565b81146200037b57600080fd5b50565b62000389816200035a565b81146200039557600080fd5b50565b611bf180620003a86000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063591f3428116100ad578063bb9286d911610071578063bb9286d914610307578063ca1748af14610323578063d5c18b281461032d578063d99ccadf1461035d578063dd40d6661461037b5761012c565b8063591f3428146102675780637065cb481461029757806386700c3a146102b357806399e32287146102cf578063b685bc7b146102eb5761012c565b80633d8cf56f116100f45780633d8cf56f146101c15780633e8eb5a4146101f35780633ef541b51461020f5780634813c91d1461022d578063529c08f71461024b5761012c565b80631d1f6f8514610131578063211d579e1461014d57806328c23a451461016b5780632e1a7d4d146101755780632f54bf6e14610191575b600080fd5b61014b60048036038101906101469190611438565b610397565b005b6101556103aa565b6040516101629190611843565b60405180910390f35b6101736103b0565b005b61018f600480360381019061018a919061149d565b6103bb565b005b6101ab60048036038101906101a6919061140f565b610569565b6040516101b891906117a8565b60405180910390f35b6101db60048036038101906101d6919061149d565b610586565b6040516101ea9392919061174f565b60405180910390f35b61020d600480360381019061020891906114c6565b6105e0565b005b6102176106d0565b6040516102249190611843565b60405180910390f35b6102356106d6565b6040516102429190611843565b60405180910390f35b6102656004803603810190610260919061149d565b6106dc565b005b610281600480360381019061027c919061149d565b61072e565b60405161028e919061168f565b60405180910390f35b6102b160048036038101906102ac919061140f565b6107a3565b005b6102cd60048036038101906102c89190611438565b6107f7565b005b6102e960048036038101906102e49190611502565b61080a565b005b6103056004803603810190610300919061140f565b61086c565b005b610321600480360381019061031c9190611438565b6108f8565b005b61032b61090b565b005b6103476004803603810190610342919061140f565b6109e4565b6040516103549190611786565b60405180910390f35b610365610c4c565b6040516103729190611843565b60405180910390f35b6103956004803603810190610390919061149d565b610c52565b005b6103a68282630163f500610d50565b5050565b60075481565b6103b9336111a8565b565b6000600882815481106103f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600302019050428160020154111561041857600080fd5b600081600101549050600082600101819055507f170b3e14fe6005fea5ebc34106508df3f0b87a8a023d1ca75fed86d2c9b41a738260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051610480929190611726565b60405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610509929190611726565b602060405180830381600087803b15801561052357600080fd5b505af1158015610537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055b9190611474565b61056457600080fd5b505050565b600061057f82600061120290919063ffffffff16565b9050919050565b6008818154811061059657600080fd5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60006008838154811061061c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068857600080fd5b818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60025481565b60065481565b6106e533610569565b610724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071b90611823565b60405180910390fd5b8060028190555050565b60006008828154811061076a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6107ac33610569565b6107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290611823565b60405180910390fd5b6107f481611294565b50565b61080682826303b53800610d50565b5050565b61081333610569565b610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990611823565b60405180910390fd5b826005819055508160068190555080600781905550505050565b61087533610569565b6108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ab90611823565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61090782826301da9c00610d50565b5050565b60005b6008805490508110156109e1574260088281548110610956577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160020154111580156109c157506000600882815481106109ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160010154115b156109d0576109cf816103bb565b5b806109da90611a05565b905061090e565b50565b60606000805b600880549050811015610ab6578373ffffffffffffffffffffffffffffffffffffffff1660088281548110610a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610aa5578180610aa190611a05565b9250505b80610aaf90611a05565b90506109ea565b5060008167ffffffffffffffff811115610af9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b275781602001602082028036833780820191505090505b5090506000805b600880549050811015610c40578573ffffffffffffffffffffffffffffffffffffffff1660088281548110610b8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610c2f5780838381518110610c14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180610c2b90611a05565b9250505b80610c3990611a05565b9050610b2e565b50819350505050919050565b60055481565b610c5b33610569565b610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190611823565b60405180910390fd5b8060038190555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cde57600080fd5b610ce88282611202565b15610cf257600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6002544210610d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8b906117c3565b60405180910390fd5b6003548210610dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcf90611803565b60405180910390fd5b8160036000828254610dea9190611989565b925050819055506000630163f500821415610e285768056bc75e2d6310000083600554610e17919061192f565b610e2191906118fe565b9050610ecf565b6301da9c00821415610e5d5768056bc75e2d6310000083600654610e4c919061192f565b610e5691906118fe565b9050610ece565b6303b53800821415610e925768056bc75e2d6310000083600754610e81919061192f565b610e8b91906118fe565b9050610ecd565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906117e3565b60405180910390fd5b5b5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630846040518463ffffffff1660e01b8152600401610f50939291906116aa565b602060405180830381600087803b158015610f6a57600080fd5b505af1158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190611474565b610fab57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161100a939291906116aa565b602060405180830381600087803b15801561102457600080fd5b505af1158015611038573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105c9190611474565b61106557600080fd5b61106d611399565b84816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505081846110b191906118a8565b81602001818152505082426110c691906118a8565b816040018181525050600881908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015550507f4d8cd4b540d67d13caf82dcada5d1b583e99d978c5009c3205a337b4ceb8ff6f3382600001518360200151846040015160405161119994939291906116e1565b60405180910390a15050505050565b6111bc8160006112ee90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561123d57600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6112a8816000610ca490919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561132857600080fd5b6113328282611202565b61133b57600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000813590506113df81611b76565b92915050565b6000815190506113f481611b8d565b92915050565b60008135905061140981611ba4565b92915050565b60006020828403121561142157600080fd5b600061142f848285016113d0565b91505092915050565b6000806040838503121561144b57600080fd5b6000611459858286016113d0565b925050602061146a858286016113fa565b9150509250929050565b60006020828403121561148657600080fd5b6000611494848285016113e5565b91505092915050565b6000602082840312156114af57600080fd5b60006114bd848285016113fa565b91505092915050565b600080604083850312156114d957600080fd5b60006114e7858286016113fa565b92505060206114f8858286016113d0565b9150509250929050565b60008060006060848603121561151757600080fd5b6000611525868287016113fa565b9350506020611536868287016113fa565b9250506040611547868287016113fa565b9150509250925092565b600061155d8383611671565b60208301905092915050565b611572816119bd565b82525050565b60006115838261186e565b61158d8185611886565b93506115988361185e565b8060005b838110156115c95781516115b08882611551565b97506115bb83611879565b92505060018101905061159c565b5085935050505092915050565b6115df816119cf565b82525050565b60006115f2601783611897565b91506115fd82611aac565b602082019050919050565b6000611615601c83611897565b915061162082611ad5565b602082019050919050565b6000611638602783611897565b915061164382611afe565b604082019050919050565b600061165b601383611897565b915061166682611b4d565b602082019050919050565b61167a816119fb565b82525050565b611689816119fb565b82525050565b60006020820190506116a46000830184611569565b92915050565b60006060820190506116bf6000830186611569565b6116cc6020830185611569565b6116d96040830184611680565b949350505050565b60006080820190506116f66000830187611569565b6117036020830186611569565b6117106040830185611680565b61171d6060830184611680565b95945050505050565b600060408201905061173b6000830185611569565b6117486020830184611680565b9392505050565b60006060820190506117646000830186611569565b6117716020830185611680565b61177e6040830184611680565b949350505050565b600060208201905081810360008301526117a08184611578565b905092915050565b60006020820190506117bd60008301846115d6565b92915050565b600060208201905081810360008301526117dc816115e5565b9050919050565b600060208201905081810360008301526117fc81611608565b9050919050565b6000602082019050818103600083015261181c8161162b565b9050919050565b6000602082019050818103600083015261183c8161164e565b9050919050565b60006020820190506118586000830184611680565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006118b3826119fb565b91506118be836119fb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156118f3576118f2611a4e565b5b828201905092915050565b6000611909826119fb565b9150611914836119fb565b92508261192457611923611a7d565b5b828204905092915050565b600061193a826119fb565b9150611945836119fb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561197e5761197d611a4e565b5b828202905092915050565b6000611994826119fb565b915061199f836119fb565b9250828210156119b2576119b1611a4e565b5b828203905092915050565b60006119c8826119db565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611a10826119fb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611a4357611a42611a4e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4465706f7369742074696d652068617320656e6465642e000000000000000000600082015250565b7f4572726f723a206475726174696f6e206e6f7420616c6c6f7765642100000000600082015250565b7f546f6b656e206465706f73697420746f6f20686967682c206c696d697420627260008201527f6561636865642e00000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f74206f776e657200000000000000000000000000600082015250565b611b7f816119bd565b8114611b8a57600080fd5b50565b611b96816119cf565b8114611ba157600080fd5b50565b611bad816119fb565b8114611bb857600080fd5b5056fea2646970667358221220d85d6c94ef563c7b01d152047b9eaf28005e7a96b5189bd0e083781c7662ce8c64736f6c6343000803003300000000000000000000000084ca8bc7997272c7cfb4d0cd3d55cd942b3c94190000000000000000000000000000000000000000000000000000000060dce95f000000000000000000000000d949969936b0fd66321da06ac3edb2a36bad7932000000000000000000000000000000000000000000003f870857a3e0e3800000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063591f3428116100ad578063bb9286d911610071578063bb9286d914610307578063ca1748af14610323578063d5c18b281461032d578063d99ccadf1461035d578063dd40d6661461037b5761012c565b8063591f3428146102675780637065cb481461029757806386700c3a146102b357806399e32287146102cf578063b685bc7b146102eb5761012c565b80633d8cf56f116100f45780633d8cf56f146101c15780633e8eb5a4146101f35780633ef541b51461020f5780634813c91d1461022d578063529c08f71461024b5761012c565b80631d1f6f8514610131578063211d579e1461014d57806328c23a451461016b5780632e1a7d4d146101755780632f54bf6e14610191575b600080fd5b61014b60048036038101906101469190611438565b610397565b005b6101556103aa565b6040516101629190611843565b60405180910390f35b6101736103b0565b005b61018f600480360381019061018a919061149d565b6103bb565b005b6101ab60048036038101906101a6919061140f565b610569565b6040516101b891906117a8565b60405180910390f35b6101db60048036038101906101d6919061149d565b610586565b6040516101ea9392919061174f565b60405180910390f35b61020d600480360381019061020891906114c6565b6105e0565b005b6102176106d0565b6040516102249190611843565b60405180910390f35b6102356106d6565b6040516102429190611843565b60405180910390f35b6102656004803603810190610260919061149d565b6106dc565b005b610281600480360381019061027c919061149d565b61072e565b60405161028e919061168f565b60405180910390f35b6102b160048036038101906102ac919061140f565b6107a3565b005b6102cd60048036038101906102c89190611438565b6107f7565b005b6102e960048036038101906102e49190611502565b61080a565b005b6103056004803603810190610300919061140f565b61086c565b005b610321600480360381019061031c9190611438565b6108f8565b005b61032b61090b565b005b6103476004803603810190610342919061140f565b6109e4565b6040516103549190611786565b60405180910390f35b610365610c4c565b6040516103729190611843565b60405180910390f35b6103956004803603810190610390919061149d565b610c52565b005b6103a68282630163f500610d50565b5050565b60075481565b6103b9336111a8565b565b6000600882815481106103f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600302019050428160020154111561041857600080fd5b600081600101549050600082600101819055507f170b3e14fe6005fea5ebc34106508df3f0b87a8a023d1ca75fed86d2c9b41a738260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051610480929190611726565b60405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610509929190611726565b602060405180830381600087803b15801561052357600080fd5b505af1158015610537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055b9190611474565b61056457600080fd5b505050565b600061057f82600061120290919063ffffffff16565b9050919050565b6008818154811061059657600080fd5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60006008838154811061061c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068857600080fd5b818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60025481565b60065481565b6106e533610569565b610724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071b90611823565b60405180910390fd5b8060028190555050565b60006008828154811061076a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6107ac33610569565b6107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290611823565b60405180910390fd5b6107f481611294565b50565b61080682826303b53800610d50565b5050565b61081333610569565b610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990611823565b60405180910390fd5b826005819055508160068190555080600781905550505050565b61087533610569565b6108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ab90611823565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61090782826301da9c00610d50565b5050565b60005b6008805490508110156109e1574260088281548110610956577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160020154111580156109c157506000600882815481106109ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160010154115b156109d0576109cf816103bb565b5b806109da90611a05565b905061090e565b50565b60606000805b600880549050811015610ab6578373ffffffffffffffffffffffffffffffffffffffff1660088281548110610a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610aa5578180610aa190611a05565b9250505b80610aaf90611a05565b90506109ea565b5060008167ffffffffffffffff811115610af9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b275781602001602082028036833780820191505090505b5090506000805b600880549050811015610c40578573ffffffffffffffffffffffffffffffffffffffff1660088281548110610b8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610c2f5780838381518110610c14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180610c2b90611a05565b9250505b80610c3990611a05565b9050610b2e565b50819350505050919050565b60055481565b610c5b33610569565b610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190611823565b60405180910390fd5b8060038190555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cde57600080fd5b610ce88282611202565b15610cf257600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6002544210610d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8b906117c3565b60405180910390fd5b6003548210610dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcf90611803565b60405180910390fd5b8160036000828254610dea9190611989565b925050819055506000630163f500821415610e285768056bc75e2d6310000083600554610e17919061192f565b610e2191906118fe565b9050610ecf565b6301da9c00821415610e5d5768056bc75e2d6310000083600654610e4c919061192f565b610e5691906118fe565b9050610ece565b6303b53800821415610e925768056bc75e2d6310000083600754610e81919061192f565b610e8b91906118fe565b9050610ecd565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906117e3565b60405180910390fd5b5b5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630846040518463ffffffff1660e01b8152600401610f50939291906116aa565b602060405180830381600087803b158015610f6a57600080fd5b505af1158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190611474565b610fab57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161100a939291906116aa565b602060405180830381600087803b15801561102457600080fd5b505af1158015611038573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105c9190611474565b61106557600080fd5b61106d611399565b84816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505081846110b191906118a8565b81602001818152505082426110c691906118a8565b816040018181525050600881908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015550507f4d8cd4b540d67d13caf82dcada5d1b583e99d978c5009c3205a337b4ceb8ff6f3382600001518360200151846040015160405161119994939291906116e1565b60405180910390a15050505050565b6111bc8160006112ee90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561123d57600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6112a8816000610ca490919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561132857600080fd5b6113328282611202565b61133b57600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000813590506113df81611b76565b92915050565b6000815190506113f481611b8d565b92915050565b60008135905061140981611ba4565b92915050565b60006020828403121561142157600080fd5b600061142f848285016113d0565b91505092915050565b6000806040838503121561144b57600080fd5b6000611459858286016113d0565b925050602061146a858286016113fa565b9150509250929050565b60006020828403121561148657600080fd5b6000611494848285016113e5565b91505092915050565b6000602082840312156114af57600080fd5b60006114bd848285016113fa565b91505092915050565b600080604083850312156114d957600080fd5b60006114e7858286016113fa565b92505060206114f8858286016113d0565b9150509250929050565b60008060006060848603121561151757600080fd5b6000611525868287016113fa565b9350506020611536868287016113fa565b9250506040611547868287016113fa565b9150509250925092565b600061155d8383611671565b60208301905092915050565b611572816119bd565b82525050565b60006115838261186e565b61158d8185611886565b93506115988361185e565b8060005b838110156115c95781516115b08882611551565b97506115bb83611879565b92505060018101905061159c565b5085935050505092915050565b6115df816119cf565b82525050565b60006115f2601783611897565b91506115fd82611aac565b602082019050919050565b6000611615601c83611897565b915061162082611ad5565b602082019050919050565b6000611638602783611897565b915061164382611afe565b604082019050919050565b600061165b601383611897565b915061166682611b4d565b602082019050919050565b61167a816119fb565b82525050565b611689816119fb565b82525050565b60006020820190506116a46000830184611569565b92915050565b60006060820190506116bf6000830186611569565b6116cc6020830185611569565b6116d96040830184611680565b949350505050565b60006080820190506116f66000830187611569565b6117036020830186611569565b6117106040830185611680565b61171d6060830184611680565b95945050505050565b600060408201905061173b6000830185611569565b6117486020830184611680565b9392505050565b60006060820190506117646000830186611569565b6117716020830185611680565b61177e6040830184611680565b949350505050565b600060208201905081810360008301526117a08184611578565b905092915050565b60006020820190506117bd60008301846115d6565b92915050565b600060208201905081810360008301526117dc816115e5565b9050919050565b600060208201905081810360008301526117fc81611608565b9050919050565b6000602082019050818103600083015261181c8161162b565b9050919050565b6000602082019050818103600083015261183c8161164e565b9050919050565b60006020820190506118586000830184611680565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006118b3826119fb565b91506118be836119fb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156118f3576118f2611a4e565b5b828201905092915050565b6000611909826119fb565b9150611914836119fb565b92508261192457611923611a7d565b5b828204905092915050565b600061193a826119fb565b9150611945836119fb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561197e5761197d611a4e565b5b828202905092915050565b6000611994826119fb565b915061199f836119fb565b9250828210156119b2576119b1611a4e565b5b828203905092915050565b60006119c8826119db565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611a10826119fb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611a4357611a42611a4e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4465706f7369742074696d652068617320656e6465642e000000000000000000600082015250565b7f4572726f723a206475726174696f6e206e6f7420616c6c6f7765642100000000600082015250565b7f546f6b656e206465706f73697420746f6f20686967682c206c696d697420627260008201527f6561636865642e00000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f74206f776e657200000000000000000000000000600082015250565b611b7f816119bd565b8114611b8a57600080fd5b50565b611b96816119cf565b8114611ba157600080fd5b50565b611bad816119fb565b8114611bb857600080fd5b5056fea2646970667358221220d85d6c94ef563c7b01d152047b9eaf28005e7a96b5189bd0e083781c7662ce8c64736f6c63430008030033

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

00000000000000000000000084ca8bc7997272c7cfb4d0cd3d55cd942b3c94190000000000000000000000000000000000000000000000000000000060dce95f000000000000000000000000d949969936b0fd66321da06ac3edb2a36bad7932000000000000000000000000000000000000000000003f870857a3e0e3800000

-----Decoded View---------------
Arg [0] : tokenContract (address): 0x84cA8bc7997272c7CfB4D0Cd3D55cd942B3c9419
Arg [1] : _endDepositTime (uint256): 1625090399
Arg [2] : _yieldWallet (address): 0xD949969936b0fD66321DA06ac3EdB2a36bad7932
Arg [3] : _maxTokens (uint256): 300000000000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000084ca8bc7997272c7cfb4d0cd3d55cd942b3c9419
Arg [1] : 0000000000000000000000000000000000000000000000000000000060dce95f
Arg [2] : 000000000000000000000000d949969936b0fd66321da06ac3edb2a36bad7932
Arg [3] : 000000000000000000000000000000000000000000003f870857a3e0e3800000


Deployed Bytecode Sourcemap

20913:5515:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23084:122;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;21402:40;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2581:66;;;:::i;:::-;;25092:344;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2393:98;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;21599:37;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;24841:243;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;21075:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;21359:36;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25803:114;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;22216:150;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2496:80;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23353:123;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;26046:260;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;25929:105;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23218:123;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;25494:266;;;:::i;:::-;;22378:659;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;21318:34;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26318:107;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23084:122;23160:38;23168:11;23181:6;23189:8;23160:7;:38::i;:::-;23084:122;;:::o;21402:40::-;;;;:::o;2581:66::-;2618:24;2631:10;2618:12;:24::i;:::-;2581:66::o;25092:344::-;25148:23;25174:14;25189:13;25174:29;;;;;;;;;;;;;;;;;;;;;;;;;;25148:55;;25239:15;25222:1;:13;;;:32;;25214:41;;;;;;25266:11;25280:1;:9;;;25266:23;;25312:1;25300;:9;;:13;;;;25329:42;25349:1;:13;;;;;;;;;;;;25364:6;25329:42;;;;;;;:::i;:::-;;;;;;;;25390:5;;;;;;;;;;;:14;;;25405:1;:13;;;;;;;;;;;;25420:6;25390:37;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25382:46;;;;;;25092:344;;;:::o;2393:98::-;2448:4;2466:20;2478:7;2466;:11;;:20;;;;:::i;:::-;2459:27;;2393:98;;;:::o;21599:37::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24841:243::-;24933:23;24959:14;24974:13;24959:29;;;;;;;;;;;;;;;;;;;;;;;;;;24933:55;;25021:1;:13;;;;;;;;;;;;25007:27;;:10;:27;;;24999:36;;;;;;25062:14;25046:1;:13;;;:30;;;;;;;;;;;;;;;;;;24841:243;;;:::o;21075:29::-;;;;:::o;21359:36::-;;;;:::o;25803:114::-;2334:19;2342:10;2334:7;:19::i;:::-;2326:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;25899:10:::1;25882:14;:27;;;;25803:114:::0;:::o;22216:150::-;22290:7;22317:14;22332:13;22317:29;;;;;;;;;;;;;;;;;;;;;;;;;;:41;;;;;;;;;;;;22310:48;;22216:150;;;:::o;2496:80::-;2334:19;2342:10;2334:7;:19::i;:::-;2326:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;2553:18:::1;2563:7;2553:9;:18::i;:::-;2496:80:::0;:::o;23353:123::-;23430:38;23438:11;23451:6;23459:8;23430:7;:38::i;:::-;23353:123;;:::o;26046:260::-;2334:19;2342:10;2334:7;:19::i;:::-;2326:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;26186:10:::1;26164:19;:32;;;;26231:12;26207:21;:36;;;;26282:16;26254:25;:44;;;;26046:260:::0;;;:::o;25929:105::-;2334:19;2342:10;2334:7;:19::i;:::-;2326:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;26017:9:::1;26003:11;;:23;;;;;;;;;;;;;;;;;;25929:105:::0;:::o;23218:123::-;23295:38;23303:11;23316:6;23324:8;23295:7;:38::i;:::-;23218:123;;:::o;25494:266::-;25547:9;25542:211;25566:14;:21;;;;25562:1;:25;25542:211;;;25646:15;25613:14;25628:1;25613:17;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;;:48;;:81;;;;;25693:1;25665:14;25680:1;25665:17;;;;;;;;;;;;;;;;;;;;;;;;;;:25;;;:29;25613:81;25609:133;;;25715:11;25724:1;25715:8;:11::i;:::-;25609:133;25589:3;;;;:::i;:::-;;;25542:211;;;;25494:266::o;22378:659::-;22445:16;22513:19;22552:9;22547:170;22571:14;:21;;;;22567:1;:25;22547:170;;;22651:5;22618:38;;:14;22633:1;22618:17;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;:38;;;22614:92;;;22677:13;;;;;:::i;:::-;;;;22614:92;22594:3;;;;:::i;:::-;;;22547:170;;;;22727:23;22767:11;22753:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22727:52;;22790:9;22819;22814:192;22838:14;:21;;;;22834:1;:25;22814:192;;;22918:5;22885:38;;:14;22900:1;22885:17;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;:38;;;22881:114;;;22956:1;22944:6;22951:1;22944:9;;;;;;;;;;;;;;;;;;;;;:13;;;;;22976:3;;;;;:::i;:::-;;;;22881:114;22861:3;;;;:::i;:::-;;;22814:192;;;;23023:6;23016:13;;;;;22378:659;;;:::o;21318:34::-;;;;:::o;26318:107::-;2334:19;2342:10;2334:7;:19::i;:::-;2326:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;26405:12:::1;26393:9;:24;;;;26318:107:::0;:::o;1391:165::-;1481:1;1462:21;;:7;:21;;;;1454:30;;;;;;1498:18;1502:4;1508:7;1498:3;:18::i;:::-;1497:19;1489:28;;;;;;1547:4;1524;:11;;:20;1536:7;1524:20;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;1391:165;;:::o;23484:1292::-;23602:14;;23584:15;:32;23576:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;23672:9;;23663:6;:18;23655:70;;;;;;;;;;;;:::i;:::-;;;;;;;;;23749:6;23736:9;;:19;;;;;;;:::i;:::-;;;;;;;;23811;23857:8;23845;:20;23841:403;;;23929:4;23919:6;23897:19;;:28;;;;:::i;:::-;23896:37;;;;:::i;:::-;23882:51;;23841:403;;;23967:8;23955;:20;23951:293;;;24041:4;24031:6;24007:21;;:30;;;;:::i;:::-;24006:39;;;;:::i;:::-;23992:53;;23951:293;;;24079:8;24067;:20;24063:181;;;24157:4;24147:6;24119:25;;:34;;;;:::i;:::-;24118:43;;;;:::i;:::-;24104:57;;24063:181;;;24194:38;;;;;;;;;;:::i;:::-;;;;;;;;24063:181;23951:293;23841:403;24262:5;;;;;;;;;;;:18;;;24281:11;;;;;;;;;;;24302:4;24309:11;24262:59;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24254:68;;;;;;24393:5;;;;;;;;;;;:18;;;24412:10;24432:4;24439:6;24393:53;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24385:62;;;;;;24494:22;;:::i;:::-;24543:11;24527:1;:13;;:27;;;;;;;;;;;24586:11;24577:6;:20;;;;:::i;:::-;24565:1;:9;;:32;;;;;24642:8;24624:15;:26;;;;:::i;:::-;24608:1;:13;;:42;;;;;24661:14;24681:1;24661:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24699:69;24716:10;24728:1;:13;;;24743:1;:9;;;24754:1;:13;;;24699:69;;;;;;;;;:::i;:::-;;;;;;;;23484:1292;;;;;:::o;2761:112::-;2814:23;2829:7;2814;:14;;:23;;;;:::i;:::-;2860:7;2847:21;;;;;;;;;;;;2761:112;:::o;1870:150::-;1942:4;1980:1;1961:21;;:7;:21;;;;1953:30;;;;;;1995:4;:11;;:20;2007:7;1995:20;;;;;;;;;;;;;;;;;;;;;;;;;1988:27;;1870:150;;;;:::o;2652:104::-;2702:20;2714:7;2702;:11;;:20;;;;:::i;:::-;2743:7;2732:19;;;;;;;;;;;;2652:104;:::o;1623:168::-;1716:1;1697:21;;:7;:21;;;;1689:30;;;;;;1732:18;1736:4;1742:7;1732:3;:18::i;:::-;1724:27;;;;;;1781:5;1758:4;:11;;:20;1770:7;1758:20;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;1623:168;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:137::-;;237:6;231:13;222:22;;253:30;277:5;253:30;:::i;:::-;212:77;;;;:::o;295:139::-;;379:6;366:20;357:29;;395:33;422:5;395:33;:::i;:::-;347:87;;;;:::o;440:262::-;;548:2;536:9;527:7;523:23;519:32;516:2;;;564:1;561;554:12;516:2;607:1;632:53;677:7;668:6;657:9;653:22;632:53;:::i;:::-;622:63;;578:117;506:196;;;;:::o;708:407::-;;;833:2;821:9;812:7;808:23;804:32;801:2;;;849:1;846;839:12;801:2;892:1;917:53;962:7;953:6;942:9;938:22;917:53;:::i;:::-;907:63;;863:117;1019:2;1045:53;1090:7;1081:6;1070:9;1066:22;1045:53;:::i;:::-;1035:63;;990:118;791:324;;;;;:::o;1121:278::-;;1237:2;1225:9;1216:7;1212:23;1208:32;1205:2;;;1253:1;1250;1243:12;1205:2;1296:1;1321:61;1374:7;1365:6;1354:9;1350:22;1321:61;:::i;:::-;1311:71;;1267:125;1195:204;;;;:::o;1405:262::-;;1513:2;1501:9;1492:7;1488:23;1484:32;1481:2;;;1529:1;1526;1519:12;1481:2;1572:1;1597:53;1642:7;1633:6;1622:9;1618:22;1597:53;:::i;:::-;1587:63;;1543:117;1471:196;;;;:::o;1673:407::-;;;1798:2;1786:9;1777:7;1773:23;1769:32;1766:2;;;1814:1;1811;1804:12;1766:2;1857:1;1882:53;1927:7;1918:6;1907:9;1903:22;1882:53;:::i;:::-;1872:63;;1828:117;1984:2;2010:53;2055:7;2046:6;2035:9;2031:22;2010:53;:::i;:::-;2000:63;;1955:118;1756:324;;;;;:::o;2086:552::-;;;;2228:2;2216:9;2207:7;2203:23;2199:32;2196:2;;;2244:1;2241;2234:12;2196:2;2287:1;2312:53;2357:7;2348:6;2337:9;2333:22;2312:53;:::i;:::-;2302:63;;2258:117;2414:2;2440:53;2485:7;2476:6;2465:9;2461:22;2440:53;:::i;:::-;2430:63;;2385:118;2542:2;2568:53;2613:7;2604:6;2593:9;2589:22;2568:53;:::i;:::-;2558:63;;2513:118;2186:452;;;;;:::o;2644:179::-;;2734:46;2776:3;2768:6;2734:46;:::i;:::-;2812:4;2807:3;2803:14;2789:28;;2724:99;;;;:::o;2829:118::-;2916:24;2934:5;2916:24;:::i;:::-;2911:3;2904:37;2894:53;;:::o;2983:732::-;;3131:54;3179:5;3131:54;:::i;:::-;3201:86;3280:6;3275:3;3201:86;:::i;:::-;3194:93;;3311:56;3361:5;3311:56;:::i;:::-;3390:7;3421:1;3406:284;3431:6;3428:1;3425:13;3406:284;;;3507:6;3501:13;3534:63;3593:3;3578:13;3534:63;:::i;:::-;3527:70;;3620:60;3673:6;3620:60;:::i;:::-;3610:70;;3466:224;3453:1;3450;3446:9;3441:14;;3406:284;;;3410:14;3706:3;3699:10;;3107:608;;;;;;;:::o;3721:109::-;3802:21;3817:5;3802:21;:::i;:::-;3797:3;3790:34;3780:50;;:::o;3836:366::-;;3999:67;4063:2;4058:3;3999:67;:::i;:::-;3992:74;;4075:93;4164:3;4075:93;:::i;:::-;4193:2;4188:3;4184:12;4177:19;;3982:220;;;:::o;4208:366::-;;4371:67;4435:2;4430:3;4371:67;:::i;:::-;4364:74;;4447:93;4536:3;4447:93;:::i;:::-;4565:2;4560:3;4556:12;4549:19;;4354:220;;;:::o;4580:366::-;;4743:67;4807:2;4802:3;4743:67;:::i;:::-;4736:74;;4819:93;4908:3;4819:93;:::i;:::-;4937:2;4932:3;4928:12;4921:19;;4726:220;;;:::o;4952:366::-;;5115:67;5179:2;5174:3;5115:67;:::i;:::-;5108:74;;5191:93;5280:3;5191:93;:::i;:::-;5309:2;5304:3;5300:12;5293:19;;5098:220;;;:::o;5324:108::-;5401:24;5419:5;5401:24;:::i;:::-;5396:3;5389:37;5379:53;;:::o;5438:118::-;5525:24;5543:5;5525:24;:::i;:::-;5520:3;5513:37;5503:53;;:::o;5562:222::-;;5693:2;5682:9;5678:18;5670:26;;5706:71;5774:1;5763:9;5759:17;5750:6;5706:71;:::i;:::-;5660:124;;;;:::o;5790:442::-;;5977:2;5966:9;5962:18;5954:26;;5990:71;6058:1;6047:9;6043:17;6034:6;5990:71;:::i;:::-;6071:72;6139:2;6128:9;6124:18;6115:6;6071:72;:::i;:::-;6153;6221:2;6210:9;6206:18;6197:6;6153:72;:::i;:::-;5944:288;;;;;;:::o;6238:553::-;;6453:3;6442:9;6438:19;6430:27;;6467:71;6535:1;6524:9;6520:17;6511:6;6467:71;:::i;:::-;6548:72;6616:2;6605:9;6601:18;6592:6;6548:72;:::i;:::-;6630;6698:2;6687:9;6683:18;6674:6;6630:72;:::i;:::-;6712;6780:2;6769:9;6765:18;6756:6;6712:72;:::i;:::-;6420:371;;;;;;;:::o;6797:332::-;;6956:2;6945:9;6941:18;6933:26;;6969:71;7037:1;7026:9;7022:17;7013:6;6969:71;:::i;:::-;7050:72;7118:2;7107:9;7103:18;7094:6;7050:72;:::i;:::-;6923:206;;;;;:::o;7135:442::-;;7322:2;7311:9;7307:18;7299:26;;7335:71;7403:1;7392:9;7388:17;7379:6;7335:71;:::i;:::-;7416:72;7484:2;7473:9;7469:18;7460:6;7416:72;:::i;:::-;7498;7566:2;7555:9;7551:18;7542:6;7498:72;:::i;:::-;7289:288;;;;;;:::o;7583:373::-;;7764:2;7753:9;7749:18;7741:26;;7813:9;7807:4;7803:20;7799:1;7788:9;7784:17;7777:47;7841:108;7944:4;7935:6;7841:108;:::i;:::-;7833:116;;7731:225;;;;:::o;7962:210::-;;8087:2;8076:9;8072:18;8064:26;;8100:65;8162:1;8151:9;8147:17;8138:6;8100:65;:::i;:::-;8054:118;;;;:::o;8178:419::-;;8382:2;8371:9;8367:18;8359:26;;8431:9;8425:4;8421:20;8417:1;8406:9;8402:17;8395:47;8459:131;8585:4;8459:131;:::i;:::-;8451:139;;8349:248;;;:::o;8603:419::-;;8807:2;8796:9;8792:18;8784:26;;8856:9;8850:4;8846:20;8842:1;8831:9;8827:17;8820:47;8884:131;9010:4;8884:131;:::i;:::-;8876:139;;8774:248;;;:::o;9028:419::-;;9232:2;9221:9;9217:18;9209:26;;9281:9;9275:4;9271:20;9267:1;9256:9;9252:17;9245:47;9309:131;9435:4;9309:131;:::i;:::-;9301:139;;9199:248;;;:::o;9453:419::-;;9657:2;9646:9;9642:18;9634:26;;9706:9;9700:4;9696:20;9692:1;9681:9;9677:17;9670:47;9734:131;9860:4;9734:131;:::i;:::-;9726:139;;9624:248;;;:::o;9878:222::-;;10009:2;9998:9;9994:18;9986:26;;10022:71;10090:1;10079:9;10075:17;10066:6;10022:71;:::i;:::-;9976:124;;;;:::o;10106:132::-;;10196:3;10188:11;;10226:4;10221:3;10217:14;10209:22;;10178:60;;;:::o;10244:114::-;;10345:5;10339:12;10329:22;;10318:40;;;:::o;10364:113::-;;10466:4;10461:3;10457:14;10449:22;;10439:38;;;:::o;10483:184::-;;10616:6;10611:3;10604:19;10656:4;10651:3;10647:14;10632:29;;10594:73;;;;:::o;10673:169::-;;10791:6;10786:3;10779:19;10831:4;10826:3;10822:14;10807:29;;10769:73;;;;:::o;10848:305::-;;10907:20;10925:1;10907:20;:::i;:::-;10902:25;;10941:20;10959:1;10941:20;:::i;:::-;10936:25;;11095:1;11027:66;11023:74;11020:1;11017:81;11014:2;;;11101:18;;:::i;:::-;11014:2;11145:1;11142;11138:9;11131:16;;10892:261;;;;:::o;11159:185::-;;11216:20;11234:1;11216:20;:::i;:::-;11211:25;;11250:20;11268:1;11250:20;:::i;:::-;11245:25;;11289:1;11279:2;;11294:18;;:::i;:::-;11279:2;11336:1;11333;11329:9;11324:14;;11201:143;;;;:::o;11350:348::-;;11413:20;11431:1;11413:20;:::i;:::-;11408:25;;11447:20;11465:1;11447:20;:::i;:::-;11442:25;;11635:1;11567:66;11563:74;11560:1;11557:81;11552:1;11545:9;11538:17;11534:105;11531:2;;;11642:18;;:::i;:::-;11531:2;11690:1;11687;11683:9;11672:20;;11398:300;;;;:::o;11704:191::-;;11764:20;11782:1;11764:20;:::i;:::-;11759:25;;11798:20;11816:1;11798:20;:::i;:::-;11793:25;;11837:1;11834;11831:8;11828:2;;;11842:18;;:::i;:::-;11828:2;11887:1;11884;11880:9;11872:17;;11749:146;;;;:::o;11901:96::-;;11967:24;11985:5;11967:24;:::i;:::-;11956:35;;11946:51;;;:::o;12003:90::-;;12080:5;12073:13;12066:21;12055:32;;12045:48;;;:::o;12099:126::-;;12176:42;12169:5;12165:54;12154:65;;12144:81;;;:::o;12231:77::-;;12297:5;12286:16;;12276:32;;;:::o;12314:233::-;;12376:24;12394:5;12376:24;:::i;:::-;12367:33;;12422:66;12415:5;12412:77;12409:2;;;12492:18;;:::i;:::-;12409:2;12539:1;12532:5;12528:13;12521:20;;12357:190;;;:::o;12553:180::-;12601:77;12598:1;12591:88;12698:4;12695:1;12688:15;12722:4;12719:1;12712:15;12739:180;12787:77;12784:1;12777:88;12884:4;12881:1;12874:15;12908:4;12905:1;12898:15;12925:173;13065:25;13061:1;13053:6;13049:14;13042:49;13031:67;:::o;13104:178::-;13244:30;13240:1;13232:6;13228:14;13221:54;13210:72;:::o;13288:226::-;13428:34;13424:1;13416:6;13412:14;13405:58;13497:9;13492:2;13484:6;13480:15;13473:34;13394:120;:::o;13520:169::-;13660:21;13656:1;13648:6;13644:14;13637:45;13626:63;:::o;13695:122::-;13768:24;13786:5;13768:24;:::i;:::-;13761:5;13758:35;13748:2;;13807:1;13804;13797:12;13748:2;13738:79;:::o;13823:116::-;13893:21;13908:5;13893:21;:::i;:::-;13886:5;13883:32;13873:2;;13929:1;13926;13919:12;13873:2;13863:76;:::o;13945:122::-;14018:24;14036:5;14018:24;:::i;:::-;14011:5;14008:35;13998:2;;14057:1;14054;14047:12;13998:2;13988:79;:::o

Swarm Source

ipfs://d85d6c94ef563c7b01d152047b9eaf28005e7a96b5189bd0e083781c7662ce8c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

DIA holders can earn yield in DIA tokens by locking DIA tokens in this interest yield contract with varying yields in DIA for runtimes of 9, 12 or 24 months, respectively.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.