ETH Price: $1,872.04 (-12.69%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Ragequit All196475262024-04-13 15:25:11663 days ago1713021911IN
0xB12C76b9...458338D97
0 ETH0.0076767715.07709269
Ragequit All161765292022-12-13 15:00:231150 days ago1670943623IN
0xB12C76b9...458338D97
0 ETH0.0142941227
Ragequit All159712082022-11-14 22:17:231179 days ago1668464243IN
0xB12C76b9...458338D97
0 ETH0.0080045315.84187241
Ragequit All159411352022-11-10 17:33:231183 days ago1668101603IN
0xB12C76b9...458338D97
0 ETH0.0162347335.65065082
Ragequit All159384932022-11-10 8:41:471183 days ago1668069707IN
0xB12C76b9...458338D97
0 ETH0.0100184422
Ragequit All159345842022-11-09 19:35:231184 days ago1668022523IN
0xB12C76b9...458338D97
0 ETH0.0380824481.18816703
Ragequit All159314962022-11-09 9:11:231184 days ago1667985083IN
0xB12C76b9...458338D97
0 ETH0.0265905623.06022999
Ragequit All159311892022-11-09 8:09:231184 days ago1667981363IN
0xB12C76b9...458338D97
0 ETH0.0097424218.11014259
Ragequit All159311162022-11-09 7:54:351184 days ago1667980475IN
0xB12C76b9...458338D97
0 ETH0.0070914315.19080753
Ragequit All159309322022-11-09 7:17:351184 days ago1667978255IN
0xB12C76b9...458338D97
0 ETH0.0096074314.88174665
Ragequit All159306682022-11-09 6:24:111184 days ago1667975051IN
0xB12C76b9...458338D97
0 ETH0.0064458713.07462928
Ragequit All159306072022-11-09 6:11:591184 days ago1667974319IN
0xB12C76b9...458338D97
0 ETH0.0058718112.5809081
Ragequit All159304822022-11-09 5:46:591184 days ago1667972819IN
0xB12C76b9...458338D97
0 ETH0.007323716.16198583
Ragequit All159294002022-11-09 2:09:471184 days ago1667959787IN
0xB12C76b9...458338D97
0 ETH0.0083096317.35244984
Ragequit All159293262022-11-09 1:54:591184 days ago1667958899IN
0xB12C76b9...458338D97
0 ETH0.0058235612.85146804
Ragequit All159292782022-11-09 1:45:231184 days ago1667958323IN
0xB12C76b9...458338D97
0 ETH0.0065004313.99428999
Ragequit All159292602022-11-09 1:41:471184 days ago1667958107IN
0xB12C76b9...458338D97
0 ETH0.0007708814.9717974
Ragequit All159292052022-11-09 1:30:471184 days ago1667957447IN
0xB12C76b9...458338D97
0 ETH0.016881517.60889644
Ragequit All159286112022-11-08 23:31:351184 days ago1667950295IN
0xB12C76b9...458338D97
0 ETH0.0150849627.95914154
Ragequit All159285962022-11-08 23:28:231184 days ago1667950103IN
0xB12C76b9...458338D97
0 ETH0.0106358423.42078498
Ragequit All159283712022-11-08 22:43:231185 days ago1667947403IN
0xB12C76b9...458338D97
0 ETH0.0134216824.8888937
Ragequit All159283602022-11-08 22:41:111185 days ago1667947271IN
0xB12C76b9...458338D97
0 ETH0.0122106626.88862804
Ragequit All159282982022-11-08 22:28:471185 days ago1667946527IN
0xB12C76b9...458338D97
0 ETH0.0237400931.51793019
Ragequit One159282802022-11-08 22:25:111185 days ago1667946311IN
0xB12C76b9...458338D97
0 ETH0.0174315732.23038215

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FraxFarmRageQuitter_Temple

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, GNU GPLv2 license
/**
 *Submitted for verification at Etherscan.io on 2022-11-02
*/

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

// Sources flattened with hardhat v2.12.0 https://hardhat.org

// File contracts/Utils/ReentrancyGuard.sol


/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)


/**
 * @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 @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)


/**
 * @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 @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)


/**
 * @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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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 @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.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;

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

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

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

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

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/Staking/FraxFarmRageQuitter_Temple.sol


// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ==================== FraxFarmRageQuitter_Temple ====================
// ====================================================================
// Exits a Frax farm early, with a penalty. Deployed on a case-by-case basis

// Frax Finance: https://github.com/FraxFinance

// Primary Author(s)
// Dennis: https://github.com/denett

// Reviewer(s) / Contributor(s)
// Travis Moore: https://github.com/FortisFortuna
contract FraxFarmRageQuitter_Temple is ReentrancyGuard {
   ITempleGauge public templeGauge = ITempleGauge(0x10460d02226d6ef7B2419aE150E6377BdbB7Ef16);
   IERC20 templeFraxLPToken = IERC20(0x6021444f1706f15465bEe85463BCc7d7cC17Fc03);
   address fraxTreasuryAddress = 0xB1748C79709f4Ba2Dd82834B8c82D4a505003f27;
   uint256 treasuryPercentage = 2000; // 20%;

   // Rewards tokens
   IERC20 fxsToken = IERC20(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0);
   IERC20 templeToken = IERC20(0x470EBf5f030Ed85Fc1ed4C2d36B9DD02e77CF1b7);

   // NOTE
   // Make sure to enable this contract as a migrator first on the target farm
   
   /// @notice Exits stake for a specific kek_id
   function ragequitOne(bytes32 _kek_id) nonReentrant external {
      uint256 _liquidity;

      // Get all locked stake of the user
      ITempleGauge.LockedStake[] memory lockedStakes = templeGauge.lockedStakesOf(msg.sender);

      // Find stake with the correct kek_id
      for (uint256 i; i < lockedStakes.length; i++) {
         if (lockedStakes[i].kek_id == _kek_id) {
            _liquidity = lockedStakes[i].liquidity;
            break;
         }
      }
      require(_liquidity > 0, "Stake not found");

      // Unlock the stake and transfer the LP tokens to this contract
      templeGauge.migrator_withdraw_locked(msg.sender, _kek_id);

      // Split the LP tokens between the Frax treasury and the user
      uint256 liquidityToTreasury = (_liquidity * treasuryPercentage) / 10000;
      SafeERC20.safeTransfer(templeFraxLPToken, fraxTreasuryAddress, liquidityToTreasury);
      SafeERC20.safeTransfer(templeFraxLPToken, msg.sender, _liquidity - liquidityToTreasury);
      
      // All rewards collected during the migration are sent to the user.
      SafeERC20.safeTransfer(fxsToken, msg.sender, fxsToken.balanceOf(address(this)));
      SafeERC20.safeTransfer(templeToken, msg.sender, templeToken.balanceOf(address(this)));
   }
   
   /// @notice Exits all stakes
   function ragequitAll() nonReentrant external {  
      uint256 _totalLiquidity;

      // Get all locked stake of the user
      ITempleGauge.LockedStake[] memory lockedStakes = templeGauge.lockedStakesOf(msg.sender);

      for (uint256 i; i < lockedStakes.length; i++) {
         uint256 _liquidity = lockedStakes[i].liquidity;
         if (_liquidity > 0) {
            templeGauge.migrator_withdraw_locked(msg.sender, lockedStakes[i].kek_id); // Unlock the stake and transfer the LP tokens to this contract
            _totalLiquidity += _liquidity;
         }
      }
      require(_totalLiquidity > 0, "Nothing to unlock");

      // Split the LP tokens between the Frax treasury and the user
      uint256 liquidityToTreasury = (_totalLiquidity * treasuryPercentage) / 10000;
      SafeERC20.safeTransfer(templeFraxLPToken, fraxTreasuryAddress, liquidityToTreasury);
      SafeERC20.safeTransfer(templeFraxLPToken, msg.sender, _totalLiquidity - liquidityToTreasury);

      // All reward tokens collected during the migration are send to the user.
      SafeERC20.safeTransfer(fxsToken,msg.sender,fxsToken.balanceOf(address(this)));
      SafeERC20.safeTransfer(templeToken,msg.sender,templeToken.balanceOf(address(this)));
   }
}

interface ITempleGauge{
   struct LockedStake {
      bytes32 kek_id;
      uint256 start_timestamp;
      uint256 liquidity;
      uint256 ending_timestamp;
      uint256 lock_multiplier; 
   }
   function migrator_withdraw_locked(address, bytes32) external;
   function lockedStakesOf(address) external view returns(LockedStake[] memory);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"ragequitAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"}],"name":"ragequitOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"templeGauge","outputs":[{"internalType":"contract ITempleGauge","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052600180546001600160a01b03199081167310460d02226d6ef7b2419ae150e6377bdbb7ef1617909155600280548216736021444f1706f15465bee85463bcc7d7cc17fc0317905560038054821673b1748c79709f4ba2dd82834b8c82d4a505003f271790556107d0600455600580548216733432b6a60d23ca0dfca7761b7ab56459d9c964d01790556006805490911673470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b71790553480156100b857600080fd5b506001600055610ff3806100cd6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630ef2d289146100465780631e51aa391461008f578063dff501b5146100a4575b600080fd5b6001546100669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100a261009d366004610c35565b6100ac565b005b6100a26104ad565b60026000540361011d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001546040517f1e090f01000000000000000000000000000000000000000000000000000000008152336004820152829173ffffffffffffffffffffffffffffffffffffffff1690631e090f0190602401600060405180830381865afa158015610192573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526101d89190810190610cf5565b905060005b815181101561024157838282815181106101f9576101f9610ddd565b6020026020010151600001510361022f5781818151811061021c5761021c610ddd565b6020026020010151604001519250610241565b8061023981610e3b565b9150506101dd565b50600082116102ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610114565b6001546040517feb3c209e0000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff9091169063eb3c209e90604401600060405180830381600087803b15801561031e57600080fd5b505af1158015610332573d6000803e3d6000fd5b505050506000612710600454846103499190610e73565b6103539190610e90565b6002546003549192506103809173ffffffffffffffffffffffffffffffffffffffff918216911683610895565b6002546103ad9073ffffffffffffffffffffffffffffffffffffffff16336103a88487610ecb565b610895565b6005546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104469173ffffffffffffffffffffffffffffffffffffffff1690339082906370a08231906024015b602060405180830381865afa158015610422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a89190610ede565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104a29173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b505060016000555050565b600260005403610519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610114565b600260009081556001546040517f1e090f01000000000000000000000000000000000000000000000000000000008152336004820152829173ffffffffffffffffffffffffffffffffffffffff1690631e090f0190602401600060405180830381865afa15801561058e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526105d49190810190610cf5565b905060005b81518110156106f65760008282815181106105f6576105f6610ddd565b602002602001015160400151905060008111156106e357600154835173ffffffffffffffffffffffffffffffffffffffff9091169063eb3c209e90339086908690811061064557610645610ddd565b6020908102919091010151516040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156106bc57600080fd5b505af11580156106d0573d6000803e3d6000fd5b5050505080846106e09190610ef7565b93505b50806106ee81610e3b565b9150506105d9565b5060008211610761576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f7468696e6720746f20756e6c6f636b0000000000000000000000000000006044820152606401610114565b6000612710600454846107749190610e73565b61077e9190610e90565b6002546003549192506107ab9173ffffffffffffffffffffffffffffffffffffffff918216911683610895565b6002546107d39073ffffffffffffffffffffffffffffffffffffffff16336103a88487610ecb565b6005546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261082f9173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b6006546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261088b9173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b5050600160005550565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610922908490610927565b505050565b6000610989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a339092919063ffffffff16565b80519091501561092257808060200190518101906109a79190610f0a565b610922576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610114565b6060610a428484600085610a4c565b90505b9392505050565b606082471015610ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610114565b73ffffffffffffffffffffffffffffffffffffffff85163b610b5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610114565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b859190610f50565b60006040518083038185875af1925050503d8060008114610bc2576040519150601f19603f3d011682016040523d82523d6000602084013e610bc7565b606091505b5091509150610bd7828286610be2565b979650505050505050565b60608315610bf1575081610a45565b825115610c015782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101149190610f6c565b600060208284031215610c4757600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610ca057610ca0610c4e565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610ced57610ced610c4e565b604052919050565b60006020808385031215610d0857600080fd5b825167ffffffffffffffff80821115610d2057600080fd5b818501915085601f830112610d3457600080fd5b815181811115610d4657610d46610c4e565b610d54848260051b01610ca6565b818152848101925060a0918202840185019188831115610d7357600080fd5b938501935b82851015610dd15780858a031215610d905760008081fd5b610d98610c7d565b85518152868601518782015260408087015190820152606080870151908201526080808701519082015284529384019392850192610d78565b50979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610e6c57610e6c610e0c565b5060010190565b8082028115828204841417610e8a57610e8a610e0c565b92915050565b600082610ec6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610e8a57610e8a610e0c565b600060208284031215610ef057600080fd5b5051919050565b80820180821115610e8a57610e8a610e0c565b600060208284031215610f1c57600080fd5b81518015158114610a4557600080fd5b60005b83811015610f47578181015183820152602001610f2f565b50506000910152565b60008251610f62818460208701610f2c565b9190910192915050565b6020815260008251806020840152610f8b816040850160208701610f2c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f25f1867e9373a625bf9fa4d89974ed560a6ac5243c31d3bdafbc12f8be30bf164736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80630ef2d289146100465780631e51aa391461008f578063dff501b5146100a4575b600080fd5b6001546100669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100a261009d366004610c35565b6100ac565b005b6100a26104ad565b60026000540361011d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001546040517f1e090f01000000000000000000000000000000000000000000000000000000008152336004820152829173ffffffffffffffffffffffffffffffffffffffff1690631e090f0190602401600060405180830381865afa158015610192573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526101d89190810190610cf5565b905060005b815181101561024157838282815181106101f9576101f9610ddd565b6020026020010151600001510361022f5781818151811061021c5761021c610ddd565b6020026020010151604001519250610241565b8061023981610e3b565b9150506101dd565b50600082116102ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610114565b6001546040517feb3c209e0000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff9091169063eb3c209e90604401600060405180830381600087803b15801561031e57600080fd5b505af1158015610332573d6000803e3d6000fd5b505050506000612710600454846103499190610e73565b6103539190610e90565b6002546003549192506103809173ffffffffffffffffffffffffffffffffffffffff918216911683610895565b6002546103ad9073ffffffffffffffffffffffffffffffffffffffff16336103a88487610ecb565b610895565b6005546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104469173ffffffffffffffffffffffffffffffffffffffff1690339082906370a08231906024015b602060405180830381865afa158015610422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a89190610ede565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104a29173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b505060016000555050565b600260005403610519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610114565b600260009081556001546040517f1e090f01000000000000000000000000000000000000000000000000000000008152336004820152829173ffffffffffffffffffffffffffffffffffffffff1690631e090f0190602401600060405180830381865afa15801561058e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526105d49190810190610cf5565b905060005b81518110156106f65760008282815181106105f6576105f6610ddd565b602002602001015160400151905060008111156106e357600154835173ffffffffffffffffffffffffffffffffffffffff9091169063eb3c209e90339086908690811061064557610645610ddd565b6020908102919091010151516040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156106bc57600080fd5b505af11580156106d0573d6000803e3d6000fd5b5050505080846106e09190610ef7565b93505b50806106ee81610e3b565b9150506105d9565b5060008211610761576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f7468696e6720746f20756e6c6f636b0000000000000000000000000000006044820152606401610114565b6000612710600454846107749190610e73565b61077e9190610e90565b6002546003549192506107ab9173ffffffffffffffffffffffffffffffffffffffff918216911683610895565b6002546107d39073ffffffffffffffffffffffffffffffffffffffff16336103a88487610ecb565b6005546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261082f9173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b6006546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261088b9173ffffffffffffffffffffffffffffffffffffffff1690339082906370a0823190602401610405565b5050600160005550565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610922908490610927565b505050565b6000610989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a339092919063ffffffff16565b80519091501561092257808060200190518101906109a79190610f0a565b610922576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610114565b6060610a428484600085610a4c565b90505b9392505050565b606082471015610ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610114565b73ffffffffffffffffffffffffffffffffffffffff85163b610b5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610114565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b859190610f50565b60006040518083038185875af1925050503d8060008114610bc2576040519150601f19603f3d011682016040523d82523d6000602084013e610bc7565b606091505b5091509150610bd7828286610be2565b979650505050505050565b60608315610bf1575081610a45565b825115610c015782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101149190610f6c565b600060208284031215610c4757600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610ca057610ca0610c4e565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610ced57610ced610c4e565b604052919050565b60006020808385031215610d0857600080fd5b825167ffffffffffffffff80821115610d2057600080fd5b818501915085601f830112610d3457600080fd5b815181811115610d4657610d46610c4e565b610d54848260051b01610ca6565b818152848101925060a0918202840185019188831115610d7357600080fd5b938501935b82851015610dd15780858a031215610d905760008081fd5b610d98610c7d565b85518152868601518782015260408087015190820152606080870151908201526080808701519082015284529384019392850192610d78565b50979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610e6c57610e6c610e0c565b5060010190565b8082028115828204841417610e8a57610e8a610e0c565b92915050565b600082610ec6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610e8a57610e8a610e0c565b600060208284031215610ef057600080fd5b5051919050565b80820180821115610e8a57610e8a610e0c565b600060208284031215610f1c57600080fd5b81518015158114610a4557600080fd5b60005b83811015610f47578181015183820152602001610f2f565b50506000910152565b60008251610f62818460208701610f2c565b9190910192915050565b6020815260008251806020840152610f8b816040850160208701610f2c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f25f1867e9373a625bf9fa4d89974ed560a6ac5243c31d3bdafbc12f8be30bf164736f6c63430008110033

Deployed Bytecode Sourcemap

22088:3269:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22149:90;;;;;;;;;;;;211:42:1;199:55;;;181:74;;169:2;154:18;22149:90:0;;;;;;;22777:1276;;;;;;:::i;:::-;;:::i;:::-;;24096:1258;;;:::i;22777:1276::-;1839:1;2445:7;;:19;2437:63;;;;;;;653:2:1;2437:63:0;;;635:21:1;692:2;672:18;;;665:30;731:33;711:18;;;704:61;782:18;;2437:63:0;;;;;;;;;1839:1;2578:7;:18;;;22967:11:::1;::::0;:38:::1;::::0;;;;22994:10:::1;22967:38;::::0;::::1;181:74:1::0;2578:7:0;;22967:11:::1;;::::0;:26:::1;::::0;154:18:1;;22967:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;22918:87;;23066:9;23061:192;23081:12;:19;23077:1;:23;23061:192;;;23149:7;23123:12;23136:1;23123:15;;;;;;;;:::i;:::-;;;;;;;:22;;;:33:::0;23119:125:::1;;23186:12;23199:1;23186:15;;;;;;;;:::i;:::-;;;;;;;:25;;;23173:38;;23226:5;;23119:125;23102:3:::0;::::1;::::0;::::1;:::i;:::-;;;;23061:192;;;;23282:1;23269:10;:14;23261:42;;;::::0;::::1;::::0;;4099:2:1;23261:42:0::1;::::0;::::1;4081:21:1::0;4138:2;4118:18;;;4111:30;4177:17;4157:18;;;4150:45;4212:18;;23261:42:0::1;3897:339:1::0;23261:42:0::1;23385:11;::::0;:57:::1;::::0;;;;23422:10:::1;23385:57;::::0;::::1;4415:74:1::0;4505:18;;;4498:34;;;23385:11:0::1;::::0;;::::1;::::0;:36:::1;::::0;4388:18:1;;23385:57:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;23522:27;23588:5;23566:18;;23553:10;:31;;;;:::i;:::-;23552:41;;;;:::i;:::-;23625:17;::::0;23644:19:::1;::::0;23522:71;;-1:-1:-1;23602:83:0::1;::::0;23625:17:::1;::::0;;::::1;::::0;23644:19:::1;23522:71:::0;23602:22:::1;:83::i;:::-;23717:17;::::0;23694:87:::1;::::0;23717:17:::1;;23736:10;23748:32;23761:19:::0;23748:10;:32:::1;:::i;:::-;23694:22;:87::i;:::-;23896:8;::::0;23918:33:::1;::::0;;;;23945:4:::1;23918:33;::::0;::::1;181:74:1::0;23873:79:0::1;::::0;23896:8:::1;;::::0;23906:10:::1;::::0;23896:8;;23918:18:::1;::::0;154::1;;23918:33:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;23873:79::-;23984:11;::::0;24009:36:::1;::::0;;;;24039:4:::1;24009:36;::::0;::::1;181:74:1::0;23961:85:0::1;::::0;23984:11:::1;;::::0;23997:10:::1;::::0;23984:11;;24009:21:::1;::::0;154:18:1;;24009:36:0::1;14:247:1::0;23961:85:0::1;-1:-1:-1::0;;1795:1:0;2757:7;:22;-1:-1:-1;;22777:1276:0:o;24096:1258::-;1839:1;2445:7;;:19;2437:63;;;;;;;653:2:1;2437:63:0;;;635:21:1;692:2;672:18;;;665:30;731:33;711:18;;;704:61;782:18;;2437:63:0;451:355:1;2437:63:0;1839:1;2578:7;:18;;;24278:11:::1;::::0;:38:::1;::::0;;;;24305:10:::1;24278:38;::::0;::::1;181:74:1::0;2578:7:0;;24278:11:::1;;::::0;:26:::1;::::0;154:18:1;;24278:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;24229:87;;24332:9;24327:353;24347:12;:19;24343:1;:23;24327:353;;;24385:18;24406:12;24419:1;24406:15;;;;;;;;:::i;:::-;;;;;;;:25;;;24385:46;;24460:1;24447:10;:14;24443:228;;;24478:11;::::0;24527:15;;24478:11:::1;::::0;;::::1;::::0;:36:::1;::::0;24515:10:::1;::::0;24527:12;;24540:1;;24527:15;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;:22;24478:72:::1;::::0;;::::1;::::0;;;;;;4445:42:1;4433:55;;;24478:72:0::1;::::0;::::1;4415:74:1::0;4505:18;;;4498:34;4388:18;;24478:72:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;24648:10;24629:29;;;;;:::i;:::-;;;24443:228;-1:-1:-1::0;24368:3:0;::::1;::::0;::::1;:::i;:::-;;;;24327:353;;;;24714:1;24696:15;:19;24688:49;;;::::0;::::1;::::0;;5649:2:1;24688:49:0::1;::::0;::::1;5631:21:1::0;5688:2;5668:18;;;5661:30;5727:19;5707:18;;;5700:47;5764:18;;24688:49:0::1;5447:341:1::0;24688:49:0::1;24817:27;24888:5;24866:18;;24848:15;:36;;;;:::i;:::-;24847:46;;;;:::i;:::-;24925:17;::::0;24944:19:::1;::::0;24817:76;;-1:-1:-1;24902:83:0::1;::::0;24925:17:::1;::::0;;::::1;::::0;24944:19:::1;24817:76:::0;24902:22:::1;:83::i;:::-;25017:17;::::0;24994:92:::1;::::0;25017:17:::1;;25036:10;25048:37;25066:19:::0;25048:15;:37:::1;:::i;24994:92::-;25201:8;::::0;25221:33:::1;::::0;;;;25248:4:::1;25221:33;::::0;::::1;181:74:1::0;25178:77:0::1;::::0;25201:8:::1;;::::0;25210:10:::1;::::0;25201:8;;25221:18:::1;::::0;154::1;;25221:33:0::1;14:247:1::0;25178:77:0::1;25287:11;::::0;25310:36:::1;::::0;;;;25340:4:::1;25310:36;::::0;::::1;181:74:1::0;25264:83:0::1;::::0;25287:11:::1;;::::0;25299:10:::1;::::0;25287:11;;25310:21:::1;::::0;154:18:1;;25310:36:0::1;14:247:1::0;25264:83:0::1;-1:-1:-1::0;;1795:1:0;2757:7;:22;-1:-1:-1;24096:1258:0:o;17227:211::-;17371:58;;;4445:42:1;4433:55;;17371:58:0;;;4415:74:1;4505:18;;;;4498:34;;;17371:58:0;;;;;;;;;;4388:18:1;;;;17371:58:0;;;;;;;;;;17394:23;17371:58;;;17344:86;;17364:5;;17344:19;:86::i;:::-;17227:211;;;:::o;20294:716::-;20718:23;20744:69;20772:4;20744:69;;;;;;;;;;;;;;;;;20752:5;20744:27;;;;:69;;;;;:::i;:::-;20828:17;;20718:95;;-1:-1:-1;20828:21:0;20824:179;;20925:10;20914:30;;;;;;;;;;;;:::i;:::-;20906:85;;;;;;;6579:2:1;20906:85:0;;;6561:21:1;6618:2;6598:18;;;6591:30;6657:34;6637:18;;;6630:62;6728:12;6708:18;;;6701:40;6758:19;;20906:85:0;6377:406:1;11959:229:0;12096:12;12128:52;12150:6;12158:4;12164:1;12167:12;12128:21;:52::i;:::-;12121:59;;11959:229;;;;;;:::o;13079:510::-;13249:12;13307:5;13282:21;:30;;13274:81;;;;;;;6990:2:1;13274:81:0;;;6972:21:1;7029:2;7009:18;;;7002:30;7068:34;7048:18;;;7041:62;7139:8;7119:18;;;7112:36;7165:19;;13274:81:0;6788:402:1;13274:81:0;9509:19;;;;13366:60;;;;;;;7397:2:1;13366:60:0;;;7379:21:1;7436:2;7416:18;;;7409:30;7475:31;7455:18;;;7448:59;7524:18;;13366:60:0;7195:353:1;13366:60:0;13440:12;13454:23;13481:6;:11;;13500:5;13507:4;13481:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13439:73;;;;13530:51;13547:7;13556:10;13568:12;13530:16;:51::i;:::-;13523:58;13079:510;-1:-1:-1;;;;;;;13079:510:0:o;15765:762::-;15915:12;15944:7;15940:580;;;-1:-1:-1;15975:10:0;15968:17;;15940:580;16089:17;;:21;16085:424;;16337:10;16331:17;16398:15;16385:10;16381:2;16377:19;16370:44;16085:424;16480:12;16473:20;;;;;;;;;;;:::i;266:180:1:-;325:6;378:2;366:9;357:7;353:23;349:32;346:52;;;394:1;391;384:12;346:52;-1:-1:-1;417:23:1;;266:180;-1:-1:-1;266:180:1:o;1042:184::-;1094:77;1091:1;1084:88;1191:4;1188:1;1181:15;1215:4;1212:1;1205:15;1231:253;1303:2;1297:9;1345:4;1333:17;;1380:18;1365:34;;1401:22;;;1362:62;1359:88;;;1427:18;;:::i;:::-;1463:2;1456:22;1231:253;:::o;1489:334::-;1560:2;1554:9;1616:2;1606:13;;1621:66;1602:86;1590:99;;1719:18;1704:34;;1740:22;;;1701:62;1698:88;;;1766:18;;:::i;:::-;1802:2;1795:22;1489:334;;-1:-1:-1;1489:334:1:o;1828:1486::-;1952:6;1983:2;2026;2014:9;2005:7;2001:23;1997:32;1994:52;;;2042:1;2039;2032:12;1994:52;2075:9;2069:16;2104:18;2145:2;2137:6;2134:14;2131:34;;;2161:1;2158;2151:12;2131:34;2199:6;2188:9;2184:22;2174:32;;2244:7;2237:4;2233:2;2229:13;2225:27;2215:55;;2266:1;2263;2256:12;2215:55;2295:2;2289:9;2317:2;2313;2310:10;2307:36;;;2323:18;;:::i;:::-;2363:36;2395:2;2390;2387:1;2383:10;2379:19;2363:36;:::i;:::-;2433:15;;;2464:12;;;;-1:-1:-1;2495:4:1;2534:11;;;2526:20;;2522:29;;;2563:19;;;2560:39;;;2595:1;2592;2585:12;2560:39;2619:11;;;;2639:645;2655:6;2650:3;2647:15;2639:645;;;2735:2;2729:3;2720:7;2716:17;2712:26;2709:116;;;2779:1;2808:2;2804;2797:14;2709:116;2851:22;;:::i;:::-;2900:10;;2886:25;;2953:12;;;2947:19;2931:14;;;2924:43;2990:2;3034:12;;;3028:19;3012:14;;;3005:43;3071:2;3115:12;;;3109:19;3093:14;;;3086:43;3152:3;3197:12;;;3191:19;3175:14;;;3168:43;3224:18;;2672:12;;;;3262;;;;2639:645;;;-1:-1:-1;3303:5:1;1828:1486;-1:-1:-1;;;;;;;1828:1486:1:o;3319:184::-;3371:77;3368:1;3361:88;3468:4;3465:1;3458:15;3492:4;3489:1;3482:15;3508:184;3560:77;3557:1;3550:88;3657:4;3654:1;3647:15;3681:4;3678:1;3671:15;3697:195;3736:3;3767:66;3760:5;3757:77;3754:103;;3837:18;;:::i;:::-;-1:-1:-1;3884:1:1;3873:13;;3697:195::o;4543:168::-;4616:9;;;4647;;4664:15;;;4658:22;;4644:37;4634:71;;4685:18;;:::i;:::-;4543:168;;;;:::o;4716:274::-;4756:1;4782;4772:189;;4817:77;4814:1;4807:88;4918:4;4915:1;4908:15;4946:4;4943:1;4936:15;4772:189;-1:-1:-1;4975:9:1;;4716:274::o;4995:128::-;5062:9;;;5083:11;;;5080:37;;;5097:18;;:::i;5128:184::-;5198:6;5251:2;5239:9;5230:7;5226:23;5222:32;5219:52;;;5267:1;5264;5257:12;5219:52;-1:-1:-1;5290:16:1;;5128:184;-1:-1:-1;5128:184:1:o;5317:125::-;5382:9;;;5403:10;;;5400:36;;;5416:18;;:::i;6095:277::-;6162:6;6215:2;6203:9;6194:7;6190:23;6186:32;6183:52;;;6231:1;6228;6221:12;6183:52;6263:9;6257:16;6316:5;6309:13;6302:21;6295:5;6292:32;6282:60;;6338:1;6335;6328:12;7553:250;7638:1;7648:113;7662:6;7659:1;7656:13;7648:113;;;7738:11;;;7732:18;7719:11;;;7712:39;7684:2;7677:10;7648:113;;;-1:-1:-1;;7795:1:1;7777:16;;7770:27;7553:250::o;7808:287::-;7937:3;7975:6;7969:13;7991:66;8050:6;8045:3;8038:4;8030:6;8026:17;7991:66;:::i;:::-;8073:16;;;;;7808:287;-1:-1:-1;;7808:287:1:o;8100:455::-;8249:2;8238:9;8231:21;8212:4;8281:6;8275:13;8324:6;8319:2;8308:9;8304:18;8297:34;8340:79;8412:6;8407:2;8396:9;8392:18;8387:2;8379:6;8375:15;8340:79;:::i;:::-;8471:2;8459:15;8476:66;8455:88;8440:104;;;;8546:2;8436:113;;8100:455;-1:-1:-1;;8100:455:1:o

Swarm Source

ipfs://f25f1867e9373a625bf9fa4d89974ed560a6ac5243c31d3bdafbc12f8be30bf1

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.