ETH Price: $3,827.42 (+5.80%)

Contract

0x56B3c8eF8A095f8637B6A84942aA898326B82b91
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit213322482024-12-04 22:53:351 hr ago1733352815IN
0x56B3c8eF...326B82b91
0 ETH0.0025007226.5
Deposit213080462024-12-01 13:45:593 days ago1733060759IN
0x56B3c8eF...326B82b91
0 ETH0.0010233915.1186373
Deposit211567162024-11-10 10:37:3524 days ago1731235055IN
0x56B3c8eF...326B82b91
0 ETH0.001109712.38468545
Deposit211506442024-11-09 14:18:2325 days ago1731161903IN
0x56B3c8eF...326B82b91
0 ETH0.0013672116.12447573
Deposit211145422024-11-04 13:20:1130 days ago1730726411IN
0x56B3c8eF...326B82b91
0 ETH0.000418995.78
Deposit211073022024-11-03 13:05:5931 days ago1730639159IN
0x56B3c8eF...326B82b91
0 ETH0.00082859.24636153
Deposit208843422024-10-03 10:18:2362 days ago1727950703IN
0x56B3c8eF...326B82b91
0 ETH0.000598596.68047743
Deposit206183712024-08-27 7:17:2399 days ago1724743043IN
0x56B3c8eF...326B82b91
0 ETH0.000059740.82407178
Deposit205842902024-08-22 12:57:23104 days ago1724331443IN
0x56B3c8eF...326B82b91
0 ETH0.00010761.48437685
Deposit205184352024-08-13 8:13:35113 days ago1723536815IN
0x56B3c8eF...326B82b91
0 ETH0.000624331.8138131
Deposit205050552024-08-11 11:24:35115 days ago1723375475IN
0x56B3c8eF...326B82b91
0 ETH0.000118431.63385663
Deposit204984582024-08-10 13:18:47116 days ago1723295927IN
0x56B3c8eF...326B82b91
0 ETH0.000382391.16900706
Deposit204966542024-08-10 7:15:11116 days ago1723274111IN
0x56B3c8eF...326B82b91
0 ETH0.000093951.38792638
Deposit204580042024-08-04 21:52:59122 days ago1722808379IN
0x56B3c8eF...326B82b91
0 ETH0.00016871.73636921
Deposit204322662024-08-01 7:40:23125 days ago1722498023IN
0x56B3c8eF...326B82b91
0 ETH0.000469535.24016864
Deposit204253952024-07-31 8:39:23126 days ago1722415163IN
0x56B3c8eF...326B82b91
0 ETH0.002125486.17537384
Deposit204247252024-07-31 6:24:59126 days ago1722407099IN
0x56B3c8eF...326B82b91
0 ETH0.000306734.53144196
Deposit204182922024-07-30 8:49:47127 days ago1722329387IN
0x56B3c8eF...326B82b91
0 ETH0.001834723.4477287
Deposit203821622024-07-25 7:46:35132 days ago1721893595IN
0x56B3c8eF...326B82b91
0 ETH0.000263333.10566802
Deposit203743732024-07-24 5:40:35133 days ago1721799635IN
0x56B3c8eF...326B82b91
0 ETH0.000226413.122862
Deposit203742762024-07-24 5:21:11133 days ago1721798471IN
0x56B3c8eF...326B82b91
0 ETH0.000179182
Deposit202809792024-07-11 4:49:35146 days ago1720673375IN
0x56B3c8eF...326B82b91
0 ETH0.000159482.2
Deposit202413212024-07-05 15:52:35152 days ago1720194755IN
0x56B3c8eF...326B82b91
0 ETH0.000820249.15416391
Deposit201099832024-06-17 7:21:11170 days ago1718608871IN
0x56B3c8eF...326B82b91
0 ETH0.00024143.32963611
Deposit200976812024-06-15 14:06:59172 days ago1718460419IN
0x56B3c8eF...326B82b91
0 ETH0.000583097.28305401
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FxnDepositor

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 8 : FxnDepositor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import "./interfaces/IStaker.sol";
import "./interfaces/ITokenMinter.sol";
import "./interfaces/IVoteEscrow.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';


contract FxnDepositor{
    using SafeERC20 for IERC20;

    address public constant fxn = address(0x365AccFCa291e7D3914637ABf1F7635dB165Bb09);
    address public constant escrow = address(0xEC6B8A3F3605B083F7044C0F31f2cac0caf1d469);
    uint256 private constant MAXTIME = 4 * 365 * 86400;
    uint256 private constant WEEK = 7 * 86400;

    uint256 public constant DENOMINATOR = 10000;
    uint256 public platformHolding = 0;
    address public platformDeposit;

    address public owner;
    address public pendingOwner;
    address public immutable staker;
    address public immutable minter;
    uint256 public unlockTime;

    event SetPendingOwner(address indexed _address);
    event OwnerChanged(address indexed _address);
    event ChangeHoldingRate(uint256 _rate, address _forward);

    constructor(address _staker, address _minter){
        staker = _staker;
        minter = _minter;
        owner = msg.sender;
    }

    //set next owner
    function setPendingOwner(address _po) external {
        require(msg.sender == owner, "!auth");
        pendingOwner = _po;
        emit SetPendingOwner(_po);
    }

    //claim ownership
    function acceptPendingOwner() external {
        require(msg.sender == pendingOwner, "!p_owner");

        owner = pendingOwner;
        pendingOwner = address(0);
        emit OwnerChanged(owner);
    }

    function setPlatformHoldings(uint256 _holdings, address _deposit) external{
        require(msg.sender==owner, "!auth");

        require(_holdings <= 2000, "too high");
        if(_holdings > 0){
            require(_deposit != address(0),"need address");
        }
        platformHolding = _holdings;
        platformDeposit = _deposit;
        emit ChangeHoldingRate(_holdings, _deposit);
    }

    function initialLock() external{
        require(msg.sender==owner, "!auth");

        uint256 vefxn = IERC20(escrow).balanceOf(staker);
        uint256 locked = IVoteEscrow(escrow).locked(staker);
        if(vefxn == 0 || vefxn == locked){
            uint256 unlockAt = block.timestamp + MAXTIME;
            uint256 unlockInWeeks = (unlockAt/WEEK)*WEEK;

            //release old lock if exists
            IStaker(staker).release();
            //create new lock
            uint256 fxnBalanceStaker = IERC20(fxn).balanceOf(staker);
            IStaker(staker).createLock(fxnBalanceStaker, unlockAt);
            unlockTime = unlockInWeeks;
        }
    }

    //lock fxn
    function _lockFxn() internal {
        uint256 fxnBalance = IERC20(fxn).balanceOf(address(this));
        if(fxnBalance > 0){
            IERC20(fxn).safeTransfer(staker, fxnBalance);
        }
        
        //increase ammount
        uint256 fxnBalanceStaker = IERC20(fxn).balanceOf(staker);
        if(fxnBalanceStaker == 0){
            return;
        }
        
        //increase amount
        IStaker(staker).increaseAmount(fxnBalanceStaker);
        

        uint256 unlockAt = block.timestamp + MAXTIME;
        uint256 unlockInWeeks = (unlockAt/WEEK)*WEEK;

        //increase time too if over 1 week buffer
        if( unlockInWeeks - unlockTime >= 1){
            IStaker(staker).increaseTime(unlockAt);
            unlockTime = unlockInWeeks;
        }
    }

    function lockFxn() external {
        _lockFxn();
    }

    //deposit fxn for cvxfxn
    function deposit(uint256 _amount, bool _lock) public {
        require(_amount > 0,"!>0");

        //mint for msg.sender
        ITokenMinter(minter).mint(msg.sender,_amount);

        //check if some should be withheld
        if(platformHolding > 0){
            //can only withhold if there is surplus locked
            if(_amount + IERC20(minter).totalSupply() <= IVoteEscrow(escrow).locked(staker) ){
                uint256 holdAmt = _amount * platformHolding / DENOMINATOR;
                IERC20(fxn).safeTransferFrom(msg.sender, platformDeposit, holdAmt);
                _amount -= holdAmt;
            }
        }
        
        if(_lock){
            //lock immediately, transfer directly to staker to skip an erc20 transfer
            IERC20(fxn).safeTransferFrom(msg.sender, staker, _amount);
            _lockFxn();
        }else{
            //move tokens here
            IERC20(fxn).safeTransferFrom(msg.sender, address(this), _amount);
        }
    }

    function depositAll(bool _lock) external{
        uint256 fxnBal = IERC20(fxn).balanceOf(msg.sender);
        deposit(fxnBal,_lock);
    }
}

File 2 of 8 : IVoteEscrow.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface IVoteEscrow {
    function locked(address) external view returns(uint256);
    function locked__end(address) external view returns(uint256);
    function create_lock(uint256, uint256) external;
    function increase_amount(uint256) external;
    function increase_unlock_time(uint256) external;
    function withdraw() external;
    function checkpoint() external;
    function admin() external view returns (address);
    function smart_wallet_checker() external view returns (address);
    function commit_smart_wallet_checker(address _checker) external;
    function apply_smart_wallet_checker() external;
}

File 3 of 8 : ITokenMinter.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface ITokenMinter{
    function mint(address,uint256) external;
    function burn(address,uint256) external;
    function setOperator(address _operator, bool _active) external;
}

File 4 of 8 : IStaker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface IStaker{
    function createLock(uint256, uint256) external returns (bool);
    function increaseAmount(uint256) external returns (bool);
    function increaseTime(uint256) external returns (bool);
    function release() external returns (bool);
    function checkpointFeeRewards(address) external;
    function claimFees(address,address,address) external returns (uint256);
    function voteGaugeWeight(address,uint256) external returns (bool);
    function operator() external view returns (address);
    function setMinterOperator(address _minter, address _operator, bool _active) external;
    function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory);
}

File 5 of 8 : 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 6 of 8 : 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 7 of 8 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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.
 */
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].
     */
    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 8 of 8 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_minter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_rate","type":"uint256"},{"indexed":false,"internalType":"address","name":"_forward","type":"address"}],"name":"ChangeHoldingRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetPendingOwner","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_lock","type":"bool"}],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockFxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformDeposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformHolding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_holdings","type":"uint256"},{"internalType":"address","name":"_deposit","type":"address"}],"name":"setPlatformHoldings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c06040526000805534801561001457600080fd5b506040516114a43803806114a483398101604081905261003391610078565b6001600160a01b039182166080521660a052600280546001600160a01b031916331790556100ab565b80516001600160a01b038116811461007357600080fd5b919050565b6000806040838503121561008b57600080fd5b6100948361005c565b91506100a26020840161005c565b90509250929050565b60805160a05161137961012b60003960008181610115015281816106e701526107f301526000818161019e015281816102c30152818161036201528181610430015281816104ca015281816105720152818161076c015281816108ff01528181610bed01528181610c2901528181610cd20152610da101526113796000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063921bf092116100a2578063a3c539e411610071578063a3c539e41461021c578063c42069ec1461022f578063cd1f7e7214610242578063e2fdcc171461024b578063e30c39781461026657600080fd5b8063921bf092146101e657806399f4a389146101ee5780639a408321146101f65780639f4003a01461020957600080fd5b80635ebaf1db116100de5780635ebaf1db14610199578063836f8f20146101c05780638da5cb5b146101ca578063918f8674146101dd57600080fd5b806307546172146101105780631c025a8714610154578063251c1aa314610167578063383d5dc81461017e575b600080fd5b6101377f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610137906001600160a01b031681565b61017060045481565b60405190815260200161014b565b61013773365accfca291e7d3914637abf1f7635db165bb0981565b6101377f000000000000000000000000000000000000000000000000000000000000000081565b6101c8610279565b005b600254610137906001600160a01b031681565b61017061271081565b6101c86105f2565b6101c86105fc565b6101c8610204366004611136565b610695565b6101c8610217366004611166565b61094c565b6101c861022a3660046111a6565b6109ce565b6101c861023d3660046111d2565b610ae1565b61017060005481565b61013773ec6b8a3f3605b083f7044c0f31f2cac0caf1d46981565b600354610137906001600160a01b031681565b6002546001600160a01b031633146102ac5760405162461bcd60e51b81526004016102a3906111ed565b60405180910390fd5b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015260009073ec6b8a3f3605b083f7044c0f31f2cac0caf1d469906370a0823190602401602060405180830381865afa158015610327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034b919061120c565b60405163cbf9fe5f60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015290915060009073ec6b8a3f3605b083f7044c0f31f2cac0caf1d4699063cbf9fe5f90602401602060405180830381865afa1580156103c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ed919061120c565b90508115806103fb57508082145b156105ee576000610410630784ce004261123b565b9050600062093a806104228184611253565b61042c9190611275565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166386d1a69f6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190611294565b506040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa15801561052e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610552919061120c565b604051635a9602ff60e11b815260048101829052602481018590529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b52c05fe906044016020604051808303816000875af11580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190611294565b5050600455505b5050565b6105fa610b55565b565b6003546001600160a01b031633146106415760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016102a3565b60038054600280546001600160a01b0383166001600160a01b031991821681179092559091169091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a2565b600082116106cb5760405162461bcd60e51b81526020600482015260036024820152620213e360ec1b60448201526064016102a3565b6040516340c10f1960e01b8152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561073357600080fd5b505af1158015610747573d6000803e3d6000fd5b505050506000805411156108de5760405163cbf9fe5f60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015273ec6b8a3f3605b083f7044c0f31f2cac0caf1d4699063cbf9fe5f90602401602060405180830381865afa1580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f1919061120c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610873919061120c565b61087d908461123b565b116108de576000612710600054846108959190611275565b61089f9190611253565b6001549091506108d09073365accfca291e7d3914637abf1f7635db165bb099033906001600160a01b031684610e23565b6108da81846112b1565b9250505b801561092c5761092473365accfca291e7d3914637abf1f7635db165bb09337f000000000000000000000000000000000000000000000000000000000000000085610e23565b6105ee610b55565b6105ee73365accfca291e7d3914637abf1f7635db165bb09333085610e23565b6040516370a0823160e01b815233600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c2919061120c565b90506105ee8183610695565b6002546001600160a01b031633146109f85760405162461bcd60e51b81526004016102a3906111ed565b6107d0821115610a355760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064016102a3565b8115610a80576001600160a01b038116610a805760405162461bcd60e51b815260206004820152600c60248201526b6e656564206164647265737360a01b60448201526064016102a3565b6000829055600180546001600160a01b0319166001600160a01b0383169081179091556040805184815260208101929092527f6c3f3e1f4b11154b43d5661c6fdf473cb40fbf8e4a8f93a53cbb4c42772901a4910160405180910390a15050565b6002546001600160a01b03163314610b0b5760405162461bcd60e51b81526004016102a3906111ed565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6040516370a0823160e01b815230600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb919061120c565b90508015610c1257610c1273365accfca291e7d3914637abf1f7635db165bb097f000000000000000000000000000000000000000000000000000000000000000083610e8e565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa158015610c8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb1919061120c565b905080610cbc575050565b604051630aa2b75d60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906315456eba906024016020604051808303816000875af1158015610d23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d479190611294565b506000610d58630784ce004261123b565b9050600062093a80610d6a8184611253565b610d749190611275565b9050600160045482610d8691906112b1565b10610e1d57604051631e4d150d60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690633c9a2a1a906024016020604051808303816000875af1158015610df2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e169190611294565b5060048190555b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e1d9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ec3565b6040516001600160a01b038316602482015260448101829052610ebe90849063a9059cbb60e01b90606401610e57565b505050565b6000610f18826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f989092919063ffffffff16565b9050805160001480610f39575080806020019051810190610f399190611294565b610ebe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a3565b6060610fa78484600085610faf565b949350505050565b6060824710156110105760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a3565b600080866001600160a01b0316858760405161102c91906112f4565b60006040518083038185875af1925050503d8060008114611069576040519150601f19603f3d011682016040523d82523d6000602084013e61106e565b606091505b509150915061107f8783838761108a565b979650505050505050565b606083156110f65782516110ef576001600160a01b0385163b6110ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a3565b5081610fa7565b610fa7838381511561110b5781518083602001fd5b8060405162461bcd60e51b81526004016102a39190611310565b801515811461113357600080fd5b50565b6000806040838503121561114957600080fd5b82359150602083013561115b81611125565b809150509250929050565b60006020828403121561117857600080fd5b813561118381611125565b9392505050565b80356001600160a01b03811681146111a157600080fd5b919050565b600080604083850312156111b957600080fd5b823591506111c96020840161118a565b90509250929050565b6000602082840312156111e457600080fd5b6111838261118a565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60006020828403121561121e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561124e5761124e611225565b500190565b60008261127057634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561128f5761128f611225565b500290565b6000602082840312156112a657600080fd5b815161118381611125565b6000828210156112c3576112c3611225565b500390565b60005b838110156112e35781810151838201526020016112cb565b83811115610e1d5750506000910152565b600082516113068184602087016112c8565b9190910192915050565b602081526000825180602084015261132f8160408501602087016112c8565b601f01601f1916919091016040019291505056fea26469706673582212200eaa9e7a64cf7e3ec722c89481faf6cf6ad5b1339c8972f91def1ccd6e5a85f364736f6c634300080a0033000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb3

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063921bf092116100a2578063a3c539e411610071578063a3c539e41461021c578063c42069ec1461022f578063cd1f7e7214610242578063e2fdcc171461024b578063e30c39781461026657600080fd5b8063921bf092146101e657806399f4a389146101ee5780639a408321146101f65780639f4003a01461020957600080fd5b80635ebaf1db116100de5780635ebaf1db14610199578063836f8f20146101c05780638da5cb5b146101ca578063918f8674146101dd57600080fd5b806307546172146101105780631c025a8714610154578063251c1aa314610167578063383d5dc81461017e575b600080fd5b6101377f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb381565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610137906001600160a01b031681565b61017060045481565b60405190815260200161014b565b61013773365accfca291e7d3914637abf1f7635db165bb0981565b6101377f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788181565b6101c8610279565b005b600254610137906001600160a01b031681565b61017061271081565b6101c86105f2565b6101c86105fc565b6101c8610204366004611136565b610695565b6101c8610217366004611166565b61094c565b6101c861022a3660046111a6565b6109ce565b6101c861023d3660046111d2565b610ae1565b61017060005481565b61013773ec6b8a3f3605b083f7044c0f31f2cac0caf1d46981565b600354610137906001600160a01b031681565b6002546001600160a01b031633146102ac5760405162461bcd60e51b81526004016102a3906111ed565b60405180910390fd5b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788116600482015260009073ec6b8a3f3605b083f7044c0f31f2cac0caf1d469906370a0823190602401602060405180830381865afa158015610327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034b919061120c565b60405163cbf9fe5f60e01b81526001600160a01b037f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788116600482015290915060009073ec6b8a3f3605b083f7044c0f31f2cac0caf1d4699063cbf9fe5f90602401602060405180830381865afa1580156103c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ed919061120c565b90508115806103fb57508082145b156105ee576000610410630784ce004261123b565b9050600062093a806104228184611253565b61042c9190611275565b90507f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b03166386d1a69f6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190611294565b506040516370a0823160e01b81526001600160a01b037f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788116600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa15801561052e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610552919061120c565b604051635a9602ff60e11b815260048101829052602481018590529091507f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b03169063b52c05fe906044016020604051808303816000875af11580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190611294565b5050600455505b5050565b6105fa610b55565b565b6003546001600160a01b031633146106415760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016102a3565b60038054600280546001600160a01b0383166001600160a01b031991821681179092559091169091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a2565b600082116106cb5760405162461bcd60e51b81526020600482015260036024820152620213e360ec1b60448201526064016102a3565b6040516340c10f1960e01b8152336004820152602481018390527f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb36001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561073357600080fd5b505af1158015610747573d6000803e3d6000fd5b505050506000805411156108de5760405163cbf9fe5f60e01b81526001600160a01b037f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788116600482015273ec6b8a3f3605b083f7044c0f31f2cac0caf1d4699063cbf9fe5f90602401602060405180830381865afa1580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f1919061120c565b7f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb36001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610873919061120c565b61087d908461123b565b116108de576000612710600054846108959190611275565b61089f9190611253565b6001549091506108d09073365accfca291e7d3914637abf1f7635db165bb099033906001600160a01b031684610e23565b6108da81846112b1565b9250505b801561092c5761092473365accfca291e7d3914637abf1f7635db165bb09337f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788185610e23565b6105ee610b55565b6105ee73365accfca291e7d3914637abf1f7635db165bb09333085610e23565b6040516370a0823160e01b815233600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c2919061120c565b90506105ee8183610695565b6002546001600160a01b031633146109f85760405162461bcd60e51b81526004016102a3906111ed565b6107d0821115610a355760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064016102a3565b8115610a80576001600160a01b038116610a805760405162461bcd60e51b815260206004820152600c60248201526b6e656564206164647265737360a01b60448201526064016102a3565b6000829055600180546001600160a01b0319166001600160a01b0383169081179091556040805184815260208101929092527f6c3f3e1f4b11154b43d5661c6fdf473cb40fbf8e4a8f93a53cbb4c42772901a4910160405180910390a15050565b6002546001600160a01b03163314610b0b5760405162461bcd60e51b81526004016102a3906111ed565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6040516370a0823160e01b815230600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb919061120c565b90508015610c1257610c1273365accfca291e7d3914637abf1f7635db165bb097f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788183610e8e565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788116600482015260009073365accfca291e7d3914637abf1f7635db165bb09906370a0823190602401602060405180830381865afa158015610c8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb1919061120c565b905080610cbc575050565b604051630aa2b75d60e11b8152600481018290527f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b0316906315456eba906024016020604051808303816000875af1158015610d23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d479190611294565b506000610d58630784ce004261123b565b9050600062093a80610d6a8184611253565b610d749190611275565b9050600160045482610d8691906112b1565b10610e1d57604051631e4d150d60e11b8152600481018390527f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b031690633c9a2a1a906024016020604051808303816000875af1158015610df2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e169190611294565b5060048190555b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e1d9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ec3565b6040516001600160a01b038316602482015260448101829052610ebe90849063a9059cbb60e01b90606401610e57565b505050565b6000610f18826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f989092919063ffffffff16565b9050805160001480610f39575080806020019051810190610f399190611294565b610ebe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a3565b6060610fa78484600085610faf565b949350505050565b6060824710156110105760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a3565b600080866001600160a01b0316858760405161102c91906112f4565b60006040518083038185875af1925050503d8060008114611069576040519150601f19603f3d011682016040523d82523d6000602084013e61106e565b606091505b509150915061107f8783838761108a565b979650505050505050565b606083156110f65782516110ef576001600160a01b0385163b6110ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a3565b5081610fa7565b610fa7838381511561110b5781518083602001fd5b8060405162461bcd60e51b81526004016102a39190611310565b801515811461113357600080fd5b50565b6000806040838503121561114957600080fd5b82359150602083013561115b81611125565b809150509250929050565b60006020828403121561117857600080fd5b813561118381611125565b9392505050565b80356001600160a01b03811681146111a157600080fd5b919050565b600080604083850312156111b957600080fd5b823591506111c96020840161118a565b90509250929050565b6000602082840312156111e457600080fd5b6111838261118a565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60006020828403121561121e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561124e5761124e611225565b500190565b60008261127057634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561128f5761128f611225565b500290565b6000602082840312156112a657600080fd5b815161118381611125565b6000828210156112c3576112c3611225565b500390565b60005b838110156112e35781810151838201526020016112cb565b83811115610e1d5750506000910152565b600082516113068184602087016112c8565b9190910192915050565b602081526000825180602084015261132f8160408501602087016112c8565b601f01601f1916919091016040019291505056fea26469706673582212200eaa9e7a64cf7e3ec722c89481faf6cf6ad5b1339c8972f91def1ccd6e5a85f364736f6c634300080a0033

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

000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb3

-----Decoded View---------------
Arg [0] : _staker (address): 0xd11a4Ee017cA0BECA8FA45fF2abFe9C6267b7881
Arg [1] : _minter (address): 0x183395DbD0B5e93323a7286D1973150697FFFCB3

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881
Arg [1] : 000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb3


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
[ 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.