ETH Price: $3,415.19 (+1.81%)
Gas: 5.25 Gwei

Token

Synthetic SSRP (SSSRP)
 

Overview

Max Total Supply

137,741,442.021792984995359592 SSSRP

Holders

268

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
buyru.eth
Balance
3,964.91 SSSRP

Value
$0.00
0x71e1A74DA1998dCAECCbaBaA0ffC76A66d51458C
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RiskPool

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 8 : RiskPool.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./RiskPoolERC20.sol";
import "./interfaces/ISingleSidedReinsurancePool.sol";
import "./interfaces/IRiskPool.sol";
import "./libraries/TransferHelper.sol";

contract RiskPool is IRiskPool, RiskPoolERC20 {
    // ERC20 attributes
    string public name;
    string public symbol;

    address public SSRP;
    address public override currency; // for now we should accept only UNO
    uint256 public override lpPriceUno;
    uint256 public MIN_LP_CAPITAL = 1e20;

    event LogCancelWithdrawRequest(address indexed _user, uint256 _amount, uint256 _amountInUno);
    event LogPolicyClaim(address indexed _user, uint256 _amount);
    event LogMigrateLP(address indexed _user, address indexed _migrateTo, uint256 _unoAmount);
    event LogLeaveFromPending(address indexed _user, uint256 _withdrawLpAmount, uint256 _withdrawUnoAmount);

    constructor(
        string memory _name,
        string memory _symbol,
        address _SSRP,
        address _currency
    ) {
        name = _name;
        symbol = _symbol;
        SSRP = _SSRP;
        currency = _currency;
        lpPriceUno = 1e18;
    }

    modifier onlySSRP() {
        require(msg.sender == SSRP, "UnoRe: RiskPool Forbidden");
        _;
    }

    /**
     * @dev Users can stake only through Cohort
     */
    function enter(address _from, uint256 _amount) external override onlySSRP {
        _mint(_from, (_amount * 1e18) / lpPriceUno);
    }

    /**
     * @param _amount UNO amount to withdraw
     */
    function leaveFromPoolInPending(address _to, uint256 _amount) external override onlySSRP {
        require(totalSupply() > 0, "UnoRe: There's no remaining in the pool");
        uint256 requestAmountInLP = (_amount * 1e18) / lpPriceUno;
        require(
            (requestAmountInLP + uint256(withdrawRequestPerUser[_to].pendingAmount)) <= balanceOf(_to),
            "UnoRe: lp balance overflow"
        );
        _withdrawRequest(_to, requestAmountInLP, _amount);
    }

    function leaveFromPending(address _to) external override onlySSRP returns (uint256, uint256) {
        uint256 cryptoBalance = IERC20(currency).balanceOf(address(this));
        uint256 pendingAmount = uint256(withdrawRequestPerUser[_to].pendingAmount);
        require(cryptoBalance > 0, "UnoRe: zero uno balance");
        require(balanceOf(_to) >= pendingAmount, "UnoRe: lp balance overflow");
        _withdrawImplement(_to);
        uint256 pendingAmountInUno = (pendingAmount * lpPriceUno) / 1e18;
        if (cryptoBalance - MIN_LP_CAPITAL > pendingAmountInUno) {
            TransferHelper.safeTransfer(currency, _to, pendingAmountInUno);
            emit LogLeaveFromPending(_to, pendingAmount, pendingAmountInUno);
            return (pendingAmount, pendingAmountInUno);
        } else {
            TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL);
            emit LogLeaveFromPending(_to, pendingAmount, cryptoBalance - MIN_LP_CAPITAL);
            return (((cryptoBalance - MIN_LP_CAPITAL) * 1e18) / lpPriceUno, cryptoBalance - MIN_LP_CAPITAL);
        }
    }

    function cancelWithrawRequest(address _to) external override onlySSRP returns (uint256, uint256) {
        uint256 _pendingAmount = uint256(withdrawRequestPerUser[_to].pendingAmount);
        require(_pendingAmount > 0, "UnoRe: zero amount");
        _cancelWithdrawRequest(_to);
        emit LogCancelWithdrawRequest(_to, _pendingAmount, (_pendingAmount * lpPriceUno) / 1e18);
        return (_pendingAmount, (_pendingAmount * lpPriceUno) / 1e18);
    }

    function policyClaim(address _to, uint256 _amount) external override onlySSRP returns (uint256 realClaimAmount) {
        uint256 cryptoBalance = IERC20(currency).balanceOf(address(this));
        require(totalSupply() > 0, "UnoRe: zero lp balance");
        require(cryptoBalance > MIN_LP_CAPITAL, "UnoRe: minimum UNO capital underflow");
        if (cryptoBalance - MIN_LP_CAPITAL > _amount) {
            TransferHelper.safeTransfer(currency, _to, _amount);
            realClaimAmount = _amount;
            emit LogPolicyClaim(_to, _amount);
        } else {
            TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL);
            realClaimAmount = cryptoBalance - MIN_LP_CAPITAL;
            emit LogPolicyClaim(_to, cryptoBalance - MIN_LP_CAPITAL);
        }
        cryptoBalance = IERC20(currency).balanceOf(address(this));
        lpPriceUno = (cryptoBalance * 1e18) / totalSupply(); // UNO value per lp
    }

    function migrateLP(
        address _to,
        address _migrateTo,
        bool _isUnLocked
    ) external override onlySSRP returns (uint256) {
        require(_migrateTo != address(0), "UnoRe: zero address");
        if (_isUnLocked && withdrawRequestPerUser[_to].pendingAmount > 0) {
            uint256 pendingAmountInUno = (uint256(withdrawRequestPerUser[_to].pendingAmount) * lpPriceUno) / 1e18;
            uint256 cryptoBalance = IERC20(currency).balanceOf(address(this));
            if (pendingAmountInUno < cryptoBalance - MIN_LP_CAPITAL) {
                TransferHelper.safeTransfer(currency, _to, pendingAmountInUno);
            } else {
                TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL);
            }
            _withdrawImplement(_to);
        } else {
            if (withdrawRequestPerUser[_to].pendingAmount > 0) {
                _cancelWithdrawRequest(_to);
            }
        }
        uint256 unoBalance = (balanceOf(_to) * lpPriceUno) / 1e18;
        TransferHelper.safeTransfer(currency, _migrateTo, unoBalance);
        _burn(_to, balanceOf(_to));
        emit LogMigrateLP(_to, _migrateTo, unoBalance);
        return unoBalance;
    }

    function setMinLPCapital(uint256 _minLPCapital) external override onlySSRP {
        require(_minLPCapital > 0, "UnoRe: not allow zero value");
        MIN_LP_CAPITAL = _minLPCapital;
    }

    function getWithdrawRequest(address _to)
        external
        view
        override
        onlySSRP
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        return (
            uint256(withdrawRequestPerUser[_to].pendingAmount),
            uint256(withdrawRequestPerUser[_to].requestTime),
            withdrawRequestPerUser[_to].pendingUno
        );
    }

    function getTotalWithdrawRequestAmount() external view override onlySSRP returns (uint256) {
        return totalWithdrawPending;
    }

    function transfer(address recipient, uint256 amount) external override returns (bool) {
        require(
            balanceOf(msg.sender) - uint256(withdrawRequestPerUser[msg.sender].pendingAmount) >= amount,
            "ERC20: transfer amount exceeds balance or pending WR"
        );
        _transfer(msg.sender, recipient, amount);

        ISingleSidedReinsurancePool(SSRP).lpTransfer(msg.sender, recipient, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external override returns (bool) {
        require(
            balanceOf(sender) - uint256(withdrawRequestPerUser[sender].pendingAmount) >= amount,
            "ERC20: transfer amount exceeds balance or pending WR"
        );
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][msg.sender];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, msg.sender, currentAllowance - amount);
        ISingleSidedReinsurancePool(SSRP).lpTransfer(sender, recipient, amount);
        return true;
    }
}

File 2 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 3 of 8 : RiskPoolERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

import "./interfaces/IRiskPoolERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract RiskPoolERC20 is Context, IRiskPoolERC20 {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) internal _allowances;

    struct UserWithdrawRequestInfo {
        uint128 pendingAmount;
        uint128 requestTime;
        uint256 pendingUno;
    }
    mapping(address => UserWithdrawRequestInfo) internal withdrawRequestPerUser;
    uint256 internal totalWithdrawPending;

    uint256 private _totalSupply;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor() {}

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() external view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) external virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) external view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) external virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    function _withdrawRequest(
        address _user,
        uint256 _amount,
        uint256 _amountInUno
    ) internal {
        require(balanceOf(_user) >= _amount, "UnoRe: balance overflow");
        if (withdrawRequestPerUser[_user].pendingAmount == 0 && withdrawRequestPerUser[_user].requestTime == 0) {
            withdrawRequestPerUser[_user] = UserWithdrawRequestInfo({
                pendingAmount: uint128(_amount),
                requestTime: uint128(block.timestamp),
                pendingUno: _amountInUno
            });
        } else {
            withdrawRequestPerUser[_user].pendingAmount += uint128(_amount);
            withdrawRequestPerUser[_user].pendingUno += _amountInUno;
            withdrawRequestPerUser[_user].requestTime = uint128(block.timestamp);
        }
        totalWithdrawPending += _amount;
    }

    function _withdrawImplement(address _user) internal {
        require(uint256(withdrawRequestPerUser[_user].pendingAmount) > 0, "UnoRe: zero claim amount");
        uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount;
        totalWithdrawPending -= _pendingAmount;
        _burn(_user, _pendingAmount);
        delete withdrawRequestPerUser[_user];
    }

    function _cancelWithdrawRequest(address _user) internal {
        uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount;
        totalWithdrawPending -= _pendingAmount;
        delete withdrawRequestPerUser[_user];
    }
}

File 4 of 8 : ISingleSidedReinsurancePool.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.0;

interface ISingleSidedReinsurancePool {
    function updatePool() external;

    function enterInPool(uint256 _amount) external;

    function leaveFromPoolInPending(uint256 _amount) external;

    function leaveFromPending() external;

    function harvest(address _to) external;

    function lpTransfer(
        address _from,
        address _to,
        uint256 _amount
    ) external;

    function riskPool() external view returns (address);
}

File 5 of 8 : IRiskPool.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.0;

interface IRiskPool {
    function enter(address _from, uint256 _amount) external;

    function leaveFromPoolInPending(address _to, uint256 _amount) external;

    function leaveFromPending(address _to) external returns (uint256, uint256);

    function cancelWithrawRequest(address _to) external returns (uint256, uint256);

    function policyClaim(address _to, uint256 _amount) external returns (uint256 realClaimAmount);

    function migrateLP(
        address _to,
        address _migrateTo,
        bool _isUnLocked
    ) external returns (uint256);

    function setMinLPCapital(uint256 _minLPCapital) external;

    function currency() external view returns (address);

    function getTotalWithdrawRequestAmount() external view returns (uint256);

    function getWithdrawRequest(address _to)
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );

    function lpPriceUno() external view returns (uint256);
}

File 6 of 8 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.0;

// from Uniswap TransferHelper library
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeApprove: approve failed");
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeTransfer: transfer failed");
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::transferFrom: transferFrom failed");
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "TransferHelper::safeTransferETH: ETH transfer failed");
    }
}

File 7 of 8 : IRiskPoolERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IRiskPoolERC20 {
    /**
     * @dev Returns the decimals places of the token.
     */
    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 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_SSRP","type":"address"},{"internalType":"address","name":"_currency","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountInUno","type":"uint256"}],"name":"LogCancelWithdrawRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_withdrawLpAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_withdrawUnoAmount","type":"uint256"}],"name":"LogLeaveFromPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_migrateTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"_unoAmount","type":"uint256"}],"name":"LogMigrateLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"LogPolicyClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MIN_LP_CAPITAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SSRP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"cancelWithrawRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currency","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTotalWithdrawRequestAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"getWithdrawRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"leaveFromPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveFromPoolInPending","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpPriceUno","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_migrateTo","type":"address"},{"internalType":"bool","name":"_isUnLocked","type":"bool"}],"name":"migrateLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"policyClaim","outputs":[{"internalType":"uint256","name":"realClaimAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minLPCapital","type":"uint256"}],"name":"setMinLPCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405268056bc75e2d63100000600a553480156200001e57600080fd5b50604051620026263803806200262683398101604081905262000041916200021b565b835162000056906005906020870190620000ad565b5082516200006c906006906020860190620000ad565b50600780546001600160a01b039384166001600160a01b031991821617909155600880549290931691161790555050670de0b6b3a7640000600955620002fa565b828054620000bb90620002a7565b90600052602060002090601f016020900481019282620000df57600085556200012a565b82601f10620000fa57805160ff19168380011785556200012a565b828001600101855582156200012a579182015b828111156200012a5782518255916020019190600101906200010d565b50620001389291506200013c565b5090565b5b808211156200013857600081556001016200013d565b80516001600160a01b03811681146200016b57600080fd5b919050565b600082601f83011262000181578081fd5b81516001600160401b03808211156200019e576200019e620002e4565b6040516020601f8401601f1916820181018381118382101715620001c657620001c6620002e4565b6040528382528584018101871015620001dd578485fd5b8492505b83831015620002005785830181015182840182015291820191620001e1565b838311156200021157848185840101525b5095945050505050565b6000806000806080858703121562000231578384fd5b84516001600160401b038082111562000248578586fd5b620002568883890162000170565b955060208701519150808211156200026c578485fd5b506200027b8782880162000170565b9350506200028c6040860162000153565b91506200029c6060860162000153565b905092959194509250565b600281046001821680620002bc57607f821691505b60208210811415620002de57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61231c806200030a6000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c80637e348b7d116100e3578063d7e3655a1161008c578063e5a6b10f11610066578063e5a6b10f14610353578063e95aa8d31461035b578063f53fb2001461036357610198565b8063d7e3655a14610325578063dcd053201461032d578063dd62ed3e1461034057610198565b8063a457c2d7116100bd578063a457c2d7146102de578063a9059cbb146102f1578063b20ecd151461030457610198565b80637e348b7d146102b057806393b6b86c146102c357806395d89b41146102d657610198565b80632e4a014211610145578063395093511161011f578063395093511461027557806347bcdb2a1461028857806370a082311461029d57610198565b80632e4a01421461023a578063313ce5671461024d5780633613302f1461026257610198565b806318160ddd1161017657806318160ddd146101f057806323b872dd146102055780632ccae8961461021857610198565b806306fdde031461019d578063095ea7b3146101bb57806311ca7399146101db575b600080fd5b6101a561036b565b6040516101b29190611b92565b60405180910390f35b6101ce6101c9366004611aa5565b6103f9565b6040516101b29190611b87565b6101e3610416565b6040516101b29190611b36565b6101f8610425565b6040516101b29190612184565b6101ce610213366004611a6a565b61042b565b61022b6102263660046119d1565b61055c565b6040516101b29392919061219b565b6101f8610248366004611aa5565b6105c7565b610255610867565b6040516101b291906121b1565b6101f8610270366004611a24565b61086c565b6101ce610283366004611aa5565b610af9565b61029b610296366004611aa5565b610b48565b005b6101f86102ab3660046119d1565b610c20565b61029b6102be366004611aa5565b610c3f565b61029b6102d1366004611aea565b610c97565b6101a5610ce6565b6101ce6102ec366004611aa5565b610cf3565b6101ce6102ff366004611aa5565b610d6e565b6103176103123660046119d1565b610e36565b6040516101b292919061218d565b6101f86110af565b61031761033b3660046119d1565b6110b5565b6101f861034e3660046119f2565b6111bb565b6101e36111e6565b6101f86111f5565b6101f8611229565b6005805461037890612284565b80601f01602080910402602001604051908101604052809291908181526020018280546103a490612284565b80156103f15780601f106103c6576101008083540402835291602001916103f1565b820191906000526020600020905b8154815290600101906020018083116103d457829003601f168201915b505050505081565b600061040d61040661122f565b8484611233565b50600192915050565b6007546001600160a01b031681565b60045490565b6001600160a01b03831660009081526002602052604081205482906001600160801b031661045886610c20565b6104629190612241565b10156104895760405162461bcd60e51b815260040161048090611f3e565b60405180910390fd5b6104948484846112e7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104d85760405162461bcd60e51b815260040161048090611e70565b6104ec85336104e78685612241565b611233565b6007546040516274d72160e51b81526001600160a01b0390911690630e9ae4209061051f90889088908890600401611b4a565b600060405180830381600087803b15801561053957600080fd5b505af115801561054d573d6000803e3d6000fd5b50600198975050505050505050565b600754600090819081906001600160a01b0316331461058d5760405162461bcd60e51b815260040161048090612063565b5050506001600160a01b0316600090815260026020526040902080546001909101546001600160801b0380831693600160801b9093041691565b6007546000906001600160a01b031633146105f45760405162461bcd60e51b815260040161048090612063565b6008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610625903090600401611b36565b60206040518083038186803b15801561063d57600080fd5b505afa158015610651573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106759190611b02565b90506000610681610425565b1161069e5760405162461bcd60e51b815260040161048090611c08565b600a5481116106bf5760405162461bcd60e51b815260040161048090611c3f565b82600a54826106ce9190612241565b1115610734576008546106eb906001600160a01b0316858561141a565b829150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def362846040516107279190612184565b60405180910390a26107b7565b600854600a54610759916001600160a01b03169086906107549085612241565b61141a565b600a546107669082612241565b9150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def362600a54836107a19190612241565b6040516107ae9190612184565b60405180910390a25b6008546040516370a0823160e01b81526001600160a01b03909116906370a08231906107e7903090600401611b36565b60206040518083038186803b1580156107ff57600080fd5b505afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108379190611b02565b9050610841610425565b61085382670de0b6b3a7640000612222565b61085d9190612202565b6009555092915050565b601290565b6007546000906001600160a01b031633146108995760405162461bcd60e51b815260040161048090612063565b6001600160a01b0383166108bf5760405162461bcd60e51b815260040161048090611d07565b8180156108ec57506001600160a01b0384166000908152600260205260409020546001600160801b031615155b15610a1f576009546001600160a01b0385166000908152600260205260408120549091670de0b6b3a76400009161092c91906001600160801b0316612222565b6109369190612202565b6008546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061096c903090600401611b36565b60206040518083038186803b15801561098457600080fd5b505afa158015610998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bc9190611b02565b9050600a54816109cc9190612241565b8210156109ef576008546109ea906001600160a01b0316878461141a565b610a0f565b600854600a54610a0f916001600160a01b03169088906107549085612241565b610a188661151c565b5050610a4f565b6001600160a01b0384166000908152600260205260409020546001600160801b031615610a4f57610a4f846115c1565b6000670de0b6b3a7640000600954610a6687610c20565b610a709190612222565b610a7a9190612202565b600854909150610a94906001600160a01b0316858361141a565b610aa685610aa187610c20565b61161d565b836001600160a01b0316856001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981983604051610ae99190612184565b60405180910390a3949350505050565b600061040d610b0661122f565b848460016000610b1461122f565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546104e791906121ea565b6007546001600160a01b03163314610b725760405162461bcd60e51b815260040161048090612063565b6000610b7c610425565b11610b995760405162461bcd60e51b815260040161048090611e29565b600954600090610bb183670de0b6b3a7640000612222565b610bbb9190612202565b9050610bc683610c20565b6001600160a01b038416600090815260026020526040902054610bf2906001600160801b0316836121ea565b1115610c105760405162461bcd60e51b815260040161048090611fdf565b610c1b838284611717565b505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6007546001600160a01b03163314610c695760405162461bcd60e51b815260040161048090612063565b610c938260095483670de0b6b3a7640000610c849190612222565b610c8e9190612202565b6118f2565b5050565b6007546001600160a01b03163314610cc15760405162461bcd60e51b815260040161048090612063565b60008111610ce15760405162461bcd60e51b815260040161048090612116565b600a55565b6006805461037890612284565b60008060016000610d0261122f565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610d4e5760405162461bcd60e51b8152600401610480906120d1565b610d64610d5961122f565b856104e78685612241565b5060019392505050565b33600081815260026020526040812054909183916001600160801b031690610d9590610c20565b610d9f9190612241565b1015610dbd5760405162461bcd60e51b815260040161048090611f3e565b610dc83384846112e7565b6007546040516274d72160e51b81526001600160a01b0390911690630e9ae42090610dfb90339087908790600401611b4a565b600060405180830381600087803b158015610e1557600080fd5b505af1158015610e29573d6000803e3d6000fd5b5060019695505050505050565b60075460009081906001600160a01b03163314610e655760405162461bcd60e51b815260040161048090612063565b6008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610e96903090600401611b36565b60206040518083038186803b158015610eae57600080fd5b505afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611b02565b6001600160a01b0385166000908152600260205260409020549091506001600160801b031681610f285760405162461bcd60e51b81526004016104809061209a565b80610f3286610c20565b1015610f505760405162461bcd60e51b815260040161048090611fdf565b610f598561151c565b6000670de0b6b3a764000060095483610f729190612222565b610f7c9190612202565b905080600a5484610f8d9190612241565b1115610ff957600854610faa906001600160a01b0316878361141a565b856001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea08383604051610fe592919061218d565b60405180910390a290935091506110aa9050565b600854600a54611019916001600160a01b03169088906107549087612241565b856001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea083600a54866110539190612241565b60405161106192919061218d565b60405180910390a2600954600a546110799085612241565b61108b90670de0b6b3a7640000612222565b6110959190612202565b600a546110a29085612241565b945094505050505b915091565b600a5481565b60075460009081906001600160a01b031633146110e45760405162461bcd60e51b815260040161048090612063565b6001600160a01b0383166000908152600260205260409020546001600160801b0316806111235760405162461bcd60e51b815260040161048090611df2565b61112c846115c1565b836001600160a01b03167f09c6481cb228ea7f61ceb67c8e708038eb74bbb68cfcc54a9cfca199087ecfb782670de0b6b3a76400006009548561116f9190612222565b6111799190612202565b60405161118792919061218d565b60405180910390a280670de0b6b3a7640000600954836111a79190612222565b6111b19190612202565b9250925050915091565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6008546001600160a01b031681565b6007546000906001600160a01b031633146112225760405162461bcd60e51b815260040161048090612063565b5060035490565b60095481565b3390565b6001600160a01b0383166112595760405162461bcd60e51b815260040161048090611f9b565b6001600160a01b03821661127f5760405162461bcd60e51b815260040161048090611cc5565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906112da908590612184565b60405180910390a3505050565b6001600160a01b03831661130d5760405162461bcd60e51b815260040161048090611ef9565b6001600160a01b0382166113335760405162461bcd60e51b815260040161048090611bc5565b61133e838383610c1b565b6001600160a01b038316600090815260208190526040902054818110156113775760405162461bcd60e51b815260040161048090611d75565b6113818282612241565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906113b79084906121ea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114019190612184565b60405180910390a3611414848484610c1b565b50505050565b600080846001600160a01b031663a9059cbb858560405160240161143f929190611b6e565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161148d9190611b1a565b6000604051808303816000865af19150503d80600081146114ca576040519150601f19603f3d011682016040523d82523d6000602084013e6114cf565b606091505b50915091508180156114f95750805115806114f95750808060200190518101906114f99190611ace565b6115155760405162461bcd60e51b815260040161048090612016565b5050505050565b6001600160a01b0381166000908152600260205260409020546001600160801b031661155a5760405162461bcd60e51b815260040161048090611d3e565b6001600160a01b038116600090815260026020526040812054600380546001600160801b03909216928392611590908490612241565b909155506115a09050828261161d565b506001600160a01b0316600090815260026020526040812081815560010155565b6001600160a01b038116600090815260026020526040812054600380546001600160801b039092169283926115f7908490612241565b9091555050506001600160a01b0316600090815260026020526040812081815560010155565b6001600160a01b0382166116435760405162461bcd60e51b815260040161048090611eb8565b61164f82600083610c1b565b6001600160a01b038216600090815260208190526040902054818110156116885760405162461bcd60e51b815260040161048090611c83565b6116928282612241565b6001600160a01b038416600090815260208190526040812091909155600480548492906116c0908490612241565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611703908690612184565b60405180910390a3610c1b83600084610c1b565b8161172184610c20565b101561173f5760405162461bcd60e51b815260040161048090611dbb565b6001600160a01b0383166000908152600260205260409020546001600160801b031615801561179457506001600160a01b038316600090815260026020526040902054600160801b90046001600160801b0316155b1561181357604080516060810182526001600160801b03848116825242811660208084019182528385018681526001600160a01b038916600090815260029092529490209251835491516fffffffffffffffffffffffffffffffff19909216908316178216600160801b919092160217815590516001909101556118d6565b6001600160a01b038316600090815260026020526040812080548492906118449084906001600160801b03166121bf565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060026000856001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546118a091906121ea565b90915550506001600160a01b038316600090815260026020526040902080546001600160801b03428116600160801b0291161790555b81600360008282546118e891906121ea565b9091555050505050565b6001600160a01b0382166119185760405162461bcd60e51b81526004016104809061214d565b61192460008383610c1b565b806004600082825461193691906121ea565b90915550506001600160a01b038216600090815260208190526040812080548392906119639084906121ea565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119a6908590612184565b60405180910390a3610c9360008383610c1b565b80356001600160a01b0381168114610c3a57600080fd5b6000602082840312156119e2578081fd5b6119eb826119ba565b9392505050565b60008060408385031215611a04578081fd5b611a0d836119ba565b9150611a1b602084016119ba565b90509250929050565b600080600060608486031215611a38578081fd5b611a41846119ba565b9250611a4f602085016119ba565b91506040840135611a5f816122d5565b809150509250925092565b600080600060608486031215611a7e578283fd5b611a87846119ba565b9250611a95602085016119ba565b9150604084013590509250925092565b60008060408385031215611ab7578182fd5b611ac0836119ba565b946020939093013593505050565b600060208284031215611adf578081fd5b81516119eb816122d5565b600060208284031215611afb578081fd5b5035919050565b600060208284031215611b13578081fd5b5051919050565b60008251611b2c818460208701612258565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611bb1816040850160208701612258565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526016908201527f556e6f52653a207a65726f206c702062616c616e636500000000000000000000604082015260600190565b60208082526024908201527f556e6f52653a206d696e696d756d20554e4f206361706974616c20756e646572604082015263666c6f7760e01b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526013908201527f556e6f52653a207a65726f206164647265737300000000000000000000000000604082015260600190565b60208082526018908201527f556e6f52653a207a65726f20636c61696d20616d6f756e740000000000000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526017908201527f556e6f52653a2062616c616e6365206f766572666c6f77000000000000000000604082015260600190565b60208082526012908201527f556e6f52653a207a65726f20616d6f756e740000000000000000000000000000604082015260600190565b60208082526027908201527f556e6f52653a2054686572652773206e6f2072656d61696e696e6720696e20746040820152661a19481c1bdbdb60ca1b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526034908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e6365206f722070656e64696e67205752000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f556e6f52653a206c702062616c616e6365206f766572666c6f77000000000000604082015260600190565b6020808252602d908201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260408201526c185b9cd9995c8819985a5b1959609a1b606082015260800190565b60208082526019908201527f556e6f52653a205269736b506f6f6c20466f7262696464656e00000000000000604082015260600190565b60208082526017908201527f556e6f52653a207a65726f20756e6f2062616c616e6365000000000000000000604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601b908201527f556e6f52653a206e6f7420616c6c6f77207a65726f2076616c75650000000000604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60006001600160801b038083168185168083038211156121e1576121e16122bf565b01949350505050565b600082198211156121fd576121fd6122bf565b500190565b60008261221d57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561223c5761223c6122bf565b500290565b600082821015612253576122536122bf565b500390565b60005b8381101561227357818101518382015260200161225b565b838111156114145750506000910152565b60028104600182168061229857607f821691505b602082108114156122b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146122e357600080fd5b5056fea2646970667358221220db908e2e66836788b2f5560fab811d1fee2d36d4a9f9e7dbbba19f5006cdacdf64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000087e1f628225c170a5c0bf895580686430deb3322000000000000000000000000474021845c4643113458ea4414bdb7fb74a01a77000000000000000000000000000000000000000000000000000000000000000e53796e746865746963205353525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055353535250000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c80637e348b7d116100e3578063d7e3655a1161008c578063e5a6b10f11610066578063e5a6b10f14610353578063e95aa8d31461035b578063f53fb2001461036357610198565b8063d7e3655a14610325578063dcd053201461032d578063dd62ed3e1461034057610198565b8063a457c2d7116100bd578063a457c2d7146102de578063a9059cbb146102f1578063b20ecd151461030457610198565b80637e348b7d146102b057806393b6b86c146102c357806395d89b41146102d657610198565b80632e4a014211610145578063395093511161011f578063395093511461027557806347bcdb2a1461028857806370a082311461029d57610198565b80632e4a01421461023a578063313ce5671461024d5780633613302f1461026257610198565b806318160ddd1161017657806318160ddd146101f057806323b872dd146102055780632ccae8961461021857610198565b806306fdde031461019d578063095ea7b3146101bb57806311ca7399146101db575b600080fd5b6101a561036b565b6040516101b29190611b92565b60405180910390f35b6101ce6101c9366004611aa5565b6103f9565b6040516101b29190611b87565b6101e3610416565b6040516101b29190611b36565b6101f8610425565b6040516101b29190612184565b6101ce610213366004611a6a565b61042b565b61022b6102263660046119d1565b61055c565b6040516101b29392919061219b565b6101f8610248366004611aa5565b6105c7565b610255610867565b6040516101b291906121b1565b6101f8610270366004611a24565b61086c565b6101ce610283366004611aa5565b610af9565b61029b610296366004611aa5565b610b48565b005b6101f86102ab3660046119d1565b610c20565b61029b6102be366004611aa5565b610c3f565b61029b6102d1366004611aea565b610c97565b6101a5610ce6565b6101ce6102ec366004611aa5565b610cf3565b6101ce6102ff366004611aa5565b610d6e565b6103176103123660046119d1565b610e36565b6040516101b292919061218d565b6101f86110af565b61031761033b3660046119d1565b6110b5565b6101f861034e3660046119f2565b6111bb565b6101e36111e6565b6101f86111f5565b6101f8611229565b6005805461037890612284565b80601f01602080910402602001604051908101604052809291908181526020018280546103a490612284565b80156103f15780601f106103c6576101008083540402835291602001916103f1565b820191906000526020600020905b8154815290600101906020018083116103d457829003601f168201915b505050505081565b600061040d61040661122f565b8484611233565b50600192915050565b6007546001600160a01b031681565b60045490565b6001600160a01b03831660009081526002602052604081205482906001600160801b031661045886610c20565b6104629190612241565b10156104895760405162461bcd60e51b815260040161048090611f3e565b60405180910390fd5b6104948484846112e7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104d85760405162461bcd60e51b815260040161048090611e70565b6104ec85336104e78685612241565b611233565b6007546040516274d72160e51b81526001600160a01b0390911690630e9ae4209061051f90889088908890600401611b4a565b600060405180830381600087803b15801561053957600080fd5b505af115801561054d573d6000803e3d6000fd5b50600198975050505050505050565b600754600090819081906001600160a01b0316331461058d5760405162461bcd60e51b815260040161048090612063565b5050506001600160a01b0316600090815260026020526040902080546001909101546001600160801b0380831693600160801b9093041691565b6007546000906001600160a01b031633146105f45760405162461bcd60e51b815260040161048090612063565b6008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610625903090600401611b36565b60206040518083038186803b15801561063d57600080fd5b505afa158015610651573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106759190611b02565b90506000610681610425565b1161069e5760405162461bcd60e51b815260040161048090611c08565b600a5481116106bf5760405162461bcd60e51b815260040161048090611c3f565b82600a54826106ce9190612241565b1115610734576008546106eb906001600160a01b0316858561141a565b829150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def362846040516107279190612184565b60405180910390a26107b7565b600854600a54610759916001600160a01b03169086906107549085612241565b61141a565b600a546107669082612241565b9150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def362600a54836107a19190612241565b6040516107ae9190612184565b60405180910390a25b6008546040516370a0823160e01b81526001600160a01b03909116906370a08231906107e7903090600401611b36565b60206040518083038186803b1580156107ff57600080fd5b505afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108379190611b02565b9050610841610425565b61085382670de0b6b3a7640000612222565b61085d9190612202565b6009555092915050565b601290565b6007546000906001600160a01b031633146108995760405162461bcd60e51b815260040161048090612063565b6001600160a01b0383166108bf5760405162461bcd60e51b815260040161048090611d07565b8180156108ec57506001600160a01b0384166000908152600260205260409020546001600160801b031615155b15610a1f576009546001600160a01b0385166000908152600260205260408120549091670de0b6b3a76400009161092c91906001600160801b0316612222565b6109369190612202565b6008546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061096c903090600401611b36565b60206040518083038186803b15801561098457600080fd5b505afa158015610998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bc9190611b02565b9050600a54816109cc9190612241565b8210156109ef576008546109ea906001600160a01b0316878461141a565b610a0f565b600854600a54610a0f916001600160a01b03169088906107549085612241565b610a188661151c565b5050610a4f565b6001600160a01b0384166000908152600260205260409020546001600160801b031615610a4f57610a4f846115c1565b6000670de0b6b3a7640000600954610a6687610c20565b610a709190612222565b610a7a9190612202565b600854909150610a94906001600160a01b0316858361141a565b610aa685610aa187610c20565b61161d565b836001600160a01b0316856001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981983604051610ae99190612184565b60405180910390a3949350505050565b600061040d610b0661122f565b848460016000610b1461122f565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546104e791906121ea565b6007546001600160a01b03163314610b725760405162461bcd60e51b815260040161048090612063565b6000610b7c610425565b11610b995760405162461bcd60e51b815260040161048090611e29565b600954600090610bb183670de0b6b3a7640000612222565b610bbb9190612202565b9050610bc683610c20565b6001600160a01b038416600090815260026020526040902054610bf2906001600160801b0316836121ea565b1115610c105760405162461bcd60e51b815260040161048090611fdf565b610c1b838284611717565b505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6007546001600160a01b03163314610c695760405162461bcd60e51b815260040161048090612063565b610c938260095483670de0b6b3a7640000610c849190612222565b610c8e9190612202565b6118f2565b5050565b6007546001600160a01b03163314610cc15760405162461bcd60e51b815260040161048090612063565b60008111610ce15760405162461bcd60e51b815260040161048090612116565b600a55565b6006805461037890612284565b60008060016000610d0261122f565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610d4e5760405162461bcd60e51b8152600401610480906120d1565b610d64610d5961122f565b856104e78685612241565b5060019392505050565b33600081815260026020526040812054909183916001600160801b031690610d9590610c20565b610d9f9190612241565b1015610dbd5760405162461bcd60e51b815260040161048090611f3e565b610dc83384846112e7565b6007546040516274d72160e51b81526001600160a01b0390911690630e9ae42090610dfb90339087908790600401611b4a565b600060405180830381600087803b158015610e1557600080fd5b505af1158015610e29573d6000803e3d6000fd5b5060019695505050505050565b60075460009081906001600160a01b03163314610e655760405162461bcd60e51b815260040161048090612063565b6008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610e96903090600401611b36565b60206040518083038186803b158015610eae57600080fd5b505afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611b02565b6001600160a01b0385166000908152600260205260409020549091506001600160801b031681610f285760405162461bcd60e51b81526004016104809061209a565b80610f3286610c20565b1015610f505760405162461bcd60e51b815260040161048090611fdf565b610f598561151c565b6000670de0b6b3a764000060095483610f729190612222565b610f7c9190612202565b905080600a5484610f8d9190612241565b1115610ff957600854610faa906001600160a01b0316878361141a565b856001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea08383604051610fe592919061218d565b60405180910390a290935091506110aa9050565b600854600a54611019916001600160a01b03169088906107549087612241565b856001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea083600a54866110539190612241565b60405161106192919061218d565b60405180910390a2600954600a546110799085612241565b61108b90670de0b6b3a7640000612222565b6110959190612202565b600a546110a29085612241565b945094505050505b915091565b600a5481565b60075460009081906001600160a01b031633146110e45760405162461bcd60e51b815260040161048090612063565b6001600160a01b0383166000908152600260205260409020546001600160801b0316806111235760405162461bcd60e51b815260040161048090611df2565b61112c846115c1565b836001600160a01b03167f09c6481cb228ea7f61ceb67c8e708038eb74bbb68cfcc54a9cfca199087ecfb782670de0b6b3a76400006009548561116f9190612222565b6111799190612202565b60405161118792919061218d565b60405180910390a280670de0b6b3a7640000600954836111a79190612222565b6111b19190612202565b9250925050915091565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6008546001600160a01b031681565b6007546000906001600160a01b031633146112225760405162461bcd60e51b815260040161048090612063565b5060035490565b60095481565b3390565b6001600160a01b0383166112595760405162461bcd60e51b815260040161048090611f9b565b6001600160a01b03821661127f5760405162461bcd60e51b815260040161048090611cc5565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906112da908590612184565b60405180910390a3505050565b6001600160a01b03831661130d5760405162461bcd60e51b815260040161048090611ef9565b6001600160a01b0382166113335760405162461bcd60e51b815260040161048090611bc5565b61133e838383610c1b565b6001600160a01b038316600090815260208190526040902054818110156113775760405162461bcd60e51b815260040161048090611d75565b6113818282612241565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906113b79084906121ea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114019190612184565b60405180910390a3611414848484610c1b565b50505050565b600080846001600160a01b031663a9059cbb858560405160240161143f929190611b6e565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161148d9190611b1a565b6000604051808303816000865af19150503d80600081146114ca576040519150601f19603f3d011682016040523d82523d6000602084013e6114cf565b606091505b50915091508180156114f95750805115806114f95750808060200190518101906114f99190611ace565b6115155760405162461bcd60e51b815260040161048090612016565b5050505050565b6001600160a01b0381166000908152600260205260409020546001600160801b031661155a5760405162461bcd60e51b815260040161048090611d3e565b6001600160a01b038116600090815260026020526040812054600380546001600160801b03909216928392611590908490612241565b909155506115a09050828261161d565b506001600160a01b0316600090815260026020526040812081815560010155565b6001600160a01b038116600090815260026020526040812054600380546001600160801b039092169283926115f7908490612241565b9091555050506001600160a01b0316600090815260026020526040812081815560010155565b6001600160a01b0382166116435760405162461bcd60e51b815260040161048090611eb8565b61164f82600083610c1b565b6001600160a01b038216600090815260208190526040902054818110156116885760405162461bcd60e51b815260040161048090611c83565b6116928282612241565b6001600160a01b038416600090815260208190526040812091909155600480548492906116c0908490612241565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611703908690612184565b60405180910390a3610c1b83600084610c1b565b8161172184610c20565b101561173f5760405162461bcd60e51b815260040161048090611dbb565b6001600160a01b0383166000908152600260205260409020546001600160801b031615801561179457506001600160a01b038316600090815260026020526040902054600160801b90046001600160801b0316155b1561181357604080516060810182526001600160801b03848116825242811660208084019182528385018681526001600160a01b038916600090815260029092529490209251835491516fffffffffffffffffffffffffffffffff19909216908316178216600160801b919092160217815590516001909101556118d6565b6001600160a01b038316600090815260026020526040812080548492906118449084906001600160801b03166121bf565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060026000856001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546118a091906121ea565b90915550506001600160a01b038316600090815260026020526040902080546001600160801b03428116600160801b0291161790555b81600360008282546118e891906121ea565b9091555050505050565b6001600160a01b0382166119185760405162461bcd60e51b81526004016104809061214d565b61192460008383610c1b565b806004600082825461193691906121ea565b90915550506001600160a01b038216600090815260208190526040812080548392906119639084906121ea565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119a6908590612184565b60405180910390a3610c9360008383610c1b565b80356001600160a01b0381168114610c3a57600080fd5b6000602082840312156119e2578081fd5b6119eb826119ba565b9392505050565b60008060408385031215611a04578081fd5b611a0d836119ba565b9150611a1b602084016119ba565b90509250929050565b600080600060608486031215611a38578081fd5b611a41846119ba565b9250611a4f602085016119ba565b91506040840135611a5f816122d5565b809150509250925092565b600080600060608486031215611a7e578283fd5b611a87846119ba565b9250611a95602085016119ba565b9150604084013590509250925092565b60008060408385031215611ab7578182fd5b611ac0836119ba565b946020939093013593505050565b600060208284031215611adf578081fd5b81516119eb816122d5565b600060208284031215611afb578081fd5b5035919050565b600060208284031215611b13578081fd5b5051919050565b60008251611b2c818460208701612258565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611bb1816040850160208701612258565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526016908201527f556e6f52653a207a65726f206c702062616c616e636500000000000000000000604082015260600190565b60208082526024908201527f556e6f52653a206d696e696d756d20554e4f206361706974616c20756e646572604082015263666c6f7760e01b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526013908201527f556e6f52653a207a65726f206164647265737300000000000000000000000000604082015260600190565b60208082526018908201527f556e6f52653a207a65726f20636c61696d20616d6f756e740000000000000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526017908201527f556e6f52653a2062616c616e6365206f766572666c6f77000000000000000000604082015260600190565b60208082526012908201527f556e6f52653a207a65726f20616d6f756e740000000000000000000000000000604082015260600190565b60208082526027908201527f556e6f52653a2054686572652773206e6f2072656d61696e696e6720696e20746040820152661a19481c1bdbdb60ca1b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526034908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e6365206f722070656e64696e67205752000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f556e6f52653a206c702062616c616e6365206f766572666c6f77000000000000604082015260600190565b6020808252602d908201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260408201526c185b9cd9995c8819985a5b1959609a1b606082015260800190565b60208082526019908201527f556e6f52653a205269736b506f6f6c20466f7262696464656e00000000000000604082015260600190565b60208082526017908201527f556e6f52653a207a65726f20756e6f2062616c616e6365000000000000000000604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601b908201527f556e6f52653a206e6f7420616c6c6f77207a65726f2076616c75650000000000604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60006001600160801b038083168185168083038211156121e1576121e16122bf565b01949350505050565b600082198211156121fd576121fd6122bf565b500190565b60008261221d57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561223c5761223c6122bf565b500290565b600082821015612253576122536122bf565b500390565b60005b8381101561227357818101518382015260200161225b565b838111156114145750506000910152565b60028104600182168061229857607f821691505b602082108114156122b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146122e357600080fd5b5056fea2646970667358221220db908e2e66836788b2f5560fab811d1fee2d36d4a9f9e7dbbba19f5006cdacdf64736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000087e1f628225c170a5c0bf895580686430deb3322000000000000000000000000474021845c4643113458ea4414bdb7fb74a01a77000000000000000000000000000000000000000000000000000000000000000e53796e746865746963205353525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055353535250000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Synthetic SSRP
Arg [1] : _symbol (string): SSSRP
Arg [2] : _SSRP (address): 0x87e1f628225c170a5C0Bf895580686430DEb3322
Arg [3] : _currency (address): 0x474021845C4643113458ea4414bdb7fB74A01A77

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 00000000000000000000000087e1f628225c170a5c0bf895580686430deb3322
Arg [3] : 000000000000000000000000474021845c4643113458ea4414bdb7fb74a01a77
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 53796e7468657469632053535250000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 5353535250000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.