Contract 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5

 

Contract Overview

Balance:
465.644944112701251371 BNB

BNB Value:
$134,049.87 (@ $287.88/BNB)

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x660403171035b335f9b3e391f23fb2d24139797313dd8aed6089612896a80a6f93424072021-07-21 5:30:402 days 10 hrs ago0x7561adf938a2ef0dd62b6f8c758efa062e42cda9 IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.00011935
0x7ab6aa95a67f20a09f63e31eecc3d50c6d05c75245b13a86c6740cd3f83e6e7473405022021-05-12 6:43:1472 days 9 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.00061964
0x792fa0e26f2923a79bbdffc0ff88eeba829d4998de1360250dd605133a5eff8573405022021-05-12 6:43:1472 days 9 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.0009069
0x8f3c3cd2195b97b35a5b3ed7fd97631968903b1531a41f8db247034b33b8f47f63813732021-04-08 7:38:26106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.001161435
0xfd86e4dc91966f0f2e48873f113af31a3b79c0963b17a8719ba342a6bdd83c7b63813732021-04-08 7:38:26106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.000226725
0x4c5d4cc308455a09428f5738bea0315d5347e7d459e436f4060c949775450ad463813712021-04-08 7:38:20106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.001161435
0x44e0ef7b2ef892350ed56b00d802a9e81fd5c82c765051da19ea5d29e97ef5d263813712021-04-08 7:38:20106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.000226725
0xd86e181b435034ea853cc365680c3746e1a5bf4fd0996ed73cfb65444a7ac80663813682021-04-08 7:38:11106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.001161435
0x10f63e7c1a3ffceb6354ddcb5f466e5483d234770efd170075a137c860b6eefa63813682021-04-08 7:38:11106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.000226725
0x88d813872e32219fdab468cdf2d27e11d14d9f5d5874ea36b65c6f878932eea063813652021-04-08 7:38:02106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.001161435
0x16a085a81b04974b752f236475aeb339874471e76c0470c93cae91df4ac08fcf63813652021-04-08 7:38:02106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.000226725
0x18d849806df879ca351b06bfe833fa43c288f4c2db8d6c2f081aa9d5e520337763813622021-04-08 7:37:53106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.001310805
0x0e8c5babc5cec57891c6a31b600dc13c94e88e7e54cdf0c3d53b039be7be7e6a63813622021-04-08 7:37:53106 days 8 hrs agoPancake Bunny: Deployer IN  0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50 BNB0.000226725
0x9235af28228504a469585c3c3af8e7a99ca00ecc4aeaaa3836bb6076e041e0dc63811282021-04-08 7:26:11106 days 8 hrs agoPancake Bunny: Deployer IN  Contract Creation0 BNB0.01486347
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x0cf0c621d0a955c553b29b3b5010afd955ec1ad3801f10dada3627a552a939d794122822021-07-23 15:50:291 min ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da56 BNB
0x363a51a29e0c9b9133aef86607c273752e58358f2e164807d8c62c9f5f78ead394122482021-07-23 15:48:473 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da572 BNB
0xbb74fb9386f6343cb91b0f33a4a82e858a596d64cfaa661474881799081fc96d94113872021-07-23 15:04:1247 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Venus: vBNB Token202.631967242567158007 BNB
0xbb74fb9386f6343cb91b0f33a4a82e858a596d64cfaa661474881799081fc96d94113872021-07-23 15:04:1247 mins ago 0x500f1f9b16ff707f81d5281de6e5d5b14ce8ea71 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50.114127987141464651 BNB
0x29a8c10a7da33d312f43f40ea6cf446fb459becc49f08d7ecc33263e49f6089294112992021-07-23 14:59:4852 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da510.7 BNB
0x0448d9433d0965cd729f523b498dc1d196ba449777c804d5ad23e7b06fbad19894110472021-07-23 14:47:001 hr 4 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50xfac4b8a2fec0d25a3f61557d4e2e349cd877f42d0.303183485395868178 BNB
0x0448d9433d0965cd729f523b498dc1d196ba449777c804d5ad23e7b06fbad19894110472021-07-23 14:47:001 hr 4 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.001377410742294533 BNB
0x2718ddbcb0f4d4df90b3112e0510b365e1bb8de076d935c06fa02dab8414e62b94109142021-07-23 14:40:211 hr 11 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da546 BNB
0xa11776407f89e9e6c11d3b085b88f6b70f53eb44c9996a785dedffbf8860575c94107922021-07-23 14:34:151 hr 17 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50x796fd04a143c60b71423200ff19f87839d9ed46e0.149984925 BNB
0xf1ac4320042c5700524001738cde8028fd08339611051c9863d58972f762a14394107202021-07-23 14:30:391 hr 21 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50xb90252aeb2b3cdd14e27745142afae01978ea81f1.952469400439086102 BNB
0xf1ac4320042c5700524001738cde8028fd08339611051c9863d58972f762a14394107202021-07-23 14:30:391 hr 21 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.001142418572674882 BNB
0xde6ebd436953b5dd74837bbbd8d096680523e910f893d6a9ef6509e360247a6a94105662021-07-23 14:22:571 hr 28 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5150 BNB
0xb68c75e765b5b88fe79f35695f326602dd5c7cb9f9d4e75ce7e2f2b389e100bb94104142021-07-23 14:15:211 hr 36 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50xacf89c236462a336917817b1d91fde5488ffb3ac0.20112169678607588 BNB
0xb68c75e765b5b88fe79f35695f326602dd5c7cb9f9d4e75ce7e2f2b389e100bb94104142021-07-23 14:15:211 hr 36 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.000489390663508488 BNB
0x6f71b57ad4f4b78531e95c43160acac2ab37ceaa0e1c7e69238a48b28a6010b394100532021-07-23 13:56:581 hr 54 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50.188 BNB
0x0079e440bac77c23e9f8f7efff7715c1608e89a84ee919cc8d2bbc5f02ba644594100072021-07-23 13:54:401 hr 57 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50x89f220a3c9fd98eec582bac1d3eb822bb38fc96c0.41094679537180902 BNB
0x0079e440bac77c23e9f8f7efff7715c1608e89a84ee919cc8d2bbc5f02ba644594100072021-07-23 13:54:401 hr 57 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.000423471289639902 BNB
0xa488500588fb5ed8625df02c9665450111fa5ebc68ed1854c96371e774de80a794098132021-07-23 13:44:262 hrs 7 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50x6bb2fb2e581a5043f5eed605fc4f61faa9451ffd0.005239992869733513 BNB
0xa488500588fb5ed8625df02c9665450111fa5ebc68ed1854c96371e774de80a794098132021-07-23 13:44:262 hrs 7 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.002245936946548919 BNB
0x040156b4dd1b5145dec20a734a688b0e2627dbe0bed29f181cde4112e034718d94096232021-07-23 13:34:562 hrs 17 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50.71 BNB
0x1cc83ddeb34c0381d2ad4e8e14dd47d1028bbda6de0af5b578abe2bfc6aa003e94090212021-07-23 13:04:162 hrs 47 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Venus: vBNB Token693.037026431017615618 BNB
0x1cc83ddeb34c0381d2ad4e8e14dd47d1028bbda6de0af5b578abe2bfc6aa003e94090212021-07-23 13:04:162 hrs 47 mins ago 0x500f1f9b16ff707f81d5281de6e5d5b14ce8ea71 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50.153919441648589863 BNB
0x53d56785d8ff026e173de046d3af1c6310fbd9c27a5cb05a6d41428078d45e1294089312021-07-23 12:59:462 hrs 52 mins ago Pancake Bunny: BNB Single Asset Vault 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da58.15 BNB
0x5bba2884a3ebaed444f88567d1a44570bd4c08868f979af084448c834f3ece0494088732021-07-23 12:56:412 hrs 55 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da50x3b6743df951385bb877aa9f8746affb639ac81591.017352510539056699 BNB
0x5bba2884a3ebaed444f88567d1a44570bd4c08868f979af084448c834f3ece0494088732021-07-23 12:56:412 hrs 55 mins ago 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5 Pancake Bunny: BNB Single Asset Vault0.007480613461248582 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VaultVenusBridge

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 17 : VaultVenusBridge.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";

import "../library/SafeToken.sol";
import "../library/Whitelist.sol";

import "../interfaces/IVaultVenusBridge.sol";
import "../interfaces/IPancakeRouter02.sol";
import "../interfaces/IVenusDistribution.sol";
import "../interfaces/IVBNB.sol";
import "../interfaces/IVToken.sol";
import "./venus/Exponential.sol";


contract VaultVenusBridge is Whitelist, Exponential, IVaultVenusBridge {
    using SafeMath for uint;
    using SafeBEP20 for IBEP20;
    using SafeToken for address;

    /* ========== CONSTANTS ============= */

    IPancakeRouter02 private constant PANCAKE_ROUTER = IPancakeRouter02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
    IVenusDistribution private constant VENUS_UNITROLLER = IVenusDistribution(0xfD36E2c2a6789Db23113685031d7F16329158384);

    address private constant WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
    IBEP20 private constant XVS = IBEP20(0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63);
    IVBNB public constant vBNB = IVBNB(0xA07c5b74C9B40447a954e1466938b865b6BBea36);

    /* ========== STATE VARIABLES ========== */

    MarketInfo[] private _marketList;
    mapping(address => MarketInfo) markets;

    /* ========== EVENTS ========== */

    event Recovered(address token, uint amount);

    /* ========== MODIFIERS ========== */

    modifier updateAvailable(address vault) {
        MarketInfo storage market = markets[vault];
        uint tokenBalanceBefore = market.token != WBNB ? IBEP20(market.token).balanceOf(address(this)) : address(this).balance;
        uint vTokenAmountBefore = IBEP20(market.vToken).balanceOf(address(this));

        _;

        uint tokenBalance = market.token != WBNB ? IBEP20(market.token).balanceOf(address(this)) : address(this).balance;
        uint vTokenAmount = IBEP20(market.vToken).balanceOf(address(this));
        market.available = market.available.add(tokenBalance).sub(tokenBalanceBefore);
        market.vTokenAmount = market.vTokenAmount.add(vTokenAmount).sub(vTokenAmountBefore);
    }

    /* ========== INITIALIZER ========== */

    receive() external payable {}

    constructor() public {
        XVS.safeApprove(address(PANCAKE_ROUTER), uint(- 1));
    }

    /* ========== VIEW FUNCTIONS ========== */

    function infoOf(address vault) public view override returns (MarketInfo memory) {
        return markets[vault];
    }

    function availableOf(address vault) public view override returns (uint) {
        return markets[vault].available;
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function addVault(address vault, address token, address vToken) public onlyOwner {
        require(markets[vault].token == address(0), "VaultVenusBridge: vault is already set");
        require(token != address(0) && vToken != address(0), "VaultVenusBridge: invalid tokens");

        MarketInfo memory market = MarketInfo(token, vToken, 0, 0);
        _marketList.push(market);
        markets[vault] = market;

        IBEP20(token).safeApprove(address(PANCAKE_ROUTER), uint(- 1));
        IBEP20(token).safeApprove(vToken, uint(- 1));

        address[] memory venusMarkets = new address[](1);
        venusMarkets[0] = vToken;
        VENUS_UNITROLLER.enterMarkets(venusMarkets);
    }

    function migrateTo(address payable target) external override onlyWhitelisted {
        MarketInfo storage market = markets[msg.sender];
        IVaultVenusBridge newBridge = IVaultVenusBridge(target);

        if (market.token == WBNB) {
            newBridge.deposit{value : market.available}(msg.sender, market.available);
        } else {
            IBEP20 token = IBEP20(market.token);
            token.safeApprove(address(newBridge), uint(- 1));
            token.safeTransfer(address(newBridge), market.available);
            token.safeApprove(address(newBridge), 0);
            newBridge.deposit(msg.sender, market.available);
        }
        market.available = 0;
        market.vTokenAmount = 0;
    }

    function deposit(address vault, uint amount) external override payable onlyWhitelisted {
        MarketInfo storage market = markets[vault];
        market.available = market.available.add(msg.value > 0 ? msg.value : amount);
    }

    function withdraw(address account, uint amount) external override onlyWhitelisted {
        MarketInfo storage market = markets[msg.sender];
        market.available = market.available.sub(amount);
        if (market.token == WBNB) {
            SafeToken.safeTransferETH(account, amount);
        } else {
            IBEP20(market.token).safeTransfer(account, amount);
        }
    }

    function harvest() public override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];

        address[] memory vTokens = new address[](1);
        vTokens[0] = market.vToken;

        uint before = XVS.balanceOf(address(this));
        VENUS_UNITROLLER.claimVenus(address(this), vTokens);

        uint xvsBalance = XVS.balanceOf(address(this)).sub(before);
        if (xvsBalance > 0) {
            if (market.token == WBNB) {
                address[] memory path = new address[](2);
                path[0] = address(XVS);
                path[1] = WBNB;
                PANCAKE_ROUTER.swapExactTokensForETH(xvsBalance, 0, path, address(this), block.timestamp);
            } else {
                address[] memory path = new address[](3);
                path[0] = address(XVS);
                path[1] = WBNB;
                path[2] = market.token;
                PANCAKE_ROUTER.swapExactTokensForTokens(xvsBalance, 0, path, address(this), block.timestamp);
            }
        }
    }

    function balanceOfUnderlying(address vault) external override returns (uint) {
        MarketInfo memory market = markets[vault];
        Exp memory exchangeRate = Exp({mantissa: IVToken(market.vToken).exchangeRateCurrent()});
        (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, market.vTokenAmount);
        require(mErr == MathError.NO_ERROR, "balance could not be calculated");
        return balance;
    }

    /* ========== VENUS FUNCTIONS ========== */

    function mint(uint amount) external override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];
        if (market.token == WBNB) {
            vBNB.mint{value : amount}();
        } else {
            IVToken(market.vToken).mint(amount);
        }
    }

    function redeemUnderlying(uint amount) external override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];
        IVToken vToken = IVToken(market.vToken);
        vToken.redeemUnderlying(amount);
    }

    function redeemAll() external override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];
        IVToken vToken = IVToken(market.vToken);
        vToken.redeem(market.vTokenAmount);
    }

    function borrow(uint amount) external override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];
        IVToken vToken = IVToken(market.vToken);
        vToken.borrow(amount);
    }

    function repayBorrow(uint amount) external override updateAvailable(msg.sender) onlyWhitelisted {
        MarketInfo memory market = markets[msg.sender];
        if (market.vToken == address(vBNB)) {
            vBNB.repayBorrow{value : amount}();
        } else {
            IVToken(market.vToken).repayBorrow(amount);
        }
    }

    function recoverToken(address token, uint amount) external onlyOwner {
        // case0) WBNB salvage
        if (token == WBNB && IBEP20(WBNB).balanceOf(address(this)) >= amount) {
            IBEP20(token).safeTransfer(owner(), amount);
            emit Recovered(token, amount);
            return;
        }

        // case1) vault token - WBNB=>BNB
        for (uint i = 0; i < _marketList.length; i++) {
            MarketInfo memory market = _marketList[i];

            if (market.vToken == token) {
                revert("VaultVenusBridge: cannot recover");
            }

            if (market.token == token) {
                uint balance = token == WBNB ? address(this).balance : IBEP20(token).balanceOf(address(this));
                require(balance.sub(market.available) >= amount, "VaultVenusBridge: cannot recover");

                if (token == WBNB) {
                    SafeToken.safeTransferETH(owner(), amount);
                } else {
                    IBEP20(token).safeTransfer(owner(), amount);
                }

                emit Recovered(token, amount);
                return;
            }
        }

        // case2) not vault token
        IBEP20(token).safeTransfer(owner(), amount);
        emit Recovered(token, amount);
    }
}

File 2 of 17 : 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 3 of 17 : SafeToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

interface ERC20Interface {
    function balanceOf(address user) external view returns (uint256);
}

library SafeToken {
    function myBalance(address token) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(address(this));
    }

    function balanceOf(address token, address user) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(user);
    }

    function safeApprove(address token, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeApprove");
    }

    function safeTransfer(address token, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransfer");
    }

    function safeTransferFrom(address token, address from, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransferFrom");
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{ value: value }(new bytes(0));
        require(success, "!safeTransferETH");
    }
}

File 4 of 17 : Whitelist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

/*
  ___                      _   _
 | _ )_  _ _ _  _ _ _  _  | | | |
 | _ \ || | ' \| ' \ || | |_| |_|
 |___/\_,_|_||_|_||_\_, | (_) (_)
                    |__/

*
* MIT License
* ===========
*
* Copyright (c) 2020 BunnyFinance
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

import "@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol";


contract Whitelist is Ownable {
    mapping(address => bool) private _whitelist;
    bool private _disable;                      // default - false means whitelist feature is working on. if true no more use of whitelist

    event Whitelisted(address indexed _address, bool whitelist);
    event EnableWhitelist();
    event DisableWhitelist();

    modifier onlyWhitelisted {
        require(_disable || _whitelist[msg.sender], "Whitelist: caller is not on the whitelist");
        _;
    }

    function isWhitelist(address _address) public view returns (bool) {
        return _whitelist[_address];
    }

    function setWhitelist(address _address, bool _on) external onlyOwner {
        _whitelist[_address] = _on;

        emit Whitelisted(_address, _on);
    }

    function disableWhitelist(bool disable) external onlyOwner {
        _disable = disable;
        if (disable) {
            emit DisableWhitelist();
        } else {
            emit EnableWhitelist();
        }
    }
}

File 5 of 17 : IVaultVenusBridge.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

/*
  ___                      _   _
 | _ )_  _ _ _  _ _ _  _  | | | |
 | _ \ || | ' \| ' \ || | |_| |_|
 |___/\_,_|_||_|_||_\_, | (_) (_)
                    |__/

*
* MIT License
* ===========
*
* Copyright (c) 2020 BunnyFinance
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/


interface IVaultVenusBridge {

    struct MarketInfo {
        address token;
        address vToken;
        uint available;
        uint vTokenAmount;
    }

    function infoOf(address vault) external view returns (MarketInfo memory);
    function availableOf(address vault) external view returns (uint);

    function migrateTo(address payable target) external;
    function deposit(address vault, uint amount) external payable;
    function withdraw(address account, uint amount) external;
    function harvest() external;
    function balanceOfUnderlying(address vault) external returns (uint);

    function mint(uint amount) external;
    function redeemUnderlying(uint amount) external;
    function redeemAll() external;
    function borrow(uint amount) external;
    function repayBorrow(uint amount) external;
}

File 6 of 17 : 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 7 of 17 : IVenusDistribution.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IVenusDistribution {
    function oracle() external view returns (address);

    function enterMarkets(address[] memory _vtokens) external;
    function exitMarket(address _vtoken) external;
    function getAssetsIn(address account) external view returns (address[] memory);

    function markets(address vTokenAddress) external view returns (bool, uint, bool);
    function getAccountLiquidity(address account) external view returns (uint, uint, uint);

    function claimVenus(address holder, address[] memory vTokens) external;
    function venusSpeeds(address) external view returns (uint);
}

File 8 of 17 : IVBNB.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;


interface IVBNB {
    function totalSupply() external view returns (uint);

    function mint() external payable;
    function redeem(uint redeemTokens) external returns (uint);
    function redeemUnderlying(uint redeemAmount) external returns (uint);
    function borrow(uint borrowAmount) external returns (uint);
    function repayBorrow() external payable;

    function balanceOfUnderlying(address owner) external returns (uint);
    function borrowBalanceCurrent(address account) external returns (uint);
    function totalBorrowsCurrent() external returns (uint);

    function exchangeRateCurrent() external returns (uint);
    function exchangeRateStored() external view returns (uint);

    function supplyRatePerBlock() external view returns (uint);
    function borrowRatePerBlock() external view returns (uint);
}

File 9 of 17 : IVToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";


interface IVToken is IBEP20 {
    function underlying() external returns (address);

    function mint(uint mintAmount) external returns (uint);
    function redeem(uint redeemTokens) external returns (uint);
    function redeemUnderlying(uint redeemAmount) external returns (uint);
    function borrow(uint borrowAmount) external returns (uint);
    function repayBorrow(uint repayAmount) external returns (uint);

    function balanceOfUnderlying(address owner) external returns (uint);
    function borrowBalanceCurrent(address account) external returns (uint);
    function totalBorrowsCurrent() external returns (uint);

    function exchangeRateCurrent() external returns (uint);
    function exchangeRateStored() external view returns (uint);

    function supplyRatePerBlock() external view returns (uint);
    function borrowRatePerBlock() external view returns (uint);
}

File 10 of 17 : Exponential.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "./CarefulMath.sol";

/**
 * @title Exponential module for storing fixed-precision decimals
 * @author Venus
 * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places.
 *         Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is:
 *         `Exp({mantissa: 5100000000000000000})`.
 */
contract Exponential is CarefulMath {
    uint constant expScale = 1e18;
    uint constant doubleScale = 1e36;
    uint constant halfExpScale = expScale/2;
    uint constant mantissaOne = expScale;

    struct Exp {
        uint mantissa;
    }

    struct Double {
        uint mantissa;
    }

    /**
     * @dev Creates an exponential from numerator and denominator values.
     *      Note: Returns an error if (`num` * 10e18) > MAX_INT,
     *            or if `denom` is zero.
     */
    function getExp(uint num, uint denom) internal pure returns (MathError, Exp memory) {
        (MathError err0, uint scaledNumerator) = mulUInt(num, expScale);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        (MathError err1, uint rational) = divUInt(scaledNumerator, denom);
        if (err1 != MathError.NO_ERROR) {
            return (err1, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: rational}));
    }

    /**
     * @dev Adds two exponentials, returning a new exponential.
     */
    function addExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) {
        (MathError error, uint result) = addUInt(a.mantissa, b.mantissa);

        return (error, Exp({mantissa: result}));
    }

    /**
     * @dev Subtracts two exponentials, returning a new exponential.
     */
    function subExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) {
        (MathError error, uint result) = subUInt(a.mantissa, b.mantissa);

        return (error, Exp({mantissa: result}));
    }

    /**
     * @dev Multiply an Exp by a scalar, returning a new Exp.
     */
    function mulScalar(Exp memory a, uint scalar) internal pure returns (MathError, Exp memory) {
        (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa}));
    }

    /**
     * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer.
     */
    function mulScalarTruncate(Exp memory a, uint scalar) internal pure returns (MathError, uint) {
        (MathError err, Exp memory product) = mulScalar(a, scalar);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return (MathError.NO_ERROR, truncate(product));
    }

    /**
     * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer.
     */
    function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) internal pure returns (MathError, uint) {
        (MathError err, Exp memory product) = mulScalar(a, scalar);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return addUInt(truncate(product), addend);
    }

    /**
     * @dev Divide an Exp by a scalar, returning a new Exp.
     */
    function divScalar(Exp memory a, uint scalar) internal pure returns (MathError, Exp memory) {
        (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa}));
    }

    /**
     * @dev Divide a scalar by an Exp, returning a new Exp.
     */
    function divScalarByExp(uint scalar, Exp memory divisor) internal pure returns (MathError, Exp memory) {
        /*
          We are doing this as:
          getExp(mulUInt(expScale, scalar), divisor.mantissa)

          How it works:
          Exp = a / b;
          Scalar = s;
          `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale`
        */
        (MathError err0, uint numerator) = mulUInt(expScale, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }
        return getExp(numerator, divisor.mantissa);
    }

    /**
     * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer.
     */
    function divScalarByExpTruncate(uint scalar, Exp memory divisor) internal pure returns (MathError, uint) {
        (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return (MathError.NO_ERROR, truncate(fraction));
    }

    /**
     * @dev Multiplies two exponentials, returning a new exponential.
     */
    function mulExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) {

        (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        // We add half the scale before dividing so that we get rounding instead of truncation.
        //  See "Listing 6" and text above it at https://accu.org/index.php/journals/1717
        // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18.
        (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct);
        if (err1 != MathError.NO_ERROR) {
            return (err1, Exp({mantissa: 0}));
        }

        (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale);
        // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero.
        assert(err2 == MathError.NO_ERROR);

        return (MathError.NO_ERROR, Exp({mantissa: product}));
    }

    /**
     * @dev Multiplies two exponentials given their mantissas, returning a new exponential.
     */
    function mulExp(uint a, uint b) internal pure returns (MathError, Exp memory) {
        return mulExp(Exp({mantissa: a}), Exp({mantissa: b}));
    }

    /**
     * @dev Multiplies three exponentials, returning a new exponential.
     */
    function mulExp3(Exp memory a, Exp memory b, Exp memory c) internal pure returns (MathError, Exp memory) {
        (MathError err, Exp memory ab) = mulExp(a, b);
        if (err != MathError.NO_ERROR) {
            return (err, ab);
        }
        return mulExp(ab, c);
    }

    /**
     * @dev Divides two exponentials, returning a new exponential.
     *     (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b,
     *  which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa)
     */
    function divExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) {
        return getExp(a.mantissa, b.mantissa);
    }

    /**
     * @dev Truncates the given exp to a whole number value.
     *      For example, truncate(Exp{mantissa: 15 * expScale}) = 15
     */
    function truncate(Exp memory exp) internal pure returns (uint) {
        // Note: We are not using careful math here as we're performing a division that cannot fail
        return exp.mantissa / expScale;
    }

    /**
     * @dev Checks if first Exp is less than second Exp.
     */
    function lessThanExp(Exp memory left, Exp memory right) internal pure returns (bool) {
        return left.mantissa < right.mantissa;
    }

    /**
     * @dev Checks if left Exp <= right Exp.
     */
    function lessThanOrEqualExp(Exp memory left, Exp memory right) internal pure returns (bool) {
        return left.mantissa <= right.mantissa;
    }

    /**
     * @dev Checks if left Exp > right Exp.
     */
    function greaterThanExp(Exp memory left, Exp memory right) internal pure returns (bool) {
        return left.mantissa > right.mantissa;
    }

    /**
     * @dev returns true if Exp is exactly zero
     */
    function isZeroExp(Exp memory value) internal pure returns (bool) {
        return value.mantissa == 0;
    }

    function safe224(uint n, string memory errorMessage) internal pure returns (uint224) {
        require(n < 2**224, errorMessage);
        return uint224(n);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function add_(Exp memory a, Exp memory b) internal pure returns (Exp memory) {
        return Exp({mantissa: add_(a.mantissa, b.mantissa)});
    }

    function add_(Double memory a, Double memory b) internal pure returns (Double memory) {
        return Double({mantissa: add_(a.mantissa, b.mantissa)});
    }

    function add_(uint a, uint b) internal pure returns (uint) {
        return add_(a, b, "addition overflow");
    }

    function add_(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        uint c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub_(Exp memory a, Exp memory b) internal pure returns (Exp memory) {
        return Exp({mantissa: sub_(a.mantissa, b.mantissa)});
    }

    function sub_(Double memory a, Double memory b) internal pure returns (Double memory) {
        return Double({mantissa: sub_(a.mantissa, b.mantissa)});
    }

    function sub_(uint a, uint b) internal pure returns (uint) {
        return sub_(a, b, "subtraction underflow");
    }

    function sub_(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function mul_(Exp memory a, Exp memory b) internal pure returns (Exp memory) {
        return Exp({mantissa: mul_(a.mantissa, b.mantissa) / expScale});
    }

    function mul_(Exp memory a, uint b) internal pure returns (Exp memory) {
        return Exp({mantissa: mul_(a.mantissa, b)});
    }

    function mul_(uint a, Exp memory b) internal pure returns (uint) {
        return mul_(a, b.mantissa) / expScale;
    }

    function mul_(Double memory a, Double memory b) internal pure returns (Double memory) {
        return Double({mantissa: mul_(a.mantissa, b.mantissa) / doubleScale});
    }

    function mul_(Double memory a, uint b) internal pure returns (Double memory) {
        return Double({mantissa: mul_(a.mantissa, b)});
    }

    function mul_(uint a, Double memory b) internal pure returns (uint) {
        return mul_(a, b.mantissa) / doubleScale;
    }

    function mul_(uint a, uint b) internal pure returns (uint) {
        return mul_(a, b, "multiplication overflow");
    }

    function mul_(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        if (a == 0 || b == 0) {
            return 0;
        }
        uint c = a * b;
        require(c / a == b, errorMessage);
        return c;
    }

    function div_(Exp memory a, Exp memory b) internal pure returns (Exp memory) {
        return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)});
    }

    function div_(Exp memory a, uint b) internal pure returns (Exp memory) {
        return Exp({mantissa: div_(a.mantissa, b)});
    }

    function div_(uint a, Exp memory b) internal pure returns (uint) {
        return div_(mul_(a, expScale), b.mantissa);
    }

    function div_(Double memory a, Double memory b) internal pure returns (Double memory) {
        return Double({mantissa: div_(mul_(a.mantissa, doubleScale), b.mantissa)});
    }

    function div_(Double memory a, uint b) internal pure returns (Double memory) {
        return Double({mantissa: div_(a.mantissa, b)});
    }

    function div_(uint a, Double memory b) internal pure returns (uint) {
        return div_(mul_(a, doubleScale), b.mantissa);
    }

    function div_(uint a, uint b) internal pure returns (uint) {
        return div_(a, b, "divide by zero");
    }

    function div_(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        require(b > 0, errorMessage);
        return a / b;
    }

    function fraction(uint a, uint b) internal pure returns (Double memory) {
        return Double({mantissa: div_(mul_(a, doubleScale), b)});
    }
}

File 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

import '../GSN/Context.sol';

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 15 of 17 : Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 16 of 17 : 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 17 of 17 : CarefulMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

/**
  * @title Careful Math
  * @author Venus
  * @notice Derived from OpenZeppelin's SafeMath library
  *         https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
  */
contract CarefulMath {

    /**
     * @dev Possible error codes that we can return
     */
    enum MathError {
        NO_ERROR,
        DIVISION_BY_ZERO,
        INTEGER_OVERFLOW,
        INTEGER_UNDERFLOW
    }

    /**
    * @dev Multiplies two numbers, returns an error on overflow.
    */
    function mulUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (a == 0) {
            return (MathError.NO_ERROR, 0);
        }

        uint c = a * b;

        if (c / a != b) {
            return (MathError.INTEGER_OVERFLOW, 0);
        } else {
            return (MathError.NO_ERROR, c);
        }
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    function divUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (b == 0) {
            return (MathError.DIVISION_BY_ZERO, 0);
        }

        return (MathError.NO_ERROR, a / b);
    }

    /**
    * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend).
    */
    function subUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (b <= a) {
            return (MathError.NO_ERROR, a - b);
        } else {
            return (MathError.INTEGER_UNDERFLOW, 0);
        }
    }

    /**
    * @dev Adds two numbers, returns an error on overflow.
    */
    function addUInt(uint a, uint b) internal pure returns (MathError, uint) {
        uint c = a + b;

        if (c >= a) {
            return (MathError.NO_ERROR, c);
        } else {
            return (MathError.INTEGER_OVERFLOW, 0);
        }
    }

    /**
    * @dev add a and b and then subtract c
    */
    function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) {
        (MathError err0, uint sum) = addUInt(a, b);

        if (err0 != MathError.NO_ERROR) {
            return (err0, 0);
        }

        return subUInt(sum, c);
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"DisableWhitelist","type":"event"},{"anonymous":false,"inputs":[],"name":"EnableWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"whitelist","type":"bool"}],"name":"Whitelisted","type":"event"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"vToken","type":"address"}],"name":"addVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"}],"name":"availableOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"borrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"disable","type":"bool"}],"name":"disableWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"}],"name":"infoOf","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"vToken","type":"address"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"uint256","name":"vTokenAmount","type":"uint256"}],"internalType":"struct IVaultVenusBridge.MarketInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"target","type":"address"}],"name":"migrateTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemUnderlying","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"repayBorrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_on","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vBNB","outputs":[{"internalType":"contract IVBNB","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060006200001e620000b1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000ab73cf6bb5389c92bdda8a3747ddb454cb7a64626c637305ff2b0db69458a0750badebc4f9e13add608c7f600019620000b5602090811b6200268b17901c565b62000566565b3390565b801580620001445750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90620000ee9030908690600401620003ed565b60206040518083038186803b1580156200010757600080fd5b505afa1580156200011c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001429190620003b6565b155b6200016c5760405162461bcd60e51b815260040162000163906200049f565b60405180910390fd5b620001c78363095ea7b360e01b84846040516024016200018e92919062000407565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b0393841617905290620001cc16565b505050565b606062000228826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200026860201b62002785179092919060201c565b805190915015620001c757808060200190518101906200024991906200038d565b620001c75760405162461bcd60e51b8152600401620001639062000455565b606062000279848460008562000281565b949350505050565b60606200028e8562000353565b620002ad5760405162461bcd60e51b81526004016200016390620004fc565b60006060866001600160a01b03168587604051620002cc9190620003cf565b60006040518083038185875af1925050503d80600081146200030b576040519150601f19603f3d011682016040523d82523d6000602084013e62000310565b606091505b5091509150811562000326579150620002799050565b805115620003375780518082602001fd5b8360405162461bcd60e51b815260040162000163919062000420565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159062000279575050151592915050565b6000602082840312156200039f578081fd5b81518015158114620003af578182fd5b9392505050565b600060208284031215620003c8578081fd5b5051919050565b60008251620003e381846020870162000533565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b60006020825282518060208401526200044181604085016020870162000533565b601f01601f19169190910160400192915050565b6020808252602a908201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60005b838110156200055057818101518382015260200162000536565b8381111562000560576000848401525b50505050565b61337c80620005766000396000f3fe60806040526004361061012e5760003560e01c8063715018a6116100ab578063c5ebeaec1161006f578063c5ebeaec14610308578063c683630d14610328578063d546da9014610355578063f2fde38b14610375578063f3fef3a314610395578063f7f460c7146103b557610135565b8063715018a61461027e578063852a12e3146102935780638da5cb5b146102b3578063a0712d68146102c8578063b29a8140146102e857610135565b80634641257d116100f25780634641257d146101f657806347e7ef241461020b57806349ba1b491461021e5780634ddaf8f21461023e57806353d6fd591461025e57610135565b80630e7527021461013a57806325564b5e1461015c5780632f4350c21461019257806333e1567f146101a75780633af9e669146101c957610135565b3661013557005b600080fd5b34801561014657600080fd5b5061015a610155366004612de0565b6103d5565b005b34801561016857600080fd5b5061017c610177366004612c4a565b61083b565b604051610189919061320e565b60405180910390f35b34801561019e57600080fd5b5061015a610896565b3480156101b357600080fd5b506101bc610c57565b6040516101899190612e6f565b3480156101d557600080fd5b506101e96101e4366004612c4a565b610c6f565b6040516101899190613247565b34801561020257600080fd5b5061015a610da2565b61015a610219366004612ce8565b611436565b34801561022a57600080fd5b5061015a610239366004612da8565b6114af565b34801561024a57600080fd5b5061015a610259366004612c4a565b611556565b34801561026a57600080fd5b5061015a610279366004612cb0565b6116ed565b34801561028a57600080fd5b5061015a611782565b34801561029f57600080fd5b5061015a6102ae366004612de0565b611801565b3480156102bf57600080fd5b506101bc611a72565b3480156102d457600080fd5b5061015a6102e3366004612de0565b611a81565b3480156102f457600080fd5b5061015a610303366004612ce8565b611ceb565b34801561031457600080fd5b5061015a610323366004612de0565b612097565b34801561033457600080fd5b50610348610343366004612c4a565b61228a565b6040516101899190612eed565b34801561036157600080fd5b506101e9610370366004612c4a565b6122a8565b34801561038157600080fd5b5061015a610390366004612c4a565b6122c6565b3480156103a157600080fd5b5061015a6103b0366004612ce8565b612304565b3480156103c157600080fd5b5061015a6103d0366004612c66565b6123ad565b33600081815260046020526040812080549091906001600160a01b0316600080516020613327833981519152141561040d574761048c565b81546040516370a0823160e01b81526001600160a01b03909116906370a082319061043c903090600401612e6f565b60206040518083038186803b15801561045457600080fd5b505afa158015610468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048c9190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a08231906104c4903090600401612e6f565b60206040518083038186803b1580156104dc57600080fd5b505afa1580156104f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105149190612df8565b60025490915060ff168061053757503360009081526001602052604090205460ff165b61055c5760405162461bcd60e51b81526004016105539061305e565b60405180910390fd5b610564612bfd565b5033600090815260046020908152604091829020825160808101845281546001600160a01b03908116825260018301541692810183905260028201549381019390935260030154606083015273a07c5b74c9b40447a954e1466938b865b6bbea3614156106385773a07c5b74c9b40447a954e1466938b865b6bbea366001600160a01b0316634e4d9fea876040518263ffffffff1660e01b81526004016000604051808303818588803b15801561061a57600080fd5b505af115801561062e573d6000803e3d6000fd5b50505050506106bc565b80602001516001600160a01b0316630e752702876040518263ffffffff1660e01b81526004016106689190613247565b602060405180830381600087803b15801561068257600080fd5b505af1158015610696573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ba9190612df8565b505b5082546000906001600160a01b031660008051602061332783398151915214156106e65747610765565b83546040516370a0823160e01b81526001600160a01b03909116906370a0823190610715903090600401612e6f565b60206040518083038186803b15801561072d57600080fd5b505afa158015610741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107659190612df8565b60018501546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061079d903090600401612e6f565b60206040518083038186803b1580156107b557600080fd5b505afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed9190612df8565b90506108108461080a84886002015461279c90919063ffffffff16565b906127c8565b6002860155600385015461082a90849061080a908461279c565b856003018190555050505050505050565b610843612bfd565b506001600160a01b03908116600090815260046020908152604091829020825160808101845281548516815260018201549094169184019190915260028101549183019190915260030154606082015290565b33600081815260046020526040812080549091906001600160a01b031660008051602061332783398151915214156108ce574761094d565b81546040516370a0823160e01b81526001600160a01b03909116906370a08231906108fd903090600401612e6f565b60206040518083038186803b15801561091557600080fd5b505afa158015610929573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094d9190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610985903090600401612e6f565b60206040518083038186803b15801561099d57600080fd5b505afa1580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d59190612df8565b60025490915060ff16806109f857503360009081526001602052604090205460ff165b610a145760405162461bcd60e51b81526004016105539061305e565b610a1c612bfd565b5033600090815260046020818152604092839020835160808101855281546001600160a01b03908116825260018301541692810183905260028201548186015260039091015460608201819052935163db006a7560e01b815290939192839263db006a7592610a8b9201613247565b602060405180830381600087803b158015610aa557600080fd5b505af1158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add9190612df8565b50508354600091506001600160a01b03166000805160206133278339815191521415610b095747610b88565b83546040516370a0823160e01b81526001600160a01b03909116906370a0823190610b38903090600401612e6f565b60206040518083038186803b158015610b5057600080fd5b505afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b889190612df8565b60018501546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610bc0903090600401612e6f565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190612df8565b9050610c2d8461080a84886002015461279c90919063ffffffff16565b60028601556003850154610c4790849061080a908461279c565b8560030181905550505050505050565b73a07c5b74c9b40447a954e1466938b865b6bbea3681565b6000610c79612bfd565b506001600160a01b038083166000908152600460209081526040918290208251608081018452815485168152600182015490941691840191909152600281015491830191909152600301546060820152610cd1612c37565b604051806020016040528083602001516001600160a01b031663bd6d894d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610d1b57600080fd5b505af1158015610d2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d539190612df8565b8152509050600080610d6983856060015161280a565b90925090506000826003811115610d7c57fe5b14610d995760405162461bcd60e51b815260040161055390612f2b565b95945050505050565b33600081815260046020526040812080549091906001600160a01b03166000805160206133278339815191521415610dda5747610e59565b81546040516370a0823160e01b81526001600160a01b03909116906370a0823190610e09903090600401612e6f565b60206040518083038186803b158015610e2157600080fd5b505afa158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610e91903090600401612e6f565b60206040518083038186803b158015610ea957600080fd5b505afa158015610ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee19190612df8565b60025490915060ff1680610f0457503360009081526001602052604090205460ff165b610f205760405162461bcd60e51b81526004016105539061305e565b610f28612bfd565b5033600090815260046020908152604091829020825160808101845281546001600160a01b039081168252600180840154909116828501526002830154828601526003909201546060808301919091528451838152808601909552909390929091908281019080368337019050509050816020015181600081518110610faa57fe5b6001600160a01b03909216602092830291909101909101526040516370a0823160e01b815260009073cf6bb5389c92bdda8a3747ddb454cb7a64626c63906370a0823190610ffc903090600401612e6f565b60206040518083038186803b15801561101457600080fd5b505afa158015611028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104c9190612df8565b60405163436f98f760e11b815290915073fd36e2c2a6789db23113685031d7f16329158384906386df31ee906110889030908690600401612e83565b600060405180830381600087803b1580156110a257600080fd5b505af11580156110b6573d6000803e3d6000fd5b50506040516370a0823160e01b81526000925061114a9150839073cf6bb5389c92bdda8a3747ddb454cb7a64626c63906370a08231906110fa903090600401612e6f565b60206040518083038186803b15801561111257600080fd5b505afa158015611126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080a9190612df8565b905080156114085783516001600160a01b031660008051602061332783398151915214156112a557604080516002808252606080830184529260208301908036833701905050905073cf6bb5389c92bdda8a3747ddb454cb7a64626c63816000815181106111b457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020613327833981519152816001815181106111f057fe5b6001600160a01b03909216602092830291909101909101526040516318cbafe560e01b81527305ff2b0db69458a0750badebc4f9e13add608c7f906318cbafe590611248908590600090869030904290600401613250565b600060405180830381600087803b15801561126257600080fd5b505af1158015611276573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261129e9190810190612d13565b5050611408565b6040805160038082526080820190925260609160208201838036833701905050905073cf6bb5389c92bdda8a3747ddb454cb7a64626c63816000815181106112e957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000805160206133278339815191528160018151811061132557fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084600001518160028151811061135757fe5b6001600160a01b03909216602092830291909101909101526040516338ed173960e01b81527305ff2b0db69458a0750badebc4f9e13add608c7f906338ed1739906113af908590600090869030904290600401613250565b600060405180830381600087803b1580156113c957600080fd5b505af11580156113dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114059190810190612d13565b50505b50508454600092506001600160a01b031660008051602061332783398151915214159050610b095747610b88565b60025460ff168061145657503360009081526001602052604090205460ff165b6114725760405162461bcd60e51b81526004016105539061305e565b6001600160a01b03821660009081526004602052604090206114a534611498578261149a565b345b60028301549061279c565b6002909101555050565b6114b761285e565b6000546001600160a01b039081169116146114e45760405162461bcd60e51b815260040161055390613132565b6002805460ff19168215801591909117909155611529576040517f508560e15717a4e9058b9a19d806cb679004a1bd953376f71fda71c141e5dc5390600090a1611553565b6040517fa2927d972f7cfc5ff8b7ad79f9adf0bdb885d0e569f40d0037df2e1299616ae090600090a15b50565b60025460ff168061157657503360009081526001602052604090205460ff165b6115925760405162461bcd60e51b81526004016105539061305e565b336000908152600460205260409020805482906001600160a01b0316600080516020613327833981519152141561162d5760028201546040516311f9fbc960e21b81526001600160a01b038316916347e7ef24916115f69033908390600401612ea7565b6000604051808303818588803b15801561160f57600080fd5b505af1158015611623573d6000803e3d6000fd5b50505050506116da565b81546001600160a01b0316611645818360001961268b565b6002830154611660906001600160a01b038316908490612862565b6116756001600160a01b03821683600061268b565b60028301546040516311f9fbc960e21b81526001600160a01b038416916347e7ef24916116a6913391600401612ea7565b600060405180830381600087803b1580156116c057600080fd5b505af11580156116d4573d6000803e3d6000fd5b50505050505b5060006002820181905560039091015550565b6116f561285e565b6000546001600160a01b039081169116146117225760405162461bcd60e51b815260040161055390613132565b6001600160a01b03821660008181526001602052604090819020805460ff1916841515179055517fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f2644090611776908490612eed565b60405180910390a25050565b61178a61285e565b6000546001600160a01b039081169116146117b75760405162461bcd60e51b815260040161055390613132565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b33600081815260046020526040812080549091906001600160a01b0316600080516020613327833981519152141561183957476118b8565b81546040516370a0823160e01b81526001600160a01b03909116906370a0823190611868903090600401612e6f565b60206040518083038186803b15801561188057600080fd5b505afa158015611894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b89190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a08231906118f0903090600401612e6f565b60206040518083038186803b15801561190857600080fd5b505afa15801561191c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119409190612df8565b60025490915060ff168061196357503360009081526001602052604090205460ff165b61197f5760405162461bcd60e51b81526004016105539061305e565b611987612bfd565b5033600090815260046020818152604092839020835160808101855281546001600160a01b0390811682526001830154169281018390526002820154818601526003909101546060820152925163852a12e360e01b81529091829163852a12e3916119f4918b9101613247565b602060405180830381600087803b158015611a0e57600080fd5b505af1158015611a22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a469190612df8565b50508354600091506001600160a01b031660008051602061332783398151915214156106e65747610765565b6000546001600160a01b031690565b33600081815260046020526040812080549091906001600160a01b03166000805160206133278339815191521415611ab95747611b38565b81546040516370a0823160e01b81526001600160a01b03909116906370a0823190611ae8903090600401612e6f565b60206040518083038186803b158015611b0057600080fd5b505afa158015611b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b389190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190611b70903090600401612e6f565b60206040518083038186803b158015611b8857600080fd5b505afa158015611b9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc09190612df8565b60025490915060ff1680611be357503360009081526001602052604090205460ff165b611bff5760405162461bcd60e51b81526004016105539061305e565b611c07612bfd565b5033600090815260046020908152604091829020825160808101845281546001600160a01b039081168083526001840154909116938201939093526002820154938101939093526003015460608301526000805160206133278339815191521415611cbb5773a07c5b74c9b40447a954e1466938b865b6bbea366001600160a01b0316631249c58b876040518263ffffffff1660e01b81526004016000604051808303818588803b15801561061a57600080fd5b80602001516001600160a01b031663a0712d68876040518263ffffffff1660e01b81526004016106689190613247565b611cf361285e565b6000546001600160a01b03908116911614611d205760405162461bcd60e51b815260040161055390613132565b6001600160a01b038216600080516020613327833981519152148015611dc757506040516370a0823160e01b81528190600080516020613327833981519152906370a0823190611d74903090600401612e6f565b60206040518083038186803b158015611d8c57600080fd5b505afa158015611da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc49190612df8565b10155b15611e2657611de8611dd7611a72565b6001600160a01b0384169083612862565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051611e19929190612ea7565b60405180910390a1612093565b60005b60035481101561204d57611e3b612bfd565b60038281548110611e4857fe5b600091825260209182902060408051608081018252600490930290910180546001600160a01b0390811684526001820154811694840185905260028201549284019290925260030154606083015290925085161415611eb95760405162461bcd60e51b8152600401610553906130a7565b836001600160a01b031681600001516001600160a01b031614156120445760006001600160a01b03851660008051602061332783398151915214611f78576040516370a0823160e01b81526001600160a01b038616906370a0823190611f23903090600401612e6f565b60206040518083038186803b158015611f3b57600080fd5b505afa158015611f4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f739190612df8565b611f7a565b475b905083611f948360400151836127c890919063ffffffff16565b1015611fb25760405162461bcd60e51b8152600401610553906130a7565b6001600160a01b0385166000805160206133278339815191521415611fe757611fe2611fdc611a72565b85612881565b612003565b612003611ff2611a72565b6001600160a01b0387169086612862565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288585604051612034929190612ea7565b60405180910390a1505050612093565b50600101611e29565b50612059611dd7611a72565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28828260405161208a929190612ea7565b60405180910390a15b5050565b33600081815260046020526040812080549091906001600160a01b031660008051602061332783398151915214156120cf574761214e565b81546040516370a0823160e01b81526001600160a01b03909116906370a08231906120fe903090600401612e6f565b60206040518083038186803b15801561211657600080fd5b505afa15801561212a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214e9190612df8565b60018301546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190612186903090600401612e6f565b60206040518083038186803b15801561219e57600080fd5b505afa1580156121b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d69190612df8565b60025490915060ff16806121f957503360009081526001602052604090205460ff165b6122155760405162461bcd60e51b81526004016105539061305e565b61221d612bfd565b5033600090815260046020818152604092839020835160808101855281546001600160a01b0390811682526001830154169281018390526002820154818601526003909101546060820152925163317afabb60e21b81529091829163c5ebeaec916119f4918b9101613247565b6001600160a01b031660009081526001602052604090205460ff1690565b6001600160a01b031660009081526004602052604090206002015490565b6122ce61285e565b6000546001600160a01b039081169116146122fb5760405162461bcd60e51b815260040161055390613132565b6115538161290e565b60025460ff168061232457503360009081526001602052604090205460ff165b6123405760405162461bcd60e51b81526004016105539061305e565b336000908152600460205260409020600281015461235e90836127c8565b600282015580546001600160a01b031660008051602061332783398151915214156123925761238d8383612881565b6123a8565b80546123a8906001600160a01b03168484612862565b505050565b6123b561285e565b6000546001600160a01b039081169116146123e25760405162461bcd60e51b815260040161055390613132565b6001600160a01b03838116600090815260046020526040902054161561241a5760405162461bcd60e51b8152600401610553906131c8565b6001600160a01b0382161580159061243a57506001600160a01b03811615155b6124565760405162461bcd60e51b815260040161055390613029565b61245e612bfd565b50604080516080810182526001600160a01b03848116808352848216602080850191825260008587018181526060870182815260038054600180820183558286528a517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600493840290810180546001600160a01b0319908116938e1693909317905589517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c820180548416918e1691909117905586517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015585517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e909101558f8b1687529190965299909320885181548b1690891617815594519385018054909916939096169290921790965551600282015591519190930155906125bd907305ff2b0db69458a0750badebc4f9e13add608c7f60001961268b565b6125d36001600160a01b0384168360001961268b565b60408051600180825281830190925260609160208083019080368337019050509050828160008151811061260357fe5b6001600160a01b0390921660209283029190910190910152604051631853304760e31b815273fd36e2c2a6789db23113685031d7f163291583849063c299823890612652908490600401612eda565b600060405180830381600087803b15801561266c57600080fd5b505af1158015612680573d6000803e3d6000fd5b505050505050505050565b8015806127135750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906126c19030908690600401612ec0565b60206040518083038186803b1580156126d957600080fd5b505afa1580156126ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127119190612df8565b155b61272f5760405162461bcd60e51b8152600401610553906130dc565b6123a88363095ea7b360e01b848460405160240161274e929190612ea7565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261298f565b60606127948484600085612a1e565b949350505050565b6000828201838110156127c15760405162461bcd60e51b815260040161055390612ff2565b9392505050565b60006127c183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ae2565b6000806000612817612c37565b6128218686612b0e565b9092509050600082600381111561283457fe5b146128455750915060009050612857565b600061285082612b76565b9350935050505b9250929050565b3390565b6123a88363a9059cbb60e01b848460405160240161274e929190612ea7565b604080516000808252602082019092526001600160a01b0384169083906040516128ab9190612e53565b60006040518083038185875af1925050503d80600081146128e8576040519150601f19603f3d011682016040523d82523d6000602084013e6128ed565b606091505b50509050806123a85760405162461bcd60e51b815260040161055390613167565b6001600160a01b0381166129345760405162461bcd60e51b815260040161055390612fac565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60606129e4826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127859092919063ffffffff16565b8051909150156123a85780806020019051810190612a029190612dc4565b6123a85760405162461bcd60e51b815260040161055390612f62565b6060612a2985612b85565b612a455760405162461bcd60e51b815260040161055390613191565b60006060866001600160a01b03168587604051612a629190612e53565b60006040518083038185875af1925050503d8060008114612a9f576040519150601f19603f3d011682016040523d82523d6000602084013e612aa4565b606091505b50915091508115612ab85791506127949050565b805115612ac85780518082602001fd5b8360405162461bcd60e51b81526004016105539190612ef8565b60008184841115612b065760405162461bcd60e51b81526004016105539190612ef8565b505050900390565b6000612b18612c37565b600080612b29866000015186612bbe565b90925090506000826003811115612b3c57fe5b14612b5b57506040805160208101909152600081529092509050612857565b60408051602081019091529081526000969095509350505050565b51670de0b6b3a7640000900490565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612794575050151592915050565b60008083612bd157506000905080612857565b83830283858281612bde57fe5b0414612bf257600260009250925050612857565b600092509050612857565b604051806080016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081525090565b6040518060200160405280600081525090565b600060208284031215612c5b578081fd5b81356127c181613303565b600080600060608486031215612c7a578182fd5b8335612c8581613303565b92506020840135612c9581613303565b91506040840135612ca581613303565b809150509250925092565b60008060408385031215612cc2578182fd5b8235612ccd81613303565b91506020830135612cdd81613318565b809150509250929050565b60008060408385031215612cfa578182fd5b8235612d0581613303565b946020939093013593505050565b60006020808385031215612d25578182fd5b825167ffffffffffffffff811115612d3b578283fd5b8301601f81018513612d4b578283fd5b8051612d5e612d59826132b3565b61328c565b8181528381019083850185840285018601891015612d7a578687fd5b8694505b83851015612d9c578051835260019490940193918501918501612d7e565b50979650505050505050565b600060208284031215612db9578081fd5b81356127c181613318565b600060208284031215612dd5578081fd5b81516127c181613318565b600060208284031215612df1578081fd5b5035919050565b600060208284031215612e09578081fd5b5051919050565b6000815180845260208085019450808401835b83811015612e485781516001600160a01b031687529582019590820190600101612e23565b509495945050505050565b60008251612e658184602087016132d3565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038316815260406020820181905260009061279490830184612e10565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6000602082526127c16020830184612e10565b901515815260200190565b6000602082528251806020840152612f178160408501602087016132d3565b601f01601f19169190910160400192915050565b6020808252601f908201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604082015260600190565b6020808252602a908201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f5661756c7456656e75734272696467653a20696e76616c696420746f6b656e73604082015260600190565b60208082526029908201527f57686974656c6973743a2063616c6c6572206973206e6f74206f6e20746865206040820152681dda1a5d195b1a5cdd60ba1b606082015260800190565b6020808252818101527f5661756c7456656e75734272696467653a2063616e6e6f74207265636f766572604082015260600190565b60208082526036908201527f5361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f042e6c2cccaa8e4c2dce6cccae48aa8960831b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526026908201527f5661756c7456656e75734272696467653a207661756c7420697320616c726561604082015265191e481cd95d60d21b606082015260800190565b81516001600160a01b03908116825260208084015190911690820152604080830151908201526060918201519181019190915260800190565b90815260200190565b600086825285602083015260a0604083015261326f60a0830186612e10565b6001600160a01b0394909416606083015250608001529392505050565b60405181810167ffffffffffffffff811182821017156132ab57600080fd5b604052919050565b600067ffffffffffffffff8211156132c9578081fd5b5060209081020190565b60005b838110156132ee5781810151838201526020016132d6565b838111156132fd576000848401525b50505050565b6001600160a01b038116811461155357600080fd5b801515811461155357600080fdfe000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095ca26469706673582212206d2dfa6fd46d86fa9b06d8336f610fc526dbf78a076cb5e2ff1cb2871e40865f64736f6c634300060c0033

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.