Contract 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad47

 

Contract Overview

Balance:
4.276912722159999999 BNB

BNB Value:
$1,468.14 (@ $343.27/BNB)

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x9b01767c6e09f1e34db679c9ab31374027f2cdea211c68866a34536b8071931282493442021-06-13 2:19:4143 mins ago0x73ae5b993038aa91df76866ef71cfb248b2bc75f IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0xaf525972803f10a4f92a114cae017550be65bbc8e319e1430e06411f2ed2f7b882468322021-06-13 0:12:462 hrs 50 mins ago0x3bab037c4360d007f094b12c610794a8531173f4 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000188675
0xe68e3087d75d17e2401b8f49b24ec154b1f6f660bb3cfa0e392149921bd61caa82449552021-06-12 22:38:524 hrs 24 mins ago0xb47c9824dba412eef3bbe36dd32dc3514e17e146 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0xf28dcb912fed5fe8af30b1d325e5c3ea9c6d2bece0d992f9bc4bd6f6ed0e4d6b82419802021-06-12 20:07:266 hrs 55 mins ago0xf26810d1d1fac514a5c2c2eb5050ed02d8552c19 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x8cf4c2a35288ea9579470394e90d15830e22c6bd7c9d350f3bae60d89ae5afda82393532021-06-12 17:54:269 hrs 8 mins ago0xf4061edeb31a57178604707c7b2bc5c512273afb IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000188675
0xd59253d2238425f5eeebb3881139d1a409545498f635396c6b40deef57780bc682388952021-06-12 17:31:169 hrs 31 mins ago0x26cc3495ecf4d4a3c9eb496bcc75efd193c3415f IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x8641e825f5064e71dae81fc12845d9342ff153a33f85f74397573c67e2fada4c82362442021-06-12 15:18:4111 hrs 44 mins ago0xc89b05c56bc2067519f4c6ff96565ef4be719b9e IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x944cbdc0e2a13903e39cc670dfe7e57c015baa19496e9c866e94b362dbf14b8882350642021-06-12 14:19:4112 hrs 43 mins ago0x3bba10c3ab0d17062afe49d9dcfebadeb62c28a9 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x3d49ee413ec4bece72f9ae5a5e766d0b5a49f35d644ef29ea2c4c843c6138b6582349192021-06-12 14:12:2612 hrs 50 mins ago0x38abae1695cd4f70e0e034b987a7b8a47581dac2 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x0270d41333ed70aab25f85497cf2f8098c94516563ff7c6b76800c2db04b13a782341422021-06-12 13:33:3513 hrs 29 mins ago0xaffc63eb521b0fba7edfbfb56353fc6f9bdea3d8 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x14e243e0dd0d55177ecbbb798d1ec5f5b3ab7742ce3fd207e2bdda011c23b01882326032021-06-12 12:16:3814 hrs 46 mins ago0x7497a891ed0b2d5c8bfdf3d34a68b93714d6928d IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0xa71732ee4f0ded8706e19713264cc9ceb0f6bb6221c09f069351cc88d0ce7a9082316072021-06-12 11:26:3115 hrs 36 mins ago0xc90d22f3bde543ffe734852abcfec5c69c9c658f IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x73870f97ca8b1276ff40fcf685de32cd9559968a7d44034310936316491382e882306872021-06-12 10:40:3116 hrs 22 mins ago0xad471fc409566392c2e5336b27b3dc67d53a55e0 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x7191b0a0de8340a6b491efce1c67f205bd76cc3a37399400f31c9ac9aa8ebaa082306172021-06-12 10:36:5816 hrs 25 mins ago0x032ddecc0fe603786b25cb447d83bbcfe03a7c10 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x5a253ea8920bd30f7be587f6428187b1ac929134da783edaeded417a8f42a33482293022021-06-12 9:30:2717 hrs 32 mins ago0xd5fd7a3efc8907dc4768c0f3c0feba075c9c0987 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000188675
0x47fbb97c59bcebfafc117c2a7bfa8e0a0fbd2580852ac9968af3fdf2fff65e5782292102021-06-12 9:25:5117 hrs 37 mins ago0x4385f22c297529eebd543f9125d8992b08461d4e IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0xe6ecfc5aedec83b4c8c8f22ae20951a53da2bd3942d7894f3c98cb0cdb65b03f82290412021-06-12 9:17:2417 hrs 45 mins ago0x1dbe1df6b52fa1cfe6a4760496826995db8613ec IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000544285
0x9a9d6b0a5570ed38a8029a699a5ea8aaaabfab1a42f2461df8cc4f914f6c985f82289912021-06-12 9:14:5417 hrs 48 mins ago0xf47435b2072606e6a57ca74102f3b47c29d41f95 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000544285
0x34d083b0da965d2d69edffa88203aaa8ba9a2d6ef9f496fa9988c5026e7c62ce82281752021-06-12 8:34:0618 hrs 28 mins ago0xd2555d20219b41b6933168388d01eee162c4ba5b IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000188675
0xe5b28babc063a2fbd0b7698a4dfbcdc152ee12da5300eca23bb4db406d1125bb82263632021-06-12 7:03:2819 hrs 59 mins ago0x85c47448b852cf7d6507510ea18b9cd30c2a10f9 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000188675
0xdebb8b09ecf92ef647f2342ece16ae7c7ae0254a22b87686de941bb60cb148cd82261402021-06-12 6:52:1920 hrs 10 mins ago0xb398dbb860e5baf2c9de1f238b5e7fa6d299dca7 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.00037735
0x688907bca5bb53ad7ab46daa9241a351a5d5f0ac1809cc6f397ec57fac17816082244022021-06-12 5:25:2021 hrs 37 mins ago0x699cf4803884ba6521a4cde7806a8f24774cc2e7 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000743142
0x1420faccc5dda09396836b44ffc8cf5c3632b3efa81c77d42adac6abbfb350cd82239492021-06-12 5:02:3522 hrs ago0xf432151bfa8fb86962622df838c68f3b77fc401f IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0xb10bc1c60ee68e060aff2dc8cf2001742d97fb77c4dfd0ba0f0411b52bc4cdaa82218522021-06-12 3:17:4423 hrs 45 mins ago0xa0c7181840ca72f34b6235968a4ae194cf425741 IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000619285
0x90ded9ed8a27d889f0a8eeefd735db9d51855111221257a2e334bff9761bf86d82213262021-06-12 2:51:221 day 11 mins ago0x14280306613bfa20e00135368b5ee83556245c6e IN  0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470 BNB0.000544285
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9b01767c6e09f1e34db679c9ab31374027f2cdea211c68866a34536b8071931282493442021-06-13 2:19:4143 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x73ae5b993038aa91df76866ef71cfb248b2bc75f0.0488784975 BNB
0xe68e3087d75d17e2401b8f49b24ec154b1f6f660bb3cfa0e392149921bd61caa82449552021-06-12 22:38:524 hrs 24 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xb47c9824dba412eef3bbe36dd32dc3514e17e1460.097756995 BNB
0xf28dcb912fed5fe8af30b1d325e5c3ea9c6d2bece0d992f9bc4bd6f6ed0e4d6b82419802021-06-12 20:07:266 hrs 55 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xf26810d1d1fac514a5c2c2eb5050ed02d8552c190.22484116431 BNB
0xd59253d2238425f5eeebb3881139d1a409545498f635396c6b40deef57780bc682388952021-06-12 17:31:169 hrs 31 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x26cc3495ecf4d4a3c9eb496bcc75efd193c3415f0.52788800043 BNB
0x8641e825f5064e71dae81fc12845d9342ff153a33f85f74397573c67e2fada4c82362442021-06-12 15:18:4111 hrs 44 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xc89b05c56bc2067519f4c6ff96565ef4be719b9e0.48878520243 BNB
0x944cbdc0e2a13903e39cc670dfe7e57c015baa19496e9c866e94b362dbf14b8882350642021-06-12 14:19:4112 hrs 43 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x3bba10c3ab0d17062afe49d9dcfebadeb62c28a90.97757048067 BNB
0x3d49ee413ec4bece72f9ae5a5e766d0b5a49f35d644ef29ea2c4c843c6138b6582349192021-06-12 14:12:2612 hrs 50 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x38abae1695cd4f70e0e034b987a7b8a47581dac22.93271144201 BNB
0x0270d41333ed70aab25f85497cf2f8098c94516563ff7c6b76800c2db04b13a782341422021-06-12 13:33:3513 hrs 29 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xaffc63eb521b0fba7edfbfb56353fc6f9bdea3d80.097756995 BNB
0x14e243e0dd0d55177ecbbb798d1ec5f5b3ab7742ce3fd207e2bdda011c23b01882326032021-06-12 12:16:3814 hrs 46 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x7497a891ed0b2d5c8bfdf3d34a68b93714d6928d0.29327113662 BNB
0xa71732ee4f0ded8706e19713264cc9ceb0f6bb6221c09f069351cc88d0ce7a9082316072021-06-12 11:26:3115 hrs 36 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xc90d22f3bde543ffe734852abcfec5c69c9c658f1.17308454648 BNB
0x73870f97ca8b1276ff40fcf685de32cd9559968a7d44034310936316491382e882306872021-06-12 10:40:3116 hrs 22 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xad471fc409566392c2e5336b27b3dc67d53a55e00.24439256331 BNB
0x7191b0a0de8340a6b491efce1c67f205bd76cc3a37399400f31c9ac9aa8ebaa082306172021-06-12 10:36:5816 hrs 25 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x032ddecc0fe603786b25cb447d83bbcfe03a7c100.0097756995 BNB
0x47fbb97c59bcebfafc117c2a7bfa8e0a0fbd2580852ac9968af3fdf2fff65e5782292102021-06-12 9:25:5117 hrs 37 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x4385f22c297529eebd543f9125d8992b08461d4e2.31058160466 BNB
0xe6ecfc5aedec83b4c8c8f22ae20951a53da2bd3942d7894f3c98cb0cdb65b03f82290412021-06-12 9:17:2417 hrs 45 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x1dbe1df6b52fa1cfe6a4760496826995db8613ec0.19551406581 BNB
0x9a9d6b0a5570ed38a8029a699a5ea8aaaabfab1a42f2461df8cc4f914f6c985f82289912021-06-12 9:14:5417 hrs 48 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xf47435b2072606e6a57ca74102f3b47c29d41f952.93271144201 BNB
0x688907bca5bb53ad7ab46daa9241a351a5d5f0ac1809cc6f397ec57fac17816082244022021-06-12 5:25:2021 hrs 37 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x699cf4803884ba6521a4cde7806a8f24774cc2e70.97757048067 BNB
0x1420faccc5dda09396836b44ffc8cf5c3632b3efa81c77d42adac6abbfb350cd82239492021-06-12 5:02:3522 hrs ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xf432151bfa8fb86962622df838c68f3b77fc401f0.48878520243 BNB
0xb10bc1c60ee68e060aff2dc8cf2001742d97fb77c4dfd0ba0f0411b52bc4cdaa82218522021-06-12 3:17:4423 hrs 45 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xa0c7181840ca72f34b6235968a4ae194cf4257414.98560947416 BNB
0x90ded9ed8a27d889f0a8eeefd735db9d51855111221257a2e334bff9761bf86d82213262021-06-12 2:51:221 day 11 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x14280306613bfa20e00135368b5ee83556245c6e0.0175962591 BNB
0x455b05f39a02d413053918e4a8364e93f795d225df377170f803000d1e4ca52d82212332021-06-12 2:46:431 day 16 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xda1071404b289c7bb8b0bb4e61e3b5dca0694a2a0.43030233603 BNB
0xfddf7e2bcbc8409ffacd6fcb87cb2f50be287a1f2f709370e45c0887852d97b082209972021-06-12 2:34:211 day 28 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xf7ef6d261dbf046bd20ff823b38392afcbc426030.24439256331 BNB
0x154726ed2b0a0840b897fc070d3c1a1e7f4ac8cba83a37aa5fbcedbc94a6032282209542021-06-12 2:32:121 day 30 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x9fa260306bb3a09f31c25d8e146f7ee86d884d580.48878520243 BNB
0x7b0662c06d2b4351c8f23ed5e46f9ccdd625d2bda3d57d77dae1a5bdb5c24a3682206242021-06-12 2:15:411 day 47 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470x0723c74793e6a30ee70de84f2abfa53b954f3b2029.32711472334 BNB
0x949a99fd502037cef7b6e48e088d0e57225a8af03113b325389fab19fa6cfe0382204122021-06-12 2:05:051 day 57 mins ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xa7758b30e93d2ed6cea7c85e5b12a1d46f0f091f15.64112784234 BNB
0xdfca0505bcbb49f6a4a7322642a651cbc8cf8dab2973a5fe4e03bb917c32cca582201042021-06-12 1:49:411 day 1 hr ago 0x4d5e1e722e9280d44c564ef3fc14e0b03a50ad470xd58d9fa0a07c73296b568d739c5e385ac81b81a30.19551406581 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xf3C14f96E0Fb262b14b728CAE263B799D5Bd3d2B

Contract Name:
IFOAuxiliary

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 : IFOAuxiliary.sol
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

/*
 * ApeSwapFinance
 * App:             https://apeswap.finance
 * Medium:          https://ape-swap.medium.com
 * Twitter:         https://twitter.com/ape_swap
 * Telegram:        https://t.me/ape_swap
 * Announcements:   https://t.me/ape_swap_news
 * GitHub:          https://github.com/ApeSwapFinance
 */

import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/utils/ReentrancyGuard.sol";


interface IIFO {
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many tokens the user has provided.
        bool claimed; // default false
    }
    function userInfo(address _user) external view returns (UserInfo memory);
    function totalAmount() external view returns (uint256);
    // allocation 100000 means 0.1(10%), 1 meanss 0.000001(0.0001%), 1000000 means 1(100%)
    function getUserAllocation(address _user) external view returns (uint256);
}


contract IFOAuxiliary is ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;


    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many tokens the user has provided.
        bool claimed; // default false
    }

    // admin address
    address public adminAddress;
    // The raising token
    IBEP20 public stakeToken;
    // Flag if stake token is BNB
    bool public isBNBStaking;
    // The offering token
    IBEP20 public offeringToken;
    // The block number when IFO starts
    uint256 public startBlock;
    // The block number when IFO ends
    uint256 public endBlock;
    // total amount of raising tokens need to be raised
    uint256 public raisingAmount;
    // total amount of offeringToken that will offer
    uint256 public offeringAmount;
    // total amount of tokens to give back to users
    uint256 public totalDebt;
    // address => amount
    mapping(address => UserInfo) public userInfo;
    // participators
    address[] public addressList;

    // Auxiliary Additions
    IIFO public ifoContract;

    event Deposit(address indexed user, uint256 amount);
    event Harvest(
        address indexed user,
        uint256 offeringAmount,
        uint256 excessAmount
    );
    event EmergencySweepWithdraw(address indexed receiver, address indexed token, uint256 balance);


    constructor(
        IBEP20 _stakeToken,
        IBEP20 _offeringToken,
        uint256 _startBlock,
        uint256 _endBlock,
        uint256 _offeringAmount,
        uint256 _raisingAmount,
        address _adminAddress,
        IIFO _ifoContract // Auxiliary addition
    ) public {
        stakeToken = _stakeToken;
        /// @dev address(0) turns this contract into a BNB staking pool
        if(address(stakeToken) == address(0)) {
            isBNBStaking = true;
        }
        offeringToken = _offeringToken;
        startBlock = _startBlock;
        endBlock = _endBlock;
        offeringAmount = _offeringAmount;
        raisingAmount = _raisingAmount;
        adminAddress = _adminAddress;
        ifoContract = _ifoContract;

    }

    modifier onlyAdmin() {
        require(msg.sender == adminAddress, "admin: wut?");
        _;
    }

    modifier onlyActiveIFO() {
        require(
            block.number > startBlock && block.number < endBlock,
            "not ifo time"
        );
        _;
    }

    receive() external payable {}

    function totalAmount() public returns (uint256) { 
        return ifoContract.totalAmount();
    }

    function setOfferingAmount(uint256 _offerAmount) public onlyAdmin {
        require(block.number < startBlock, "no");
        offeringAmount = _offerAmount;
    }

    function setRaisingAmount(uint256 _raisingAmount) public onlyAdmin {
        require(block.number < startBlock, "no");
        raisingAmount = _raisingAmount;
    }

    function harvest() external nonReentrant {
        require(block.number > endBlock, "not after end block");
        require(!userInfo[msg.sender].claimed, "nothing to harvest");
        require(getUserAllocation(msg.sender) > 0, "have you participated?");
        uint256 offeringTokenAmount = getOfferingAmount(msg.sender);
        uint256 refundingTokenAmount = getRefundingAmount(msg.sender);
        offeringToken.safeTransfer(address(msg.sender), offeringTokenAmount);
        if (refundingTokenAmount > 0) {
            safeTransferStakeInternal(address(msg.sender), refundingTokenAmount);
        }
        userInfo[msg.sender].claimed = true;
        totalDebt = totalDebt.sub(userInfo[msg.sender].amount);
        emit Harvest(msg.sender, offeringTokenAmount, refundingTokenAmount);
    }

    function hasHarvest(address _user) external view returns (bool) {
        return userInfo[_user].claimed;
    }

    // allocation 100000 means 0.1(10%), 1 meanss 0.000001(0.0001%), 1000000 means 1(100%)
    function getUserAllocation(address _user) public view returns (uint256) {
        IIFO.UserInfo memory ifoUserInfo = ifoContract.userInfo(_user);
        uint256 ifoTotalAmount = ifoContract.totalAmount();
        return ifoUserInfo.amount.mul(1e12).div(ifoTotalAmount);
    }

    // allocation 100000 means 0.1(10%), 1 meanss 0.000001(0.0001%), 1000000 means 1(100%)
    function getTotalStakeTokenBalance() public view returns (uint256) {
        if(isBNBStaking) {
            return address(this).balance;
        } else {
            // Return BEP20 balance
            return stakeToken.balanceOf(address(this));
        }
    }

    function getOfferingAmount(address _user) public view returns (uint256) {
            uint256 allocation = getUserAllocation(_user);
            return offeringAmount.mul(allocation).div(1e12);
    }

    function getRefundingAmount(address _user) public view returns (uint256) {
        uint256 allocation = getUserAllocation(_user);
        return raisingAmount.mul(allocation).div(1e12);
    }

    function getAddressListLength() external view returns (uint256) {
        return addressList.length;
    }

    function finalWithdraw(uint256 _stakeTokenAmount, uint256 _offerAmount)
        external
        onlyAdmin
    {
        require(
            _offerAmount <= offeringToken.balanceOf(address(this)),
            "not enough reward token"
        );
        safeTransferStakeInternal(address(msg.sender), _stakeTokenAmount);
        offeringToken.safeTransfer(address(msg.sender), _offerAmount);
    }

    /// @param _to address to send stake token to 
    /// @param _amount value of reward token to transfer
    function safeTransferStakeInternal(address _to, uint256 _amount) internal {
        uint256 stakeBalance = getTotalStakeTokenBalance();
        require(
            _amount <= stakeBalance,
            "not enough stakeToken"
        );

        if (isBNBStaking) {
            // Transfer BNB to address
            (bool success, ) = _to.call{gas: 23000, value: _amount}("");
            require(success, "TransferHelper: BNB_TRANSFER_FAILED");
        } else {
            // Transfer BEP20 to address
            IBEP20(stakeToken).safeTransfer(_to, _amount);
        }
    }

    /// @notice A public function to sweep accidental BEP20 transfers to this contract. 
    ///   Tokens are sent to owner
    /// @param token The address of the BEP20 token to sweep
    function sweepToken(IBEP20 token) external onlyAdmin {
        require(address(token) != address(stakeToken), "can not sweep stake token");
        require(address(token) != address(offeringToken), "can not sweep offering token");
        uint256 balance = token.balanceOf(address(this));
        token.safeTransfer(msg.sender, balance);
        emit EmergencySweepWithdraw(msg.sender, address(token), balance);
    }
}

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

pragma solidity >=0.4.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, 'SafeMath: subtraction overflow');
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, 'SafeMath: division by zero');
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, 'SafeMath: modulo by zero');
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

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

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

File 3 of 6 : IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 4 of 6 : SafeBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './IBEP20.sol';
import '../../math/SafeMath.sol';
import '../../utils/Address.sol';

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(
        IBEP20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IBEP20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: decreased allowance below zero'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IBEP20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}

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

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, 'Address: insufficient balance');

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}('');
        require(success, 'Address: unable to send value, recipient may have reverted');
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, 'Address: low-level call failed');
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, 'Address: low-level call with value failed');
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, 'Address: insufficient balance for call');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.6.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].
 */
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 () internal {
        _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;
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_stakeToken","type":"address"},{"internalType":"contract IBEP20","name":"_offeringToken","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"},{"internalType":"uint256","name":"_offeringAmount","type":"uint256"},{"internalType":"uint256","name":"_raisingAmount","type":"uint256"},{"internalType":"address","name":"_adminAddress","type":"address"},{"internalType":"contract IIFO","name":"_ifoContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"EmergencySweepWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"offeringAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"excessAmount","type":"uint256"}],"name":"Harvest","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_offerAmount","type":"uint256"}],"name":"finalWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAddressListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getOfferingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getRefundingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalStakeTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"hasHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ifoContract","outputs":[{"internalType":"contract IIFO","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBNBStaking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raisingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerAmount","type":"uint256"}],"name":"setOfferingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raisingAmount","type":"uint256"}],"name":"setRaisingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"token","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200166b3803806200166b8339810160408190526200003491620000cc565b6001600055600280546001600160a01b0319166001600160a01b038a811691909117918290551662000074576002805460ff60a01b1916600160a01b1790555b600380546001600160a01b039889166001600160a01b03199182161790915560049690965560059490945560079290925560065560018054918516918416919091179055600b80549190931691161790555062000176565b600080600080600080600080610100898b031215620000e9578384fd5b8851620000f6816200015d565b60208a015190985062000109816200015d565b8097505060408901519550606089015194506080890151935060a0890151925060c089015162000139816200015d565b60e08a01519092506200014c816200015d565b809150509295985092959890939650565b6001600160a01b03811681146200017357600080fd5b50565b6114e580620001866000396000f3fe60806040526004361061014f5760003560e01c806364ce9fff116100b6578063b920ade21161006f578063b920ade214610378578063e1af9a9514610398578063fb29f0e8146103ad578063fc00358e146103c2578063fc6f9468146103d7578063fc7b9c18146103ec57610156565b806364ce9fff146102ce57806387e97bc6146102ee5780639c0a76691461030e5780639f1b524814610323578063b781360714610343578063b810fb431461035857610156565b80632f5105f8116101085780632f5105f81461022d5780634225c32f1461024d5780634641257d1461026d57806348cd4cb11461028257806351ed6a30146102975780635681040a146102b957610156565b8063083c63231461015b5780631959a0021461018657806319fd7491146101b45780631a39d8ef146101d65780631be19560146101eb57806327d1b1a21461020d57610156565b3661015657005b600080fd5b34801561016757600080fd5b50610170610401565b60405161017d9190611440565b60405180910390f35b34801561019257600080fd5b506101a66101a1366004610ffd565b610407565b60405161017d929190611449565b3480156101c057600080fd5b506101c9610423565b60405161017d9190611128565b3480156101e257600080fd5b50610170610433565b3480156101f757600080fd5b5061020b610206366004610ffd565b6104b6565b005b34801561021957600080fd5b5061020b61022836600461108e565b610629565b34801561023957600080fd5b50610170610248366004610ffd565b610679565b34801561025957600080fd5b5061020b61026836600461108e565b6106b2565b34801561027957600080fd5b5061020b610702565b34801561028e57600080fd5b5061017061085c565b3480156102a357600080fd5b506102ac610862565b60405161017d91906110fb565b3480156102c557600080fd5b506102ac610871565b3480156102da57600080fd5b506101c96102e9366004610ffd565b610880565b3480156102fa57600080fd5b50610170610309366004610ffd565b6108a1565b34801561031a57600080fd5b506101706108cd565b34801561032f57600080fd5b5061020b61033e3660046110be565b6108d3565b34801561034f57600080fd5b506102ac6109c1565b34801561036457600080fd5b506102ac61037336600461108e565b6109d0565b34801561038457600080fd5b50610170610393366004610ffd565b6109f7565b3480156103a457600080fd5b50610170610b2c565b3480156103b957600080fd5b50610170610b32565b3480156103ce57600080fd5b50610170610bd5565b3480156103e357600080fd5b506102ac610bdb565b3480156103f857600080fd5b50610170610bea565b60055481565b6009602052600090815260409020805460019091015460ff1682565b600254600160a01b900460ff1681565b600b5460408051631a39d8ef60e01b815290516000926001600160a01b031691631a39d8ef916004808301926020929190829003018186803b15801561047857600080fd5b505afa15801561048c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b091906110a6565b90505b90565b6001546001600160a01b031633146104e95760405162461bcd60e51b81526004016104e090611307565b60405180910390fd5b6002546001600160a01b03828116911614156105175760405162461bcd60e51b81526004016104e09061125f565b6003546001600160a01b03828116911614156105455760405162461bcd60e51b81526004016104e090611195565b6040516370a0823160e01b81526000906001600160a01b038316906370a08231906105749030906004016110fb565b60206040518083038186803b15801561058c57600080fd5b505afa1580156105a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c491906110a6565b90506105da6001600160a01b0383163383610bf0565b816001600160a01b0316336001600160a01b03167f9186304ffe50c568e430e57234122976c83522da68345954bb5485cbab3957138360405161061d9190611440565b60405180910390a35050565b6001546001600160a01b031633146106535760405162461bcd60e51b81526004016104e090611307565b60045443106106745760405162461bcd60e51b81526004016104e090611243565b600755565b600080610685836109f7565b90506106ab64e8d4a510006106a583600654610c4b90919063ffffffff16565b90610c8e565b9392505050565b6001546001600160a01b031633146106dc5760405162461bcd60e51b81526004016104e090611307565b60045443106106fd5760405162461bcd60e51b81526004016104e090611243565b600655565b600260005414156107255760405162461bcd60e51b81526004016104e0906113dd565b6002600055600554431161074b5760405162461bcd60e51b81526004016104e090611216565b3360009081526009602052604090206001015460ff161561077e5760405162461bcd60e51b81526004016104e090611414565b6000610789336109f7565b116107a65760405162461bcd60e51b81526004016104e090611296565b60006107b1336108a1565b905060006107be33610679565b6003549091506107d8906001600160a01b03163384610bf0565b80156107e8576107e83382610cd0565b3360009081526009602052604090206001818101805460ff191690911790555460085461081491610dab565b60085560405133907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549061084b9085908590611459565b60405180910390a250506001600055565b60045481565b6002546001600160a01b031681565b600b546001600160a01b031681565b6001600160a01b031660009081526009602052604090206001015460ff1690565b6000806108ad836109f7565b90506106ab64e8d4a510006106a583600754610c4b90919063ffffffff16565b60065481565b6001546001600160a01b031633146108fd5760405162461bcd60e51b81526004016104e090611307565b6003546040516370a0823160e01b81526001600160a01b03909116906370a082319061092d9030906004016110fb565b60206040518083038186803b15801561094557600080fd5b505afa158015610959573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097d91906110a6565b81111561099c5760405162461bcd60e51b81526004016104e09061132c565b6109a63383610cd0565b6003546109bd906001600160a01b03163383610bf0565b5050565b6003546001600160a01b031681565b600a81815481106109dd57fe5b6000918252602090912001546001600160a01b0316905081565b6000610a01610fe6565b600b54604051630cacd00160e11b81526001600160a01b0390911690631959a00290610a319086906004016110fb565b604080518083038186803b158015610a4857600080fd5b505afa158015610a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a809190611039565b90506000600b60009054906101000a90046001600160a01b03166001600160a01b0316631a39d8ef6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ad257600080fd5b505afa158015610ae6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0a91906110a6565b8251909150610b249082906106a59064e8d4a51000610c4b565b949350505050565b60075481565b600254600090600160a01b900460ff1615610b4e5750476104b3565b6002546040516370a0823160e01b81526001600160a01b03909116906370a0823190610b7e9030906004016110fb565b60206040518083038186803b158015610b9657600080fd5b505afa158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce91906110a6565b90506104b3565b600a5490565b6001546001600160a01b031681565b60085481565b610c468363a9059cbb60e01b8484604051602401610c0f92919061110f565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ded565b505050565b600082610c5a57506000610c88565b82820282848281610c6757fe5b0414610c855760405162461bcd60e51b81526004016104e0906112c6565b90505b92915050565b6000610c8583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610e7c565b6000610cda610b32565b905080821115610cfc5760405162461bcd60e51b81526004016104e090611166565b600254600160a01b900460ff1615610d94576000836001600160a01b03166159d884604051610d2a906104b3565b600060405180830381858888f193505050503d8060008114610d68576040519150601f19603f3d011682016040523d82523d6000602084013e610d6d565b606091505b5050905080610d8e5760405162461bcd60e51b81526004016104e090611363565b50610c46565b600254610c46906001600160a01b03168484610bf0565b6000610c8583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610eb3565b6060610e42826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610edf9092919063ffffffff16565b805190915015610c465780806020019051810190610e609190611019565b610c465760405162461bcd60e51b81526004016104e0906111cc565b60008183610e9d5760405162461bcd60e51b81526004016104e09190611133565b506000838581610ea957fe5b0495945050505050565b60008184841115610ed75760405162461bcd60e51b81526004016104e09190611133565b505050900390565b6060610b2484846000856060610ef485610fad565b610f105760405162461bcd60e51b81526004016104e0906113a6565b60006060866001600160a01b03168587604051610f2d91906110df565b60006040518083038185875af1925050503d8060008114610f6a576040519150601f19603f3d011682016040523d82523d6000602084013e610f6f565b606091505b50915091508115610f83579150610b249050565b805115610f935780518082602001fd5b8360405162461bcd60e51b81526004016104e09190611133565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610b24575050151592915050565b604080518082019091526000808252602082015290565b60006020828403121561100e578081fd5b8135610c8581611497565b60006020828403121561102a578081fd5b81518015158114610c85578182fd5b60006040828403121561104a578081fd5b6040516040810181811067ffffffffffffffff82111715611069578283fd5b6040528251815260208301518015158114611082578283fd5b60208201529392505050565b60006020828403121561109f578081fd5b5035919050565b6000602082840312156110b7578081fd5b5051919050565b600080604083850312156110d0578081fd5b50508035926020909101359150565b600082516110f1818460208701611467565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611152816040850160208701611467565b601f01601f19169190910160400192915050565b6020808252601590820152743737ba1032b737bab3b41039ba30b5b2aa37b5b2b760591b604082015260600190565b6020808252601c908201527f63616e206e6f74207377656570206f66666572696e6720746f6b656e00000000604082015260600190565b6020808252602a908201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601390820152726e6f7420616674657220656e6420626c6f636b60681b604082015260600190565b6020808252600290820152616e6f60f01b604082015260600190565b60208082526019908201527f63616e206e6f74207377656570207374616b6520746f6b656e00000000000000604082015260600190565b6020808252601690820152756861766520796f75207061727469636970617465643f60501b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252600b908201526a61646d696e3a207775743f60a81b604082015260600190565b60208082526017908201527f6e6f7420656e6f7567682072657761726420746f6b656e000000000000000000604082015260600190565b60208082526023908201527f5472616e7366657248656c7065723a20424e425f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601290820152711b9bdd1a1a5b99c81d1bc81a185c9d995cdd60721b604082015260600190565b90815260200190565b9182521515602082015260400190565b918252602082015260400190565b60005b8381101561148257818101518382015260200161146a565b83811115611491576000848401525b50505050565b6001600160a01b03811681146114ac57600080fd5b5056fea264697066735822122029e205bef118fcce0848794f46f26198126b9c5439a6ab6d12e773829c818fde64736f6c634300060c0033000000000000000000000000ddb3bd8645775f59496c821e4f55a7ea6a6dc2990000000000000000000000000a38bc18022b0ccb043f7b730b354d554c6230f100000000000000000000000000000000000000000000000000000000007d0ecd00000000000000000000000000000000000000000000000000000000007d137d000000000000000000000000000000000000000000422ca8b0a00a4250000000000000000000000000000000000000000000000000002c86614c3ee196fc0000000000000000000000000000c9f40d1c8a84b8aed12a241e7b99682fb7a3fe840000000000000000000000000deffe964cbcfbda31251adaa8da6da0961eba3c

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.