ETH Price: $3,933.10 (+5.62%)

Token

ERC-20: Vested SAIL (veSAIL)
 

Overview

Max Total Supply

8,937,831.557615360613182375 veSAIL

Holders

397

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
04057.eth
Balance
9,671.522129026601274591 veSAIL

Value
$0.00
0x58f0B1c5E44ACcB8BB7c1259d0f21e96A43E3ca4
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:
veSAIL

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : veSAIL.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract veSAIL is ERC20("Vested SAIL", "veSAIL"){
    using SafeMath for uint256;
    IERC20 public sail;

    error VaultTokenNontransferable();

    uint256 EXCHANGE_RATE_PRECISION_MULT = 10**9;

    constructor(IERC20 _sail){
        sail = _sail;
    }

    function deposit(uint256 _amount) public {
        uint256 totalSail = sail.balanceOf(address(this));

        uint256 totalShares = totalSupply();

        if (totalShares == 0 || totalSail == 0) {
            _mint(msg.sender, _amount);
        } 
        else {
            uint256 what = _amount.mul(totalShares).div(totalSail);
            _mint(msg.sender, what);
        }

        sail.transferFrom(msg.sender, address(this), _amount);
    }

    function withdraw(uint256 _share) public {
        uint256 totalShares = totalSupply();
        uint256 what = _share.mul(sail.balanceOf(address(this))).div(totalShares);
        _burn(msg.sender, _share);
        sail.transfer(msg.sender, what);
    }

    function getExchangeRate() public view returns (uint256) {
        return (EXCHANGE_RATE_PRECISION_MULT*sail.balanceOf(address(this))) / totalSupply();
    }

    function toSAIL(uint256 veSAILAmount) public view returns (uint256 sailAmount) {
        sailAmount = (veSAILAmount * sail.balanceOf(address(this))) / totalSupply();
    }

    function toVESAIL(uint256 sailAmount) public view returns (uint256 veSailAmount) {
        veSailAmount = (sailAmount * totalSupply()) / sail.balanceOf(address(this));
    }

    /* Disable ERC20 Transfer and Approval functionality for vault shares */
    function _transfer(address from, address to, uint256 amount) internal override {
        revert VaultTokenNontransferable();
    }

    function _approve(address owner, address spender, uint256 amount) internal override {
        revert VaultTokenNontransferable();
    }
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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 ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @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 default value returned by this function, unless
     * it's 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() public 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 {}
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_sail","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"VaultTokenNontransferable","type":"error"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"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":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getExchangeRate","outputs":[{"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sail","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"veSAILAmount","type":"uint256"}],"name":"toSAIL","outputs":[{"internalType":"uint256","name":"sailAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sailAmount","type":"uint256"}],"name":"toVESAIL","outputs":[{"internalType":"uint256","name":"veSailAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052633b9aca006006553480156200001957600080fd5b5060405162001ecf38038062001ecf83398181016040528101906200003f919062000197565b6040518060400160405280600b81526020017f566573746564205341494c0000000000000000000000000000000000000000008152506040518060400160405280600681526020017f76655341494c00000000000000000000000000000000000000000000000000008152508160039081620000bc919062000443565b508060049081620000ce919062000443565b50505080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200052a565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200014b826200011e565b9050919050565b60006200015f826200013e565b9050919050565b620001718162000152565b81146200017d57600080fd5b50565b600081519050620001918162000166565b92915050565b600060208284031215620001b057620001af62000119565b5b6000620001c08482850162000180565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200024b57607f821691505b60208210810362000261576200026062000203565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620002cb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200028c565b620002d786836200028c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003246200031e6200031884620002ef565b620002f9565b620002ef565b9050919050565b6000819050919050565b620003408362000303565b620003586200034f826200032b565b84845462000299565b825550505050565b600090565b6200036f62000360565b6200037c81848462000335565b505050565b5b81811015620003a4576200039860008262000365565b60018101905062000382565b5050565b601f821115620003f357620003bd8162000267565b620003c8846200027c565b81016020851015620003d8578190505b620003f0620003e7856200027c565b83018262000381565b50505b505050565b600082821c905092915050565b60006200041860001984600802620003f8565b1980831691505092915050565b600062000433838362000405565b9150826002028217905092915050565b6200044e82620001c9565b67ffffffffffffffff8111156200046a5762000469620001d4565b5b62000476825462000232565b62000483828285620003a8565b600060209050601f831160018114620004bb5760008415620004a6578287015190505b620004b2858262000425565b86555062000522565b601f198416620004cb8662000267565b60005b82811015620004f557848901518255600182019150602085019450602081019050620004ce565b8683101562000515578489015162000511601f89168262000405565b8355505b6001600288020188555050505b505050505050565b611995806200053a6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806339509351116100a2578063a9059cbb11610071578063a9059cbb146102f4578063b6b55f2514610324578063d475bc1014610340578063dd62ed3e1461035e578063e6aa216c1461038e5761010b565b8063395093511461024657806370a082311461027657806395d89b41146102a6578063a457c2d7146102c45761010b565b806323b872dd116100de57806323b872dd146101ac5780632c7dfabc146101dc5780632e1a7d4d1461020c578063313ce567146102285761010b565b806306fdde0314610110578063095ea7b31461012e57806318160ddd1461015e57806320f39ad31461017c575b600080fd5b6101186103ac565b604051610125919061114e565b60405180910390f35b61014860048036038101906101439190611209565b61043e565b6040516101559190611264565b60405180910390f35b610166610461565b604051610173919061128e565b60405180910390f35b610196600480360381019061019191906112a9565b61046b565b6040516101a3919061128e565b60405180910390f35b6101c660048036038101906101c191906112d6565b61052d565b6040516101d39190611264565b60405180910390f35b6101f660048036038101906101f191906112a9565b61055c565b604051610203919061128e565b60405180910390f35b610226600480360381019061022191906112a9565b61061e565b005b61023061079e565b60405161023d9190611345565b60405180910390f35b610260600480360381019061025b9190611209565b6107a7565b60405161026d9190611264565b60405180910390f35b610290600480360381019061028b9190611360565b6107de565b60405161029d919061128e565b60405180910390f35b6102ae610826565b6040516102bb919061114e565b60405180910390f35b6102de60048036038101906102d99190611209565b6108b8565b6040516102eb9190611264565b60405180910390f35b61030e60048036038101906103099190611209565b61092f565b60405161031b9190611264565b60405180910390f35b61033e600480360381019061033991906112a9565b610952565b005b610348610afe565b60405161035591906113ec565b60405180910390f35b61037860048036038101906103739190611407565b610b24565b604051610385919061128e565b60405180910390f35b610396610bab565b6040516103a3919061128e565b60405180910390f35b6060600380546103bb90611476565b80601f01602080910402602001604051908101604052809291908181526020018280546103e790611476565b80156104345780601f1061040957610100808354040283529160200191610434565b820191906000526020600020905b81548152906001019060200180831161041757829003601f168201915b5050505050905090565b600080610449610c6d565b9050610456818585610c75565b600191505092915050565b6000600254905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104c891906114b6565b602060405180830381865afa1580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050991906114e6565b610511610461565b8361051c9190611542565b61052691906115b3565b9050919050565b600080610538610c6d565b9050610545858285610ca7565b610550858585610d33565b60019150509392505050565b6000610566610461565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105c191906114b6565b602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060291906114e6565b8361060d9190611542565b61061791906115b3565b9050919050565b6000610628610461565b905060006106ec826106de600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068e91906114b6565b602060405180830381865afa1580156106ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cf91906114e6565b86610d6590919063ffffffff16565b610d7b90919063ffffffff16565b90506106f83384610d91565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016107559291906115e4565b6020604051808303816000875af1158015610774573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107989190611639565b50505050565b60006012905090565b6000806107b2610c6d565b90506107d38185856107c48589610b24565b6107ce9190611666565b610c75565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606004805461083590611476565b80601f016020809104026020016040519081016040528092919081815260200182805461086190611476565b80156108ae5780601f10610883576101008083540402835291602001916108ae565b820191906000526020600020905b81548152906001019060200180831161089157829003601f168201915b5050505050905090565b6000806108c3610c6d565b905060006108d18286610b24565b905083811015610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d9061170c565b60405180910390fd5b6109238286868403610c75565b60019250505092915050565b60008061093a610c6d565b9050610947818585610d33565b600191505092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109af91906114b6565b602060405180830381865afa1580156109cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f091906114e6565b905060006109fc610461565b90506000811480610a0d5750600082145b15610a2157610a1c3384610f5e565b610a56565b6000610a4883610a3a8487610d6590919063ffffffff16565b610d7b90919063ffffffff16565b9050610a543382610f5e565b505b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610ab59392919061172c565b6020604051808303816000875af1158015610ad4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af89190611639565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000610bb5610461565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c1091906114b6565b602060405180830381865afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5191906114e6565b600654610c5e9190611542565b610c6891906115b3565b905090565b600033905090565b6040517f67d037c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610cb38484610b24565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610d2d5781811015610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d16906117af565b60405180910390fd5b610d2c8484848403610c75565b5b50505050565b6040517f67d037c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008183610d739190611542565b905092915050565b60008183610d8991906115b3565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df790611841565b60405180910390fd5b610e0c826000836110b4565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e89906118d3565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f45919061128e565b60405180910390a3610f59836000846110b9565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc49061193f565b60405180910390fd5b610fd9600083836110b4565b8060026000828254610feb9190611666565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161109c919061128e565b60405180910390a36110b0600083836110b9565b5050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156110f85780820151818401526020810190506110dd565b60008484015250505050565b6000601f19601f8301169050919050565b6000611120826110be565b61112a81856110c9565b935061113a8185602086016110da565b61114381611104565b840191505092915050565b600060208201905081810360008301526111688184611115565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111a082611175565b9050919050565b6111b081611195565b81146111bb57600080fd5b50565b6000813590506111cd816111a7565b92915050565b6000819050919050565b6111e6816111d3565b81146111f157600080fd5b50565b600081359050611203816111dd565b92915050565b600080604083850312156112205761121f611170565b5b600061122e858286016111be565b925050602061123f858286016111f4565b9150509250929050565b60008115159050919050565b61125e81611249565b82525050565b60006020820190506112796000830184611255565b92915050565b611288816111d3565b82525050565b60006020820190506112a3600083018461127f565b92915050565b6000602082840312156112bf576112be611170565b5b60006112cd848285016111f4565b91505092915050565b6000806000606084860312156112ef576112ee611170565b5b60006112fd868287016111be565b935050602061130e868287016111be565b925050604061131f868287016111f4565b9150509250925092565b600060ff82169050919050565b61133f81611329565b82525050565b600060208201905061135a6000830184611336565b92915050565b60006020828403121561137657611375611170565b5b6000611384848285016111be565b91505092915050565b6000819050919050565b60006113b26113ad6113a884611175565b61138d565b611175565b9050919050565b60006113c482611397565b9050919050565b60006113d6826113b9565b9050919050565b6113e6816113cb565b82525050565b600060208201905061140160008301846113dd565b92915050565b6000806040838503121561141e5761141d611170565b5b600061142c858286016111be565b925050602061143d858286016111be565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061148e57607f821691505b6020821081036114a1576114a0611447565b5b50919050565b6114b081611195565b82525050565b60006020820190506114cb60008301846114a7565b92915050565b6000815190506114e0816111dd565b92915050565b6000602082840312156114fc576114fb611170565b5b600061150a848285016114d1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061154d826111d3565b9150611558836111d3565b9250828202611566816111d3565b9150828204841483151761157d5761157c611513565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006115be826111d3565b91506115c9836111d3565b9250826115d9576115d8611584565b5b828204905092915050565b60006040820190506115f960008301856114a7565b611606602083018461127f565b9392505050565b61161681611249565b811461162157600080fd5b50565b6000815190506116338161160d565b92915050565b60006020828403121561164f5761164e611170565b5b600061165d84828501611624565b91505092915050565b6000611671826111d3565b915061167c836111d3565b925082820190508082111561169457611693611513565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006116f66025836110c9565b91506117018261169a565b604082019050919050565b60006020820190508181036000830152611725816116e9565b9050919050565b600060608201905061174160008301866114a7565b61174e60208301856114a7565b61175b604083018461127f565b949350505050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000611799601d836110c9565b91506117a482611763565b602082019050919050565b600060208201905081810360008301526117c88161178c565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061182b6021836110c9565b9150611836826117cf565b604082019050919050565b6000602082019050818103600083015261185a8161181e565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006118bd6022836110c9565b91506118c882611861565b604082019050919050565b600060208201905081810360008301526118ec816118b0565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000611929601f836110c9565b9150611934826118f3565b602082019050919050565b600060208201905081810360008301526119588161191c565b905091905056fea2646970667358221220d7d520a5b7c608e5aea9e94d18dd4e6493f94e1a2fbd1aa975440ec06d95227e64736f6c63430008120033000000000000000000000000d8f1460044925d2d5c723c7054cd9247027415b7

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806339509351116100a2578063a9059cbb11610071578063a9059cbb146102f4578063b6b55f2514610324578063d475bc1014610340578063dd62ed3e1461035e578063e6aa216c1461038e5761010b565b8063395093511461024657806370a082311461027657806395d89b41146102a6578063a457c2d7146102c45761010b565b806323b872dd116100de57806323b872dd146101ac5780632c7dfabc146101dc5780632e1a7d4d1461020c578063313ce567146102285761010b565b806306fdde0314610110578063095ea7b31461012e57806318160ddd1461015e57806320f39ad31461017c575b600080fd5b6101186103ac565b604051610125919061114e565b60405180910390f35b61014860048036038101906101439190611209565b61043e565b6040516101559190611264565b60405180910390f35b610166610461565b604051610173919061128e565b60405180910390f35b610196600480360381019061019191906112a9565b61046b565b6040516101a3919061128e565b60405180910390f35b6101c660048036038101906101c191906112d6565b61052d565b6040516101d39190611264565b60405180910390f35b6101f660048036038101906101f191906112a9565b61055c565b604051610203919061128e565b60405180910390f35b610226600480360381019061022191906112a9565b61061e565b005b61023061079e565b60405161023d9190611345565b60405180910390f35b610260600480360381019061025b9190611209565b6107a7565b60405161026d9190611264565b60405180910390f35b610290600480360381019061028b9190611360565b6107de565b60405161029d919061128e565b60405180910390f35b6102ae610826565b6040516102bb919061114e565b60405180910390f35b6102de60048036038101906102d99190611209565b6108b8565b6040516102eb9190611264565b60405180910390f35b61030e60048036038101906103099190611209565b61092f565b60405161031b9190611264565b60405180910390f35b61033e600480360381019061033991906112a9565b610952565b005b610348610afe565b60405161035591906113ec565b60405180910390f35b61037860048036038101906103739190611407565b610b24565b604051610385919061128e565b60405180910390f35b610396610bab565b6040516103a3919061128e565b60405180910390f35b6060600380546103bb90611476565b80601f01602080910402602001604051908101604052809291908181526020018280546103e790611476565b80156104345780601f1061040957610100808354040283529160200191610434565b820191906000526020600020905b81548152906001019060200180831161041757829003601f168201915b5050505050905090565b600080610449610c6d565b9050610456818585610c75565b600191505092915050565b6000600254905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104c891906114b6565b602060405180830381865afa1580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050991906114e6565b610511610461565b8361051c9190611542565b61052691906115b3565b9050919050565b600080610538610c6d565b9050610545858285610ca7565b610550858585610d33565b60019150509392505050565b6000610566610461565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105c191906114b6565b602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060291906114e6565b8361060d9190611542565b61061791906115b3565b9050919050565b6000610628610461565b905060006106ec826106de600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068e91906114b6565b602060405180830381865afa1580156106ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cf91906114e6565b86610d6590919063ffffffff16565b610d7b90919063ffffffff16565b90506106f83384610d91565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016107559291906115e4565b6020604051808303816000875af1158015610774573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107989190611639565b50505050565b60006012905090565b6000806107b2610c6d565b90506107d38185856107c48589610b24565b6107ce9190611666565b610c75565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606004805461083590611476565b80601f016020809104026020016040519081016040528092919081815260200182805461086190611476565b80156108ae5780601f10610883576101008083540402835291602001916108ae565b820191906000526020600020905b81548152906001019060200180831161089157829003601f168201915b5050505050905090565b6000806108c3610c6d565b905060006108d18286610b24565b905083811015610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d9061170c565b60405180910390fd5b6109238286868403610c75565b60019250505092915050565b60008061093a610c6d565b9050610947818585610d33565b600191505092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109af91906114b6565b602060405180830381865afa1580156109cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f091906114e6565b905060006109fc610461565b90506000811480610a0d5750600082145b15610a2157610a1c3384610f5e565b610a56565b6000610a4883610a3a8487610d6590919063ffffffff16565b610d7b90919063ffffffff16565b9050610a543382610f5e565b505b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610ab59392919061172c565b6020604051808303816000875af1158015610ad4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af89190611639565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000610bb5610461565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c1091906114b6565b602060405180830381865afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5191906114e6565b600654610c5e9190611542565b610c6891906115b3565b905090565b600033905090565b6040517f67d037c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610cb38484610b24565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610d2d5781811015610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d16906117af565b60405180910390fd5b610d2c8484848403610c75565b5b50505050565b6040517f67d037c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008183610d739190611542565b905092915050565b60008183610d8991906115b3565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df790611841565b60405180910390fd5b610e0c826000836110b4565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e89906118d3565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f45919061128e565b60405180910390a3610f59836000846110b9565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc49061193f565b60405180910390fd5b610fd9600083836110b4565b8060026000828254610feb9190611666565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161109c919061128e565b60405180910390a36110b0600083836110b9565b5050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156110f85780820151818401526020810190506110dd565b60008484015250505050565b6000601f19601f8301169050919050565b6000611120826110be565b61112a81856110c9565b935061113a8185602086016110da565b61114381611104565b840191505092915050565b600060208201905081810360008301526111688184611115565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111a082611175565b9050919050565b6111b081611195565b81146111bb57600080fd5b50565b6000813590506111cd816111a7565b92915050565b6000819050919050565b6111e6816111d3565b81146111f157600080fd5b50565b600081359050611203816111dd565b92915050565b600080604083850312156112205761121f611170565b5b600061122e858286016111be565b925050602061123f858286016111f4565b9150509250929050565b60008115159050919050565b61125e81611249565b82525050565b60006020820190506112796000830184611255565b92915050565b611288816111d3565b82525050565b60006020820190506112a3600083018461127f565b92915050565b6000602082840312156112bf576112be611170565b5b60006112cd848285016111f4565b91505092915050565b6000806000606084860312156112ef576112ee611170565b5b60006112fd868287016111be565b935050602061130e868287016111be565b925050604061131f868287016111f4565b9150509250925092565b600060ff82169050919050565b61133f81611329565b82525050565b600060208201905061135a6000830184611336565b92915050565b60006020828403121561137657611375611170565b5b6000611384848285016111be565b91505092915050565b6000819050919050565b60006113b26113ad6113a884611175565b61138d565b611175565b9050919050565b60006113c482611397565b9050919050565b60006113d6826113b9565b9050919050565b6113e6816113cb565b82525050565b600060208201905061140160008301846113dd565b92915050565b6000806040838503121561141e5761141d611170565b5b600061142c858286016111be565b925050602061143d858286016111be565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061148e57607f821691505b6020821081036114a1576114a0611447565b5b50919050565b6114b081611195565b82525050565b60006020820190506114cb60008301846114a7565b92915050565b6000815190506114e0816111dd565b92915050565b6000602082840312156114fc576114fb611170565b5b600061150a848285016114d1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061154d826111d3565b9150611558836111d3565b9250828202611566816111d3565b9150828204841483151761157d5761157c611513565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006115be826111d3565b91506115c9836111d3565b9250826115d9576115d8611584565b5b828204905092915050565b60006040820190506115f960008301856114a7565b611606602083018461127f565b9392505050565b61161681611249565b811461162157600080fd5b50565b6000815190506116338161160d565b92915050565b60006020828403121561164f5761164e611170565b5b600061165d84828501611624565b91505092915050565b6000611671826111d3565b915061167c836111d3565b925082820190508082111561169457611693611513565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006116f66025836110c9565b91506117018261169a565b604082019050919050565b60006020820190508181036000830152611725816116e9565b9050919050565b600060608201905061174160008301866114a7565b61174e60208301856114a7565b61175b604083018461127f565b949350505050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000611799601d836110c9565b91506117a482611763565b602082019050919050565b600060208201905081810360008301526117c88161178c565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061182b6021836110c9565b9150611836826117cf565b604082019050919050565b6000602082019050818103600083015261185a8161181e565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006118bd6022836110c9565b91506118c882611861565b604082019050919050565b600060208201905081810360008301526118ec816118b0565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000611929601f836110c9565b9150611934826118f3565b602082019050919050565b600060208201905081810360008301526119588161191c565b905091905056fea2646970667358221220d7d520a5b7c608e5aea9e94d18dd4e6493f94e1a2fbd1aa975440ec06d95227e64736f6c63430008120033

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

000000000000000000000000d8f1460044925d2d5c723c7054cd9247027415b7

-----Decoded View---------------
Arg [0] : _sail (address): 0xd8F1460044925d2D5c723C7054cd9247027415B7

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


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.