FTM Price: $0.689007 (+6.93%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw931000052024-09-30 6:57:307 days ago1727679450IN
UniDex Exchange : FTM Pool
0 FTM0.0022037518
Withdraw930953992024-09-30 5:53:547 days ago1727675634IN
UniDex Exchange : FTM Pool
0 FTM0.0014579412.52820955
Withdraw927434472024-09-26 16:07:3011 days ago1727366850IN
UniDex Exchange : FTM Pool
0 FTM0.0026934822
Withdraw927371612024-09-26 14:33:5311 days ago1727361233IN
UniDex Exchange : FTM Pool
0 FTM0.0024050224.52807326
Withdraw927347822024-09-26 14:00:5811 days ago1727359258IN
UniDex Exchange : FTM Pool
0 FTM0.0023820825.42657694
Withdraw924275702024-09-23 9:20:0014 days ago1727083200IN
UniDex Exchange : FTM Pool
0 FTM0.000878919.38035753
Set Params924080572024-09-23 4:23:2214 days ago1727065402IN
UniDex Exchange : FTM Pool
0 FTM0.000228756.46354931
Withdraw923789212024-09-22 20:23:5714 days ago1727036637IN
UniDex Exchange : FTM Pool
0 FTM0.001030788
Withdraw923727022024-09-22 18:53:2914 days ago1727031209IN
UniDex Exchange : FTM Pool
0 FTM0.00963787110
Withdraw923726262024-09-22 18:52:1214 days ago1727031132IN
UniDex Exchange : FTM Pool
0 FTM0.0016175511.14138164
Withdraw923725172024-09-22 18:50:3014 days ago1727031030IN
UniDex Exchange : FTM Pool
0 FTM0.00963787110
Withdraw923723922024-09-22 18:48:3214 days ago1727030912IN
UniDex Exchange : FTM Pool
0 FTM0.01439724110
Withdraw923722072024-09-22 18:45:3014 days ago1727030730IN
UniDex Exchange : FTM Pool
0 FTM0.01395361110
Withdraw923130692024-09-22 3:03:4415 days ago1726974224IN
UniDex Exchange : FTM Pool
0 FTM0.0013766810
Withdraw922102772024-09-20 22:55:0316 days ago1726872903IN
UniDex Exchange : FTM Pool
0 FTM0.0014173211
Deposit920857022024-09-19 14:03:3518 days ago1726754615IN
UniDex Exchange : FTM Pool
49 FTM0.0024566214.56535797
Withdraw919379372024-09-17 23:35:5319 days ago1726616153IN
UniDex Exchange : FTM Pool
0 FTM0.0022168610
Deposit909480422024-09-07 0:47:1030 days ago1725670030IN
UniDex Exchange : FTM Pool
5.34965124 FTM0.000608777.66394932
Deposit909365712024-09-06 21:31:1030 days ago1725658270IN
UniDex Exchange : FTM Pool
1.5 FTM0.0009174411
Withdraw908121452024-09-05 11:43:5932 days ago1725536639IN
UniDex Exchange : FTM Pool
0 FTM0.001065448
Withdraw905225472024-09-02 4:13:5435 days ago1725250434IN
UniDex Exchange : FTM Pool
0 FTM0.000988954.71602455
Deposit902408342024-08-29 19:51:3738 days ago1724961097IN
UniDex Exchange : FTM Pool
745 FTM0.0015846719
Deposit898750482024-08-25 12:28:3043 days ago1724588910IN
UniDex Exchange : FTM Pool
38 FTM0.000316313.98216086
Withdraw895729402024-08-21 19:01:2246 days ago1724266882IN
UniDex Exchange : FTM Pool
0 FTM0.0026638620
Withdraw892014922024-08-18 2:15:5050 days ago1723947350IN
UniDex Exchange : FTM Pool
0 FTM0.000953537.51699686
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
931000052024-09-30 6:57:307 days ago1727679450
UniDex Exchange : FTM Pool
90.00693809 FTM
930953992024-09-30 5:53:547 days ago1727675634
UniDex Exchange : FTM Pool
51.7777084 FTM
927434472024-09-26 16:07:3011 days ago1727366850
UniDex Exchange : FTM Pool
242.27640465 FTM
927371612024-09-26 14:33:5311 days ago1727361233
UniDex Exchange : FTM Pool
130,887.34 FTM
927347822024-09-26 14:00:5811 days ago1727359258
UniDex Exchange : FTM Pool
213,062.53528792 FTM
924275702024-09-23 9:20:0014 days ago1727083200
UniDex Exchange : FTM Pool
1,483.06693651 FTM
923789212024-09-22 20:23:5714 days ago1727036637
UniDex Exchange : FTM Pool
0.59926808 FTM
923789212024-09-22 20:23:5714 days ago1727036637
UniDex Exchange : FTM Pool
99.27874535 FTM
923726262024-09-22 18:52:1214 days ago1727031132
UniDex Exchange : FTM Pool
10.25939713 FTM
923726262024-09-22 18:52:1214 days ago1727031132
UniDex Exchange : FTM Pool
1,699.64012549 FTM
923723922024-09-22 18:48:3214 days ago1727030912
UniDex Exchange : FTM Pool
5.66164585 FTM
923723922024-09-22 18:48:3214 days ago1727030912
UniDex Exchange : FTM Pool
937.94599631 FTM
923722072024-09-22 18:45:3014 days ago1727030730
UniDex Exchange : FTM Pool
11.27802 FTM
923722072024-09-22 18:45:3014 days ago1727030730
UniDex Exchange : FTM Pool
1,868.39198 FTM
923130692024-09-22 3:03:4415 days ago1726974224
UniDex Exchange : FTM Pool
16.64387271 FTM
923130692024-09-22 3:03:4415 days ago1726974224
UniDex Exchange : FTM Pool
2,757.33491329 FTM
922102772024-09-20 22:55:0316 days ago1726872903
UniDex Exchange : FTM Pool
1.2690314 FTM
922102772024-09-20 22:55:0316 days ago1726872903
UniDex Exchange : FTM Pool
210.23620349 FTM
921882682024-09-20 17:11:2116 days ago1726852281
UniDex Exchange : FTM Pool
250 FTM
921389642024-09-20 4:35:1617 days ago1726806916
UniDex Exchange : FTM Pool
0.96038093 FTM
921336722024-09-20 2:57:0417 days ago1726801024
UniDex Exchange : FTM Pool
10.56958994 FTM
921318052024-09-20 2:23:5917 days ago1726799039
UniDex Exchange : FTM Pool
290.98520675 FTM
921308722024-09-20 2:07:4117 days ago1726798061
UniDex Exchange : FTM Pool
292.85135326 FTM
921249542024-09-20 0:31:4117 days ago1726792301
UniDex Exchange : FTM Pool
125 FTM
921229342024-09-19 23:56:3417 days ago1726790194
UniDex Exchange : FTM Pool
16.77096738 FTM
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Pool

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSL 1.1 license

Contract Source Code (Solidity Multiple files format)

File 1 of 6: Pool.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import "./SafeERC20.sol";
import "./Address.sol";

import "./IRouter.sol";
import "./IRewards.sol";

contract Pool {

	using SafeERC20 for IERC20; 
    using Address for address payable;

    // Contracts
	address public owner;
	address public router;
	address public trading;

	uint256 public withdrawFee = 30; // 0.3%

    address public currency;
    address public rewards; // contract

    uint256 public utilizationMultiplier = 100; // in bps

    uint256 public maxCap = 1000000 ether;

    mapping(address => uint256) private balances; // account => amount staked
    uint256 public totalSupply;

    mapping(address => uint256) lastDeposited;
    uint256 public minDepositTime = 1 hours;

    uint256 public openInterest;

	uint256 public constant UNIT = 10**18;

    // Events
    event Deposit(
    	address indexed user, 
    	address indexed currency,
    	uint256 amount, 
    	uint256 clpAmount
    );
    event Withdraw(
    	address indexed user, 
    	address indexed currency,
    	uint256 amount, 
    	uint256 clpAmount
    );

	constructor(address _currency) {
		owner = msg.sender;
		currency = _currency;
	}

	// Governance methods

	function setOwner(address newOwner) external onlyOwner {
		owner = newOwner;
	}

	function setRouter(address _router) external onlyOwner {
		router = _router;
		trading = IRouter(router).trading();
		rewards = IRouter(router).getPoolRewards(currency);
	}

	function setParams(
		uint256 _minDepositTime,
		uint256 _utilizationMultiplier,
		uint256 _maxCap,
		uint256 _withdrawFee
	) external onlyOwner {
		minDepositTime = _minDepositTime;
		utilizationMultiplier = _utilizationMultiplier;
		maxCap = _maxCap;
		withdrawFee = _withdrawFee;
	}

	// Open interest
	function updateOpenInterest(uint256 amount, bool isDecrease) external onlyTrading {
		if (isDecrease) {
			if (openInterest <= amount) {
				openInterest = 0;
			} else {
				openInterest -= amount;
			}
		} else {
			openInterest += amount;
		}
	}

	// Methods

	function deposit(uint256 amount) external payable {

		uint256 lastBalance = _getCurrentBalance();

		if (currency == address(0)) {
			amount = msg.value;
			lastBalance -= amount;
		} else {
			_transferIn(amount);
		}

		require(amount > 0, "!amount");
		require(amount + lastBalance <= maxCap, "!max-cap");

        uint256 clpAmountToMint = lastBalance == 0 || totalSupply == 0 ? amount : amount * totalSupply / lastBalance;

        lastDeposited[msg.sender] = block.timestamp;

        IRewards(rewards).updateRewards(msg.sender);

        totalSupply += clpAmountToMint;
        balances[msg.sender] += clpAmountToMint;

        emit Deposit(
        	msg.sender,
        	currency,
        	amount,
        	clpAmountToMint
        );

	}

	function withdraw(uint256 currencyAmount) external {

		require(currencyAmount > 0, "!amount");
		require(block.timestamp > lastDeposited[msg.sender] + minDepositTime, "!cooldown");

		IRewards(rewards).updateRewards(msg.sender);

		// Determine corresponding CLP amount

		uint256 currentBalance = _getCurrentBalance();
		require(currentBalance > 0 && totalSupply > 0, "!empty");

		uint256 utilization = getUtilization();
		require(utilization < 10**4, "!utilization");
		
		// CLP amount
		uint256 amount = currencyAmount * totalSupply / currentBalance;

		// Set to max if above max
		if (amount >= balances[msg.sender]) {
			amount = balances[msg.sender];
			currencyAmount = amount * currentBalance / totalSupply;
		}

		uint256 availableBalance = currentBalance * (10**4 - utilization) / 10**4;
		uint256 currencyAmountAfterFee = currencyAmount * (10**4 - withdrawFee) / 10**4;
		require(currencyAmountAfterFee <= availableBalance, "!available-balance");

		totalSupply -= amount;
		balances[msg.sender] -= amount;

		_transferOut(msg.sender, currencyAmountAfterFee);

		// Send fee to this pool's rewards contract
		uint256 feeAmount = currencyAmount - currencyAmountAfterFee;
		_transferOut(rewards, feeAmount);
		IRewards(rewards).notifyRewardReceived(feeAmount);

		emit Withdraw(
			msg.sender,
			currency,
			currencyAmountAfterFee,
			amount
		);
		
	}

	function creditUserProfit(address destination, uint256 amount) external onlyTrading {
		if (amount == 0) return;
		uint256 currentBalance = _getCurrentBalance();
		require(amount < currentBalance, "!balance");
		_transferOut(destination, amount);
	}

	// To receive ETH
	fallback() external payable {}
	receive() external payable {}

	// Utils

	function _transferIn(uint256 amount) internal {
		// adjust decimals
		uint256 decimals = IRouter(router).getDecimals(currency);
		amount = amount * (10**decimals) / UNIT;
		IERC20(currency).safeTransferFrom(msg.sender, address(this), amount);
	}

	function _transferOut(address to, uint256 amount) internal {
		if (amount == 0 || to == address(0)) return;
		// adjust decimals
		uint256 decimals = IRouter(router).getDecimals(currency);
		amount = amount * (10**decimals) / UNIT;
		if (currency == address(0)) {
			payable(to).sendValue(amount);
		} else {
			IERC20(currency).safeTransfer(to, amount);
		}
	}

	function _getCurrentBalance() internal view returns(uint256) {
		uint256 currentBalance;
		if (currency == address(0)) {
			currentBalance = address(this).balance;
		} else {
			currentBalance = IERC20(currency).balanceOf(address(this));
		}
		uint256 decimals = IRouter(router).getDecimals(currency);
		return currentBalance * UNIT / (10**decimals);
	}

	// Getters

	function getUtilization() public view returns(uint256) {
		uint256 currentBalance = _getCurrentBalance();
		if (currentBalance == 0) return 0;
		return openInterest * utilizationMultiplier / currentBalance; // in bps
	}

	function getCurrencyBalance(address account) external view returns(uint256) {
		if (totalSupply == 0) return 0;
		uint256 currentBalance = _getCurrentBalance();
		return balances[account] * currentBalance / totalSupply;
	}

	// In Clp
	function getBalance(address account) external view returns(uint256) {
		return balances[account];
	}

	// Modifier

	modifier onlyOwner() {
		require(msg.sender == owner, "!owner");
		_;
	}

	modifier onlyTrading() {
		require(msg.sender == trading, "!trading");
		_;
	}

}

File 2 of 6: Address.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 6: IERC20.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 4 of 6: IRewards.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

interface IRewards {
    function updateRewards(address account) external;

    function notifyRewardReceived(uint256 amount) external;
}

File 5 of 6: IRouter.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

interface IRouter {
    function trading() external view returns (address);

    function capPool() external view returns (address);

    function oracle() external view returns (address);

    function treasury() external view returns (address);

    function darkOracle() external view returns (address);

    function isSupportedCurrency(address currency) external view returns (bool);

    function currencies(uint256 index) external view returns (address);

    function currenciesLength() external view returns (uint256);

    function getDecimals(address currency) external view returns(uint8);

    function getPool(address currency) external view returns (address);

    function getPoolShare(address currency) external view returns(uint256);

    function getCapShare(address currency) external view returns(uint256);

    function getPoolRewards(address currency) external view returns (address);

    function getCapRewards(address currency) external view returns (address);
}

File 6 of 6: SafeERC20.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./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;

    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));
        }
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_currency","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"clpAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"clpAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"UNIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"creditUserProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currency","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrencyBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUtilization","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDepositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDepositTime","type":"uint256"},{"internalType":"uint256","name":"_utilizationMultiplier","type":"uint256"},{"internalType":"uint256","name":"_maxCap","type":"uint256"},{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trading","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isDecrease","type":"bool"}],"name":"updateOpenInterest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"utilizationMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"currencyAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052601e600355606460065569d3c21bcecceda1000000600755610e10600b5534801561002e57600080fd5b506040516118c93803806118c983398101604081905261004d91610080565b60008054336001600160a01b031991821617909155600480549091166001600160a01b03929092169190911790556100b0565b60006020828403121561009257600080fd5b81516001600160a01b03811681146100a957600080fd5b9392505050565b61180a806100bf6000396000f3fe60806040526004361061012d5760003560e01c80639ec5a894116100a5578063ec44acf21161006c578063ec44acf214610313578063ed68350414610333578063f887ea4014610353578063f8b2cb4f14610373578063fa5a2e62146103a9578063fbbc7d7f146103bf57005b80639ec5a8941461028a578063b6b55f25146102aa578063c0d78655146102bd578063e5a6b10f146102dd578063e941fa78146102fd57005b80635b382989116100f45780635b382989146101d55780637eb71131146101eb5780637ece45e8146102005780638da5cb5b14610220578063934472f5146102585780639d8e21771461026e57005b806313af40351461013657806318160ddd1461015657806323548b8b1461017f5780632e1a7d4d14610195578063532f6690146101b557005b3661013457005b005b34801561014257600080fd5b50610134610151366004611466565b6103df565b34801561016257600080fd5b5061016c60095481565b6040519081526020015b60405180910390f35b34801561018b57600080fd5b5061016c60075481565b3480156101a157600080fd5b506101346101b03660046114e9565b610434565b3480156101c157600080fd5b506101346101d036600461151b565b6107d1565b3480156101e157600080fd5b5061016c60065481565b3480156101f757600080fd5b5061016c610867565b34801561020c57600080fd5b5061013461021b36600461154b565b6108a2565b34801561022c57600080fd5b50600054610240906001600160a01b031681565b6040516001600160a01b039091168152602001610176565b34801561026457600080fd5b5061016c600b5481565b34801561027a57600080fd5b5061016c670de0b6b3a764000081565b34801561029657600080fd5b50600554610240906001600160a01b031681565b6101346102b83660046114e9565b6108e0565b3480156102c957600080fd5b506101346102d8366004611466565b610acc565b3480156102e957600080fd5b50600454610240906001600160a01b031681565b34801561030957600080fd5b5061016c60035481565b34801561031f57600080fd5b50600254610240906001600160a01b031681565b34801561033f57600080fd5b5061016c61034e366004611466565b610c3b565b34801561035f57600080fd5b50600154610240906001600160a01b031681565b34801561037f57600080fd5b5061016c61038e366004611466565b6001600160a01b031660009081526008602052604090205490565b3480156103b557600080fd5b5061016c600c5481565b3480156103cb57600080fd5b506101346103da3660046114a0565b610c96565b6000546001600160a01b031633146104125760405162461bcd60e51b8152600401610409906115ef565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000811161046e5760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b6044820152606401610409565b600b54336000908152600a602052604090205461048b919061160f565b42116104c55760405162461bcd60e51b815260206004820152600960248201526810b1b7b7b63237bbb760b91b6044820152606401610409565b600554604051635fd6196560e01b81523360048201526001600160a01b0390911690635fd6196590602401600060405180830381600087803b15801561050a57600080fd5b505af115801561051e573d6000803e3d6000fd5b50505050600061052c610d39565b905060008111801561054057506000600954115b6105755760405162461bcd60e51b815260206004820152600660248201526521656d70747960d01b6044820152606401610409565b600061057f610867565b905061271081106105c15760405162461bcd60e51b815260206004820152600c60248201526b10baba34b634bd30ba34b7b760a11b6044820152606401610409565b600082600954856105d29190611736565b6105dc9190611627565b3360009081526008602052604090205490915081106106205750336000908152600860205260409020546009546106138483611736565b61061d9190611627565b93505b600061271061062f8482611755565b6106399086611736565b6106439190611627565b9050600061271060035461271061065a9190611755565b6106649088611736565b61066e9190611627565b9050818111156106b55760405162461bcd60e51b815260206004820152601260248201527121617661696c61626c652d62616c616e636560701b6044820152606401610409565b82600960008282546106c79190611755565b909155505033600090815260086020526040812080548592906106eb908490611755565b909155506106fb90503382610e8b565b60006107078288611755565b600554909150610720906001600160a01b031682610e8b565b60055460405163e38a195b60e01b8152600481018390526001600160a01b039091169063e38a195b90602401600060405180830381600087803b15801561076657600080fd5b505af115801561077a573d6000803e3d6000fd5b505060045460408051868152602081018990526001600160a01b0390921693503392507ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567910160405180910390a350505050505050565b6002546001600160a01b031633146108165760405162461bcd60e51b81526020600482015260086024820152672174726164696e6760c01b6044820152606401610409565b801561084b5781600c541161082e576000600c555050565b81600c60008282546108409190611755565b909155506108639050565b81600c600082825461085d919061160f565b90915550505b5050565b600080610872610d39565b90508061088157600091505090565b80600654600c546108929190611736565b61089c9190611627565b91505090565b6000546001600160a01b031633146108cc5760405162461bcd60e51b8152600401610409906115ef565b600b93909355600691909155600755600355565b60006108ea610d39565b6004549091506001600160a01b03166109115734915061090a8282611755565b905061091a565b61091a82610f96565b600082116109545760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b6044820152606401610409565b600754610961828461160f565b111561099a5760405162461bcd60e51b81526020600482015260086024820152670216d61782d6361760c41b6044820152606401610409565b60008115806109a95750600954155b6109cb5781600954846109bc9190611736565b6109c69190611627565b6109cd565b825b336000818152600a6020526040908190204290556005549051635fd6196560e01b815260048101929092529192506001600160a01b0390911690635fd6196590602401600060405180830381600087803b158015610a2a57600080fd5b505af1158015610a3e573d6000803e3d6000fd5b505050508060096000828254610a54919061160f565b90915550503360009081526008602052604081208054839290610a7890849061160f565b909155505060045460408051858152602081018490526001600160a01b039092169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a3505050565b6000546001600160a01b03163314610af65760405162461bcd60e51b8152600401610409906115ef565b600180546001600160a01b0319166001600160a01b03831690811790915560408051637622567960e11b8152905163ec44acf291600480820192602092909190829003018186803b158015610b4a57600080fd5b505afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190611483565b600280546001600160a01b0319166001600160a01b03928316179055600154600480546040516356e8b9cd60e11b81529084169181019190915291169063add1739a9060240160206040518083038186803b158015610be057600080fd5b505afa158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c189190611483565b600580546001600160a01b0319166001600160a01b039290921691909117905550565b600060095460001415610c5057506000919050565b6000610c5a610d39565b6009546001600160a01b03851660009081526008602052604090205491925090610c85908390611736565b610c8f9190611627565b9392505050565b6002546001600160a01b03163314610cdb5760405162461bcd60e51b81526020600482015260086024820152672174726164696e6760c01b6044820152606401610409565b80610ce4575050565b6000610cee610d39565b9050808210610d2a5760405162461bcd60e51b81526020600482015260086024820152672162616c616e636560c01b6044820152606401610409565b610d348383610e8b565b505050565b60045460009081906001600160a01b0316610d55575047610dd4565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a082319060240160206040518083038186803b158015610d9957600080fd5b505afa158015610dad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd19190611502565b90505b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610e2057600080fd5b505afa158015610e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e58919061157d565b60ff169050610e6881600a61168c565b610e7a670de0b6b3a764000084611736565b610e849190611627565b9250505090565b801580610e9f57506001600160a01b038216155b15610ea8575050565b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610ef457600080fd5b505afa158015610f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2c919061157d565b60ff169050670de0b6b3a7640000610f4582600a61168c565b610f4f9084611736565b610f599190611627565b6004549092506001600160a01b0316610f7f57610d346001600160a01b03841683611062565b600454610d34906001600160a01b0316848461117b565b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610fe257600080fd5b505afa158015610ff6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101a919061157d565b60ff169050670de0b6b3a764000061103382600a61168c565b61103d9084611736565b6110479190611627565b600454909250610863906001600160a01b03163330856111de565b804710156110b25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610409565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146110ff576040519150601f19603f3d011682016040523d82523d6000602084013e611104565b606091505b5050905080610d345760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610409565b6040516001600160a01b038316602482015260448101829052610d3490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261121c565b6040516001600160a01b03808516602483015283166044820152606481018290526112169085906323b872dd60e01b906084016111a7565b50505050565b6000611271826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112ee9092919063ffffffff16565b805190915015610d34578080602001905181019061128f91906114cc565b610d345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610409565b60606112fd8484600085611305565b949350505050565b6060824710156113665760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610409565b843b6113b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610409565b600080866001600160a01b031685876040516113d091906115a0565b60006040518083038185875af1925050503d806000811461140d576040519150601f19603f3d011682016040523d82523d6000602084013e611412565b606091505b509150915061142282828661142d565b979650505050505050565b6060831561143c575081610c8f565b82511561144c5782518084602001fd5b8160405162461bcd60e51b815260040161040991906115bc565b60006020828403121561147857600080fd5b8135610c8f816117ae565b60006020828403121561149557600080fd5b8151610c8f816117ae565b600080604083850312156114b357600080fd5b82356114be816117ae565b946020939093013593505050565b6000602082840312156114de57600080fd5b8151610c8f816117c6565b6000602082840312156114fb57600080fd5b5035919050565b60006020828403121561151457600080fd5b5051919050565b6000806040838503121561152e57600080fd5b823591506020830135611540816117c6565b809150509250929050565b6000806000806080858703121561156157600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561158f57600080fd5b815160ff81168114610c8f57600080fd5b600082516115b281846020870161176c565b9190910192915050565b60208152600082518060208401526115db81604085016020870161176c565b601f01601f19169190910160400192915050565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000821982111561162257611622611798565b500190565b60008261164457634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561168457816000190482111561166a5761166a611798565b8085161561167757918102915b93841c939080029061164e565b509250929050565b6000610c8f83836000826116a257506001611730565b816116af57506000611730565b81600181146116c557600281146116cf576116eb565b6001915050611730565b60ff8411156116e0576116e0611798565b50506001821b611730565b5060208310610133831016604e8410600b841016171561170e575081810a611730565b6117188383611649565b806000190482111561172c5761172c611798565b0290505b92915050565b600081600019048311821515161561175057611750611798565b500290565b60008282101561176757611767611798565b500390565b60005b8381101561178757818101518382015260200161176f565b838111156112165750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117c357600080fd5b50565b80151581146117c357600080fdfea26469706673582212201a5aa94236274750a6a73f4e86bf0253a8b2ce909468aca2bce1690801278c2e64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061012d5760003560e01c80639ec5a894116100a5578063ec44acf21161006c578063ec44acf214610313578063ed68350414610333578063f887ea4014610353578063f8b2cb4f14610373578063fa5a2e62146103a9578063fbbc7d7f146103bf57005b80639ec5a8941461028a578063b6b55f25146102aa578063c0d78655146102bd578063e5a6b10f146102dd578063e941fa78146102fd57005b80635b382989116100f45780635b382989146101d55780637eb71131146101eb5780637ece45e8146102005780638da5cb5b14610220578063934472f5146102585780639d8e21771461026e57005b806313af40351461013657806318160ddd1461015657806323548b8b1461017f5780632e1a7d4d14610195578063532f6690146101b557005b3661013457005b005b34801561014257600080fd5b50610134610151366004611466565b6103df565b34801561016257600080fd5b5061016c60095481565b6040519081526020015b60405180910390f35b34801561018b57600080fd5b5061016c60075481565b3480156101a157600080fd5b506101346101b03660046114e9565b610434565b3480156101c157600080fd5b506101346101d036600461151b565b6107d1565b3480156101e157600080fd5b5061016c60065481565b3480156101f757600080fd5b5061016c610867565b34801561020c57600080fd5b5061013461021b36600461154b565b6108a2565b34801561022c57600080fd5b50600054610240906001600160a01b031681565b6040516001600160a01b039091168152602001610176565b34801561026457600080fd5b5061016c600b5481565b34801561027a57600080fd5b5061016c670de0b6b3a764000081565b34801561029657600080fd5b50600554610240906001600160a01b031681565b6101346102b83660046114e9565b6108e0565b3480156102c957600080fd5b506101346102d8366004611466565b610acc565b3480156102e957600080fd5b50600454610240906001600160a01b031681565b34801561030957600080fd5b5061016c60035481565b34801561031f57600080fd5b50600254610240906001600160a01b031681565b34801561033f57600080fd5b5061016c61034e366004611466565b610c3b565b34801561035f57600080fd5b50600154610240906001600160a01b031681565b34801561037f57600080fd5b5061016c61038e366004611466565b6001600160a01b031660009081526008602052604090205490565b3480156103b557600080fd5b5061016c600c5481565b3480156103cb57600080fd5b506101346103da3660046114a0565b610c96565b6000546001600160a01b031633146104125760405162461bcd60e51b8152600401610409906115ef565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000811161046e5760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b6044820152606401610409565b600b54336000908152600a602052604090205461048b919061160f565b42116104c55760405162461bcd60e51b815260206004820152600960248201526810b1b7b7b63237bbb760b91b6044820152606401610409565b600554604051635fd6196560e01b81523360048201526001600160a01b0390911690635fd6196590602401600060405180830381600087803b15801561050a57600080fd5b505af115801561051e573d6000803e3d6000fd5b50505050600061052c610d39565b905060008111801561054057506000600954115b6105755760405162461bcd60e51b815260206004820152600660248201526521656d70747960d01b6044820152606401610409565b600061057f610867565b905061271081106105c15760405162461bcd60e51b815260206004820152600c60248201526b10baba34b634bd30ba34b7b760a11b6044820152606401610409565b600082600954856105d29190611736565b6105dc9190611627565b3360009081526008602052604090205490915081106106205750336000908152600860205260409020546009546106138483611736565b61061d9190611627565b93505b600061271061062f8482611755565b6106399086611736565b6106439190611627565b9050600061271060035461271061065a9190611755565b6106649088611736565b61066e9190611627565b9050818111156106b55760405162461bcd60e51b815260206004820152601260248201527121617661696c61626c652d62616c616e636560701b6044820152606401610409565b82600960008282546106c79190611755565b909155505033600090815260086020526040812080548592906106eb908490611755565b909155506106fb90503382610e8b565b60006107078288611755565b600554909150610720906001600160a01b031682610e8b565b60055460405163e38a195b60e01b8152600481018390526001600160a01b039091169063e38a195b90602401600060405180830381600087803b15801561076657600080fd5b505af115801561077a573d6000803e3d6000fd5b505060045460408051868152602081018990526001600160a01b0390921693503392507ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567910160405180910390a350505050505050565b6002546001600160a01b031633146108165760405162461bcd60e51b81526020600482015260086024820152672174726164696e6760c01b6044820152606401610409565b801561084b5781600c541161082e576000600c555050565b81600c60008282546108409190611755565b909155506108639050565b81600c600082825461085d919061160f565b90915550505b5050565b600080610872610d39565b90508061088157600091505090565b80600654600c546108929190611736565b61089c9190611627565b91505090565b6000546001600160a01b031633146108cc5760405162461bcd60e51b8152600401610409906115ef565b600b93909355600691909155600755600355565b60006108ea610d39565b6004549091506001600160a01b03166109115734915061090a8282611755565b905061091a565b61091a82610f96565b600082116109545760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b6044820152606401610409565b600754610961828461160f565b111561099a5760405162461bcd60e51b81526020600482015260086024820152670216d61782d6361760c41b6044820152606401610409565b60008115806109a95750600954155b6109cb5781600954846109bc9190611736565b6109c69190611627565b6109cd565b825b336000818152600a6020526040908190204290556005549051635fd6196560e01b815260048101929092529192506001600160a01b0390911690635fd6196590602401600060405180830381600087803b158015610a2a57600080fd5b505af1158015610a3e573d6000803e3d6000fd5b505050508060096000828254610a54919061160f565b90915550503360009081526008602052604081208054839290610a7890849061160f565b909155505060045460408051858152602081018490526001600160a01b039092169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a3505050565b6000546001600160a01b03163314610af65760405162461bcd60e51b8152600401610409906115ef565b600180546001600160a01b0319166001600160a01b03831690811790915560408051637622567960e11b8152905163ec44acf291600480820192602092909190829003018186803b158015610b4a57600080fd5b505afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190611483565b600280546001600160a01b0319166001600160a01b03928316179055600154600480546040516356e8b9cd60e11b81529084169181019190915291169063add1739a9060240160206040518083038186803b158015610be057600080fd5b505afa158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c189190611483565b600580546001600160a01b0319166001600160a01b039290921691909117905550565b600060095460001415610c5057506000919050565b6000610c5a610d39565b6009546001600160a01b03851660009081526008602052604090205491925090610c85908390611736565b610c8f9190611627565b9392505050565b6002546001600160a01b03163314610cdb5760405162461bcd60e51b81526020600482015260086024820152672174726164696e6760c01b6044820152606401610409565b80610ce4575050565b6000610cee610d39565b9050808210610d2a5760405162461bcd60e51b81526020600482015260086024820152672162616c616e636560c01b6044820152606401610409565b610d348383610e8b565b505050565b60045460009081906001600160a01b0316610d55575047610dd4565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a082319060240160206040518083038186803b158015610d9957600080fd5b505afa158015610dad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd19190611502565b90505b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610e2057600080fd5b505afa158015610e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e58919061157d565b60ff169050610e6881600a61168c565b610e7a670de0b6b3a764000084611736565b610e849190611627565b9250505090565b801580610e9f57506001600160a01b038216155b15610ea8575050565b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610ef457600080fd5b505afa158015610f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2c919061157d565b60ff169050670de0b6b3a7640000610f4582600a61168c565b610f4f9084611736565b610f599190611627565b6004549092506001600160a01b0316610f7f57610d346001600160a01b03841683611062565b600454610d34906001600160a01b0316848461117b565b6001546004805460405163067aa55560e51b81526001600160a01b0391821692810192909252600092169063cf54aaa09060240160206040518083038186803b158015610fe257600080fd5b505afa158015610ff6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101a919061157d565b60ff169050670de0b6b3a764000061103382600a61168c565b61103d9084611736565b6110479190611627565b600454909250610863906001600160a01b03163330856111de565b804710156110b25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610409565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146110ff576040519150601f19603f3d011682016040523d82523d6000602084013e611104565b606091505b5050905080610d345760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610409565b6040516001600160a01b038316602482015260448101829052610d3490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261121c565b6040516001600160a01b03808516602483015283166044820152606481018290526112169085906323b872dd60e01b906084016111a7565b50505050565b6000611271826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112ee9092919063ffffffff16565b805190915015610d34578080602001905181019061128f91906114cc565b610d345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610409565b60606112fd8484600085611305565b949350505050565b6060824710156113665760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610409565b843b6113b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610409565b600080866001600160a01b031685876040516113d091906115a0565b60006040518083038185875af1925050503d806000811461140d576040519150601f19603f3d011682016040523d82523d6000602084013e611412565b606091505b509150915061142282828661142d565b979650505050505050565b6060831561143c575081610c8f565b82511561144c5782518084602001fd5b8160405162461bcd60e51b815260040161040991906115bc565b60006020828403121561147857600080fd5b8135610c8f816117ae565b60006020828403121561149557600080fd5b8151610c8f816117ae565b600080604083850312156114b357600080fd5b82356114be816117ae565b946020939093013593505050565b6000602082840312156114de57600080fd5b8151610c8f816117c6565b6000602082840312156114fb57600080fd5b5035919050565b60006020828403121561151457600080fd5b5051919050565b6000806040838503121561152e57600080fd5b823591506020830135611540816117c6565b809150509250929050565b6000806000806080858703121561156157600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561158f57600080fd5b815160ff81168114610c8f57600080fd5b600082516115b281846020870161176c565b9190910192915050565b60208152600082518060208401526115db81604085016020870161176c565b601f01601f19169190910160400192915050565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000821982111561162257611622611798565b500190565b60008261164457634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561168457816000190482111561166a5761166a611798565b8085161561167757918102915b93841c939080029061164e565b509250929050565b6000610c8f83836000826116a257506001611730565b816116af57506000611730565b81600181146116c557600281146116cf576116eb565b6001915050611730565b60ff8411156116e0576116e0611798565b50506001821b611730565b5060208310610133831016604e8410600b841016171561170e575081810a611730565b6117188383611649565b806000190482111561172c5761172c611798565b0290505b92915050565b600081600019048311821515161561175057611750611798565b500290565b60008282101561176757611767611798565b500390565b60005b8381101561178757818101518382015260200161176f565b838111156112165750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117c357600080fd5b50565b80151581146117c357600080fdfea26469706673582212201a5aa94236274750a6a73f4e86bf0253a8b2ce909468aca2bce1690801278c2e64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _currency (address): 0x0000000000000000000000000000000000000000

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


Deployed Bytecode Sourcemap

172:6302:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1279:81;;;;;;;;;;-1:-1:-1;1279:81:4;;;;;:::i;:::-;;:::i;667:26::-;;;;;;;;;;;;;;;;;;;9335:25:6;;;9323:2;9308:18;667:26:4;;;;;;;;542:37;;;;;;;;;;;;;;;;2924:1412;;;;;;;;;;-1:-1:-1;2924:1412:4;;;;;:::i;:::-;;:::i;1865:258::-;;;;;;;;;;-1:-1:-1;1865:258:4;;;;;:::i;:::-;;:::i;481:42::-;;;;;;;;;;;;;;;;5714:223;;;;;;;;;;;;;:::i;1546:295::-;;;;;;;;;;-1:-1:-1;1546:295:4;;;;;:::i;:::-;;:::i;283:20::-;;;;;;;;;;-1:-1:-1;283:20:4;;;;-1:-1:-1;;;;;283:20:4;;;;;;-1:-1:-1;;;;;3101:32:6;;;3083:51;;3071:2;3056:18;283:20:4;2937:203:6;750:39:4;;;;;;;;;;;;;;;;831:37;;;;;;;;;;;;862:6;831:37;;438:22;;;;;;;;;;-1:-1:-1;438:22:4;;;;-1:-1:-1;;;;;438:22:4;;;2143:776;;;;;;:::i;:::-;;:::i;1365:176::-;;;;;;;;;;-1:-1:-1;1365:176:4;;;;;:::i;:::-;;:::i;408:23::-;;;;;;;;;;-1:-1:-1;408:23:4;;;;-1:-1:-1;;;;;408:23:4;;;360:31;;;;;;;;;;;;;;;;332:22;;;;;;;;;;-1:-1:-1;332:22:4;;;;-1:-1:-1;;;;;332:22:4;;;5942:226;;;;;;;;;;-1:-1:-1;5942:226:4;;;;;:::i;:::-;;:::i;307:21::-;;;;;;;;;;-1:-1:-1;307:21:4;;;;-1:-1:-1;;;;;307:21:4;;;6185:102;;;;;;;;;;-1:-1:-1;6185:102:4;;;;;:::i;:::-;-1:-1:-1;;;;;6265:17:4;6244:7;6265:17;;;:8;:17;;;;;;;6185:102;798:27;;;;;;;;;;;;;;;;4341:254;;;;;;;;;;-1:-1:-1;4341:254:4;;;;;:::i;:::-;;:::i;1279:81::-;6356:5;;-1:-1:-1;;;;;6356:5:4;6342:10;:19;6334:38;;;;-1:-1:-1;;;6334:38:4;;;;;;;:::i;:::-;;;;;;;;;1339:5:::1;:16:::0;;-1:-1:-1;;;;;;1339:16:4::1;-1:-1:-1::0;;;;;1339:16:4;;;::::1;::::0;;;::::1;::::0;;1279:81::o;2924:1412::-;3007:1;2990:14;:18;2982:38;;;;-1:-1:-1;;;2982:38:4;;8311:2:6;2982:38:4;;;8293:21:6;8350:1;8330:18;;;8323:29;-1:-1:-1;;;8368:18:6;;;8361:37;8415:18;;2982:38:4;8109:330:6;2982:38:4;3079:14;;3065:10;3051:25;;;;:13;:25;;;;;;:42;;3079:14;3051:42;:::i;:::-;3033:15;:60;3025:82;;;;-1:-1:-1;;;3025:82:4;;4730:2:6;3025:82:4;;;4712:21:6;4769:1;4749:18;;;4742:29;-1:-1:-1;;;4787:18:6;;;4780:39;4836:18;;3025:82:4;4528:332:6;3025:82:4;3123:7;;3114:43;;-1:-1:-1;;;3114:43:4;;3146:10;3114:43;;;3083:51:6;-1:-1:-1;;;;;3123:7:4;;;;3114:31;;3056:18:6;;3114:43:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3207:22;3232:20;:18;:20::i;:::-;3207:45;;3282:1;3265:14;:18;:37;;;;;3301:1;3287:11;;:15;3265:37;3257:56;;;;-1:-1:-1;;;3257:56:4;;5739:2:6;3257:56:4;;;5721:21:6;5778:1;5758:18;;;5751:29;-1:-1:-1;;;5796:18:6;;;5789:36;5842:18;;3257:56:4;5537:329:6;3257:56:4;3320:19;3342:16;:14;:16::i;:::-;3320:38;;3385:5;3371:11;:19;3363:44;;;;-1:-1:-1;;;3363:44:4;;7265:2:6;3363:44:4;;;7247:21:6;7304:2;7284:18;;;7277:30;-1:-1:-1;;;7323:18:6;;;7316:42;7375:18;;3363:44:4;7063:336:6;3363:44:4;3433:14;3481;3467:11;;3450:14;:28;;;;:::i;:::-;:45;;;;:::i;:::-;3555:10;3546:20;;;;:8;:20;;;;;;3433:62;;-1:-1:-1;3536:30:4;;3532:137;;-1:-1:-1;3592:10:4;3583:20;;;;:8;:20;;;;;;3652:11;;3626:23;3635:14;3583:20;3626:23;:::i;:::-;:37;;;;:::i;:::-;3609:54;;3532:137;3675:24;3743:5;3720:19;3728:11;3743:5;3720:19;:::i;:::-;3702:38;;:14;:38;:::i;:::-;:46;;;;:::i;:::-;3675:73;;3753:30;3827:5;3812:11;;3804:5;:19;;;;:::i;:::-;3786:38;;:14;:38;:::i;:::-;:46;;;;:::i;:::-;3753:79;;3871:16;3845:22;:42;;3837:73;;;;-1:-1:-1;;;3837:73:4;;7606:2:6;3837:73:4;;;7588:21:6;7645:2;7625:18;;;7618:30;-1:-1:-1;;;7664:18:6;;;7657:48;7722:18;;3837:73:4;7404:342:6;3837:73:4;3932:6;3917:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;3952:10:4;3943:20;;;;:8;:20;;;;;:30;;3967:6;;3943:20;:30;;3967:6;;3943:30;:::i;:::-;;;;-1:-1:-1;3980:48:4;;-1:-1:-1;3993:10:4;4005:22;3980:12;:48::i;:::-;4082:17;4102:39;4119:22;4102:14;:39;:::i;:::-;4159:7;;4082:59;;-1:-1:-1;4146:32:4;;-1:-1:-1;;;;;4159:7:4;4082:59;4146:12;:32::i;:::-;4192:7;;4183:49;;-1:-1:-1;;;4183:49:4;;;;;9335:25:6;;;-1:-1:-1;;;;;4192:7:4;;;;4183:38;;9308:18:6;;4183:49:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4274:8:4;;4244:83;;;9545:25:6;;;9601:2;9586:18;;9579:34;;;-1:-1:-1;;;;;4274:8:4;;;;-1:-1:-1;4258:10:4;;-1:-1:-1;4244:83:4;;9518:18:6;4244:83:4;;;;;;;2975:1361;;;;;;2924:1412;:::o;1865:258::-;6438:7;;-1:-1:-1;;;;;6438:7:4;6424:10;:21;6416:42;;;;-1:-1:-1;;;6416:42:4;;4394:2:6;6416:42:4;;;4376:21:6;4433:1;4413:18;;;4406:29;-1:-1:-1;;;4451:18:6;;;4444:38;4499:18;;6416:42:4;4192:331:6;6416:42:4;1956:10:::1;1952:167;;;1994:6;1978:12;;:22;1974:100;;2024:1;2009:12;:16:::0;1865:258;;:::o;1974:100::-:1;2061:6;2045:12;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;1952:167:4::1;::::0;-1:-1:-1;1952:167:4::1;;2107:6;2091:12;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;1952:167:4::1;1865:258:::0;;:::o;5714:223::-;5760:7;5774:22;5799:20;:18;:20::i;:::-;5774:45;-1:-1:-1;5828:19:4;5824:33;;5856:1;5849:8;;;5714:223;:::o;5824:33::-;5908:14;5884:21;;5869:12;;:36;;;;:::i;:::-;:53;;;;:::i;:::-;5862:60;;;5714:223;:::o;1546:295::-;6356:5;;-1:-1:-1;;;;;6356:5:4;6342:10;:19;6334:38;;;;-1:-1:-1;;;6334:38:4;;;;;;;:::i;:::-;1701:14:::1;:32:::0;;;;1738:21:::1;:46:::0;;;;1789:6:::1;:16:::0;1810:11:::1;:26:::0;1546:295::o;2143:776::-;2200:19;2222:20;:18;:20::i;:::-;2253:8;;2200:42;;-1:-1:-1;;;;;;2253:8:4;2249:122;;2292:9;;-1:-1:-1;2307:21:4;2292:9;2307:21;;:::i;:::-;;;2249:122;;;2346:19;2358:6;2346:11;:19::i;:::-;2394:1;2385:6;:10;2377:30;;;;-1:-1:-1;;;2377:30:4;;8311:2:6;2377:30:4;;;8293:21:6;8350:1;8330:18;;;8323:29;-1:-1:-1;;;8368:18:6;;;8361:37;8415:18;;2377:30:4;8109:330:6;2377:30:4;2444:6;;2420:20;2429:11;2420:6;:20;:::i;:::-;:30;;2412:51;;;;-1:-1:-1;;;2412:51:4;;5067:2:6;2412:51:4;;;5049:21:6;5106:1;5086:18;;;5079:29;-1:-1:-1;;;5124:18:6;;;5117:38;5172:18;;2412:51:4;4865:331:6;2412:51:4;2476:23;2502:16;;;:36;;-1:-1:-1;2522:11:4;;:16;2502:36;:82;;2573:11;2559;;2550:6;:20;;;;:::i;:::-;:34;;;;:::i;:::-;2502:82;;;2541:6;2502:82;2611:10;2597:25;;;;:13;:25;;;;;;;2625:15;2597:43;;2662:7;;2653:43;;-1:-1:-1;;;2653:43:4;;;;;3083:51:6;;;;2476:108:4;;-1:-1:-1;;;;;;2662:7:4;;;;2653:31;;3056:18:6;;2653:43:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2724:15;2709:11;;:30;;;;;;;:::i;:::-;;;;-1:-1:-1;;2759:10:4;2750:20;;;;:8;:20;;;;;:39;;2774:15;;2750:20;:39;;2774:15;;2750:39;:::i;:::-;;;;-1:-1:-1;;2848:8:4;;2807:105;;;9545:25:6;;;9601:2;9586:18;;9579:34;;;-1:-1:-1;;;;;2848:8:4;;;;2826:10;;2807:105;;9518:18:6;2807:105:4;;;;;;;2193:726;;2143:776;:::o;1365:176::-;6356:5;;-1:-1:-1;;;;;6356:5:4;6342:10;:19;6334:38;;;;-1:-1:-1;;;6334:38:4;;;;;;;:::i;:::-;1425:6:::1;:16:::0;;-1:-1:-1;;;;;;1425:16:4::1;-1:-1:-1::0;;;;;1425:16:4;::::1;::::0;;::::1;::::0;;;1456:25:::1;::::0;;-1:-1:-1;;;1456:25:4;;;;:23:::1;::::0;:25:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;1425:16;1456:25;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1446:7;:35:::0;;-1:-1:-1;;;;;;1446:35:4::1;-1:-1:-1::0;;;;;1446:35:4;;::::1;;::::0;;-1:-1:-1;1504:6:4;1527:8:::1;::::0;;1496:40:::1;::::0;-1:-1:-1;;;1496:40:4;;1527:8;;::::1;1496:40:::0;;::::1;3083:51:6::0;;;;1504:6:4;::::1;::::0;1496:30:::1;::::0;3056:18:6;;1496:40:4::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1486:7;:50:::0;;-1:-1:-1;;;;;;1486:50:4::1;-1:-1:-1::0;;;;;1486:50:4;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;1365:176:4:o;5942:226::-;6009:7;6027:11;;6042:1;6027:16;6023:30;;;-1:-1:-1;6052:1:4;;5942:226;-1:-1:-1;5942:226:4:o;6023:30::-;6058:22;6083:20;:18;:20::i;:::-;6152:11;;-1:-1:-1;;;;;6115:17:4;;;;;;:8;:17;;;;;;6058:45;;-1:-1:-1;6152:11:4;6115:34;;6058:45;;6115:34;:::i;:::-;:48;;;;:::i;:::-;6108:55;5942:226;-1:-1:-1;;;5942:226:4:o;4341:254::-;6438:7;;-1:-1:-1;;;;;6438:7:4;6424:10;:21;6416:42;;;;-1:-1:-1;;;6416:42:4;;4394:2:6;6416:42:4;;;4376:21:6;4433:1;4413:18;;;4406:29;-1:-1:-1;;;4451:18:6;;;4444:38;4499:18;;6416:42:4;4192:331:6;6416:42:4;4434:11;4430:24:::1;;1865:258:::0;;:::o;4430:24::-:1;4458:22;4483:20;:18;:20::i;:::-;4458:45;;4525:14;4516:6;:23;4508:44;;;::::0;-1:-1:-1;;;4508:44:4;;5403:2:6;4508:44:4::1;::::0;::::1;5385:21:6::0;5442:1;5422:18;;;5415:29;-1:-1:-1;;;5460:18:6;;;5453:38;5508:18;;4508:44:4::1;5201:331:6::0;4508:44:4::1;4557:33;4570:11;4583:6;4557:12;:33::i;:::-;4425:170;4341:254:::0;;:::o;5332:362::-;5429:8;;5384:7;;;;-1:-1:-1;;;;;5429:8:4;5425:154;;-1:-1:-1;5476:21:4;5425:154;;;5539:8;;;5532:41;;-1:-1:-1;;;5532:41:4;;5567:4;5532:41;;;3083:51:6;;;;-1:-1:-1;;;;;5539:8:4;;5532:26;;3056:18:6;;5532:41:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5515:58;;5425:154;5610:6;;5630:8;;;5602:37;;-1:-1:-1;;;5602:37:4;;-1:-1:-1;;;;;5630:8:4;;;5602:37;;;3083:51:6;;;;5583:16:4;;5610:6;;5602:27;;3056:18:6;;5602:37:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5583:56;;;-1:-1:-1;5676:12:4;5583:56;5676:2;:12;:::i;:::-;5651:21;862:6;5651:14;:21;:::i;:::-;:38;;;;:::i;:::-;5644:45;;;;5332:362;:::o;4956:371::-;5024:11;;;:31;;-1:-1:-1;;;;;;5039:16:4;;;5024:31;5020:44;;;4956:371;;:::o;5020:44::-;5117:6;;5137:8;;;5109:37;;-1:-1:-1;;;5109:37:4;;-1:-1:-1;;;;;5137:8:4;;;5109:37;;;3083:51:6;;;;5090:16:4;;5117:6;;5109:27;;3056:18:6;;5109:37:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5090:56;;;-1:-1:-1;862:6:4;5170:12;5090:56;5170:2;:12;:::i;:::-;5160:23;;:6;:23;:::i;:::-;:30;;;;:::i;:::-;5199:8;;5151:39;;-1:-1:-1;;;;;;5199:8:4;5195:128;;5229:29;-1:-1:-1;;;;;5229:21:4;;5251:6;5229:21;:29::i;5195:128::-;5283:8;;5276:41;;-1:-1:-1;;;;;5283:8:4;5306:2;5310:6;5276:29;:41::i;4700:251::-;4800:6;;4820:8;;;4792:37;;-1:-1:-1;;;4792:37:4;;-1:-1:-1;;;;;4820:8:4;;;4792:37;;;3083:51:6;;;;4773:16:4;;4800:6;;4792:27;;3056:18:6;;4792:37:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4773:56;;;-1:-1:-1;862:6:4;4853:12;4773:56;4853:2;:12;:::i;:::-;4843:23;;:6;:23;:::i;:::-;:30;;;;:::i;:::-;4885:8;;4834:39;;-1:-1:-1;4878:68:4;;-1:-1:-1;;;;;4885:8:4;4912:10;4932:4;4834:39;4878:33;:68::i;2070:317:0:-;2185:6;2160:21;:31;;2152:73;;;;-1:-1:-1;;;2152:73:0;;6500:2:6;2152:73:0;;;6482:21:6;6539:2;6519:18;;;6512:30;6578:31;6558:18;;;6551:59;6627:18;;2152:73:0;6298:353:6;2152:73:0;2239:12;2257:9;-1:-1:-1;;;;;2257:14:0;2279:6;2257:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2238:52;;;2309:7;2301:78;;;;-1:-1:-1;;;2301:78:0;;6073:2:6;2301:78:0;;;6055:21:6;6112:2;6092:18;;;6085:30;6151:34;6131:18;;;6124:62;6222:28;6202:18;;;6195:56;6268:19;;2301:78:0;5871:422:6;644:211:5;788:58;;-1:-1:-1;;;;;3717:32:6;;788:58:5;;;3699:51:6;3766:18;;;3759:34;;;761:86:5;;781:5;;-1:-1:-1;;;811:23:5;3672:18:6;;788:58:5;;;;-1:-1:-1;;788:58:5;;;;;;;;;;;;;;-1:-1:-1;;;;;788:58:5;-1:-1:-1;;;;;;788:58:5;;;;;;;;;;761:19;:86::i;863:248::-;1034:68;;-1:-1:-1;;;;;3403:15:6;;;1034:68:5;;;3385:34:6;3455:15;;3435:18;;;3428:43;3487:18;;;3480:34;;;1007:96:5;;1027:5;;-1:-1:-1;;;1057:27:5;3320:18:6;;1034:68:5;3145:375:6;1007:96:5;863:248;;;;:::o;3217:716::-;3641:23;3667:69;3695:4;3667:69;;;;;;;;;;;;;;;;;3675:5;-1:-1:-1;;;;;3667:27:5;;;:69;;;;;:::i;:::-;3751:17;;3641:95;;-1:-1:-1;3751:21:5;3747:179;;3848:10;3837:30;;;;;;;;;;;;:::i;:::-;3829:85;;;;-1:-1:-1;;;3829:85:5;;8646:2:6;3829:85:5;;;8628:21:6;8685:2;8665:18;;;8658:30;8724:34;8704:18;;;8697:62;-1:-1:-1;;;8775:18:6;;;8768:40;8825:19;;3829:85:5;8444:406:6;3554:229:0;3691:12;3723:52;3745:6;3753:4;3759:1;3762:12;3723:21;:52::i;:::-;3716:59;3554:229;-1:-1:-1;;;;3554:229:0:o;4674:510::-;4844:12;4902:5;4877:21;:30;;4869:81;;;;-1:-1:-1;;;4869:81:0;;6858:2:6;4869:81:0;;;6840:21:6;6897:2;6877:18;;;6870:30;6936:34;6916:18;;;6909:62;-1:-1:-1;;;6987:18:6;;;6980:36;7033:19;;4869:81:0;6656:402:6;4869:81:0;1071:20;;4961:60;;;;-1:-1:-1;;;4961:60:0;;7953:2:6;4961:60:0;;;7935:21:6;7992:2;7972:18;;;7965:30;8031:31;8011:18;;;8004:59;8080:18;;4961:60:0;7751:353:6;4961:60:0;5035:12;5049:23;5076:6;-1:-1:-1;;;;;5076:11:0;5095:5;5102:4;5076:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5034:73;;;;5125:51;5142:7;5151:10;5163:12;5125:16;:51::i;:::-;5118:58;4674:510;-1:-1:-1;;;;;;;4674:510:0:o;7360:712::-;7510:12;7539:7;7535:530;;;-1:-1:-1;7570:10:0;7563:17;;7535:530;7684:17;;:21;7680:374;;7882:10;7876:17;7943:15;7930:10;7926:2;7922:19;7915:44;7680:374;8025:12;8018:20;;-1:-1:-1;;;8018:20:0;;;;;;;;:::i;14:247:6:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;200:31;225:5;200:31;:::i;266:251::-;336:6;389:2;377:9;368:7;364:23;360:32;357:52;;;405:1;402;395:12;357:52;437:9;431:16;456:31;481:5;456:31;:::i;522:315::-;590:6;598;651:2;639:9;630:7;626:23;622:32;619:52;;;667:1;664;657:12;619:52;706:9;693:23;725:31;750:5;725:31;:::i;:::-;775:5;827:2;812:18;;;;799:32;;-1:-1:-1;;;522:315:6:o;842:245::-;909:6;962:2;950:9;941:7;937:23;933:32;930:52;;;978:1;975;968:12;930:52;1010:9;1004:16;1029:28;1051:5;1029:28;:::i;1092:180::-;1151:6;1204:2;1192:9;1183:7;1179:23;1175:32;1172:52;;;1220:1;1217;1210:12;1172:52;-1:-1:-1;1243:23:6;;1092:180;-1:-1:-1;1092:180:6:o;1277:184::-;1347:6;1400:2;1388:9;1379:7;1375:23;1371:32;1368:52;;;1416:1;1413;1406:12;1368:52;-1:-1:-1;1439:16:6;;1277:184;-1:-1:-1;1277:184:6:o;1466:309::-;1531:6;1539;1592:2;1580:9;1571:7;1567:23;1563:32;1560:52;;;1608:1;1605;1598:12;1560:52;1644:9;1631:23;1621:33;;1704:2;1693:9;1689:18;1676:32;1717:28;1739:5;1717:28;:::i;:::-;1764:5;1754:15;;;1466:309;;;;;:::o;1780:385::-;1866:6;1874;1882;1890;1943:3;1931:9;1922:7;1918:23;1914:33;1911:53;;;1960:1;1957;1950:12;1911:53;-1:-1:-1;;1983:23:6;;;2053:2;2038:18;;2025:32;;-1:-1:-1;2104:2:6;2089:18;;2076:32;;2155:2;2140:18;2127:32;;-1:-1:-1;1780:385:6;-1:-1:-1;1780:385:6:o;2170:273::-;2238:6;2291:2;2279:9;2270:7;2266:23;2262:32;2259:52;;;2307:1;2304;2297:12;2259:52;2339:9;2333:16;2389:4;2382:5;2378:16;2371:5;2368:27;2358:55;;2409:1;2406;2399:12;2448:274;2577:3;2615:6;2609:13;2631:53;2677:6;2672:3;2665:4;2657:6;2653:17;2631:53;:::i;:::-;2700:16;;;;;2448:274;-1:-1:-1;;2448:274:6:o;3804:383::-;3953:2;3942:9;3935:21;3916:4;3985:6;3979:13;4028:6;4023:2;4012:9;4008:18;4001:34;4044:66;4103:6;4098:2;4087:9;4083:18;4078:2;4070:6;4066:15;4044:66;:::i;:::-;4171:2;4150:15;-1:-1:-1;;4146:29:6;4131:45;;;;4178:2;4127:54;;3804:383;-1:-1:-1;;3804:383:6:o;8855:329::-;9057:2;9039:21;;;9096:1;9076:18;;;9069:29;-1:-1:-1;;;9129:2:6;9114:18;;9107:36;9175:2;9160:18;;8855:329::o;9624:128::-;9664:3;9695:1;9691:6;9688:1;9685:13;9682:39;;;9701:18;;:::i;:::-;-1:-1:-1;9737:9:6;;9624:128::o;9757:217::-;9797:1;9823;9813:132;;9867:10;9862:3;9858:20;9855:1;9848:31;9902:4;9899:1;9892:15;9930:4;9927:1;9920:15;9813:132;-1:-1:-1;9959:9:6;;9757:217::o;9979:422::-;10068:1;10111:5;10068:1;10125:270;10146:7;10136:8;10133:21;10125:270;;;10205:4;10201:1;10197:6;10193:17;10187:4;10184:27;10181:53;;;10214:18;;:::i;:::-;10264:7;10254:8;10250:22;10247:55;;;10284:16;;;;10247:55;10363:22;;;;10323:15;;;;10125:270;;;10129:3;9979:422;;;;;:::o;10406:131::-;10466:5;10495:36;10522:8;10516:4;10591:5;10621:8;10611:80;;-1:-1:-1;10662:1:6;10676:5;;10611:80;10710:4;10700:76;;-1:-1:-1;10747:1:6;10761:5;;10700:76;10792:4;10810:1;10805:59;;;;10878:1;10873:130;;;;10785:218;;10805:59;10835:1;10826:10;;10849:5;;;10873:130;10910:3;10900:8;10897:17;10894:43;;;10917:18;;:::i;:::-;-1:-1:-1;;10973:1:6;10959:16;;10988:5;;10785:218;;11087:2;11077:8;11074:16;11068:3;11062:4;11059:13;11055:36;11049:2;11039:8;11036:16;11031:2;11025:4;11022:12;11018:35;11015:77;11012:159;;;-1:-1:-1;11124:19:6;;;11156:5;;11012:159;11203:34;11228:8;11222:4;11203:34;:::i;:::-;11273:6;11269:1;11265:6;11261:19;11252:7;11249:32;11246:58;;;11284:18;;:::i;:::-;11322:20;;-1:-1:-1;10542:806:6;;;;;:::o;11353:168::-;11393:7;11459:1;11455;11451:6;11447:14;11444:1;11441:21;11436:1;11429:9;11422:17;11418:45;11415:71;;;11466:18;;:::i;:::-;-1:-1:-1;11506:9:6;;11353:168::o;11526:125::-;11566:4;11594:1;11591;11588:8;11585:34;;;11599:18;;:::i;:::-;-1:-1:-1;11636:9:6;;11526:125::o;11656:258::-;11728:1;11738:113;11752:6;11749:1;11746:13;11738:113;;;11828:11;;;11822:18;11809:11;;;11802:39;11774:2;11767:10;11738:113;;;11869:6;11866:1;11863:13;11860:48;;;-1:-1:-1;;11904:1:6;11886:16;;11879:27;11656:258::o;11919:127::-;11980:10;11975:3;11971:20;11968:1;11961:31;12011:4;12008:1;12001:15;12035:4;12032:1;12025:15;12051:131;-1:-1:-1;;;;;12126:31:6;;12116:42;;12106:70;;12172:1;12169;12162:12;12106:70;12051:131;:::o;12187:118::-;12273:5;12266:13;12259:21;12252:5;12249:32;12239:60;;12295:1;12292;12285:12

Swarm Source

ipfs://1a5aa94236274750a6a73f4e86bf0253a8b2ce909468aca2bce1690801278c2e

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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