BNB Price: $717.24 (+1.53%)
Gas: 1 GWei
 

Overview

BNB Balance

BNB Smart Chain LogoBNB Smart Chain LogoBNB Smart Chain Logo0 BNB

BNB Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap384271972024-05-04 12:13:06247 days ago1714824786IN
0x25D0B363...0839e3d89
0 BNB0.000228331
Swap384190872024-05-04 5:26:40247 days ago1714800400IN
0x25D0B363...0839e3d89
0 BNB0.000147931
Swap384093792024-05-03 21:20:30247 days ago1714771230IN
0x25D0B363...0839e3d89
0 BNB0.000145851
Swap384084162024-05-03 20:32:14247 days ago1714768334IN
0x25D0B363...0839e3d89
0 BNB0.000228361
Swap384079722024-05-03 20:09:52247 days ago1714766992IN
0x25D0B363...0839e3d89
0 BNB0.00020921
Swap384072822024-05-03 19:35:22247 days ago1714764922IN
0x25D0B363...0839e3d89
0 BNB0.000143311
Swap384013122024-05-03 14:36:07247 days ago1714746967IN
0x25D0B363...0839e3d89
0 BNB0.000218841
Swap384011312024-05-03 14:27:04247 days ago1714746424IN
0x25D0B363...0839e3d89
0 BNB0.000143311
Swap384011262024-05-03 14:26:49247 days ago1714746409IN
0x25D0B363...0839e3d89
0 BNB0.00016151
Swap383972172024-05-03 11:11:14248 days ago1714734674IN
0x25D0B363...0839e3d89
0 BNB0.000218841
Swap383966732024-05-03 10:44:00248 days ago1714733040IN
0x25D0B363...0839e3d89
0 BNB0.00014261
Swap383966232024-05-03 10:41:27248 days ago1714732887IN
0x25D0B363...0839e3d89
0 BNB0.000143461
Swap383949092024-05-03 9:15:38248 days ago1714727738IN
0x25D0B363...0839e3d89
0 BNB0.00014721
Swap383947342024-05-03 9:06:52248 days ago1714727212IN
0x25D0B363...0839e3d89
0 BNB0.00016151

Latest 1 internal transaction

Parent Transaction Hash Block From To
341833512023-12-08 19:47:25394 days ago1702064845  Contract Creation0 BNB
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6DcD6c27...9e2654FF2
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SquadswapPair

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : SquadswapPair.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import './SquadswapERC20.sol';
import './libraries/Math.sol';
import './libraries/UQ112x112.sol';
import './interfaces/IERC20.sol';
import './interfaces/ISquadswapFactory.sol';
import './interfaces/ISquadswapCallee.sol';

contract SquadswapPair is SquadswapERC20 {
    using UQ112x112 for uint224;

    uint public constant MINIMUM_LIQUIDITY = 10**3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));

    address public factory;
    address public token0;
    address public token1;

    uint112 private reserve0;           // uses single storage slot, accessible via getReserves
    uint112 private reserve1;           // uses single storage slot, accessible via getReserves
    uint32  private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint public price0CumulativeLast;
    uint public price1CumulativeLast;
    uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, 'Squadswap: LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(address token, address to, uint value) private {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'Squadswap: TRANSFER_FAILED');
    }

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    constructor() {
        factory = msg.sender;
    }

    // called once by the factory at time of deployment
    function initialize(address _token0, address _token1) external {
        require(msg.sender == factory, 'Squadswap: FORBIDDEN'); // sufficient check
        token0 = _token0;
        token1 = _token1;
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
        require(balance0 <= type(uint112).max && balance1 <= type(uint112).max, 'Squadswap: OVERFLOW');
        uint32 blockTimestamp = uint32(block.timestamp % 2**32);
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
            // * never overflows, and + overflow is desired
            price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
            price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
    }

    // if fee is on, mint liquidity equivalent to 4/5 of the growth in sqrt(k) so that protocal fee is 0.2% * 4 / 5 = 0.16%
    function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
        address feeTo = ISquadswapFactory(factory).feeTo();
        feeOn = feeTo != address(0);
        uint _kLast = kLast; // gas savings
        if (feeOn) {
            if (_kLast != 0) {
                uint rootK = Math.sqrt(uint(_reserve0) * uint(_reserve1));
                uint rootKLast = Math.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint numerator = totalSupply * (rootK - rootKLast) * 4;
                    uint denominator = rootK + rootKLast * 4;
                    uint liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(feeTo, liquidity);
                }
            }
        } else if (_kLast != 0) {
            kLast = 0;
        }
    }

    // this low-level function should be called from a contract which performs important safety checks
    function mint(address to) external lock returns (uint liquidity) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        uint balance0 = IERC20(token0).balanceOf(address(this));
        uint balance1 = IERC20(token1).balanceOf(address(this));
        uint amount0 = balance0 - _reserve0;
        uint amount1 = balance1 - _reserve1;

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = Math.sqrt(amount0 * amount1) - MINIMUM_LIQUIDITY;
           _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = Math.min(amount0 * _totalSupply / _reserve0, amount1 * _totalSupply / _reserve1);
        }
        require(liquidity > 0, 'Squadswap: INSUFFICIENT_LIQUIDITY_MINTED');

        // uint256 _lpfee = _LPFee(liquidity);
        _mint(to, liquidity);

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0) * reserve1; // reserve0 and reserve1 are up-to-date
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function burn(address to) external lock returns (uint amount0, uint amount1) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        address _token0 = token0;                                // gas savings
        address _token1 = token1;                                // gas savings
        uint balance0 = IERC20(_token0).balanceOf(address(this));
        uint balance1 = IERC20(_token1).balanceOf(address(this));
        uint liquidity = balanceOf[address(this)];

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = liquidity * (balance0) / _totalSupply; // using balances ensures pro-rata distribution
        amount1 = liquidity * (balance1) / _totalSupply; // using balances ensures pro-rata distribution
        require(amount0 > 0 && amount1 > 0, 'Squadswap: INSUFFICIENT_LIQUIDITY_BURNED');
        _burn(address(this), liquidity);
        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0) * (reserve1); // reserve0 and reserve1 are up-to-date
        emit Burn(msg.sender, amount0, amount1, to);
    }
    // this low-level function should be called from a contract which performs important safety checks
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
        require(amount0Out > 0 || amount1Out > 0, 'Squadswap: INSUFFICIENT_OUTPUT_AMOUNT');
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, 'Squadswap: INSUFFICIENT_LIQUIDITY');

        uint balance0;
        uint balance1;
        { // scope for _token{0,1}, avoids stack too deep errors
        address _token0 = token0;
        address _token1 = token1;
        require(to != _token0 && to != _token1, 'Squadswap: INVALID_TO');
        if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
        if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
        if (data.length > 0) ISquadswapCallee(to).squadswapCall(msg.sender, amount0Out, amount1Out, data);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));
        }
        uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
        uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
        require(amount0In > 0 || amount1In > 0, 'Squadswap: INSUFFICIENT_INPUT_AMOUNT');
        { // scope for reserve{0,1}Adjusted, avoids stack too deep errors
        uint balance0Adjusted = balance0 * (1000) - (amount0In * 2);
        uint balance1Adjusted = balance1 * (1000) - (amount1In * 2);
        require(balance0Adjusted * (balance1Adjusted) >= uint(_reserve0) * (_reserve1) * (1000**2), 'Squadswap: K');
        }

        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }

    // force balances to match reserves
    function skim(address to) external lock {
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)) - reserve0);
        _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)) - reserve1);
    }

    // force reserves to match balances
    function sync() external lock {
        _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
    }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

File 3 of 7 : ISquadswapCallee.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ISquadswapCallee {
    function squadswapCall(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

File 4 of 7 : ISquadswapFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ISquadswapFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 5 of 7 : Math.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 6 of 7 : UQ112x112.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))

// range: [0, 2**112 - 1]
// resolution: 1 / 2**112

library UQ112x112 {
    uint224 constant Q112 = 2**112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        z = uint224(y) * Q112; // never overflows
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        z = x / uint224(y);
    }
}

File 7 of 7 : SquadswapERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SquadswapERC20 {

    string public constant name = 'Squad LPs';
    string public constant symbol = 'Squad-LP';
    uint8 public constant decimals = 18;
    uint  public totalSupply;
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public nonces;

    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    constructor() {
        uint chainId;
        assembly {
            chainId := chainid()
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes(name)),
                keccak256(bytes('1')),
                chainId,
                address(this)
            )
        );
    }

    function _mint(address to, uint value) internal {
        totalSupply = totalSupply + value;
        balanceOf[to] = balanceOf[to] + value;
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint value) internal {
        balanceOf[from] = balanceOf[from] - value;
        totalSupply = totalSupply - value;
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) private {
        balanceOf[from] = balanceOf[from] - value;
        balanceOf[to] = balanceOf[to] + value;
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(address to, uint value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external returns (bool) {
        if (allowance[from][msg.sender] != type(uint256).max) {
            allowance[from][msg.sender] = allowance[from][msg.sender] - value;
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        require(deadline >= block.timestamp, 'Squadswap: EXPIRED');
        bytes32 digest = keccak256(
            abi.encodePacked(
                '\x19\x01',
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, 'Squadswap: INVALID_SIGNATURE');
        _approve(owner, spender, value);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a714610409578063d505accf1461041c578063dd62ed3e1461042f578063fff6cae91461045a57600080fd5b8063ba9a7a56146103da578063bc25cf77146103e3578063c45a0155146103f657600080fd5b80637ecebe00116100d35780637ecebe001461035857806389afcb441461037857806395d89b41146103a0578063a9059cbb146103c757600080fd5b80636a6278421461031c57806370a082311461032f5780637464fc3d1461034f57600080fd5b806323b872dd116101665780633644e515116101405780633644e515146102ee578063485cc955146102f75780635909c0d51461030a5780635a3d54931461031357600080fd5b806323b872dd1461029a57806330adf81f146102ad578063313ce567146102d457600080fd5b8063022c0d9f146101ae57806306fdde03146101c35780630902f1ac14610201578063095ea7b3146102355780630dfe16811461025857806318160ddd14610283575b600080fd5b6101c16101bc366004611cd3565b610462565b005b6101eb604051806040016040528060098152602001685371756164204c507360b81b81525081565b6040516101f89190611d99565b60405180910390f35b61020961097c565b604080516001600160701b03948516815293909216602084015263ffffffff16908201526060016101f8565b610248610243366004611dcc565b6109a6565b60405190151581526020016101f8565b60065461026b906001600160a01b031681565b6040516001600160a01b0390911681526020016101f8565b61028c60005481565b6040519081526020016101f8565b6102486102a8366004611df8565b6109bc565b61028c7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102dc601281565b60405160ff90911681526020016101f8565b61028c60035481565b6101c1610305366004611e39565b610a51565b61028c60095481565b61028c600a5481565b61028c61032a366004611e72565b610ad0565b61028c61033d366004611e72565b60016020526000908152604090205481565b61028c600b5481565b61028c610366366004611e72565b60046020526000908152604090205481565b61038b610386366004611e72565b610d9b565b604080519283526020830191909152016101f8565b6101eb60405180604001604052806008815260200167053717561642d4c560c41b81525081565b6102486103d5366004611dcc565b611100565b61028c6103e881565b6101c16103f1366004611e72565b61110d565b60055461026b906001600160a01b031681565b60075461026b906001600160a01b031681565b6101c161042a366004611e8f565b611220565b61028c61043d366004611e39565b600260209081526000928352604080842090915290825290205481565b6101c1611434565b600c5460011461048d5760405162461bcd60e51b815260040161048490611f06565b60405180910390fd5b6000600c55841515806104a05750600084115b6104fa5760405162461bcd60e51b815260206004820152602560248201527f5371756164737761703a20494e53554646494349454e545f4f55545055545f416044820152641353d5539560da1b6064820152608401610484565b60008061050561097c565b5091509150816001600160701b03168710801561052a5750806001600160701b031686105b6105805760405162461bcd60e51b815260206004820152602160248201527f5371756164737761703a20494e53554646494349454e545f4c495155494449546044820152605960f81b6064820152608401610484565b60065460075460009182916001600160a01b039182169190811690891682148015906105be5750806001600160a01b0316896001600160a01b031614155b6106025760405162461bcd60e51b81526020600482015260156024820152745371756164737761703a20494e56414c49445f544f60581b6044820152606401610484565b8a1561061357610613828a8d611558565b891561062457610624818a8c611558565b86156106915760405163a691a9c960e01b81526001600160a01b038a169063a691a9c99061065e9033908f908f908e908e90600401611f31565b600060405180830381600087803b15801561067857600080fd5b505af115801561068c573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156106d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f99190611f7d565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190611f7d565b92505050600089856001600160701b031661077f9190611fac565b831161078c5760006107a9565b61079f8a6001600160701b038716611fac565b6107a99084611fac565b905060006107c08a6001600160701b038716611fac565b83116107cd5760006107ea565b6107e08a6001600160701b038716611fac565b6107ea9084611fac565b905060008211806107fb5750600081115b6108535760405162461bcd60e51b8152602060048201526024808201527f5371756164737761703a20494e53554646494349454e545f494e5055545f414d60448201526313d5539560e21b6064820152608401610484565b6000610860836002611fc3565b61086c866103e8611fc3565b6108769190611fac565b90506000610885836002611fc3565b610891866103e8611fc3565b61089b9190611fac565b90506108b36001600160701b03808916908a16611fc3565b6108c090620f4240611fc3565b6108ca8284611fc3565b10156109075760405162461bcd60e51b815260206004820152600c60248201526b5371756164737761703a204b60a01b6044820152606401610484565b5050610915848488886116a3565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600c55505050505050505050565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b60006109b333848461188f565b50600192915050565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610a3c576001600160a01b0384166000908152600260209081526040808320338452909152902054610a17908390611fac565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610a478484846118f1565b5060019392505050565b6005546001600160a01b03163314610aa25760405162461bcd60e51b815260206004820152601460248201527329b8bab0b239bbb0b81d102327a92124a22222a760611b6044820152606401610484565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6000600c54600114610af45760405162461bcd60e51b815260040161048490611f06565b6000600c81905580610b0461097c565b506006546040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a9190611f7d565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190611f7d565b90506000610c036001600160701b03861684611fac565b90506000610c1a6001600160701b03861684611fac565b90506000610c288787611999565b60005490915080610c66576103e8610c48610c438587611fc3565b611ae2565b610c529190611fac565b9850610c6160006103e8611b52565b610cad565b610caa6001600160701b038916610c7d8387611fc3565b610c879190611ff8565b6001600160701b038916610c9b8487611fc3565b610ca59190611ff8565b611be3565b98505b60008911610d0e5760405162461bcd60e51b815260206004820152602860248201527f5371756164737761703a20494e53554646494349454e545f4c495155494449546044820152671657d3525395115160c21b6064820152608401610484565b610d188a8a611b52565b610d2486868a8a6116a3565b8115610d4d57600854610d49906001600160701b03600160701b820481169116611fc3565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600c5550949695505050505050565b600080600c54600114610dc05760405162461bcd60e51b815260040161048490611f06565b6000600c81905580610dd061097c565b506006546007546040516370a0823160e01b81523060048201529395509193506001600160a01b039081169291169060009083906370a0823190602401602060405180830381865afa158015610e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4e9190611f7d565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610e98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebc9190611f7d565b30600090815260016020526040812054919250610ed98888611999565b60005490915080610eea8685611fc3565b610ef49190611ff8565b9a5080610f018585611fc3565b610f0b9190611ff8565b995060008b118015610f1d575060008a115b610f7a5760405162461bcd60e51b815260206004820152602860248201527f5371756164737761703a20494e53554646494349454e545f4c495155494449546044820152671657d0955493915160c21b6064820152608401610484565b610f843084611bfb565b610f8f878d8d611558565b610f9a868d8c611558565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a0823190602401602060405180830381865afa158015610fde573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110029190611f7d565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a0823190602401602060405180830381865afa158015611049573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106d9190611f7d565b935061107b85858b8b6116a3565b81156110a4576008546110a0906001600160701b03600160701b820481169116611fc3565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600c81905550915091565b60006109b33384846118f1565b600c5460011461112f5760405162461bcd60e51b815260040161048490611f06565b6000600c556006546007546008546040516370a0823160e01b81523060048201526001600160a01b0393841693909216916111ce91849186916001600160701b03169083906370a08231906024015b602060405180830381865afa15801561119b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bf9190611f7d565b6111c99190611fac565b611558565b6008546040516370a0823160e01b81523060048201526112169183918691600160701b90046001600160701b0316906001600160a01b038416906370a082319060240161117e565b50506001600c5550565b428410156112655760405162461bcd60e51b815260206004820152601260248201527114dc5d58591cddd85c0e881156141254915160721b6044820152606401610484565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b9190876112b88361200c565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161133192919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa15801561139c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906113d25750886001600160a01b0316816001600160a01b0316145b61141e5760405162461bcd60e51b815260206004820152601c60248201527f5371756164737761703a20494e56414c49445f5349474e4154555245000000006044820152606401610484565b61142989898961188f565b505050505050505050565b600c546001146114565760405162461bcd60e51b815260040161048490611f06565b6000600c556006546040516370a0823160e01b8152306004820152611551916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190611f7d565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115359190611f7d565b6008546001600160701b0380821691600160701b9004166116a3565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b179052915160009283928716916115e49190612027565b6000604051808303816000865af19150503d8060008114611621576040519150601f19603f3d011682016040523d82523d6000602084013e611626565b606091505b50915091508180156116505750805115806116505750808060200190518101906116509190612043565b61169c5760405162461bcd60e51b815260206004820152601a60248201527f5371756164737761703a205452414e534645525f4641494c45440000000000006044820152606401610484565b5050505050565b6001600160701b0384118015906116c157506001600160701b038311155b6117035760405162461bcd60e51b81526020600482015260136024820152725371756164737761703a204f564552464c4f5760681b6044820152606401610484565b600061171464010000000042612065565b60085490915060009061173490600160e01b900463ffffffff1683612079565b905060008163ffffffff1611801561175457506001600160701b03841615155b801561176857506001600160701b03831615155b156117f7578063ffffffff166117908561178186611c87565b6001600160e01b031690611ca6565b6001600160e01b03166117a39190611fc3565b600960008282546117b4919061209e565b909155505063ffffffff81166117cd8461178187611c87565b6001600160e01b03166117e09190611fc3565b600a60008282546117f1919061209e565b90915550505b6008805463ffffffff8416600160e01b026001600160e01b036001600160701b03898116600160701b9081026001600160e01b03199095168c83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a1505050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260016020526040902054611915908290611fac565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461194590829061209e565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118e49085815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1391906120b6565b600b546001600160a01b038216158015945091925090611ace578015611ac9576000611a4e610c436001600160701b03808816908916611fc3565b90506000611a5b83611ae2565b905080821115611ac6576000611a718284611fac565b600054611a7e9190611fc3565b611a89906004611fc3565b90506000611a98836004611fc3565b611aa2908561209e565b90506000611ab08284611ff8565b90508015611ac257611ac28782611b52565b5050505b50505b611ada565b8015611ada576000600b555b505092915050565b60006003821115611b435750806000611afc600283611ff8565b611b0790600161209e565b90505b81811015611b3d57905080600281611b228186611ff8565b611b2c919061209e565b611b369190611ff8565b9050611b0a565b50919050565b8115611b4d575060015b919050565b80600054611b60919061209e565b60009081556001600160a01b038316815260016020526040902054611b8690829061209e565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611bd79085815260200190565b60405180910390a35050565b6000818310611bf25781611bf4565b825b9392505050565b6001600160a01b038216600090815260016020526040902054611c1f908290611fac565b6001600160a01b03831660009081526001602052604081209190915554611c47908290611fac565b60009081556040518281526001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611bd7565b6000611ca0600160701b6001600160701b0384166120d3565b92915050565b6000611bf46001600160701b03831684612102565b6001600160a01b0381168114611cd057600080fd5b50565b600080600080600060808688031215611ceb57600080fd5b85359450602086013593506040860135611d0481611cbb565b9250606086013567ffffffffffffffff80821115611d2157600080fd5b818801915088601f830112611d3557600080fd5b813581811115611d4457600080fd5b896020828501011115611d5657600080fd5b9699959850939650602001949392505050565b60005b83811015611d84578181015183820152602001611d6c565b83811115611d93576000848401525b50505050565b6020815260008251806020840152611db8816040850160208701611d69565b601f01601f19169190910160400192915050565b60008060408385031215611ddf57600080fd5b8235611dea81611cbb565b946020939093013593505050565b600080600060608486031215611e0d57600080fd5b8335611e1881611cbb565b92506020840135611e2881611cbb565b929592945050506040919091013590565b60008060408385031215611e4c57600080fd5b8235611e5781611cbb565b91506020830135611e6781611cbb565b809150509250929050565b600060208284031215611e8457600080fd5b8135611bf481611cbb565b600080600080600080600060e0888a031215611eaa57600080fd5b8735611eb581611cbb565b96506020880135611ec581611cbb565b95506040880135945060608801359350608088013560ff81168114611ee957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60208082526011908201527014dc5d58591cddd85c0e881313d0d2d151607a1b604082015260600190565b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b600060208284031215611f8f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611fbe57611fbe611f96565b500390565b6000816000190483118215151615611fdd57611fdd611f96565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261200757612007611fe2565b500490565b600060001982141561202057612020611f96565b5060010190565b60008251612039818460208701611d69565b9190910192915050565b60006020828403121561205557600080fd5b81518015158114611bf457600080fd5b60008261207457612074611fe2565b500690565b600063ffffffff8381169083168181101561209657612096611f96565b039392505050565b600082198211156120b1576120b1611f96565b500190565b6000602082840312156120c857600080fd5b8151611bf481611cbb565b60006001600160e01b03828116848216811515828404821116156120f9576120f9611f96565b02949350505050565b60006001600160e01b038381168061211c5761211c611fe2565b9216919091049291505056fea264697066735822122027660ce023954362273c2ff4653e280a735267a40959717e94107643be07954064736f6c634300080c0033

Block Transaction Gas Used Reward
view all blocks produced
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
View All Validatorset

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.