ETH Price: $2,179.16 (+1.87%)

Contract

0xBDC423927e70E4013A7906FE54ad8209643f734C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unwrap219432492025-02-28 7:07:598 days ago1740726479IN
Aladdin DAO: wxALD Token
0 ETH0.000123582.33289362
Unwrap219031382025-02-22 16:43:2314 days ago1740242603IN
Aladdin DAO: wxALD Token
0 ETH0.000044420.83852883
Unwrap218979232025-02-21 23:13:3515 days ago1740179615IN
Aladdin DAO: wxALD Token
0 ETH0.000187162.67091853
Unwrap218317002025-02-12 16:49:2324 days ago1739378963IN
Aladdin DAO: wxALD Token
0 ETH0.000087781.65705744
Unwrap217850862025-02-06 4:30:3531 days ago1738816235IN
Aladdin DAO: wxALD Token
0 ETH0.000079481.5
Unwrap217509372025-02-01 10:01:1135 days ago1738404071IN
Aladdin DAO: wxALD Token
0 ETH0.00011612.19165297
Unwrap217078762025-01-26 9:43:5941 days ago1737884639IN
Aladdin DAO: wxALD Token
0 ETH0.000147282.78036674
Unwrap216503552025-01-18 9:04:3549 days ago1737191075IN
Aladdin DAO: wxALD Token
0 ETH0.000846715.98309967
Unwrap216013902025-01-11 12:58:1156 days ago1736600291IN
Aladdin DAO: wxALD Token
0 ETH0.000153372.89531443
Unwrap215720402025-01-07 10:37:2360 days ago1736246243IN
Aladdin DAO: wxALD Token
0 ETH0.000315855.96227518
Unwrap215367702025-01-02 12:25:3565 days ago1735820735IN
Aladdin DAO: wxALD Token
0 ETH0.000630411.9
Unwrap215085572024-12-29 13:54:3569 days ago1735480475IN
Aladdin DAO: wxALD Token
0 ETH0.000218634.12720302
Unwrap214823962024-12-25 22:13:4773 days ago1735164827IN
Aladdin DAO: wxALD Token
0 ETH0.000222544.2
Unwrap214788002024-12-25 10:09:5973 days ago1735121399IN
Aladdin DAO: wxALD Token
0 ETH0.000205333.87598034
Unwrap214573472024-12-22 10:09:3576 days ago1734862175IN
Aladdin DAO: wxALD Token
0 ETH0.000349326.59406637
Unwrap214135652024-12-16 7:24:2382 days ago1734333863IN
Aladdin DAO: wxALD Token
0 ETH0.000354416.69022245
Unwrap213999752024-12-14 9:51:4784 days ago1734169907IN
Aladdin DAO: wxALD Token
0 ETH0.000406337.67037553
Unwrap213802732024-12-11 15:50:5987 days ago1733932259IN
Aladdin DAO: wxALD Token
0 ETH0.0014708827.75941367
Unwrap213774512024-12-11 6:22:3588 days ago1733898155IN
Aladdin DAO: wxALD Token
0 ETH0.0006001911.32972441
Unwrap213577272024-12-08 12:19:2390 days ago1733660363IN
Aladdin DAO: wxALD Token
0 ETH0.000454718.58156554
Unwrap213348472024-12-05 7:37:2393 days ago1733384243IN
Aladdin DAO: wxALD Token
0 ETH0.0008325115.71530747
Unwrap213299292024-12-04 15:08:3594 days ago1733324915IN
Aladdin DAO: wxALD Token
0 ETH0.0024545946.32451896
Unwrap213262062024-12-04 2:38:4795 days ago1733279927IN
Aladdin DAO: wxALD Token
0 ETH0.0011006419.05453471
Unwrap213073612024-12-01 11:28:1197 days ago1733052491IN
Aladdin DAO: wxALD Token
0 ETH0.0005615310.6
Unwrap212988252024-11-30 6:52:4799 days ago1732949567IN
Aladdin DAO: wxALD Token
0 ETH0.00039017.36400832
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WrappedXALD

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-12-23
*/

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

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


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

pragma solidity ^0.7.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 @openzeppelin/contracts/math/[email protected]

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @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. 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) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


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

pragma solidity ^0.7.0;



/**
 * @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 ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public 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) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(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:
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}


// File contracts/interfaces/IWXALD.sol

pragma solidity ^0.7.6;

interface IWXALD {
  function wrap(uint256 _xALDAmount) external returns (uint256);

  function unwrap(uint256 _wxALDAmount) external returns (uint256);

  function wrappedXALDToXALD(uint256 _wxALDAmount) external view returns (uint256);
}


// File contracts/interfaces/IXALD.sol

pragma solidity ^0.7.6;

interface IXALD is IERC20 {
  function stake(address _recipient, uint256 _aldAmount) external;

  function unstake(address _account, uint256 _xALDAmount) external;

  function rebase(uint256 epoch, uint256 profit) external;

  function getSharesByALD(uint256 _aldAmount) external view returns (uint256);

  function getALDByShares(uint256 _sharesAmount) external view returns (uint256);
}


// File contracts/token/WrappedXALD.sol

pragma solidity ^0.7.6;


contract WrappedXALD is ERC20, IWXALD {
  IXALD public xALD;

  /**
   * @param _xALD address of the xALD token to wrap
   */
  constructor(IXALD _xALD) ERC20("Wrapped Staked ALD Token", "wxALD") {
    xALD = _xALD;
  }

  /**
   * @dev Wrap xALD to wxALD
   * @param _xALDAmount amount of xALD to wrap in exchange for wxALD
   * @return Amount of wxALD user receives after wrap
   */
  function wrap(uint256 _xALDAmount) external override returns (uint256) {
    require(_xALDAmount > 0, "wxALD: can't wrap zero xALD");
    xALD.transferFrom(msg.sender, address(this), _xALDAmount);
    uint256 wxALDAmount = xALD.getSharesByALD(_xALDAmount);
    _mint(msg.sender, wxALDAmount);
    return wxALDAmount;
  }

  /**
   * @notice Unwrap wxALD to xALD
   * @param _wxALDAmount amount of wxALD to uwrap in exchange for xALD
   * @return Amount of xALD user receives after unwrap
   */
  function unwrap(uint256 _wxALDAmount) external override returns (uint256) {
    require(_wxALDAmount > 0, "wxALD: zero amount unwrap not allowed");
    _burn(msg.sender, _wxALDAmount);
    uint256 xALDAmount = xALD.getALDByShares(_wxALDAmount);
    xALD.transfer(msg.sender, xALDAmount);
    return xALDAmount;
  }

  /**
   * @notice Get amount of wxALD for a given amount of xALD
   * @param _xALDAmount amount of xALD
   * @return Amount of wxALD for a given xALD amount
   */
  function XALDToWrappedXALD(uint256 _xALDAmount) external view returns (uint256) {
    return xALD.getSharesByALD(_xALDAmount);
  }

  /**
   * @notice Get amount of xALD for a given amount of wxALD
   * @param _wxALDAmount amount of wxALD
   * @return Amount of xALD for a given wxALD amount
   */
  function wrappedXALDToXALD(uint256 _wxALDAmount) external view override returns (uint256) {
    return xALD.getALDByShares(_wxALDAmount);
  }

  /**
   * @dev Get amount of xALD for a one wxALD
   * @return Amount of xALD for 1 wxALD
   */
  function XALDPerToken() external view returns (uint256) {
    return xALD.getALDByShares(1 ether);
  }

  /**
   * @dev Get amount of wxALD for a one xALD
   * @return Amount of wxALD for a 1 xALD
   */
  function tokensPerXALD() external view returns (uint256) {
    return xALD.getSharesByALD(1 ether);
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IXALD","name":"_xALD","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":"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":"XALDPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_xALDAmount","type":"uint256"}],"name":"XALDToWrappedXALD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"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":"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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerXALD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[{"internalType":"uint256","name":"_wxALDAmount","type":"uint256"}],"name":"unwrap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_xALDAmount","type":"uint256"}],"name":"wrap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wxALDAmount","type":"uint256"}],"name":"wrappedXALDToXALD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xALD","outputs":[{"internalType":"contract IXALD","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200143e3803806200143e833981810160405260208110156200003757600080fd5b5051604080518082018252601881527f57726170706564205374616b656420414c4420546f6b656e00000000000000006020828101918252835180850190945260058452641dde10531160da1b9084015281519192916200009b91600391620000eb565b508051620000b1906004906020840190620000eb565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff1990941660121793909316929092179091555062000197565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200012357600085556200016e565b82601f106200013e57805160ff19168380011785556200016e565b828001600101855582156200016e579182015b828111156200016e57825182559160200191906001019062000151565b506200017c92915062000180565b5090565b5b808211156200017c576000815560010162000181565b61129780620001a76000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806370a08231116100b2578063a9059cbb11610081578063de0e9a3e11610066578063de0e9a3e146103ac578063ea598cb0146103c9578063f6364b87146103e657610136565b8063a9059cbb14610352578063dd62ed3e1461037e57610136565b806370a08231146102db57806395d89b411461030157806397e6b18314610309578063a457c2d71461032657610136565b806323b872dd1161010957806334846fbe116100ee57806334846fbe1461028357806339509351146102a75780633bda0267146102d357610136565b806323b872dd1461022f578063313ce5671461026557610136565b806306fdde031461013b578063095ea7b3146101b85780630b68746a146101f857806318160ddd14610227575b600080fd5b6101436103ee565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e4600480360360408110156101ce57600080fd5b506001600160a01b038135169060200135610484565b604080519115158252519081900360200190f35b6102156004803603602081101561020e57600080fd5b50356104a1565b60408051918252519081900360200190f35b610215610524565b6101e46004803603606081101561024557600080fd5b506001600160a01b0381358116916020810135909116906040013561052a565b61026d6105b1565b6040805160ff9092168252519081900360200190f35b61028b6105ba565b604080516001600160a01b039092168252519081900360200190f35b6101e4600480360360408110156102bd57600080fd5b506001600160a01b0381351690602001356105ce565b61021561061c565b610215600480360360208110156102f157600080fd5b50356001600160a01b03166106a5565b6101436106c0565b6102156004803603602081101561031f57600080fd5b5035610721565b6101e46004803603604081101561033c57600080fd5b506001600160a01b038135169060200135610772565b6101e46004803603604081101561036857600080fd5b506001600160a01b0381351690602001356107da565b6102156004803603604081101561039457600080fd5b506001600160a01b03813581169160200135166107ee565b610215600480360360208110156103c257600080fd5b5035610819565b610215600480360360208110156103df57600080fd5b5035610987565b610215610b0f565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561047a5780601f1061044f5761010080835404028352916020019161047a565b820191906000526020600020905b81548152906001019060200180831161045d57829003601f168201915b5050505050905090565b6000610498610491610b67565b8484610b6b565b50600192915050565b60055460408051633adcd2a760e11b815260048101849052905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b1580156104f257600080fd5b505afa158015610506573d6000803e3d6000fd5b505050506040513d602081101561051c57600080fd5b505192915050565b60025490565b6000610537848484610c57565b6105a784610543610b67565b6105a285604051806060016040528060288152602001611186602891396001600160a01b038a16600090815260016020526040812090610581610b67565b6001600160a01b031681526020810191909152604001600020549190610db2565b610b6b565b5060019392505050565b60055460ff1690565b60055461010090046001600160a01b031681565b60006104986105db610b67565b846105a285600160006105ec610b67565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e49565b60055460408051633a48383960e21b8152670de0b6b3a76400006004820152905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b15801561067457600080fd5b505afa158015610688573d6000803e3d6000fd5b505050506040513d602081101561069e57600080fd5b5051905090565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561047a5780601f1061044f5761010080835404028352916020019161047a565b60055460408051633a48383960e21b815260048101849052905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b1580156104f257600080fd5b600061049861077f610b67565b846105a28560405180606001604052806025815260200161123d60259139600160006107a9610b67565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610db2565b60006104986107e7610b67565b8484610c57565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60008082116108595760405162461bcd60e51b81526004018080602001828103825260258152602001806111ae6025913960400191505060405180910390fd5b6108633383610eaa565b60055460408051633a48383960e21b815260048101859052905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b1580156108b457600080fd5b505afa1580156108c8573d6000803e3d6000fd5b505050506040513d60208110156108de57600080fd5b5051600554604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810184905290519293506101009091046001600160a01b03169163a9059cbb916044808201926020929091908290030181600087803b15801561095457600080fd5b505af1158015610968573d6000803e3d6000fd5b505050506040513d602081101561097e57600080fd5b50909392505050565b60008082116109dd576040805162461bcd60e51b815260206004820152601b60248201527f7778414c443a2063616e27742077726170207a65726f2078414c440000000000604482015290519081900360640190fd5b600554604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810185905290516101009092046001600160a01b0316916323b872dd916064808201926020929091908290030181600087803b158015610a5457600080fd5b505af1158015610a68573d6000803e3d6000fd5b505050506040513d6020811015610a7e57600080fd5b505060055460408051633adcd2a760e11b815260048101859052905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b158015610ad157600080fd5b505afa158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50519050610b093382610fa6565b92915050565b60055460408051633adcd2a760e11b8152670de0b6b3a76400006004820152905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b15801561067457600080fd5b3390565b6001600160a01b038316610bb05760405162461bcd60e51b81526004018080602001828103825260248152602001806112196024913960400191505060405180910390fd5b6001600160a01b038216610bf55760405162461bcd60e51b815260040180806020018281038252602281526020018061113e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c9c5760405162461bcd60e51b81526004018080602001828103825260258152602001806111f46025913960400191505060405180910390fd5b6001600160a01b038216610ce15760405162461bcd60e51b81526004018080602001828103825260238152602001806110f96023913960400191505060405180910390fd5b610cec838383611096565b610d2981604051806060016040528060268152602001611160602691396001600160a01b0386166000908152602081905260409020549190610db2565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d589082610e49565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e415760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e06578181015183820152602001610dee565b50505050905090810190601f168015610e335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ea3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610eef5760405162461bcd60e51b81526004018080602001828103825260218152602001806111d36021913960400191505060405180910390fd5b610efb82600083611096565b610f388160405180606001604052806022815260200161111c602291396001600160a01b0385166000908152602081905260409020549190610db2565b6001600160a01b038316600090815260208190526040902055600254610f5e908261109b565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216611001576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61100d60008383611096565b60025461101a9082610e49565b6002556001600160a01b0382166000908152602081905260409020546110409082610e49565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b6000828211156110f2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63657778414c443a207a65726f20616d6f756e7420756e77726170206e6f7420616c6c6f77656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205cfa86c3e7b18fe05cd3f7c90da9fea1b984c01034e4a9d2c0036fb4e47d1cd664736f6c63430007060033000000000000000000000000b13b85363a25c7361877eebaecced99e353f2af9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806370a08231116100b2578063a9059cbb11610081578063de0e9a3e11610066578063de0e9a3e146103ac578063ea598cb0146103c9578063f6364b87146103e657610136565b8063a9059cbb14610352578063dd62ed3e1461037e57610136565b806370a08231146102db57806395d89b411461030157806397e6b18314610309578063a457c2d71461032657610136565b806323b872dd1161010957806334846fbe116100ee57806334846fbe1461028357806339509351146102a75780633bda0267146102d357610136565b806323b872dd1461022f578063313ce5671461026557610136565b806306fdde031461013b578063095ea7b3146101b85780630b68746a146101f857806318160ddd14610227575b600080fd5b6101436103ee565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e4600480360360408110156101ce57600080fd5b506001600160a01b038135169060200135610484565b604080519115158252519081900360200190f35b6102156004803603602081101561020e57600080fd5b50356104a1565b60408051918252519081900360200190f35b610215610524565b6101e46004803603606081101561024557600080fd5b506001600160a01b0381358116916020810135909116906040013561052a565b61026d6105b1565b6040805160ff9092168252519081900360200190f35b61028b6105ba565b604080516001600160a01b039092168252519081900360200190f35b6101e4600480360360408110156102bd57600080fd5b506001600160a01b0381351690602001356105ce565b61021561061c565b610215600480360360208110156102f157600080fd5b50356001600160a01b03166106a5565b6101436106c0565b6102156004803603602081101561031f57600080fd5b5035610721565b6101e46004803603604081101561033c57600080fd5b506001600160a01b038135169060200135610772565b6101e46004803603604081101561036857600080fd5b506001600160a01b0381351690602001356107da565b6102156004803603604081101561039457600080fd5b506001600160a01b03813581169160200135166107ee565b610215600480360360208110156103c257600080fd5b5035610819565b610215600480360360208110156103df57600080fd5b5035610987565b610215610b0f565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561047a5780601f1061044f5761010080835404028352916020019161047a565b820191906000526020600020905b81548152906001019060200180831161045d57829003601f168201915b5050505050905090565b6000610498610491610b67565b8484610b6b565b50600192915050565b60055460408051633adcd2a760e11b815260048101849052905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b1580156104f257600080fd5b505afa158015610506573d6000803e3d6000fd5b505050506040513d602081101561051c57600080fd5b505192915050565b60025490565b6000610537848484610c57565b6105a784610543610b67565b6105a285604051806060016040528060288152602001611186602891396001600160a01b038a16600090815260016020526040812090610581610b67565b6001600160a01b031681526020810191909152604001600020549190610db2565b610b6b565b5060019392505050565b60055460ff1690565b60055461010090046001600160a01b031681565b60006104986105db610b67565b846105a285600160006105ec610b67565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e49565b60055460408051633a48383960e21b8152670de0b6b3a76400006004820152905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b15801561067457600080fd5b505afa158015610688573d6000803e3d6000fd5b505050506040513d602081101561069e57600080fd5b5051905090565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561047a5780601f1061044f5761010080835404028352916020019161047a565b60055460408051633a48383960e21b815260048101849052905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b1580156104f257600080fd5b600061049861077f610b67565b846105a28560405180606001604052806025815260200161123d60259139600160006107a9610b67565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610db2565b60006104986107e7610b67565b8484610c57565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60008082116108595760405162461bcd60e51b81526004018080602001828103825260258152602001806111ae6025913960400191505060405180910390fd5b6108633383610eaa565b60055460408051633a48383960e21b815260048101859052905160009261010090046001600160a01b03169163e920e0e4916024808301926020929190829003018186803b1580156108b457600080fd5b505afa1580156108c8573d6000803e3d6000fd5b505050506040513d60208110156108de57600080fd5b5051600554604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810184905290519293506101009091046001600160a01b03169163a9059cbb916044808201926020929091908290030181600087803b15801561095457600080fd5b505af1158015610968573d6000803e3d6000fd5b505050506040513d602081101561097e57600080fd5b50909392505050565b60008082116109dd576040805162461bcd60e51b815260206004820152601b60248201527f7778414c443a2063616e27742077726170207a65726f2078414c440000000000604482015290519081900360640190fd5b600554604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810185905290516101009092046001600160a01b0316916323b872dd916064808201926020929091908290030181600087803b158015610a5457600080fd5b505af1158015610a68573d6000803e3d6000fd5b505050506040513d6020811015610a7e57600080fd5b505060055460408051633adcd2a760e11b815260048101859052905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b158015610ad157600080fd5b505afa158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50519050610b093382610fa6565b92915050565b60055460408051633adcd2a760e11b8152670de0b6b3a76400006004820152905160009261010090046001600160a01b0316916375b9a54e916024808301926020929190829003018186803b15801561067457600080fd5b3390565b6001600160a01b038316610bb05760405162461bcd60e51b81526004018080602001828103825260248152602001806112196024913960400191505060405180910390fd5b6001600160a01b038216610bf55760405162461bcd60e51b815260040180806020018281038252602281526020018061113e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610c9c5760405162461bcd60e51b81526004018080602001828103825260258152602001806111f46025913960400191505060405180910390fd5b6001600160a01b038216610ce15760405162461bcd60e51b81526004018080602001828103825260238152602001806110f96023913960400191505060405180910390fd5b610cec838383611096565b610d2981604051806060016040528060268152602001611160602691396001600160a01b0386166000908152602081905260409020549190610db2565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d589082610e49565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e415760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e06578181015183820152602001610dee565b50505050905090810190601f168015610e335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ea3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610eef5760405162461bcd60e51b81526004018080602001828103825260218152602001806111d36021913960400191505060405180910390fd5b610efb82600083611096565b610f388160405180606001604052806022815260200161111c602291396001600160a01b0385166000908152602081905260409020549190610db2565b6001600160a01b038316600090815260208190526040902055600254610f5e908261109b565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216611001576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61100d60008383611096565b60025461101a9082610e49565b6002556001600160a01b0382166000908152602081905260409020546110409082610e49565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b6000828211156110f2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63657778414c443a207a65726f20616d6f756e7420756e77726170206e6f7420616c6c6f77656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205cfa86c3e7b18fe05cd3f7c90da9fea1b984c01034e4a9d2c0036fb4e47d1cd664736f6c63430007060033

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

000000000000000000000000b13b85363a25c7361877eebaecced99e353f2af9

-----Decoded View---------------
Arg [0] : _xALD (address): 0xb13B85363A25c7361877EebaEcCed99e353F2aF9

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


Deployed Bytecode Sourcemap

23298:2286:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13557:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15703:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15703:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;24704:132;;;;;;;;;;;;;;;;-1:-1:-1;24704:132:0;;:::i;:::-;;;;;;;;;;;;;;;;14656:108;;;:::i;16354:321::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16354:321:0;;;;;;;;;;;;;;;;;:::i;14500:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23341:17;;;:::i;:::-;;;;-1:-1:-1;;;;;23341:17:0;;;;;;;;;;;;;;17084:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17084:218:0;;;;;;;;:::i;25263:104::-;;;:::i;14827:127::-;;;;;;;;;;;;;;;;-1:-1:-1;14827:127:0;-1:-1:-1;;;;;14827:127:0;;:::i;13767:95::-;;;:::i;25013:143::-;;;;;;;;;;;;;;;;-1:-1:-1;25013:143:0;;:::i;17805:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17805:269:0;;;;;;;;:::i;15167:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15167:175:0;;;;;;;;:::i;15405:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15405:151:0;;;;;;;;;;:::i;24209:320::-;;;;;;;;;;;;;;;;-1:-1:-1;24209:320:0;;:::i;23700:326::-;;;;;;;;;;;;;;;;-1:-1:-1;23700:326:0;;:::i;25476:105::-;;;:::i;13557:91::-;13635:5;13628:12;;;;;;;;-1:-1:-1;;13628:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13602:13;;13628:12;;13635:5;;13628:12;;13635:5;13628:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13557:91;:::o;15703:169::-;15786:4;15803:39;15812:12;:10;:12::i;:::-;15826:7;15835:6;15803:8;:39::i;:::-;-1:-1:-1;15860:4:0;15703:169;;;;:::o;24704:132::-;24798:4;;:32;;;-1:-1:-1;;;24798:32:0;;;;;;;;;;-1:-1:-1;;24798:4:0;;;-1:-1:-1;;;;;24798:4:0;;:19;;:32;;;;;;;;;;;;;;:4;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24798:32:0;;24704:132;-1:-1:-1;;24704:132:0:o;14656:108::-;14744:12;;14656:108;:::o;16354:321::-;16460:4;16477:36;16487:6;16495:9;16506:6;16477:9;:36::i;:::-;16524:121;16533:6;16541:12;:10;:12::i;:::-;16555:89;16593:6;16555:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16555:19:0;;;;;;:11;:19;;;;;;16575:12;:10;:12::i;:::-;-1:-1:-1;;;;;16555:33:0;;;;;;;;;;;;-1:-1:-1;16555:33:0;;;:89;:37;:89::i;:::-;16524:8;:121::i;:::-;-1:-1:-1;16663:4:0;16354:321;;;;;:::o;14500:91::-;14574:9;;;;14500:91;:::o;23341:17::-;;;;;;-1:-1:-1;;;;;23341:17:0;;:::o;17084:218::-;17172:4;17189:83;17198:12;:10;:12::i;:::-;17212:7;17221:50;17260:10;17221:11;:25;17233:12;:10;:12::i;:::-;-1:-1:-1;;;;;17221:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17221:25:0;;;:34;;;;;;;;;;;:38;:50::i;25263:104::-;25333:4;;:28;;;-1:-1:-1;;;25333:28:0;;25353:7;25333:28;;;;;;-1:-1:-1;;25333:4:0;;;-1:-1:-1;;;;;25333:4:0;;:19;;:28;;;;;;;;;;;;;;:4;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25333:28:0;;-1:-1:-1;25263:104:0;:::o;14827:127::-;-1:-1:-1;;;;;14928:18:0;14901:7;14928:18;;;;;;;;;;;;14827:127::o;13767:95::-;13847:7;13840:14;;;;;;;;-1:-1:-1;;13840:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13814:13;;13840:14;;13847:7;;13840:14;;13847:7;13840:14;;;;;;;;;;;;;;;;;;;;;;;;25013:143;25117:4;;:33;;;-1:-1:-1;;;25117:33:0;;;;;;;;;;-1:-1:-1;;25117:4:0;;;-1:-1:-1;;;;;25117:4:0;;:19;;:33;;;;;;;;;;;;;;:4;:33;;;;;;;;;;17805:269;17898:4;17915:129;17924:12;:10;:12::i;:::-;17938:7;17947:96;17986:15;17947:96;;;;;;;;;;;;;;;;;:11;:25;17959:12;:10;:12::i;:::-;-1:-1:-1;;;;;17947:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17947:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;15167:175::-;15253:4;15270:42;15280:12;:10;:12::i;:::-;15294:9;15305:6;15270:9;:42::i;15405:151::-;-1:-1:-1;;;;;15521:18:0;;;15494:7;15521:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15405:151::o;24209:320::-;24274:7;24313:1;24298:12;:16;24290:66;;;;-1:-1:-1;;;24290:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24363:31;24369:10;24381:12;24363:5;:31::i;:::-;24422:4;;:33;;;-1:-1:-1;;;24422:33:0;;;;;;;;;;-1:-1:-1;;24422:4:0;;;-1:-1:-1;;;;;24422:4:0;;:19;;:33;;;;;;;;;;;;;;:4;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24422:33:0;24462:4;;:37;;;;;;24476:10;24462:37;;;;;;;;;;;;24422:33;;-1:-1:-1;24462:4:0;;;;-1:-1:-1;;;;;24462:4:0;;:13;;:37;;;;;24422:33;;24462:37;;;;;;;;-1:-1:-1;24462:4:0;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24513:10:0;;24209:320;-1:-1:-1;;;24209:320:0:o;23700:326::-;23762:7;23800:1;23786:11;:15;23778:55;;;;;-1:-1:-1;;;23778:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23840:4;;:57;;;;;;23858:10;23840:57;;;;23878:4;23840:57;;;;;;;;;;;;:4;;;;-1:-1:-1;;;;;23840:4:0;;:17;;:57;;;;;;;;;;;;;;;-1:-1:-1;23840:4:0;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23926:4:0;;:32;;;-1:-1:-1;;;23926:32:0;;;;;;;;;;-1:-1:-1;;23926:4:0;;;-1:-1:-1;;;;;23926:4:0;;:19;;:32;;;;;23840:57;;23926:32;;;;;;;:4;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23926:32:0;;-1:-1:-1;23965:30:0;23971:10;23926:32;23965:5;:30::i;:::-;24009:11;23700:326;-1:-1:-1;;23700:326:0:o;25476:105::-;25547:4;;:28;;;-1:-1:-1;;;25547:28:0;;25567:7;25547:28;;;;;;-1:-1:-1;;25547:4:0;;;-1:-1:-1;;;;;25547:4:0;;:19;;:28;;;;;;;;;;;;;;:4;:28;;;;;;;;;;748:106;836:10;748:106;:::o;20952:346::-;-1:-1:-1;;;;;21054:19:0;;21046:68;;;;-1:-1:-1;;;21046:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21133:21:0;;21125:68;;;;-1:-1:-1;;;21125:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21206:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21258:32;;;;;;;;;;;;;;;;;20952:346;;;:::o;18564:539::-;-1:-1:-1;;;;;18670:20:0;;18662:70;;;;-1:-1:-1;;;18662:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18751:23:0;;18743:71;;;;-1:-1:-1;;;18743:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18827:47;18848:6;18856:9;18867:6;18827:20;:47::i;:::-;18907:71;18929:6;18907:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18907:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18887:17:0;;;:9;:17;;;;;;;;;;;:91;;;;19012:20;;;;;;;:32;;19037:6;19012:24;:32::i;:::-;-1:-1:-1;;;;;18989:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;19060:35;;;;;;;18989:20;;19060:35;;;;;;;;;;;;;18564:539;;;:::o;9551:166::-;9637:7;9673:12;9665:6;;;;9657:29;;;;-1:-1:-1;;;9657:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9704:5:0;;;9551:166::o;6724:179::-;6782:7;6814:5;;;6838:6;;;;6830:46;;;;;-1:-1:-1;;;6830:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6894:1;6724:179;-1:-1:-1;;;6724:179:0:o;20096:418::-;-1:-1:-1;;;;;20180:21:0;;20172:67;;;;-1:-1:-1;;;20172:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20252:49;20273:7;20290:1;20294:6;20252:20;:49::i;:::-;20335:68;20358:6;20335:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20335:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;20314:18:0;;:9;:18;;;;;;;;;;:89;20429:12;;:24;;20446:6;20429:16;:24::i;:::-;20414:12;:39;20469:37;;;;;;;;20495:1;;-1:-1:-1;;;;;20469:37:0;;;;;;;;;;;;20096:418;;:::o;19385:378::-;-1:-1:-1;;;;;19469:21:0;;19461:65;;;;;-1:-1:-1;;;19461:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19539:49;19568:1;19572:7;19581:6;19539:20;:49::i;:::-;19616:12;;:24;;19633:6;19616:16;:24::i;:::-;19601:12;:39;-1:-1:-1;;;;;19672:18:0;;:9;:18;;;;;;;;;;;:30;;19695:6;19672:22;:30::i;:::-;-1:-1:-1;;;;;19651:18:0;;:9;:18;;;;;;;;;;;:51;;;;19718:37;;;;;;;19651:18;;:9;;19718:37;;;;;;;;;;19385:378;;:::o;22331:92::-;;;;:::o;7186:158::-;7244:7;7277:1;7272;:6;;7264:49;;;;;-1:-1:-1;;;7264:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7331:5:0;;;7186:158::o

Swarm Source

ipfs://5cfa86c3e7b18fe05cd3f7c90da9fea1b984c01034e4a9d2c0036fb4e47d1cd6

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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