More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 145 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 13275272 | 1206 days ago | IN | 0 ETH | 0.00289714 | ||||
Update Beneficia... | 13042000 | 1242 days ago | IN | 0 ETH | 0.00109329 | ||||
Withdraw | 12596778 | 1312 days ago | IN | 0 ETH | 0.00060867 | ||||
Withdraw | 12596757 | 1312 days ago | IN | 0 ETH | 0.00060319 | ||||
Withdraw | 12596641 | 1312 days ago | IN | 0 ETH | 0.00065803 | ||||
Withdraw | 12596597 | 1312 days ago | IN | 0 ETH | 0.00060319 | ||||
Withdraw | 12596554 | 1312 days ago | IN | 0 ETH | 0.00096017 | ||||
Withdraw | 12595950 | 1312 days ago | IN | 0 ETH | 0.00268696 | ||||
Withdraw | 12595676 | 1312 days ago | IN | 0 ETH | 0.00093221 | ||||
Withdraw | 12595580 | 1312 days ago | IN | 0 ETH | 0.00104188 | ||||
Withdraw | 12439906 | 1336 days ago | IN | 0 ETH | 0.00275472 | ||||
Withdraw | 12147228 | 1381 days ago | IN | 0 ETH | 0.00470403 | ||||
Withdraw | 12145611 | 1381 days ago | IN | 0 ETH | 0.00511606 | ||||
Withdraw | 12141396 | 1382 days ago | IN | 0 ETH | 0.00978576 | ||||
Withdraw | 12128882 | 1384 days ago | IN | 0 ETH | 0.00631782 | ||||
Withdraw | 12123488 | 1385 days ago | IN | 0 ETH | 0.00394864 | ||||
Withdraw | 12122327 | 1385 days ago | IN | 0 ETH | 0.00641368 | ||||
Withdraw | 12110026 | 1387 days ago | IN | 0 ETH | 0.00470403 | ||||
Withdraw | 12104211 | 1388 days ago | IN | 0 ETH | 0.00873247 | ||||
Withdraw | 12098497 | 1389 days ago | IN | 0 ETH | 0.00518473 | ||||
Withdraw | 12095207 | 1389 days ago | IN | 0 ETH | 0.00641368 | ||||
Withdraw | 12095080 | 1389 days ago | IN | 0 ETH | 0.00636434 | ||||
Withdraw | 12091810 | 1390 days ago | IN | 0 ETH | 0.00607747 | ||||
Withdraw | 12088793 | 1390 days ago | IN | 0 ETH | 0.00823911 | ||||
Withdraw | 12079241 | 1391 days ago | IN | 0 ETH | 0.00336492 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
YieldContract
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-12 */ // Octo.fi Interest Program // © 2020 Decentralized Tentacles // SPDX-License-Identifier: MIT pragma solidity 0.6.12; 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]; } } contract YieldRoles { using Roles for Roles.Role; constructor() internal { _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 threeMonthPercentage; uint256 public sixMonthPercentage; uint256 public twelveMonthPercentage; // 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) public { token = IERC20(tokenContract); endDepositTime = _endDepositTime; yieldWallet = _yieldWallet; maxTokens = _maxTokens; } function getLockBoxBeneficiary(uint256 lockBoxNumber) public view returns(address) { return lockBoxStructs[lockBoxNumber].beneficiary; } // Deposit for 3, 6 or 12 months function deposit3m(address beneficiary, uint256 amount) external { deposit(beneficiary, amount, 90 days); } function deposit6m(address beneficiary, uint256 amount) external { deposit(beneficiary, amount, 180 days); } function deposit12m(address beneficiary, uint256 amount) external { deposit(beneficiary, amount, 360 days); } function deposit(address beneficiary, uint256 amount, uint256 duration) internal { require(now < 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 == 90 days) { yieldAmount = (threeMonthPercentage * amount) / 1e20; } else if (duration == 180 days) { yieldAmount = (sixMonthPercentage * amount) / 1e20; } else if (duration == 360 days) { yieldAmount = (twelveMonthPercentage * 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 = now + 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 <= now); 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 <= now && 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 threeMonths, uint256 sixMonths, uint256 twelveMonths) public onlyOwner { threeMonthPercentage = threeMonths; sixMonthPercentage = sixMonths; twelveMonthPercentage = twelveMonths; } function updateMaxTokens(uint256 newMaxTokens) public onlyOwner { maxTokens = newMaxTokens; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"deposit3m","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit6m","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":"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":"renounceOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sixMonthPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"threeMonthPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"triggerWithdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"twelveMonthPercentage","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":"threeMonths","type":"uint256"},{"internalType":"uint256","name":"sixMonths","type":"uint256"},{"internalType":"uint256","name":"twelveMonths","type":"uint256"}],"name":"updateYields","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockBoxNumber","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200178f3803806200178f833981810160405260808110156200003757600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505062000077336200011160201b60201c565b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260028190555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060038190555050505050620002bb565b6200012c8160006200017260201b62000c491790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620001ad57600080fd5b620001bf82826200022860201b60201c565b15620001ca57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200026457600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6114c480620002cb6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80634813c91d116100ad578063a50973cf11610071578063a50973cf1461043e578063b685bc7b1461048c578063bb9286d9146104d0578063ca1748af1461051e578063dd40d6661461052857610121565b80634813c91d14610314578063529c08f714610332578063591f3428146103605780637065cb48146103b857806399e32287146103fc57610121565b8063325187cc116100f4578063325187cc146101d65780633d8cf56f146102245780633e8eb5a41461028a5780633ef541b5146102d8578063440f1d67146102f657610121565b806328c23a45146101265780632e1a7d4d146101305780632e8383bb1461015e5780632f54bf6e1461017c575b600080fd5b61012e610556565b005b61015c6004803603602081101561014657600080fd5b8101908080359060200190929190505050610561565b005b61016661071d565b6040518082815260200191505060405180910390f35b6101be6004803603602081101561019257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610723565b60405180821515815260200191505060405180910390f35b610222600480360360408110156101ec57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610740565b005b6102506004803603602081101561023a57600080fd5b8101908080359060200190929190505050610752565b604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390f35b6102d6600480360360408110156102a057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107a9565b005b6102e061086c565b6040518082815260200191505060405180910390f35b6102fe610872565b6040518082815260200191505060405180910390f35b61031c610878565b6040518082815260200191505060405180910390f35b61035e6004803603602081101561034857600080fd5b810190808035906020019092919050505061087e565b005b61038c6004803603602081101561037657600080fd5b8101908080359060200190929190505050610903565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103fa600480360360208110156103ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061094b565b005b61043c6004803603606081101561041257600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506109d2565b005b61048a6004803603604081101561045457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a67565b005b6104ce600480360360208110156104a257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a79565b005b61051c600480360360408110156104e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b38565b005b610526610b4b565b005b6105546004803603602081101561053e57600080fd5b8101908080359060200190929190505050610bc4565b005b61055f33610cf5565b565b60006008828154811061057057fe5b90600052602060002090600302019050428160020154111561059157600080fd5b600081600101549050600082600101819055507f170b3e14fe6005fea5ebc34106508df3f0b87a8a023d1ca75fed86d2c9b41a738260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156106d457600080fd5b505af11580156106e8573d6000803e3d6000fd5b505050506040513d60208110156106fe57600080fd5b810190808051906020019092919050505061071857600080fd5b505050565b60065481565b6000610739826000610d4f90919063ffffffff16565b9050919050565b61074e82826276a700610de1565b5050565b6008818154811061075f57fe5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b6000600883815481106107b857fe5b906000526020600020906003020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461082457600080fd5b818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60025481565b60055481565b60075481565b61088733610723565b6108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b8060028190555050565b60006008828154811061091257fe5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61095433610723565b6109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b6109cf8161132b565b50565b6109db33610723565b610a4d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b826005819055508160068190555080600781905550505050565b610a75828262ed4e00610de1565b5050565b610a8233610723565b610af4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610b4782826301da9c00610de1565b5050565b60005b600880549050811015610bc1574260088281548110610b6957fe5b90600052602060002090600302016002015411158015610ba75750600060088281548110610b9357fe5b906000526020600020906003020160010154115b15610bb657610bb581610561565b5b806001019050610b4e565b50565b610bcd33610723565b610c3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b8060038190555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c8357600080fd5b610c8d8282610d4f565b15610c9757600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610d0981600061138590919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d8a57600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6002544210610e58576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4465706f7369742074696d652068617320656e6465642e00000000000000000081525060200191505060405180910390fd5b6003548210610eb2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806114686027913960400191505060405180910390fd5b8160036000828254039250508190555060006276a700821415610eed5768056bc75e2d63100000836005540281610ee557fe5b049050610fb0565b62ed4e00821415610f165768056bc75e2d63100000836006540281610f0e57fe5b049050610faf565b6301da9c00821415610f405768056bc75e2d63100000836007540281610f3857fe5b049050610fae565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4572726f723a206475726174696f6e206e6f7420616c6c6f776564210000000081525060200191505060405180910390fd5b5b5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b505050506040513d60208110156110ad57600080fd5b81019080805190602001909291905050506110c757600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561117857600080fd5b505af115801561118c573d6000803e3d6000fd5b505050506040513d60208110156111a257600080fd5b81019080805190602001909291905050506111bc57600080fd5b6111c4611430565b84816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818401816020018181525050824201816040018181525050600881908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015550507f4d8cd4b540d67d13caf82dcada5d1b583e99d978c5009c3205a337b4ceb8ff6f33826000015183602001518460400151604051808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a15050505050565b61133f816000610c4990919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113bf57600080fd5b6113c98282610d4f565b6113d257600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152509056fe546f6b656e206465706f73697420746f6f20686967682c206c696d69742062726561636865642ea2646970667358221220e875f058e8b69f6b1d52929a140f8fbb0d18de06de3ede80fed7aaaad736081064736f6c634300060c00330000000000000000000000007240ac91f01233baaf8b064248e80feaa5912ba3000000000000000000000000000000000000000000000000000000005f750e2d000000000000000000000000b51d93791e19d8cf1fdf1851aa97e7695a9135c000000000000000000000000000000000000000000000152d02c7e14af6800000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c80634813c91d116100ad578063a50973cf11610071578063a50973cf1461043e578063b685bc7b1461048c578063bb9286d9146104d0578063ca1748af1461051e578063dd40d6661461052857610121565b80634813c91d14610314578063529c08f714610332578063591f3428146103605780637065cb48146103b857806399e32287146103fc57610121565b8063325187cc116100f4578063325187cc146101d65780633d8cf56f146102245780633e8eb5a41461028a5780633ef541b5146102d8578063440f1d67146102f657610121565b806328c23a45146101265780632e1a7d4d146101305780632e8383bb1461015e5780632f54bf6e1461017c575b600080fd5b61012e610556565b005b61015c6004803603602081101561014657600080fd5b8101908080359060200190929190505050610561565b005b61016661071d565b6040518082815260200191505060405180910390f35b6101be6004803603602081101561019257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610723565b60405180821515815260200191505060405180910390f35b610222600480360360408110156101ec57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610740565b005b6102506004803603602081101561023a57600080fd5b8101908080359060200190929190505050610752565b604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390f35b6102d6600480360360408110156102a057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107a9565b005b6102e061086c565b6040518082815260200191505060405180910390f35b6102fe610872565b6040518082815260200191505060405180910390f35b61031c610878565b6040518082815260200191505060405180910390f35b61035e6004803603602081101561034857600080fd5b810190808035906020019092919050505061087e565b005b61038c6004803603602081101561037657600080fd5b8101908080359060200190929190505050610903565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103fa600480360360208110156103ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061094b565b005b61043c6004803603606081101561041257600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506109d2565b005b61048a6004803603604081101561045457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a67565b005b6104ce600480360360208110156104a257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a79565b005b61051c600480360360408110156104e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b38565b005b610526610b4b565b005b6105546004803603602081101561053e57600080fd5b8101908080359060200190929190505050610bc4565b005b61055f33610cf5565b565b60006008828154811061057057fe5b90600052602060002090600302019050428160020154111561059157600080fd5b600081600101549050600082600101819055507f170b3e14fe6005fea5ebc34106508df3f0b87a8a023d1ca75fed86d2c9b41a738260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156106d457600080fd5b505af11580156106e8573d6000803e3d6000fd5b505050506040513d60208110156106fe57600080fd5b810190808051906020019092919050505061071857600080fd5b505050565b60065481565b6000610739826000610d4f90919063ffffffff16565b9050919050565b61074e82826276a700610de1565b5050565b6008818154811061075f57fe5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b6000600883815481106107b857fe5b906000526020600020906003020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461082457600080fd5b818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60025481565b60055481565b60075481565b61088733610723565b6108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b8060028190555050565b60006008828154811061091257fe5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61095433610723565b6109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b6109cf8161132b565b50565b6109db33610723565b610a4d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b826005819055508160068190555080600781905550505050565b610a75828262ed4e00610de1565b5050565b610a8233610723565b610af4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610b4782826301da9c00610de1565b5050565b60005b600880549050811015610bc1574260088281548110610b6957fe5b90600052602060002090600302016002015411158015610ba75750600060088281548110610b9357fe5b906000526020600020906003020160010154115b15610bb657610bb581610561565b5b806001019050610b4e565b50565b610bcd33610723565b610c3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53656e646572206973206e6f74206f776e65720000000000000000000000000081525060200191505060405180910390fd5b8060038190555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c8357600080fd5b610c8d8282610d4f565b15610c9757600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610d0981600061138590919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d8a57600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6002544210610e58576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4465706f7369742074696d652068617320656e6465642e00000000000000000081525060200191505060405180910390fd5b6003548210610eb2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806114686027913960400191505060405180910390fd5b8160036000828254039250508190555060006276a700821415610eed5768056bc75e2d63100000836005540281610ee557fe5b049050610fb0565b62ed4e00821415610f165768056bc75e2d63100000836006540281610f0e57fe5b049050610faf565b6301da9c00821415610f405768056bc75e2d63100000836007540281610f3857fe5b049050610fae565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4572726f723a206475726174696f6e206e6f7420616c6c6f776564210000000081525060200191505060405180910390fd5b5b5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b505050506040513d60208110156110ad57600080fd5b81019080805190602001909291905050506110c757600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561117857600080fd5b505af115801561118c573d6000803e3d6000fd5b505050506040513d60208110156111a257600080fd5b81019080805190602001909291905050506111bc57600080fd5b6111c4611430565b84816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818401816020018181525050824201816040018181525050600881908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015550507f4d8cd4b540d67d13caf82dcada5d1b583e99d978c5009c3205a337b4ceb8ff6f33826000015183602001518460400151604051808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a15050505050565b61133f816000610c4990919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113bf57600080fd5b6113c98282610d4f565b6113d257600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152509056fe546f6b656e206465706f73697420746f6f20686967682c206c696d69742062726561636865642ea2646970667358221220e875f058e8b69f6b1d52929a140f8fbb0d18de06de3ede80fed7aaaad736081064736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007240ac91f01233baaf8b064248e80feaa5912ba3000000000000000000000000000000000000000000000000000000005f750e2d000000000000000000000000b51d93791e19d8cf1fdf1851aa97e7695a9135c000000000000000000000000000000000000000000000152d02c7e14af6800000
-----Decoded View---------------
Arg [0] : tokenContract (address): 0x7240aC91f01233BaAf8b064248E80feaA5912BA3
Arg [1] : _endDepositTime (uint256): 1601506861
Arg [2] : _yieldWallet (address): 0xb51D93791E19D8CF1fDF1851AA97e7695A9135c0
Arg [3] : _maxTokens (uint256): 100000000000000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007240ac91f01233baaf8b064248e80feaa5912ba3
Arg [1] : 000000000000000000000000000000000000000000000000000000005f750e2d
Arg [2] : 000000000000000000000000b51d93791e19d8cf1fdf1851aa97e7695a9135c0
Arg [3] : 00000000000000000000000000000000000000000000152d02c7e14af6800000
Deployed Bytecode Sourcemap
19782:4769:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1452:66;;;:::i;:::-;;23257:332;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20229:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1264:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;21282:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20462:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23006:243;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19944:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20187:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20269:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23944:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21086:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1367:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24187:242;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21415:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24070:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21549:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;23647:254;;;:::i;:::-;;24441:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1452:66;1489:24;1502:10;1489:12;:24::i;:::-;1452:66::o;23257:332::-;23313:23;23339:14;23354:13;23339:29;;;;;;;;;;;;;;;;;;23313:55;;23404:3;23387:1;:13;;;:20;;23379:29;;;;;;23419:11;23433:1;:9;;;23419:23;;23465:1;23453;:9;;:13;;;;23482:42;23502:1;:13;;;;;;;;;;;;23517:6;23482:42;;;;;;;;;;;;;;;;;;;;;;;;;;23543:5;;;;;;;;;;;:14;;;23558:1;:13;;;;;;;;;;;;23573:6;23543:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23535:46;;;;;;23257:332;;;:::o;20229:33::-;;;;:::o;1264:98::-;1319:4;1337:20;1349:7;1337;:11;;:20;;;;:::i;:::-;1330:27;;1264:98;;;:::o;21282:121::-;21358:37;21366:11;21379:6;21387:7;21358;:37::i;:::-;21282:121;;:::o;20462:37::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23006:243::-;23098:23;23124:14;23139:13;23124:29;;;;;;;;;;;;;;;;;;23098:55;;23186:1;:13;;;;;;;;;;;;23172:27;;:10;:27;;;23164:36;;;;;;23227:14;23211:1;:13;;;:30;;;;;;;;;;;;;;;;;;23006:243;;;:::o;19944:29::-;;;;:::o;20187:35::-;;;;:::o;20269:36::-;;;;:::o;23944:114::-;1205:19;1213:10;1205:7;:19::i;:::-;1197:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24040:10:::1;24023:14;:27;;;;23944:114:::0;:::o;21086:150::-;21160:7;21187:14;21202:13;21187:29;;;;;;;;;;;;;;;;;;:41;;;;;;;;;;;;21180:48;;21086:150;;;:::o;1367:80::-;1205:19;1213:10;1205:7;:19::i;:::-;1197:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1424:18:::1;1434:7;1424:9;:18::i;:::-;1367:80:::0;:::o;24187:242::-;1205:19;1213:10;1205:7;:19::i;:::-;1197:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24322:11:::1;24299:20;:34;;;;24365:9;24344:18;:30;;;;24409:12;24385:21;:36;;;;24187:242:::0;;;:::o;21415:122::-;21491:38;21499:11;21512:6;21520:8;21491:7;:38::i;:::-;21415:122;;:::o;24070:105::-;1205:19;1213:10;1205:7;:19::i;:::-;1197:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24158:9:::1;24144:11;;:23;;;;;;;;;;;;;;;;;;24070:105:::0;:::o;21549:123::-;21626:38;21634:11;21647:6;21655:8;21626:7;:38::i;:::-;21549:123;;:::o;23647:254::-;23700:9;23695:199;23719:14;:21;;;;23715:1;:25;23695:199;;;23799:3;23766:14;23781:1;23766:17;;;;;;;;;;;;;;;;;;:29;;;:36;;:69;;;;;23834:1;23806:14;23821:1;23806:17;;;;;;;;;;;;;;;;;;:25;;;:29;23766:69;23762:121;;;23856:11;23865:1;23856:8;:11::i;:::-;23762:121;23742:3;;;;;23695:199;;;;23647:254::o;24441:107::-;1205:19;1213:10;1205:7;:19::i;:::-;1197:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24528:12:::1;24516:9;:24;;;;24441:107:::0;:::o;262:165::-;352:1;333:21;;:7;:21;;;;325:30;;;;;;369:18;373:4;379:7;369:3;:18::i;:::-;368:19;360:28;;;;;;418:4;395;:11;;:20;407:7;395:20;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;262:165;;:::o;1632:112::-;1685:23;1700:7;1685;:14;;:23;;;;:::i;:::-;1731:7;1718:21;;;;;;;;;;;;1632:112;:::o;741:150::-;813:4;851:1;832:21;;:7;:21;;;;824:30;;;;;;866:4;:11;;:20;878:7;866:20;;;;;;;;;;;;;;;;;;;;;;;;;859:27;;741:150;;;;:::o;21680:1261::-;21786:14;;21780:3;:20;21772:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21856:9;;21847:6;:18;21839:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21933:6;21920:9;;:19;;;;;;;;;;;21995;22041:7;22029:8;:19;22025:396;;;22113:4;22103:6;22080:20;;:29;22079:38;;;;;;22065:52;;22025:396;;;22151:8;22139;:20;22135:286;;;22222:4;22212:6;22191:18;;:27;22190:36;;;;;;22176:50;;22135:286;;;22260:8;22248;:20;22244:177;;;22334:4;22324:6;22300:21;;:30;22299:39;;;;;;22285:53;;22244:177;;;22371:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22244:177;22135:286;22025:396;22439:5;;;;;;;;;;;:18;;;22458:11;;;;;;;;;;;22479:4;22486:11;22439:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22431:68;;;;;;22570:5;;;;;;;;;;;:18;;;22589:10;22609:4;22616:6;22570:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22562:62;;;;;;22671:22;;:::i;:::-;22720:11;22704:1;:13;;:27;;;;;;;;;;;22763:11;22754:6;:20;22742:1;:9;;:32;;;;;22807:8;22801:3;:14;22785:1;:13;;:30;;;;;22826:14;22846:1;22826:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22864:69;22881:10;22893:1;:13;;;22908:1;:9;;;22919:1;:13;;;22864:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21680:1261;;;;;:::o;1523:104::-;1573:20;1585:7;1573;:11;;:20;;;;:::i;:::-;1614:7;1603:19;;;;;;;;;;;;1523:104;:::o;494:168::-;587:1;568:21;;:7;:21;;;;560:30;;;;;;603:18;607:4;613:7;603:3;:18::i;:::-;595:27;;;;;;652:5;629:4;:11;;:20;641:7;629:20;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;494:168;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://e875f058e8b69f6b1d52929a140f8fbb0d18de06de3ede80fed7aaaad7360810
Loading...
Loading
Loading...
Loading
OVERVIEW
OCTO Token Interest Program.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.