Arbitrum Sepolia Testnet

Contract

0x2D25755A8a77b6fF74e74FB81310b9dcB27FDABE

Overview

ETH Balance

0.00162211637 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Deposit1454799912025-04-22 23:59:446 hrs ago1745366384IN
0x2D25755A...cB27FDABE
0.02 ETH0.000052970.1
Deposit1454450042025-04-22 21:33:329 hrs ago1745357612IN
0x2D25755A...cB27FDABE
0.00008894 ETH0.000065220.1
Deposit1454412932025-04-22 21:18:039 hrs ago1745356683IN
0x2D25755A...cB27FDABE
0.00006783 ETH0.000065220.1
Deposit1454401552025-04-22 21:13:199 hrs ago1745356399IN
0x2D25755A...cB27FDABE
0.00007963 ETH0.000065220.1
Deposit1451991072025-04-22 4:25:3326 hrs ago1745295933IN
0x2D25755A...cB27FDABE
0.01 ETH0.000052970.1
Deposit1450111232025-04-21 15:18:5039 hrs ago1745248730IN
0x2D25755A...cB27FDABE
0 ETH0.000066120.1
Deposit1450108662025-04-21 15:17:4639 hrs ago1745248666IN
0x2D25755A...cB27FDABE
0.05 ETH0.000053090.1
Deposit1449044902025-04-21 7:54:1546 hrs ago1745222055IN
0x2D25755A...cB27FDABE
0.01 ETH0.000057260.1
Deposit1448802872025-04-21 6:13:202 days ago1745216000IN
0x2D25755A...cB27FDABE
0 ETH0.000055350.1
Deposit1448802442025-04-21 6:13:092 days ago1745215989IN
0x2D25755A...cB27FDABE
0 ETH0.000055350.1
Deposit1448801812025-04-21 6:12:552 days ago1745215975IN
0x2D25755A...cB27FDABE
0 ETH0.000059740.1
Deposit1448740912025-04-21 5:47:302 days ago1745214450IN
0x2D25755A...cB27FDABE
0.00008976 ETH0.000065220.1
Deposit1448674492025-04-21 5:19:542 days ago1745212794IN
0x2D25755A...cB27FDABE
0.00002896 ETH0.000077740.1
Deposit1447277562025-04-20 19:35:122 days ago1745177712IN
0x2D25755A...cB27FDABE
0.01 ETH0.000056390.1
Deposit1442176622025-04-19 7:58:523 days ago1745049532IN
0x2D25755A...cB27FDABE
0.01 ETH0.000052690.1
Deposit1439757072025-04-18 14:55:254 days ago1744988125IN
0x2D25755A...cB27FDABE
0 ETH0.000055630.1
Deposit1439756372025-04-18 14:55:084 days ago1744988108IN
0x2D25755A...cB27FDABE
0 ETH0.000066010.1
Deposit1438788432025-04-18 8:10:444 days ago1744963844IN
0x2D25755A...cB27FDABE
0.01 ETH0.000052690.1
Deposit1438520482025-04-18 6:19:205 days ago1744957160IN
0x2D25755A...cB27FDABE
0.00007371 ETH0.000065220.1
Deposit1436304072025-04-17 14:57:145 days ago1744901834IN
0x2D25755A...cB27FDABE
0 ETH0.000055630.1
Deposit1436300682025-04-17 14:55:495 days ago1744901749IN
0x2D25755A...cB27FDABE
0 ETH0.000065730.1
Deposit1436296842025-04-17 14:54:125 days ago1744901652IN
0x2D25755A...cB27FDABE
0 ETH0.000065730.1
Deposit1436295642025-04-17 14:53:425 days ago1744901622IN
0x2D25755A...cB27FDABE
0 ETH0.000066010.1
Deposit1435902092025-04-17 12:10:115 days ago1744891811IN
0x2D25755A...cB27FDABE
0.01 ETH0.000052690.1
Deposit1435141322025-04-17 6:52:335 days ago1744872753IN
0x2D25755A...cB27FDABE
0.00008318 ETH0.000065220.1
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1454799912025-04-22 23:59:446 hrs ago1745366384
0x2D25755A...cB27FDABE
0.02 ETH
1451991072025-04-22 4:25:3326 hrs ago1745295933
0x2D25755A...cB27FDABE
0.01 ETH
1450108662025-04-21 15:17:4639 hrs ago1745248666
0x2D25755A...cB27FDABE
0.05 ETH
1449044902025-04-21 7:54:1546 hrs ago1745222055
0x2D25755A...cB27FDABE
0.01 ETH
1447277562025-04-20 19:35:122 days ago1745177712
0x2D25755A...cB27FDABE
0.01 ETH
1442176622025-04-19 7:58:523 days ago1745049532
0x2D25755A...cB27FDABE
0.01 ETH
1438788432025-04-18 8:10:444 days ago1744963844
0x2D25755A...cB27FDABE
0.01 ETH
1435902092025-04-17 12:10:115 days ago1744891811
0x2D25755A...cB27FDABE
0.01 ETH
1429690042025-04-15 16:49:357 days ago1744735775
0x2D25755A...cB27FDABE
0.1 ETH
1429683222025-04-15 16:46:437 days ago1744735603
0x2D25755A...cB27FDABE
0.1 ETH
1429406032025-04-15 14:50:327 days ago1744728632
0x2D25755A...cB27FDABE
0.01 ETH
1428170832025-04-15 6:17:528 days ago1744697872
0x2D25755A...cB27FDABE
0.01 ETH
1425789362025-04-14 13:45:178 days ago1744638317
0x2D25755A...cB27FDABE
0.01 ETH
1425665122025-04-14 12:53:318 days ago1744635211
0x2D25755A...cB27FDABE
0.09 ETH
1425655122025-04-14 12:49:218 days ago1744634961
0x2D25755A...cB27FDABE
0.01 ETH
1424119542025-04-14 2:08:009 days ago1744596480
0x2D25755A...cB27FDABE
0.01 ETH
1420510492025-04-13 1:00:5310 days ago1744506053
0x2D25755A...cB27FDABE
0.01 ETH
1414809392025-04-11 9:25:3811 days ago1744363538
0x2D25755A...cB27FDABE
0.01 ETH
1414721332025-04-11 8:49:0011 days ago1744361340
0x2D25755A...cB27FDABE
0.01 ETH
1412197302025-04-10 15:20:0212 days ago1744298402
0x2D25755A...cB27FDABE
0.01 ETH
1409379532025-04-09 19:44:2013 days ago1744227860
0x2D25755A...cB27FDABE
0.01 ETH
1408544832025-04-09 13:57:1413 days ago1744207034
0x2D25755A...cB27FDABE
0.01 ETH
1407896492025-04-09 9:26:5413 days ago1744190814
0x2D25755A...cB27FDABE
0.01 ETH
1407407412025-04-09 6:03:1014 days ago1744178590
0x2D25755A...cB27FDABE
0.1 ETH
1405877502025-04-08 19:24:5314 days ago1744140293
0x2D25755A...cB27FDABE
0.01 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NovastroYieldEnabler

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : NovastroYieldEnabler.sol
// SPDX-License-Identifier: BSD-4-Clause
pragma solidity ^0.8.17;

import { InYieldFactory } from "../interfaces/InYieldFactory.sol";
import { InYieldManager } from "../interfaces/InYieldManager.sol";
import { IStandardizedYield } from "../interfaces/IStandardizedYield.sol";
import { TokenHelper } from "../core/utils/TokenHelper.sol";

contract NovastroYieldEnabler is TokenHelper {
    event Stake(
        address indexed yieldManager,
        address indexed receiver,
        address indexed asset,
        uint256 amount,
        uint256 amountPYOut
    );

    event Redeem(
        address indexed yieldManager,
        address indexed receiver,
        address indexed asset,
        uint256 amount,
        uint256 amountSYOut
    );

    address public novasYieldFactory;

    constructor(address _novasYieldFactory) {
        novasYieldFactory = _novasYieldFactory;
    }

    function deposit(address _NSY, address _asset, uint256 _amount, uint256 _minOut) external payable {
        address nytManager = InYieldFactory(novasYieldFactory).getNYTManager(_NSY);
        if (_asset == address(0)) {
            IStandardizedYield(_NSY).deposit{ value: msg.value }(nytManager, _asset, _amount, _minOut);
        } else {
            _safeApproveInf(_asset, _NSY);
            _transferIn(_asset, msg.sender, _amount);
            IStandardizedYield(_NSY).deposit(nytManager, _asset, _amount, _minOut);
        }
        (uint256 amountPYOut, , , ) = InYieldManager(nytManager).mintNPY(msg.sender);

        emit Stake(nytManager, msg.sender, _asset, _amount, amountPYOut);
    }

    function redeem(address _NSY, address _asset, uint256 _amount, uint256 _minOut) external {
        address nytManager = InYieldFactory(novasYieldFactory).getNYTManager(_NSY);
        uint256 amountSYOut = InYieldManager(nytManager).redeemNPY(msg.sender, _amount);
        IStandardizedYield(_NSY).redeem(msg.sender, amountSYOut, _asset, _minOut, true);

        emit Redeem(nytManager, msg.sender, _asset, _amount, amountSYOut);
    }
}

File 2 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 3 of 10 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

File 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.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'
        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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 6 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/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");

        (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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 10 : TokenHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

abstract contract TokenHelper {
    using SafeERC20 for IERC20;

    address internal constant NATIVE = address(0);
    uint256 internal constant LOWER_BOUND_APPROVAL = type(uint96).max / 2; // some tokens use 96 bits for approval

    function _transferIn(address token, address from, uint256 amount) internal {
        if (token == NATIVE) require(msg.value == amount, "eth mismatch");
        else if (amount != 0) IERC20(token).safeTransferFrom(from, address(this), amount);
    }

    function _transferFrom(IERC20 token, address from, address to, uint256 amount) internal {
        if (amount != 0) token.safeTransferFrom(from, to, amount);
    }

    function _transferOut(address token, address to, uint256 amount) internal {
        if (amount == 0) return;
        if (token == NATIVE) {
            (bool success, ) = to.call{ value: amount }("");
            require(success, "eth send failed");
        } else {
            IERC20(token).safeTransfer(to, amount);
        }
    }

    function _transferOut(address[] memory tokens, address to, uint256[] memory amounts) internal {
        uint256 numTokens = tokens.length;
        require(numTokens == amounts.length, "length mismatch");
        for (uint256 i = 0; i < numTokens; ) {
            _transferOut(tokens[i], to, amounts[i]);
            unchecked {
                i++;
            }
        }
    }

    function _selfBalance(address token) internal view returns (uint256) {
        return (token == NATIVE) ? address(this).balance : IERC20(token).balanceOf(address(this));
    }

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

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev PLS PAY ATTENTION to tokens that requires the approval to be set to 0 before changing it
    function _safeApprove(address token, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "Safe Approve");
    }

    function _safeApproveInf(address token, address to) internal {
        if (token == NATIVE) return;
        if (IERC20(token).allowance(address(this), to) < LOWER_BOUND_APPROVAL) {
            _safeApprove(token, to, 0);
            _safeApprove(token, to, type(uint256).max);
        }
    }
}

File 8 of 10 : InYieldFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
/*
 * MIT License
 * ===========
 *
 * 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
 */

pragma solidity ^0.8.17;

interface InYieldFactory {
    event CreateYieldContract(address indexed SY, address NPT, address NYTManager, address[] NYTs);

    event SetInterestFeeRate(uint256 newInterestFeeRate);

    event SetRewardFeeRate(uint256 newRewardFeeRate);

    event SetTreasury(address indexed treasury);

    function getNYTs(address SY) external view returns (address[] memory);

    function getNYTManager(address SY) external view returns (address);

    function interestFeeRate() external view returns (uint128);

    function rewardFeeRate() external view returns (uint128);

    function treasury() external view returns (address);

    function bridge() external view returns (address);

    function isNYT(address) external view returns (bool);

    function isNYTManager(address) external view returns (bool);

    function createYieldContract(
        address SY,
        uint8 rewardCycle,
        bool hasNativeYield,
        bool doCacheIndexSameBlock
    ) external returns (address NPT, address NYTManager, address[] memory NYTs);
}

File 9 of 10 : InYieldManager.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;

interface InYieldManager {
    event InitialNovasProjectedYield(
        address indexed user,
        uint256 amount,
        address[] rTokens,
        uint256[] yieldAmounts,
        uint256[] yieldRates
    );

    event SubsequentNovasProjectedYield(
        address indexed user,
        address[] rTokens,
        uint256[] yieldAmounts,
        uint256[] yieldRates
    );

    event RedeemAmount(address indexed user, uint256 amount);

    event RedeemIncomplete(address indexed user, uint256 returnedAmountToNovastro);

    event RedeemInterest(address indexed user, uint256 interestOut);

    event RedeemRewards(address indexed user, uint256 amountRewardsOut);

    event WithdrawFeeToTreasury(uint256[] amountRewardsOut, uint256 syOut);

    event CollectRewardFee(address indexed rewardToken, uint256 amountRewardFee);

    event CollectInterestFee(uint256 amountInterestFee);

    function mintNPY(
        address receiver
    )
        external
        returns (uint256 amountPYOut, address[] memory rTokens, uint256[] memory _yieldAmount, uint16 newYieldEpoch);

    function redeemNPY(address receiver, uint256 amount) external returns (uint256 amountSyOut);

    function unwrapYield(address nYield, address receiver, uint256 amount) external returns (uint256 yield);

    function getRewardTokens() external view returns (address[] memory);

    function SY() external view returns (address);

    function factory() external view returns (address);

    function initialize(address[] calldata _nYieldContracts) external;

    function pyIndexCurrent() external returns (uint256);

    function pyIndexStored() external view returns (uint256);

    function doCacheIndexSameBlock() external view returns (bool);
}

File 10 of 10 : IStandardizedYield.sol
// SPDX-License-Identifier: GPL-3.0-or-later
/*
 * MIT License
 * ===========
 *
 * 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
 */

pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";

interface IStandardizedYield is IERC20Metadata {
    /// @dev Emitted when any base tokens is deposited to mint shares
    event Deposit(
        address indexed caller,
        address indexed receiver,
        address indexed tokenIn,
        uint256 amountDeposited,
        uint256 amountSyOut
    );

    /// @dev Emitted when any shares are redeemed for base tokens
    event Redeem(
        address indexed caller,
        address indexed receiver,
        address indexed tokenOut,
        uint256 amountSyToRedeem,
        uint256 amountTokenOut
    );

    /// @dev check `assetInfo()` for more information
    enum AssetType {
        TOKEN,
        LIQUIDITY
    }

    /// @dev Emitted when (`user`) claims their rewards
    event ClaimRewards(address indexed user, address[] rewardTokens, uint256[] rewardAmounts);

    /**
     * @notice mints an amount of shares by depositing a base token.
     * @param receiver shares recipient address
     * @param tokenIn address of the base tokens to mint shares
     * @param amountTokenToDeposit amount of base tokens to be transferred from (`msg.sender`)
     * @param minSharesOut reverts if amount of shares minted is lower than this
     * @return amountSharesOut amount of shares minted
     * @dev Emits a {Deposit} event
     *
     * Requirements:
     * - (`tokenIn`) must be a valid base token.
     */
    function deposit(
        address receiver,
        address tokenIn,
        uint256 amountTokenToDeposit,
        uint256 minSharesOut
    ) external payable returns (uint256 amountSharesOut);

    /**
     * @notice redeems an amount of base tokens by burning some shares
     * @param receiver recipient address
     * @param amountSharesToRedeem amount of shares to be burned
     * @param tokenOut address of the base token to be redeemed
     * @param minTokenOut reverts if amount of base token redeemed is lower than this
     * @param burnFromInternalBalance if true, burns from balance of `address(this)`, otherwise burns from `msg.sender`
     * @return amountTokenOut amount of base tokens redeemed
     * @dev Emits a {Redeem} event
     *
     * Requirements:
     * - (`tokenOut`) must be a valid base token.
     */
    function redeem(
        address receiver,
        uint256 amountSharesToRedeem,
        address tokenOut,
        uint256 minTokenOut,
        bool burnFromInternalBalance
    ) external returns (uint256 amountTokenOut);

    /**
     * @notice exchangeRate * syBalance / 1e18 must return the asset balance of the account
     * @notice vice-versa, if a user uses some amount of tokens equivalent to X asset, the amount of sy
     he can mint must be X * exchangeRate / 1e18
     * @dev SYUtils's assetToSy & syToAsset should be used instead of raw multiplication
     & division
     */
    function exchangeRate() external view returns (uint256 res);

    /**
     * @notice claims reward for (`user`)
     * @param user the user receiving their rewards
     * @return rewardAmounts an array of reward amounts in the same order as `getRewardTokens`
     * @dev
     * Emits a `ClaimRewards` event
     * See {getRewardTokens} for list of reward tokens
     */
    function claimRewards(address user) external returns (uint256[] memory rewardAmounts);

    /**
     * @notice get the amount of unclaimed rewards for (`user`)
     * @param user the user to check for
     * @return rewardAmounts an array of reward amounts in the same order as `getRewardTokens`
     */
    function accruedRewards(address user) external view returns (uint256[] memory rewardAmounts);

    function rewardIndexesCurrent() external returns (uint256[] memory indexes);

    function rewardIndexesStored() external view returns (uint256[] memory indexes);

    /**
     * @notice returns the list of reward token addresses
     */
    function getRewardTokens() external view returns (address[] memory);

    /**
     * @notice yieldRate should be calculated based on the previous 4 epochs (28 days) reward token yield
     */
    function getRewardYieldRates() external view returns (address[] memory tokens, uint256[] memory res);

    /**
     * @notice returns the address of the underlying yield token
     */
    function yieldToken() external view returns (address);

    /**
     * @notice yieldRate should be calculated based on the previous 4 epochs (28 days) native yield
     */
    function getNativeYieldRate() external view returns (uint256);

    /**
     * @notice returns all tokens that can mint this SY
     */
    function getTokensIn() external view returns (address[] memory res);

    /**
     * @notice returns all tokens that can be redeemed by this SY
     */
    function getTokensOut() external view returns (address[] memory res);

    function isValidTokenIn(address token) external view returns (bool);

    function isValidTokenOut(address token) external view returns (bool);

    function previewDeposit(
        address tokenIn,
        uint256 amountTokenToDeposit
    ) external view returns (uint256 amountSharesOut);

    function previewRedeem(
        address tokenOut,
        uint256 amountSharesToRedeem
    ) external view returns (uint256 amountTokenOut);

    /**
     * @notice This function contains information to interpret what the asset is
     * @return assetType the type of the asset (0 for ERC20 tokens, 1 for AMM liquidity tokens,
        2 for bridged yield bearing tokens like wstETH, rETH on Arbi whose the underlying asset
        doesn't exist on the chain)
     * @return assetAddress the address of the asset
     * @return assetDecimals the decimals of the asset
     */
    function assetInfo() external view returns (AssetType assetType, address assetAddress, uint8 assetDecimals);
}

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

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_novasYieldFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"yieldManager","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountSYOut","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"yieldManager","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountPYOut","type":"uint256"}],"name":"Stake","type":"event"},{"inputs":[{"internalType":"address","name":"_NSY","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"novasYieldFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_NSY","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600f57600080fd5b506040516111b33803806111b3833981016040819052602c916050565b600080546001600160a01b0319166001600160a01b0392909216919091179055607e565b600060208284031215606157600080fd5b81516001600160a01b0381168114607757600080fd5b9392505050565b6111268061008d6000396000f3fe6080604052600436106100345760003560e01c806320e8c565146100395780634be474181461004e57806399883b3f1461006e575b600080fd5b61004c610047366004610d8a565b6100c4565b005b34801561005a57600080fd5b5061004c610069366004610d8a565b61042e565b34801561007a57600080fd5b5060005461009b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b600080546040517fd9c4a3d200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529091169063d9c4a3d290602401602060405180830381865afa158015610135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101599190610dd0565b905073ffffffffffffffffffffffffffffffffffffffff8416610226576040517f20e8c56500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152858116602483015260448201859052606482018490528616906320e8c56590349060840160206040518083038185885af11580156101fb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906102209190610df4565b506102e5565b6102308486610667565b61023b843385610786565b6040517f20e8c56500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152858116602483015260448201859052606482018490528616906320e8c565906084016020604051808303816000875af11580156102bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e39190610df4565b505b6040517fe25c56e700000000000000000000000000000000000000000000000000000000815233600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063e25c56e7906024016000604051808303816000875af1158015610354573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261039a9190810190610f35565b50505090508473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f592d8fba044f9498232ce6c14dc7eb3a60f723f4d6731918aea4f6ae0c081044878560405161041e929190918252602082015260400190565b60405180910390a4505050505050565b600080546040517fd9c4a3d200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529091169063d9c4a3d290602401602060405180830381865afa15801561049f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c39190610dd0565b6040517fa6147e730000000000000000000000000000000000000000000000000000000081523360048201526024810185905290915060009073ffffffffffffffffffffffffffffffffffffffff83169063a6147e73906044016020604051808303816000875af115801561053c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105609190610df4565b6040517f769f8e5d0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff878116604483015260648201869052600160848301529192509087169063769f8e5d9060a4016020604051808303816000875af11580156105ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106119190610df4565b50604080518581526020810183905273ffffffffffffffffffffffffffffffffffffffff808816923392918616917faee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1c910161041e565b73ffffffffffffffffffffffffffffffffffffffff8216610686575050565b61069d60026bffffffffffffffffffffffff611014565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526bffffffffffffffffffffffff929092169184169063dd62ed3e90604401602060405180830381865afa158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190610df4565b1015610782576107578282600061083c565b61078282827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61083c565b5050565b73ffffffffffffffffffffffffffffffffffffffff83166108145780341461080f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f657468206d69736d61746368000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505050565b801561080f5761080f73ffffffffffffffffffffffffffffffffffffffff84168330846109ac565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916108d3919061108a565b6000604051808303816000865af19150503d8060008114610910576040519150601f19603f3d011682016040523d82523d6000602084013e610915565b606091505b509150915081801561093f57508051158061093f57508080602001905181019061093f91906110a6565b6109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5361666520417070726f766500000000000000000000000000000000000000006044820152606401610806565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610a41908590610a47565b50505050565b6000610aa9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610b569092919063ffffffff16565b9050805160001480610aca575080806020019051810190610aca91906110a6565b61080f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610806565b6060610b658484600085610b6d565b949350505050565b606082471015610bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610806565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610c28919061108a565b60006040518083038185875af1925050503d8060008114610c65576040519150601f19603f3d011682016040523d82523d6000602084013e610c6a565b606091505b5091509150610c7b87838387610c86565b979650505050505050565b60608315610d1c578251600003610d155773ffffffffffffffffffffffffffffffffffffffff85163b610d15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610806565b5081610b65565b610b658383815115610d315781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080691906110c8565b73ffffffffffffffffffffffffffffffffffffffff81168114610d8757600080fd5b50565b60008060008060808587031215610da057600080fd5b8435610dab81610d65565b93506020850135610dbb81610d65565b93969395505050506040820135916060013590565b600060208284031215610de257600080fd5b8151610ded81610d65565b9392505050565b600060208284031215610e0657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610e8357610e83610e0d565b604052919050565b600067ffffffffffffffff821115610ea557610ea5610e0d565b5060051b60200190565b600082601f830112610ec057600080fd5b81516020610ed5610ed083610e8b565b610e3c565b8083825260208201915060208460051b870101935086841115610ef757600080fd5b602086015b84811015610f135780518352918301918301610efc565b509695505050505050565b805161ffff81168114610f3057600080fd5b919050565b60008060008060808587031215610f4b57600080fd5b8451935060208086015167ffffffffffffffff80821115610f6b57600080fd5b818801915088601f830112610f7f57600080fd5b8151610f8d610ed082610e8b565b81815260059190911b8301840190848101908b831115610fac57600080fd5b938501935b82851015610fd3578451610fc481610d65565b82529385019390850190610fb1565b60408b01519098509450505080831115610fec57600080fd5b5050610ffa87828801610eaf565b92505061100960608601610f1e565b905092959194509250565b60006bffffffffffffffffffffffff8084168061105a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b92169190910492915050565b60005b83811015611081578181015183820152602001611069565b50506000910152565b6000825161109c818460208701611066565b9190910192915050565b6000602082840312156110b857600080fd5b81518015158114610ded57600080fd5b60208152600082518060208401526110e7816040850160208701611066565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea164736f6c6343000819000a00000000000000000000000071152f29b48a1925fa1c9e1d8eb49b1677c43dda

Deployed Bytecode

0x6080604052600436106100345760003560e01c806320e8c565146100395780634be474181461004e57806399883b3f1461006e575b600080fd5b61004c610047366004610d8a565b6100c4565b005b34801561005a57600080fd5b5061004c610069366004610d8a565b61042e565b34801561007a57600080fd5b5060005461009b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b600080546040517fd9c4a3d200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529091169063d9c4a3d290602401602060405180830381865afa158015610135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101599190610dd0565b905073ffffffffffffffffffffffffffffffffffffffff8416610226576040517f20e8c56500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152858116602483015260448201859052606482018490528616906320e8c56590349060840160206040518083038185885af11580156101fb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906102209190610df4565b506102e5565b6102308486610667565b61023b843385610786565b6040517f20e8c56500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152858116602483015260448201859052606482018490528616906320e8c565906084016020604051808303816000875af11580156102bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e39190610df4565b505b6040517fe25c56e700000000000000000000000000000000000000000000000000000000815233600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063e25c56e7906024016000604051808303816000875af1158015610354573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261039a9190810190610f35565b50505090508473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f592d8fba044f9498232ce6c14dc7eb3a60f723f4d6731918aea4f6ae0c081044878560405161041e929190918252602082015260400190565b60405180910390a4505050505050565b600080546040517fd9c4a3d200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529091169063d9c4a3d290602401602060405180830381865afa15801561049f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c39190610dd0565b6040517fa6147e730000000000000000000000000000000000000000000000000000000081523360048201526024810185905290915060009073ffffffffffffffffffffffffffffffffffffffff83169063a6147e73906044016020604051808303816000875af115801561053c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105609190610df4565b6040517f769f8e5d0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff878116604483015260648201869052600160848301529192509087169063769f8e5d9060a4016020604051808303816000875af11580156105ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106119190610df4565b50604080518581526020810183905273ffffffffffffffffffffffffffffffffffffffff808816923392918616917faee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1c910161041e565b73ffffffffffffffffffffffffffffffffffffffff8216610686575050565b61069d60026bffffffffffffffffffffffff611014565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526bffffffffffffffffffffffff929092169184169063dd62ed3e90604401602060405180830381865afa158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190610df4565b1015610782576107578282600061083c565b61078282827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61083c565b5050565b73ffffffffffffffffffffffffffffffffffffffff83166108145780341461080f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f657468206d69736d61746368000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505050565b801561080f5761080f73ffffffffffffffffffffffffffffffffffffffff84168330846109ac565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916108d3919061108a565b6000604051808303816000865af19150503d8060008114610910576040519150601f19603f3d011682016040523d82523d6000602084013e610915565b606091505b509150915081801561093f57508051158061093f57508080602001905181019061093f91906110a6565b6109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5361666520417070726f766500000000000000000000000000000000000000006044820152606401610806565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610a41908590610a47565b50505050565b6000610aa9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610b569092919063ffffffff16565b9050805160001480610aca575080806020019051810190610aca91906110a6565b61080f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610806565b6060610b658484600085610b6d565b949350505050565b606082471015610bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610806565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610c28919061108a565b60006040518083038185875af1925050503d8060008114610c65576040519150601f19603f3d011682016040523d82523d6000602084013e610c6a565b606091505b5091509150610c7b87838387610c86565b979650505050505050565b60608315610d1c578251600003610d155773ffffffffffffffffffffffffffffffffffffffff85163b610d15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610806565b5081610b65565b610b658383815115610d315781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080691906110c8565b73ffffffffffffffffffffffffffffffffffffffff81168114610d8757600080fd5b50565b60008060008060808587031215610da057600080fd5b8435610dab81610d65565b93506020850135610dbb81610d65565b93969395505050506040820135916060013590565b600060208284031215610de257600080fd5b8151610ded81610d65565b9392505050565b600060208284031215610e0657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610e8357610e83610e0d565b604052919050565b600067ffffffffffffffff821115610ea557610ea5610e0d565b5060051b60200190565b600082601f830112610ec057600080fd5b81516020610ed5610ed083610e8b565b610e3c565b8083825260208201915060208460051b870101935086841115610ef757600080fd5b602086015b84811015610f135780518352918301918301610efc565b509695505050505050565b805161ffff81168114610f3057600080fd5b919050565b60008060008060808587031215610f4b57600080fd5b8451935060208086015167ffffffffffffffff80821115610f6b57600080fd5b818801915088601f830112610f7f57600080fd5b8151610f8d610ed082610e8b565b81815260059190911b8301840190848101908b831115610fac57600080fd5b938501935b82851015610fd3578451610fc481610d65565b82529385019390850190610fb1565b60408b01519098509450505080831115610fec57600080fd5b5050610ffa87828801610eaf565b92505061100960608601610f1e565b905092959194509250565b60006bffffffffffffffffffffffff8084168061105a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b92169190910492915050565b60005b83811015611081578181015183820152602001611069565b50506000910152565b6000825161109c818460208701611066565b9190910192915050565b6000602082840312156110b857600080fd5b81518015158114610ded57600080fd5b60208152600082518060208401526110e7816040850160208701611066565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea164736f6c6343000819000a

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

00000000000000000000000071152f29b48a1925fa1c9e1d8eb49b1677c43dda

-----Decoded View---------------
Arg [0] : _novasYieldFactory (address): 0x71152F29b48A1925fa1c9e1d8EB49B1677C43dda

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000071152f29b48a1925fa1c9e1d8eb49b1677c43dda


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.