Contract 0xabF82Ae893a38c2B11470410cB300667E408906C 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6669caea321f8aa4e3c7c0c1da93ce9b3d8cff757f88e4461e87c3f91dd13b74Transfer115075712021-10-05 12:17:0811 days 23 hrs ago0x13ba4e364bf9b5e3c62062e54defbb04e5ca7921 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.1 BNB0.00399619
0xc16e38c024d3c6adc538491ba1b1d65c1ea3924274ad21d89927a2ab28cc4ca8Transfer113707582021-09-30 17:30:5116 days 18 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.01 BNB0.00377119
0x043ca5d9dcde5474c5d9f45e009e1dc858c3bca15141bf05e00404049e357aa0Transfer113168252021-09-28 20:07:1618 days 16 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.07 BNB0.00377119
0x73877dc9905b286e96da591c6a8740cbaf4b6f139be1e1ae168c99bc4fac0901Transfer112800762021-09-27 13:09:5519 days 23 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.118 BNB0.00377119
0x07c65e04f49d73bb78a0d853869586fc2d2552c22f468076b0414f5940f861acTransfer112256692021-09-25 15:24:0221 days 20 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.01 BNB0.00385026
0x9f7567ead058fbfc3958a7081cdcc2731df1817910eeaba312c0c8fc0a9d8087Transfer111763432021-09-23 22:07:4923 days 14 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.02 BNB0.00384619
0x4c9e5861db7833d8f045d0103c305b44d766137f78d7b3f1782a44bc9753d025Transfer110357682021-09-19 0:11:5228 days 12 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.032 BNB0.00384619
0xec4e79202c7a310fbcd263be78043f641bf2e61d2b8ee217f03f84f9e478f09cTransfer109164922021-09-14 20:32:2632 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.008 BNB0.000105
0x71b3a0f12662526d32d0b9c75bde528bdb6675123e29cacaeeb479f98422e576Transfer109164752021-09-14 20:31:3532 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.009 BNB0.000105
0x0cbf89281e0ac8e8ad4335a93e468a85d16322fe1b89b9643dc8990871cb5209Transfer109164442021-09-14 20:30:0232 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.010110828121981 BNB0.000105
0x1c36d87f45c7af20d62767576ed32918af57da3c2bd1828e40c4d6d33dc342c1Transfer107432312021-09-08 19:11:0138 days 17 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.04 BNB0.00377119
0x94c1643e7d3364ad76d2861a3d6f3a68dce4342895f0231cb8596b7f1613c5e9Transfer107145962021-09-07 19:03:4739 days 17 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.033 BNB0.00377119
0x364580535768c36811538021c17bc17dd48b9146a4dce2cf4e4ed62dc397beb8Transfer107145692021-09-07 19:02:2639 days 17 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.036 BNB0.000105
0x52cc0dd140d825f56dd797b80a2b50471a8b072c2c1257ac5868eee761daec1bTransfer107136942021-09-07 18:16:5039 days 17 hrs ago0x3c205534533f57ce28607d575798266a82ceab2d IN  0xabf82ae893a38c2b11470410cb300667e408906c0.18 BNB0.003692645
0xfaceecc316828d8a3a6028e11de03688d6efe69067dd3fa943d30c2f10b8d7deTransfer107132352021-09-07 17:52:3639 days 18 hrs ago0x3c205534533f57ce28607d575798266a82ceab2d IN  0xabf82ae893a38c2b11470410cb300667e408906c0.1 BNB0.003753555
0x30545786f2b4cf6fc6084055bb2262ac80430222968e5d9ba183c84a4e0d1cf2Transfer107130852021-09-07 17:44:4139 days 18 hrs ago0x3c205534533f57ce28607d575798266a82ceab2d IN  0xabf82ae893a38c2b11470410cb300667e408906c0.08 BNB0.003617645
0xe00fac0f4c6054cfb1432aceb2530c60191528b00f9b3f2da5bb8384aabb8fb7Transfer107129952021-09-07 17:40:0939 days 18 hrs ago0x3c205534533f57ce28607d575798266a82ceab2d IN  0xabf82ae893a38c2b11470410cb300667e408906c0.09 BNB0.003617645
0xf151c7039b98f6ac4592c1e43262316b3ef5749aa08f5750ce872fc73d87452dTransfer107129082021-09-07 17:35:4339 days 18 hrs ago0x3c205534533f57ce28607d575798266a82ceab2d IN  0xabf82ae893a38c2b11470410cb300667e408906c0.51 BNB0.003753555
0x6b31b1d93b7a7278c71aa7eb1e2ef8de92b9c9be9a3c7f7a03c3d29a56ebce6bTransfer106887552021-09-06 21:02:0240 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.046 BNB0.00377119
0x98d687ff0e34416e751dba5a795751fa6f916e30ccf7450bc337967b6c1c684bTransfer106887252021-09-06 21:00:2240 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.05 BNB0.000105
0x94e1cf0e0b09070ed24a0e99ef987669267923053577693c9b52b45b8d47b28fTransfer106887082021-09-06 20:59:2740 days 15 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.05238969129329 BNB0.000105
0xa008a08f54958d8a30fcfd9417063e7d0b0acd057e9811415052c5901eaae1e1Transfer106805792021-09-06 14:08:3440 days 22 hrs ago0xa4cd1d83aaa8bd189cb2417843575fd27a2bc241 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.02 BNB0.003617645
0x398836a1e4a4ece3518f27b13e930f704da68c4eb440eb0643758305f4416fa7Transfer106285882021-09-04 18:44:0442 days 17 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.049 BNB0.00386011
0x76b908a879c1af13c272c3b1e3eb8b6909e8cf82cdf9401a4401fdb61e0a1eb4Transfer106284902021-09-04 18:39:1042 days 17 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.052 BNB0.000105
0xf80c39c3c1cd6f9ea7d11c4957324be4928cfe1d450e140f03052d3c026762c5Transfer106284722021-09-04 18:38:1642 days 17 hrs ago0xb367e708892f3201a19a334ca71615cdca5f62b8 IN  0xabf82ae893a38c2b11470410cb300667e408906c0.054 BNB0.000105
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6669caea321f8aa4e3c7c0c1da93ce9b3d8cff757f88e4461e87c3f91dd13b74115075712021-10-05 12:17:0811 days 23 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.1 BNB
0xc16e38c024d3c6adc538491ba1b1d65c1ea3924274ad21d89927a2ab28cc4ca8113707582021-09-30 17:30:5116 days 18 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.01 BNB
0x043ca5d9dcde5474c5d9f45e009e1dc858c3bca15141bf05e00404049e357aa0113168252021-09-28 20:07:1618 days 16 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.07 BNB
0x73877dc9905b286e96da591c6a8740cbaf4b6f139be1e1ae168c99bc4fac0901112800762021-09-27 13:09:5519 days 23 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.118 BNB
0x07c65e04f49d73bb78a0d853869586fc2d2552c22f468076b0414f5940f861ac112256692021-09-25 15:24:0221 days 20 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.01 BNB
0x9f7567ead058fbfc3958a7081cdcc2731df1817910eeaba312c0c8fc0a9d8087111763432021-09-23 22:07:4923 days 14 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.02 BNB
0x4c9e5861db7833d8f045d0103c305b44d766137f78d7b3f1782a44bc9753d025110357682021-09-19 0:11:5228 days 12 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.032 BNB
0x1c36d87f45c7af20d62767576ed32918af57da3c2bd1828e40c4d6d33dc342c1107432312021-09-08 19:11:0138 days 17 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.04 BNB
0x94c1643e7d3364ad76d2861a3d6f3a68dce4342895f0231cb8596b7f1613c5e9107145962021-09-07 19:03:4739 days 17 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.033 BNB
0x52cc0dd140d825f56dd797b80a2b50471a8b072c2c1257ac5868eee761daec1b107136942021-09-07 18:16:5039 days 17 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.18 BNB
0xfaceecc316828d8a3a6028e11de03688d6efe69067dd3fa943d30c2f10b8d7de107132352021-09-07 17:52:3639 days 18 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.1 BNB
0x30545786f2b4cf6fc6084055bb2262ac80430222968e5d9ba183c84a4e0d1cf2107130852021-09-07 17:44:4139 days 18 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.08 BNB
0xe00fac0f4c6054cfb1432aceb2530c60191528b00f9b3f2da5bb8384aabb8fb7107129952021-09-07 17:40:0939 days 18 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.09 BNB
0xf151c7039b98f6ac4592c1e43262316b3ef5749aa08f5750ce872fc73d87452d107129082021-09-07 17:35:4339 days 18 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.51 BNB
0x6b31b1d93b7a7278c71aa7eb1e2ef8de92b9c9be9a3c7f7a03c3d29a56ebce6b106887552021-09-06 21:02:0240 days 15 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.046 BNB
0xa008a08f54958d8a30fcfd9417063e7d0b0acd057e9811415052c5901eaae1e1106805792021-09-06 14:08:3440 days 22 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.02 BNB
0x398836a1e4a4ece3518f27b13e930f704da68c4eb440eb0643758305f4416fa7106285882021-09-04 18:44:0442 days 17 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.049 BNB
0xb01eff0133c88ed4cfc66f2acec862629d6f508eb65c2c2cd12abc4a3ed13868105893842021-09-03 9:46:1644 days 2 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v21.04584 BNB
0xfbdc1cf98238a7e5f5546cc84a50499c63e10557e58c6e2fee72e2bbc671abba105892862021-09-03 9:41:2244 days 2 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v21 BNB
0x3cd4a8dc42e896c5370e8ba9e12b0cab1f83f0a78e230e17af620434ec80f1f9105727342021-09-02 19:43:1344 days 16 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.06 BNB
0x0c55f7be249575e09a78cf61d2ddd668fa355dd828242cdcf35775181dc4811d105724402021-09-02 19:28:3144 days 16 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.12 BNB
0xd65c84fec685d38a897da5da65496276331234011d25d99996f864ea350c48ca105719182021-09-02 19:02:2544 days 17 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.21 BNB
0xef7dfd3fc4d5e2af76cf25098752cec8f5d3e9a2fff5515b5838521f6371515f105536522021-09-02 3:39:0045 days 8 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.08 BNB
0x6fcda460951d96a006e860c15f7e4730a08ac0d5c0158013637003f16bfa554e105468032021-09-01 21:53:3345 days 14 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.063 BNB
0x57644551ecc7373ed220fd4c1744d6c81ef3c344cd4820d6573f618aa81bd011105268022021-09-01 4:58:3246 days 7 hrs ago 0xabf82ae893a38c2b11470410cb300667e408906c PancakeSwap: Router v20.13 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ScakeSwapper

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : IBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
/**
 * BEP20 standard interface.
 */
interface IBEP20 {
    function totalSupply() external view returns (uint256);
    function decimals() external view returns (uint8);
    function symbol() external view returns (string memory);
    function name() external view returns (string memory);
    function getOwner() external view returns (address);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address _owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 2 of 5 : IPancakeRouter01.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;
interface IPancakeRouter01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 3 of 5 : IPancakeRouter02.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

import './IPancakeRouter01.sol';

interface IPancakeRouter02 is IPancakeRouter01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 4 of 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

import { IPancakeRouter02 } from "./IPancakeRouter02.sol";
import { ReentrancyGuard } from "./ReentrancyGuard.sol";
import "./IBEP20.sol";

contract ScakeSwapper is ReentrancyGuard {
    IPancakeRouter02 router;
    address constant WETH = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
    address constant SCAKE = 0xA92B1cdC86FCFcaC705332F717008e8745BB2Da3;
    event BoughtWithBnb(address);
    event BoughtWithToken(address, address); //sender, token


    constructor () public  {
        router = IPancakeRouter02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
    }

    receive() external payable {
        buyTokens(msg.value, msg.sender);
    }

    function getPath(address token0, address token1) internal view returns (address[] memory) {
        address[] memory path = new address[](2);
        path[0] = token0;
        path[1] = token1;
        return path;
    }

    function buyTokens(uint amt, address to) internal {
        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amt}(
            0,
            getPath(WETH, SCAKE),
            to,
            block.timestamp
        );

        emit BoughtWithBnb(to);
    }

    function buyWithToken(uint amt, IBEP20 token) external nonReentrant {
        require(token.allowance(msg.sender, address(router)) >= amt);
        try
            router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
                amt,
                0,
                getPath(address(token), SCAKE),
                msg.sender,
                block.timestamp
            ) {
            emit BoughtWithToken(msg.sender, address(token));
        }
        catch {
            revert("Error swapping tokens");
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"BoughtWithBnb","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"BoughtWithToken","type":"event"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"contract IBEP20","name":"token","type":"address"}],"name":"buyWithToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060016000819055507310ed43c718714eb63d5aa57b78b54704e256024e600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109118061007d6000396000f3fe6080604052600436106100225760003560e01c80638eecec531461003857610033565b36610033576100313433610061565b005b600080fd5b34801561004457600080fd5b5061005f600480360381019061005a919061056b565b610162565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de958360006100d473bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c73a92b1cdc86fcfcac705332f717008e8745bb2da3610399565b85426040518663ffffffff1660e01b81526004016100f5949392919061071d565b6000604051808303818588803b15801561010e57600080fd5b505af1158015610122573d6000803e3d6000fd5b50505050507fb5306642846e3ff1018ce3959a77f2a096d592134fad59b1299d4709297ed8cb8160405161015691906106d9565b60405180910390a15050565b600260005414156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f90610789565b60405180910390fd5b6002600081905550818173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b815260040161020e9291906106f4565b60206040518083038186803b15801561022657600080fd5b505afa15801561023a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025e9190610542565b101561026957600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c11d7958360006102c88573a92b1cdc86fcfcac705332f717008e8745bb2da3610399565b33426040518663ffffffff1660e01b81526004016102ea9594939291906107a9565b600060405180830381600087803b15801561030457600080fd5b505af1925050508015610315575060015b610354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034b90610769565b60405180910390fd5b7f61b5f6bf6c002f44186511e7f03554eb810582e11a2d85384fb5429df356828633826040516103859291906106f4565b60405180910390a160016000819055505050565b60606000600267ffffffffffffffff8111156103de577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561040c5781602001602082028036833780820191505090505b509050838160008151811061044a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505082816001815181106104bf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508091505092915050565b600081359050610512816108ad565b92915050565b600081359050610527816108c4565b92915050565b60008151905061053c816108c4565b92915050565b60006020828403121561055457600080fd5b60006105628482850161052d565b91505092915050565b6000806040838503121561057e57600080fd5b600061058c85828601610518565b925050602061059d85828601610503565b9150509250929050565b60006105b383836105bf565b60208301905092915050565b6105c88161084d565b82525050565b6105d78161084d565b82525050565b60006105e882610813565b6105f2818561082b565b93506105fd83610803565b8060005b8381101561062e57815161061588826105a7565b97506106208361081e565b925050600181019050610601565b5085935050505092915050565b6106448161089b565b82525050565b600061065760158361083c565b91507f4572726f72207377617070696e6720746f6b656e7300000000000000000000006000830152602082019050919050565b6000610697601f8361083c565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6106d381610891565b82525050565b60006020820190506106ee60008301846105ce565b92915050565b600060408201905061070960008301856105ce565b61071660208301846105ce565b9392505050565b6000608082019050610732600083018761063b565b818103602083015261074481866105dd565b905061075360408301856105ce565b61076060608301846106ca565b95945050505050565b600060208201905081810360008301526107828161064a565b9050919050565b600060208201905081810360008301526107a28161068a565b9050919050565b600060a0820190506107be60008301886106ca565b6107cb602083018761063b565b81810360408301526107dd81866105dd565b90506107ec60608301856105ce565b6107f960808301846106ca565b9695505050505050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600061085882610871565b9050919050565b600061086a8261084d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006108a682610891565b9050919050565b6108b68161085f565b81146108c157600080fd5b50565b6108cd81610891565b81146108d857600080fd5b5056fea2646970667358221220639235af4810d049447f343034e8efc4de02374d940b4d1df4a3e3b77a683e5b64736f6c63430008000033

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.