Contract 0xb2BDfc5305eBc320be2B43C380B9C645CBd1E467 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x78f82dbab1cb5aa59c628639e91aa741a5d8350f035d65dde39e1e3af79fa4ffGet Funds85078582021-06-22 3:34:19126 days 10 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x8464159495c79afbf72df21803afc96a36f4754abb5f3353866e40091cbbd66cGet Funds84214112021-06-19 3:15:19129 days 10 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0xd28a871dfa6e8bd08fb6b37e441f141fb7b084492d231f7c57e2b4f040c222b6Get Funds83353402021-06-16 2:54:24132 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0xc423116c8323a54e443c51337b5bb59e9c4fce0913ce7e5e1b4a5c6a4f5772d6Get Funds82215132021-06-12 3:00:47136 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x1b7cc6d57360b59df9eb6490e90f0cefa25e950d8b0fef0cf053d7de9ea8c780Get Funds81612752021-06-10 0:36:49138 days 13 hrs ago0x9b6c1c27eb61cd387cb650dd92881de8cf5919d4 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x31948dd130c5bb295bd3f7e8a42c689a87d6734e3c3ac0e02423b753c0d51684Get Funds81218122021-06-08 15:36:56139 days 22 hrs ago0x79ca02b8aadcd666cab396a969df6aa5ff3cb1dd IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0xda8cc15cb77e18dc9d79fba74b4dd0f425a7e71e197b63602beb61bf90b5f30aGet Funds80787892021-06-07 3:42:21141 days 10 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x553acaa9f754a9a365a850e073567925ec11319ff762c2072db13a0b259b006eGet Funds80592002021-06-06 11:21:49142 days 2 hrs ago0xa896b4b3aea490097f606447125c4df9d4463a29 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x58a00f6bef5068829c972e4a064c1d646526d41d4022879ed1449557c4b32842Get Funds79634772021-06-03 3:21:45145 days 10 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x16d89211239377f7ace10c7aba5adc8d491ddadb321e7fa9a1197a2ef34fb87cGet Funds78788422021-05-31 4:35:13148 days 9 hrs ago0x49ef29a2c4b5210657c5a45d854d69b7387bcc20 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000460005
0x71c7d2b3b0841188a4bd448bcd7be47c905744fa6e11822648c244398b562caaGet Funds78349962021-05-29 15:55:59149 days 22 hrs ago0x79ca02b8aadcd666cab396a969df6aa5ff3cb1dd IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x4740829809aab56ec1ad8231431fbba42a3a165e2b32f866cea5f8fa9acdb21fGet Funds78234552021-05-29 6:16:29150 days 7 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x0466e14b2a5428b987700c1a921a6befadd0bdfbd9fe6bc6d070424a40826320Get Funds77654962021-05-27 5:44:45152 days 8 hrs ago0xfb57d46a2c3cd8152bc6291d3fe1f6bb45faa17c IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x574300b078456a55a660d7d4cf610e4b0ea69c36344eaf4214abab7700b4fdadGet Funds77336422021-05-26 2:55:29153 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x1d2352e86b8ddb43433bebec30647967817009c5ce0e2726ca2caf01a59e3376Get Funds76467972021-05-23 2:15:06156 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x0e80bbd508491f089221931df726ed9abfc3d4114ba972409affd6bc84cc3dd5Get Funds76103522021-05-21 19:50:38157 days 18 hrs ago0xc4ece268c8f63a2e4c5a342a5dbad27c2c4bc924 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000107725
0x11e715dffb809ee3db15b6fb394aa048798137ba8f8389e0f4b8c5713b6fe4a0Get Funds75331582021-05-19 2:51:51160 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x534b8d9615b3d3f76e2bf193cc4086253921b9d1e1add5660b1097bbb3ff6109Get Funds74474862021-05-16 2:27:56163 days 11 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x8b64776b3ca57b8cff666dfde0bfce067670f809895990e937f719b0ae7d339bGet Funds74295412021-05-15 11:21:34164 days 2 hrs ago0xf3f6dd82492c1876e39cced2237100d66dff7b9f IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x0e1df1123dccae05d6bb70110b0581573acd7b023d94c067c5ecd7b22d2d9508Get Funds74295312021-05-15 11:21:04164 days 2 hrs ago0x912e4eec739844636c5fc0fc443071c399588489 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x9ef389449b9bf9b8a13b78482724b9ffc010a7634d83a6a7f9ef19a6ebba4c1aGet Funds73649112021-05-13 4:23:21166 days 9 hrs ago0xd7cd4cda3fffdbef2888829c246b3e16cd25b14e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0xeb984c75048a49e22bd585531416eb4f2475c05168e841a64aaac739d74da61dGet Funds73609802021-05-13 1:01:44166 days 13 hrs ago0xeec263979363422e0f14b5ecb0f9e6f3dac5417e IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000298485
0x652fb22b26ab9b8903a428b2db307340560fcf8dc7af247f377f238877099276Get Funds73216372021-05-11 13:24:25168 days 41 mins ago0x912e4eec739844636c5fc0fc443071c399588489 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000202239
0xcd646da3cc2181275d77aaa9470ecf4689792d3bfc4ad7abc8b3007056f2ea6fGet Funds73216372021-05-11 13:24:25168 days 41 mins ago0x912e4eec739844636c5fc0fc443071c399588489 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000202239
0xb1dd75808a3313c48d58537e401a56bdf5443cb3b6b1bd4f9e4baca5e769bedcGet Funds73145682021-05-11 6:27:03168 days 7 hrs ago0x549c5dfe16cffe17008efe8a0ce8ceb72b9272b5 IN  0xb2bdfc5305ebc320be2b43c380b9c645cbd1e4670 BNB0.000627879
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProximaFaucet

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : ProximaFaucet.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title : ProximaFaucet
 * Developed by ProximusAlpha
 */

contract ProximaFaucet is Ownable {
    /// @dev Proxima Token
    IERC20 public pxa;
    /// @dev Claim state enum
    enum Options {Every8Hours, Every24Hours, Every72Hours}

    /// @dev Constant time window for claim
    uint256 constant hours8InSeconds = 8 * 60 * 60;
    uint256 constant hours24InSeconds = 24 * 60 * 60;
    uint256 constant hours72InSeconds = 72 * 60 * 60;

    /// @dev Constant amount window for claim
    uint256 constant hours8Fund = 0.25 ether;
    uint256 constant hours24Fund = 0.75 ether;
    uint256 constant hours72Fund = 2.25 ether;

    /// @dev Total number of claims
    uint256 private claimCounter;

    /// @dev Event emitted when claimed
    event Funded(address receiver, uint256 amount);

    /// @dev Claim time map
    mapping(address => uint256) nextFundingTime;

    /// @dev Sets pxa token
    constructor(IERC20 _pxa) public {
        pxa = _pxa;
    }

    /// @dev Transfer claimed pxa token
    function getFunds(Options _option) public {
        int256 duration = int256(nextFundingTime[msg.sender] - block.timestamp);
        require(duration < 1, "PF : FAUCET_COOLDOWN");
        if (_option == Options.Every24Hours) {
            transferFund(hours24InSeconds, hours24Fund);
        } else if (_option == Options.Every72Hours) {
            transferFund(hours72InSeconds, hours72Fund);
        } else {
            transferFund(hours8InSeconds, hours8Fund);
        }
    }

    function transferFund(uint256 _timeInSecond, uint256 _fund) private {
        require(_fund < getFaucetBalance(), "PF: FAUCET_DEPLETED");
        nextFundingTime[msg.sender] = block.timestamp + _timeInSecond;
        claimCounter++;
        pxa.transfer(msg.sender, _fund);
        emit Funded(msg.sender, _fund);
    }

    /// @dev Returns next claim time for user
    function nextFunding(address _who) public view returns (uint256) {
        return nextFundingTime[_who];
    }

    /// @dev Returns claim counter
    function counter() public view returns (uint256) {
        return claimCounter;
    }

    /// @dev Returns faucet balance
    function getFaucetBalance() public view returns (uint256) {
        return pxa.balanceOf(address(this));
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 4 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/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 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 5 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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":"_pxa","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Funded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFaucetBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ProximaFaucet.Options","name":"_option","type":"uint8"}],"name":"getFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_who","type":"address"}],"name":"nextFunding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pxa","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516106fa3803806106fa8339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b610639806100c16000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063ce509f8d1161005b578063ce509f8d146100fb578063f1f959a614610103578063f2fde38b1461010b578063f623e3391461013157610088565b80633303d18d1461008d57806361bc221a146100c5578063715018a6146100cd5780638da5cb5b146100d7575b600080fd5b6100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610151565b60408051918252519081900360200190f35b6100b361016c565b6100d5610172565b005b6100df610230565b604080516001600160a01b039092168252519081900360200190f35b6100df61023f565b6100b361024e565b6100d56004803603602081101561012157600080fd5b50356001600160a01b03166102ca565b6100d56004803603602081101561014757600080fd5b503560ff166103de565b6001600160a01b031660009081526003602052604090205490565b60025490565b61017a6104ac565b6001600160a01b031661018b610230565b6001600160a01b0316146101e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001546001600160a01b031681565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561029957600080fd5b505afa1580156102ad573d6000803e3d6000fd5b505050506040513d60208110156102c357600080fd5b5051905090565b6102d26104ac565b6001600160a01b03166102e3610230565b6001600160a01b03161461033e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103835760405162461bcd60e51b81526004018080602001828103825260268152602001806105de6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600360205260409020544290036001811261043d576040805162461bcd60e51b81526020600482015260146024820152732823101d102320aaa1a2aa2fa1a7a7a62227aba760611b604482015290519081900360640190fd5b600182600281111561044b57fe5b141561046b5761046662015180670a688906bd8b00006104b0565b6104a8565b600282600281111561047957fe5b1415610494576104666203f480671f399b1438a100006104b0565b6104a86170806703782dace9d900006104b0565b5050565b3390565b6104b861024e565b8110610501576040805162461bcd60e51b815260206004820152601360248201527214118e8811905550d15517d111541311551151606a1b604482015290519081900360640190fd5b336000818152600360209081526040808320428701905560028054600190810190915554815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b15801561057257600080fd5b505af1158015610586573d6000803e3d6000fd5b505050506040513d602081101561059c57600080fd5b5050604080513381526020810183905281517f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a524929181900390910190a1505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212205572786ea85ac366bb14de43b8384de46d7ffd1bd04cf74c1d1a9afca116c3de64736f6c634300060c0033000000000000000000000000086b098699a219903f5a7df526ba2874f1637f30

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

000000000000000000000000086b098699a219903f5a7df526ba2874f1637f30

-----Decoded View---------------
Arg [0] : _pxa (address): 0x086b098699a219903f5a7df526ba2874f1637f30

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


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.