ETH Price: $3,333.80 (-3.39%)

Contract

0x9Fd1d329BB687fef164F529f6F6DcD6f69e7b978
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve207049392024-09-08 9:16:3579 days ago1725786995IN
Plasma Finance: xPPAY Token
0 ETH0.000169633.64741928
Approve206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000097573.66727724
Leave206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000143583.66727724
Leave206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000143583.66727724
Approve206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000170553.66727724
Approve206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000170553.66727724
Leave206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000143583.66727724
Leave206092832024-08-26 0:47:3592 days ago1724633255IN
Plasma Finance: xPPAY Token
0 ETH0.000277363.66727724
Approve205986062024-08-24 12:58:2394 days ago1724504303IN
Plasma Finance: xPPAY Token
0 ETH0.000090581.94776967
Transfer202447992024-07-06 3:30:59143 days ago1720236659IN
Plasma Finance: xPPAY Token
0 ETH0.000068022.28168364
Transfer201590652024-06-24 4:09:59155 days ago1719202199IN
Plasma Finance: xPPAY Token
0 ETH0.000091343.06393925
Transfer201590632024-06-24 4:09:35155 days ago1719202175IN
Plasma Finance: xPPAY Token
0 ETH0.00014413.07164927
Leave201531552024-06-23 8:18:35156 days ago1719130715IN
Plasma Finance: xPPAY Token
0 ETH0.000248133.28071703
Leave199588712024-05-27 4:38:23183 days ago1716784703IN
Plasma Finance: xPPAY Token
0 ETH0.0012395410.10030811
Approve199530162024-05-26 9:00:11184 days ago1716714011IN
Plasma Finance: xPPAY Token
0 ETH0.000162643.50178805
Approve196424392024-04-12 22:16:47228 days ago1712960207IN
Plasma Finance: xPPAY Token
0 ETH0.0008373518.11237649
Approve196423002024-04-12 21:48:35228 days ago1712958515IN
Plasma Finance: xPPAY Token
0 ETH0.0010067921.6762846
Leave195154192024-03-26 1:42:59245 days ago1711417379IN
Plasma Finance: xPPAY Token
0 ETH0.0012915117.07601491
Leave194670732024-03-19 6:40:47252 days ago1710830447IN
Plasma Finance: xPPAY Token
0 ETH0.0019331425.55948819
Leave194628472024-03-18 16:25:23253 days ago1710779123IN
Plasma Finance: xPPAY Token
0 ETH0.0034881946.12003666
Approve193727402024-03-06 1:06:23265 days ago1709687183IN
Plasma Finance: xPPAY Token
0 ETH0.0024749853.52136706
Approve193097382024-02-26 5:45:23274 days ago1708926323IN
Plasma Finance: xPPAY Token
0 ETH0.0007061226.8051739
Approve193097072024-02-26 5:38:59274 days ago1708925939IN
Plasma Finance: xPPAY Token
0 ETH0.0012387926.78872165
Leave192442832024-02-17 1:20:59283 days ago1708132859IN
Plasma Finance: xPPAY Token
0 ETH0.0012550916.59456085
Leave192358972024-02-15 21:05:23285 days ago1708031123IN
Plasma Finance: xPPAY Token
0 ETH0.00241141.19044283
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:
PlasmaStaking

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : PlasmaStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./libraries/IERC20.sol";
import "./libraries/ERC20.sol";
import "./libraries/SafeMath.sol";

contract PlasmaStaking is ERC20("PlasmaStaking", "xPPAY") {
    using SafeMath for uint256;
    IERC20 public ppay;
    mapping(address => uint256) public startTime;
    uint256 public lockTime = 23 hours;

    // Define the ppay token contract
    constructor(IERC20 _ppay) public {
        ppay = _ppay;
    }

    function enter(uint256 _amount) public {
        // Gets the amount of ppay locked in the contract
        uint256 totalPPAY = ppay.balanceOf(address(this));
        // Gets the amount of xPPAY in existence
        uint256 totalShares = totalSupply();
        // If no xPPAY exists, mint it 1:1 to the amount put in
        if (totalShares == 0 || totalPPAY == 0) {
            _mint(msg.sender, _amount);
        }
        // Calculate and mint the amount of xPPAY the ppay is worth. The ratio will change overtime, as xPPAY is burned/minted and ppay deposited + gained from fees / withdrawn.
        else {
            uint256 what = _amount.mul(totalShares).div(totalPPAY);
            _mint(msg.sender, what);
        }
        // Lock the ppay in the contract
        ppay.transferFrom(msg.sender, address(this), _amount);
        startTime[msg.sender] = block.timestamp;
    }

    function leave(uint256 _share) public {
        uint256 duration = block.timestamp.sub(startTime[msg.sender]);
        require(duration >= lockTime, "PlasmaStaking: Lock not expired");
        // Gets the amount of xPPAY in existence
        uint256 totalShares = totalSupply();
        // Calculates the amount of ppay the xPPAY is worth
        uint256 what =
            _share.mul(ppay.balanceOf(address(this))).div(totalShares);
        _burn(msg.sender, _share);
        ppay.transfer(msg.sender, what);
    }
}

File 2 of 5 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 3 of 5 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";

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

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

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 {
        _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 4 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 5 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_ppay","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":[{"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":"enter","outputs":[],"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":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"leave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ppay","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6080604052620143706007553480156200001857600080fd5b506040516200134638038062001346833981810160405260208110156200003e57600080fd5b5051604080518082018252600d81526c506c61736d615374616b696e6760981b602082810191825283518085019094526005845264785050415960d81b9084015281519192916200009291600391620000e2565b508051620000a8906004906020840190620000e2565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff199094166012179390931692909217909155506200017e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200012557805160ff191683800117855562000155565b8280016001018555821562000155579182015b828111156200015557825182559160200191906001019062000138565b506200016392915062000167565b5090565b5b8082111562000163576000815560010162000168565b6111b8806200018e6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80636e1dc66e11610097578063a457c2d711610066578063a457c2d7146102fb578063a59f3e0c14610327578063a9059cbb14610344578063dd62ed3e1461037057610100565b80636e1dc66e1461028357806370a08231146102a957806371133be7146102cf57806395d89b41146102f357610100565b806323b872dd116100d357806323b872dd146101e4578063313ce5671461021a578063395093511461023857806367dfd4c91461026457610100565b806306fdde0314610105578063095ea7b3146101825780630d668087146101c257806318160ddd146101dc575b600080fd5b61010d61039e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610434565b604080519115158252519081900360200190f35b6101ca610452565b60408051918252519081900360200190f35b6101ca610458565b6101ae600480360360608110156101fa57600080fd5b506001600160a01b0381358116916020810135909116906040013561045e565b6102226104e5565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024e57600080fd5b506001600160a01b0381351690602001356104ee565b6102816004803603602081101561027a57600080fd5b503561053c565b005b6101ca6004803603602081101561029957600080fd5b50356001600160a01b03166106f6565b6101ca600480360360208110156102bf57600080fd5b50356001600160a01b0316610708565b6102d7610723565b604080516001600160a01b039092168252519081900360200190f35b61010d610737565b6101ae6004803603604081101561031157600080fd5b506001600160a01b038135169060200135610798565b6102816004803603602081101561033d57600080fd5b5035610800565b6101ae6004803603604081101561035a57600080fd5b506001600160a01b038135169060200135610968565b6101ca6004803603604081101561038657600080fd5b506001600160a01b038135811691602001351661097c565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b820191906000526020600020905b81548152906001019060200180831161040d57829003601f168201915b5050505050905090565b60006104486104416109a7565b84846109ab565b5060015b92915050565b60075481565b60025490565b600061046b848484610a97565b6104db846104776109a7565b6104d6856040518060600160405280602881526020016110cc602891396001600160a01b038a166000908152600160205260408120906104b56109a7565b6001600160a01b031681526020810191909152604001600020549190610bf2565b6109ab565b5060019392505050565b60055460ff1690565b60006104486104fb6109a7565b846104d6856001600061050c6109a7565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610c89565b33600090815260066020526040812054610557904290610cea565b90506007548110156105b0576040805162461bcd60e51b815260206004820152601f60248201527f506c61736d615374616b696e673a204c6f636b206e6f74206578706972656400604482015290519081900360640190fd5b60006105ba610458565b905060006106608261065a600560019054906101000a90046001600160a01b03166001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561062757600080fd5b505afa15801561063b573d6000803e3d6000fd5b505050506040513d602081101561065157600080fd5b50518790610d2c565b90610d85565b905061066c3385610dc7565b6005546040805163a9059cbb60e01b81523360048201526024810184905290516101009092046001600160a01b03169163a9059cbb916044808201926020929091908290030181600087803b1580156106c457600080fd5b505af11580156106d8573d6000803e3d6000fd5b505050506040513d60208110156106ee57600080fd5b505050505050565b60066020526000908152604090205481565b6001600160a01b031660009081526020819052604090205490565b60055461010090046001600160a01b031681565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b60006104486107a56109a7565b846104d68560405180606001604052806025815260200161115e60259139600160006107cf6109a7565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610bf2565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b505190506000610888610458565b9050801580610895575081155b156108a9576108a43384610ec3565b6108c7565b60006108b98361065a8685610d2c565b90506108c53382610ec3565b505b600554604080516323b872dd60e01b81523360048201523060248201526044810186905290516101009092046001600160a01b0316916323b872dd916064808201926020929091908290030181600087803b15801561092557600080fd5b505af1158015610939573d6000803e3d6000fd5b505050506040513d602081101561094f57600080fd5b5050336000908152600660205260409020429055505050565b60006104486109756109a7565b8484610a97565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166109f05760405162461bcd60e51b815260040180806020018281038252602481526020018061113a6024913960400191505060405180910390fd5b6001600160a01b038216610a355760405162461bcd60e51b81526004018080602001828103825260228152602001806110636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610adc5760405162461bcd60e51b81526004018080602001828103825260258152602001806111156025913960400191505060405180910390fd5b6001600160a01b038216610b215760405162461bcd60e51b815260040180806020018281038252602381526020018061101e6023913960400191505060405180910390fd5b610b2c838383610fb3565b610b6981604051806060016040528060268152602001611085602691396001600160a01b0386166000908152602081905260409020549190610bf2565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b989082610c89565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610c815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c46578181015183820152602001610c2e565b50505050905090810190601f168015610c735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ce3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000610ce383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610bf2565b600082610d3b5750600061044c565b82820282848281610d4857fe5b0414610ce35760405162461bcd60e51b81526004018080602001828103825260218152602001806110ab6021913960400191505060405180910390fd5b6000610ce383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610fb8565b6001600160a01b038216610e0c5760405162461bcd60e51b81526004018080602001828103825260218152602001806110f46021913960400191505060405180910390fd5b610e1882600083610fb3565b610e5581604051806060016040528060228152602001611041602291396001600160a01b0385166000908152602081905260409020549190610bf2565b6001600160a01b038316600090815260208190526040902055600254610e7b9082610cea565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216610f1e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f2a60008383610fb3565b600254610f379082610c89565b6002556001600160a01b038216600090815260208190526040902054610f5d9082610c89565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b600081836110075760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c46578181015183820152602001610c2e565b50600083858161101357fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203f659c6ef95b9dd3f678055abf3cbaa0f51ef11d74ff46befe251008d05f305f64736f6c634300060c0033000000000000000000000000054d64b73d3d8a21af3d764efd76bcaa774f3bb2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80636e1dc66e11610097578063a457c2d711610066578063a457c2d7146102fb578063a59f3e0c14610327578063a9059cbb14610344578063dd62ed3e1461037057610100565b80636e1dc66e1461028357806370a08231146102a957806371133be7146102cf57806395d89b41146102f357610100565b806323b872dd116100d357806323b872dd146101e4578063313ce5671461021a578063395093511461023857806367dfd4c91461026457610100565b806306fdde0314610105578063095ea7b3146101825780630d668087146101c257806318160ddd146101dc575b600080fd5b61010d61039e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610434565b604080519115158252519081900360200190f35b6101ca610452565b60408051918252519081900360200190f35b6101ca610458565b6101ae600480360360608110156101fa57600080fd5b506001600160a01b0381358116916020810135909116906040013561045e565b6102226104e5565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024e57600080fd5b506001600160a01b0381351690602001356104ee565b6102816004803603602081101561027a57600080fd5b503561053c565b005b6101ca6004803603602081101561029957600080fd5b50356001600160a01b03166106f6565b6101ca600480360360208110156102bf57600080fd5b50356001600160a01b0316610708565b6102d7610723565b604080516001600160a01b039092168252519081900360200190f35b61010d610737565b6101ae6004803603604081101561031157600080fd5b506001600160a01b038135169060200135610798565b6102816004803603602081101561033d57600080fd5b5035610800565b6101ae6004803603604081101561035a57600080fd5b506001600160a01b038135169060200135610968565b6101ca6004803603604081101561038657600080fd5b506001600160a01b038135811691602001351661097c565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b820191906000526020600020905b81548152906001019060200180831161040d57829003601f168201915b5050505050905090565b60006104486104416109a7565b84846109ab565b5060015b92915050565b60075481565b60025490565b600061046b848484610a97565b6104db846104776109a7565b6104d6856040518060600160405280602881526020016110cc602891396001600160a01b038a166000908152600160205260408120906104b56109a7565b6001600160a01b031681526020810191909152604001600020549190610bf2565b6109ab565b5060019392505050565b60055460ff1690565b60006104486104fb6109a7565b846104d6856001600061050c6109a7565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610c89565b33600090815260066020526040812054610557904290610cea565b90506007548110156105b0576040805162461bcd60e51b815260206004820152601f60248201527f506c61736d615374616b696e673a204c6f636b206e6f74206578706972656400604482015290519081900360640190fd5b60006105ba610458565b905060006106608261065a600560019054906101000a90046001600160a01b03166001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561062757600080fd5b505afa15801561063b573d6000803e3d6000fd5b505050506040513d602081101561065157600080fd5b50518790610d2c565b90610d85565b905061066c3385610dc7565b6005546040805163a9059cbb60e01b81523360048201526024810184905290516101009092046001600160a01b03169163a9059cbb916044808201926020929091908290030181600087803b1580156106c457600080fd5b505af11580156106d8573d6000803e3d6000fd5b505050506040513d60208110156106ee57600080fd5b505050505050565b60066020526000908152604090205481565b6001600160a01b031660009081526020819052604090205490565b60055461010090046001600160a01b031681565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b60006104486107a56109a7565b846104d68560405180606001604052806025815260200161115e60259139600160006107cf6109a7565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610bf2565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b505190506000610888610458565b9050801580610895575081155b156108a9576108a43384610ec3565b6108c7565b60006108b98361065a8685610d2c565b90506108c53382610ec3565b505b600554604080516323b872dd60e01b81523360048201523060248201526044810186905290516101009092046001600160a01b0316916323b872dd916064808201926020929091908290030181600087803b15801561092557600080fd5b505af1158015610939573d6000803e3d6000fd5b505050506040513d602081101561094f57600080fd5b5050336000908152600660205260409020429055505050565b60006104486109756109a7565b8484610a97565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166109f05760405162461bcd60e51b815260040180806020018281038252602481526020018061113a6024913960400191505060405180910390fd5b6001600160a01b038216610a355760405162461bcd60e51b81526004018080602001828103825260228152602001806110636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610adc5760405162461bcd60e51b81526004018080602001828103825260258152602001806111156025913960400191505060405180910390fd5b6001600160a01b038216610b215760405162461bcd60e51b815260040180806020018281038252602381526020018061101e6023913960400191505060405180910390fd5b610b2c838383610fb3565b610b6981604051806060016040528060268152602001611085602691396001600160a01b0386166000908152602081905260409020549190610bf2565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b989082610c89565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610c815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c46578181015183820152602001610c2e565b50505050905090810190601f168015610c735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ce3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000610ce383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610bf2565b600082610d3b5750600061044c565b82820282848281610d4857fe5b0414610ce35760405162461bcd60e51b81526004018080602001828103825260218152602001806110ab6021913960400191505060405180910390fd5b6000610ce383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610fb8565b6001600160a01b038216610e0c5760405162461bcd60e51b81526004018080602001828103825260218152602001806110f46021913960400191505060405180910390fd5b610e1882600083610fb3565b610e5581604051806060016040528060228152602001611041602291396001600160a01b0385166000908152602081905260409020549190610bf2565b6001600160a01b038316600090815260208190526040902055600254610e7b9082610cea565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216610f1e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f2a60008383610fb3565b600254610f379082610c89565b6002556001600160a01b038216600090815260208190526040902054610f5d9082610c89565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b600081836110075760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c46578181015183820152602001610c2e565b50600083858161101357fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203f659c6ef95b9dd3f678055abf3cbaa0f51ef11d74ff46befe251008d05f305f64736f6c634300060c0033

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

000000000000000000000000054d64b73d3d8a21af3d764efd76bcaa774f3bb2

-----Decoded View---------------
Arg [0] : _ppay (address): 0x054D64b73d3D8A21Af3D764eFd76bCaA774f3Bb2

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

xPPAY is the Dark King of the Yield Farming. xPPAY is what you get when you stake PPAY on the new plasma.finance savings page. The xPPAY staked earns a reward fee of 0.02% of all trades and transactions on Plasma.Finance DeFi aggregator platform.

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.