Contract 0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd0 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcad5efb1d84ea717cc10b6fc3a335ade350ce970d92ad8970757935f63826cbeWithdraw420161132022-07-04 18:40:2936 days 13 hrs ago0x9bdbdb4a8f7f816c87a67f5281484ed902c6b942 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.00678138
0x179932ad3ea48a98fe6a9a9028a0c3f76aefa0c8514e3ccbddd29f42ec94acfbDeposit420157872022-07-04 18:35:0936 days 13 hrs ago0x9bdbdb4a8f7f816c87a67f5281484ed902c6b942 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.00889056
0xdfb45df675f27a009f35dcaf962eb5fbd709c72c6d05e6ffd97c209000050a9aWithdraw402247372022-06-10 17:43:3560 days 14 hrs ago0xe66448ef0a870b0a5130adeb6bcfeb9ca6502cfe IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.006168177228
0xc7126d3009c8dab9f6a8490668da49106bfb2d1a6119866ffb87e99750d61aecDeposit402234682022-06-10 17:19:1560 days 14 hrs ago0xe66448ef0a870b0a5130adeb6bcfeb9ca6502cfe IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.009718849885
0x252c718a7f574b967ce5aceaefbd64955c0f4ccc523e44c9797a2f73d0bc935bDeposit359294772022-04-13 4:12:37119 days 4 hrs ago0x330ad0d38e9c12cbc34d7cffefcd99e5530b6bfb IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.04246393
0xba25614d543d653424b03fc56887a1830683d60863121fad854babfa6a914da7Withdraw348832602022-03-31 13:52:55131 days 18 hrs ago0xa61488897c756e196058264535f2dc7338030953 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.043886149203
0xe6a4b420994b29f51ddf5a4b9d9ea2024f3a471300cf60f6898fb72811bdac56Withdraw340398362022-03-21 18:18:22141 days 13 hrs ago0xb34503e79f49e5d00a5d70d6e3c7effa7baa9f95 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.023243617884
0x8c66dd44ac4e19dad65fedcc95c5bd05a1186b389ac861f0a229d4f88e65aed1Deposit340350022022-03-21 17:05:44141 days 15 hrs ago0xa172fbaa98cb30497f12efc4f7960d53756319fb IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.03726301438
0x0afeb5ebaadb54a988e3e136d663440414d444c91b2c7b63c6860128e5b5b324Withdraw339583742022-03-20 20:23:29142 days 11 hrs ago0xa2995792e44d0965e6333934ec1fb5114eeca8f3 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.018568040876
0x8f93fa1f22ac0dcbc25b15a800ccf9f4dd55518e263f5a053eb54890ba0bdd0bDeposit337018502022-03-17 23:05:06145 days 9 hrs ago0xeb6800486cb5fff0283508991f21e4f536386071 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.026160530173
0x04043395e012e0c530a2a6089f2004438d27dc46a9a6f8566fb76210ef464841Withdraw336692862022-03-17 13:49:29145 days 18 hrs ago0xe02e528a16cb342eb36003adb8bec281203e66aa IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.027734863041
0x404fa15b19a1c462c251d9a37d111b07e609c77b9d89179efd3b18971554bac9Deposit336691802022-03-17 13:47:34145 days 18 hrs ago0xe02e528a16cb342eb36003adb8bec281203e66aa IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.029365024071
0x41e74158642527d65ec0c42d8aa7ff154fea0f721bb7e9804fbc4d142344d794Withdraw333632452022-03-14 2:38:58149 days 5 hrs ago0x4c5531ab3fbdf873c43d0b1a024c1f524be47263 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.122098795224
0x240c742487ddc4aabe07de57c607a8f31da30b3d431f2474dbc2402e9761ac4eDeposit333632102022-03-14 2:38:25149 days 5 hrs ago0x4c5531ab3fbdf873c43d0b1a024c1f524be47263 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.123426144224
0x88b4b9c2f8dc260d61704a00f917826a3bf4593787c7a9289287163ec2a18237Withdraw331740922022-03-11 22:12:40151 days 10 hrs ago0xb34503e79f49e5d00a5d70d6e3c7effa7baa9f95 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.025666585166
0xbabaecb371b7cd9e147d134fcca65be6a3ea4085e60b1515e1d7ca2cc6248a51Deposit331740152022-03-11 22:11:32151 days 10 hrs ago0xb34503e79f49e5d00a5d70d6e3c7effa7baa9f95 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.033041135697
0xfebbb1d82c51a0a9fb9ba4c35b6ae39a360a8d20c1b543a99311db8b9a920e07Withdraw330855642022-03-10 22:05:53152 days 10 hrs ago0xb9b008ffc77a9adee760fe9adb364d838d2191e5 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.021295701086
0x922a07a10aaf94c575c753c5614fc9901fc38f6532ab8e7cd1d75016de26129dDeposit328964562022-03-08 18:25:33154 days 13 hrs ago0x75ae2dda76aea5d7ecb0fd205efbfe989c8b986e IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.089605653603
0xbf7cef7d387c451c5730ce2eaca75ff71cd8cf7bb971d6a0cd5cbd5585b51b36Deposit327928562022-03-07 12:27:29155 days 19 hrs ago0xa9b11d0e75c5c552079d3b37db5336146a62ae6a IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.064346145
0x89f29e869101dd9d525de6e3a7c7942dc1337d2aa30f3acb2099339ec132f56dDeposit327928342022-03-07 12:27:06155 days 19 hrs ago0xa9b11d0e75c5c552079d3b37db5336146a62ae6a IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.02641117
0xcfc3d388b5c4e02d80e7e4e90d217fa6929a0129bfc4e4affa329e472e7892dcDeposit325612252022-03-04 20:33:33158 days 11 hrs ago0x4c28dee8ad1c314a8befeac017d1be65227919a3 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.039271732589
0x6fe950fbc35f7283e2ea4a93a06d3595063c0b4a374094603a8f04592f057e61Deposit325611742022-03-04 20:32:53158 days 11 hrs ago0x4c28dee8ad1c314a8befeac017d1be65227919a3 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.045284595317
0x62e088634202597db98da0e994508e95386ce966cd52584d0be5c0ae763a3336Withdraw321740242022-02-28 8:56:34162 days 23 hrs ago0x484e5849ac667a1856e4b9c258b71f4d5cd48301 IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.061947431401
0xd5e74e1ad14c11d20fda2a5d60042a0c41ed98fe86bea369946edea99e4ca309Withdraw319305572022-02-25 10:35:34165 days 21 hrs ago0x69cac67d7073848132c213152275ef49dfae640b IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.167158138998
0x9cca30ed3758e1f5d3a6fac36a14f40bf76f48afcf50a32dfe4c958b47ecf914Withdraw318970072022-02-24 23:40:56166 days 8 hrs ago0x69cac67d7073848132c213152275ef49dfae640b IN  0x6daa10f9d8f3ebac21beca9edc8b86ee32e33cd00 FTM0.0659496816
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xb171788defc22695656ccad3f39d6384b34950c6ac8427ded2a8c0e8c5946517265857852021-12-31 14:50:35221 days 17 hrs ago 0xf9e78c3a76befad33f25f1f55936234bee318f5b  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV3

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MasterChefV3.sol
/*
     ,-""""-.
   ,'      _ `.
  /       )_)  \
 :              :
 \              /
  \            /
   `.        ,'
     `.    ,'
       `.,'
        /\`.   ,-._
            `-'         Banksy.farm

 */

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./BanksyTokenV3.sol";

// MasterChef is the master of Banksy. He can make Banksy and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once BANKSY is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChefV3 is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of BANKSYs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accBanksyPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accBanksyPerShare` (and `lastRewardTime`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. BANKSYs to distribute per second.
        uint256 lastRewardTime;  // Last time that BANKSYs distribution occurs.
        uint256 accBanksyPerShare;   // Accumulated BANKSYs per share, times 1e18. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 lpSupply;
    }

    uint256 public constant banksyMaximumSupply = 1 * (10 ** 6) * (10 ** 18); // 1,000,000 banksy
    uint256 public constant MAX_EMISSION_RATE = 1 * (10 ** 18); // 1
    // The BANKSY TOKEN!
    BanksyTokenV3 public immutable banksy;
    // BANKSY tokens created per second.
    uint256 public banksyPerSecond;
    // Deposit Fee address
    address public feeAddress;
    address public treasuryAddress;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The time when BANKSY mining starts.
    uint256 public startTime;
    // The time when BANKSY mining ends.
    uint256 public emmissionEndTime = type(uint256).max;

    event addPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
    event setPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event SetEmissionRate(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event SetFeeAddress(address indexed user, address indexed newAddress);
    event SetTreasuryAddress(address indexed user, address indexed newAddress);
    event SetstartTime(uint256 newStartTime);
    
    constructor(
        BanksyTokenV3 _banksy,
        address _feeAddress,
        address _treasuryAddress,
        uint256 _banksyPerSecond,
        uint256 _startTime
    ) {
        require(_feeAddress != address(0), "!nonzero");

        banksy = _banksy;
        feeAddress = _feeAddress;
        treasuryAddress = _treasuryAddress;
        banksyPerSecond = _banksyPerSecond;
        startTime = _startTime;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    mapping(IERC20 => bool) public poolExistence;
    modifier nonDuplicated(IERC20 _lpToken) {
        require(!poolExistence[_lpToken], "nonDuplicated: duplicated");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IERC20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) {
        // Make sure the provided token is ERC20
        _lpToken.balanceOf(address(this));

        require(_depositFeeBP <= 401, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime;
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolExistence[_lpToken] = true;

        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardTime : lastRewardTime,
        accBanksyPerShare : 0,
        depositFeeBP : _depositFeeBP,
        lpSupply: 0
        }));

        emit addPool(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFeeBP);
    }

    // Update the given pool's BANKSY allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 401, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;

        emit setPool(_pid, address(poolInfo[_pid].lpToken), _allocPoint, _depositFeeBP);
    }

    // Return reward multiplier over the given _from to _to time.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        // As we set the multiplier to 0 here after emmissionEndTime
        // deposits aren't timed after farming ends.
        if (_from > emmissionEndTime)
            return 0;
        if (_to > emmissionEndTime)
            return emmissionEndTime - _from;
        else
            return _to - _from;
    }

    // View function to see pending BANKSYs on frontend.
    function pendingBanksy(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBanksyPerShare = pool.accBanksyPerShare;
        if (block.timestamp > pool.lastRewardTime && pool.lpSupply != 0 && totalAllocPoint > 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 banksyReward = (multiplier * banksyPerSecond * pool.allocPoint) / totalAllocPoint;
            accBanksyPerShare = accBanksyPerShare + ((banksyReward * 1e18) / pool.lpSupply);
        }

        return ((user.amount * accBanksyPerShare) /  1e18) - user.rewardDebt;
    }


    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }

        if (pool.lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }

        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
        uint256 banksyReward = (multiplier * banksyPerSecond * pool.allocPoint) / totalAllocPoint;

        // This shouldn't happen, but just in case we stop rewards.
        if (banksy.totalSupply() > banksyMaximumSupply)
            banksyReward = 0;
        else if ((banksy.totalSupply() + banksyReward) > banksyMaximumSupply)
            banksyReward = banksyMaximumSupply - banksy.totalSupply();

        if (banksyReward > 0){
            banksy.mint(address(this), banksyReward);
            banksy.mint(treasuryAddress, banksyReward / 10);
        }
        // The first time we reach Banksy max supply we solidify the end of farming.
        if (banksy.totalSupply() >= banksyMaximumSupply && emmissionEndTime == type(uint256).max)
            emmissionEndTime = block.timestamp;

        pool.accBanksyPerShare = pool.accBanksyPerShare + ((banksyReward * 1e18) / pool.lpSupply);
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens to MasterChef for BANKSY allocation.
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = ((user.amount * pool.accBanksyPerShare) / 1e18) - user.rewardDebt;
            if (pending > 0) {
                safeBanksyTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            _amount = pool.lpToken.balanceOf(address(this)) - balanceBefore;
            require(_amount > 0, "we dont accept deposits of 0 size");

            if (pool.depositFeeBP > 0) {
                uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount + _amount - depositFee;
                pool.lpSupply = pool.lpSupply + _amount - depositFee;
            } else {
                user.amount = user.amount + _amount;
                pool.lpSupply = pool.lpSupply + _amount;
            }
        }
        user.rewardDebt = (user.amount * pool.accBanksyPerShare) / 1e18;

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = ((user.amount * pool.accBanksyPerShare) / 1e18) - user.rewardDebt;
        if (pending > 0) {
            safeBanksyTransfer(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount - _amount;
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            pool.lpSupply = pool.lpSupply - _amount;
        }
        user.rewardDebt = (user.amount * pool.accBanksyPerShare) / 1e18;
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);

        // In the case of an accounting error, we choose to let the user emergency withdraw anyway
        if (pool.lpSupply >=  amount)
            pool.lpSupply = pool.lpSupply - amount;
        else
            pool.lpSupply = 0;

        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe banksy transfer function, just in case if rounding error causes pool to not have enough BANKSYs.
    function safeBanksyTransfer(address _to, uint256 _amount) internal {
        uint256 banksyBal = banksy.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > banksyBal) {
            transferSuccess = banksy.transfer(_to, banksyBal);
        } else {
            transferSuccess = banksy.transfer(_to, _amount);
        }
        require(transferSuccess, "safeBanksyTransfer: transfer failed");
    }

    function setFeeAddress(address _feeAddress) external onlyOwner {
        require(_feeAddress != address(0), "!nonzero");
        
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    function setTreasuryAddress(address _treasuryAddress) external onlyOwner {
        require(_treasuryAddress != address(0), "!nonzero");
        
        treasuryAddress = _treasuryAddress;
        emit SetTreasuryAddress(msg.sender, _treasuryAddress);
    }

    function setStartTime(uint256 _newstartTime) external onlyOwner {
        require(block.timestamp < startTime, "cannot change start time if sale has already commenced");
        require(block.timestamp < _newstartTime, "cannot set start time in the past");
                
        startTime = _newstartTime;

        for (uint256 _pid = 0; _pid < poolInfo.length; ++_pid) {
            poolInfo[_pid].lastRewardTime = startTime;
        }

        emit SetstartTime(startTime);
    }

    function setEmissionRate(uint256 _banksyPerSecond) external onlyOwner {
        require(_banksyPerSecond > 0);
        require(_banksyPerSecond < MAX_EMISSION_RATE);

        massUpdatePools();
        banksyPerSecond = _banksyPerSecond;
        
        emit SetEmissionRate(msg.sender, banksyPerSecond, _banksyPerSecond);
    }
}

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

    function safeTransferFrom(
        IERC20 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
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 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'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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(IERC20 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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 11 : BanksyTokenV3.sol
/*
     ,-""""-.
   ,'      _ `.
  /       )_)  \
 :              :
 \              /
  \            /
   `.        ,'
     `.    ,'
       `.,'
        /\`.   ,-._
            `-'         Banksy.farm

 */

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";


/*
  TABLE ERROR REFERENCE:
  ERR1: The sender is on the blacklist. Please contact to support.
  ERR2: The recipient is on the blacklist. Please contact to support.
  ERR3: User cannot send more than allowed.
  ERR4: User is not operator.
  ERR5: User is excluded from antibot system.
  ERR6: Bot address is already on the blacklist.
  ERR7: The expiration time has to be greater than 0.
  ERR8: Bot address is not found on the blacklist.
  ERR9: Address cant be 0.
*/

// BanksyToken
contract BanksyTokenV3 is ERC20, Ownable {

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event TransferTaxRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event HoldingAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event AntiBotWorkingStatus(address indexed operator, bool previousStatus, bool newStatus);
    event AddBotAddress(address indexed botAddress);
    event RemoveBotAddress(address indexed botAddress);
    event ExcludedOperatorsUpdated(address indexed operatorAddress, bool previousStatus, bool newStatus);
    event ExcludedHoldersUpdated(address indexed holderAddress, bool previousStatus, bool newStatus);
    

    using SafeMath for uint256;

    ///@dev Max transfer amount rate. (default is 3% of total supply)
    uint16 public maxUserTransferAmountRate = 300;
    
    ///@dev Max holding rate. (default is 9% of total supply)
    uint16 public maxUserHoldAmountRate = 900;

    ///@dev Length of blacklist addressess
    uint256 public blacklistLength;
 
    ///@dev Enable|Disable antiBot
    bool public antiBotWorking;
    
    ///@dev Exclude operators from antiBot system
    mapping(address => bool) private _excludedOperatorsFromAntiBot;

    ///@dev Exclude holders from antiBot system
    mapping(address => bool) private _excludedHoldersFromAntiBot;

    ///@dev mapping store blacklist. address=>ExpirationTime 
    mapping(address => uint256) private _blacklist;
    

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
    
    // operator role
    address internal _operator;

    // MODIFIERS
    modifier antiBot(address _sender, address _recipient, uint256 _amount) { 
        //check blacklist
        require(!_blacklistCheck(_sender), "ERR1");
        require(!_blacklistCheck(_recipient), "ERR2");

        // This code will be disabled after launch and before farming
        if (antiBotWorking){
            // check  if sender|recipient has a tx amount is within the allowed limits
            if (_isNotOperatorExcludedFromAntiBot(_sender)){
                if(_isNotOperatorExcludedFromAntiBot(_recipient))
                    require(_amount <= _maxUserTransferAmount(), "ERR3");
            }
        }
        _;
    }

    modifier onlyOperator() {
        require(_operator == _msgSender(), "ERR4");
        _;
    }
    
    constructor() 
        ERC20('BANKSY', 'BANKSY')
    {
      // Exclude operator addresses, lps, etc from antibot system
        _excludedOperatorsFromAntiBot[msg.sender] = true;
        _excludedOperatorsFromAntiBot[address(0)] = true;
        _excludedOperatorsFromAntiBot[address(this)] = true;
        _excludedOperatorsFromAntiBot[BURN_ADDRESS] = true;

        _operator = _msgSender();
    }
    

    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }
    
    //INTERNALS
    
    /// @dev overrides transfer function to use antibot system
    function _transfer(address _sender, address _recipient, uint256 _amount) internal virtual override antiBot(_sender, _recipient, _amount) {
        // Autodetect is sender is a BOT
        // This code will be disabled after launch and before farming
        if (antiBotWorking){
            // check  if sender|recipient has a tx amount is within the allowed limits
            if (_isNotHolderExcludedFromAntiBot(_sender)){
                if(_isNotOperatorExcludedFromAntiBot(_sender)){
                    if (balanceOf(_sender) > _maxUserHoldAmount()) {
                        _addBotAddressToBlackList(_sender, type(uint256).max);
                        return;
                    }
                }
            }
        }
        
        super._transfer(_sender, _recipient, _amount);
    }

    /// @dev internal function to add address to blacklist.
    function _addBotAddressToBlackList(address _botAddress, uint256 _expirationTime) internal {
        require(_isNotHolderExcludedFromAntiBot(_botAddress), "ERR5");
        require(_isNotOperatorExcludedFromAntiBot(_botAddress), "ERR5");
        require(_blacklist[_botAddress] == 0, "ERR6");
        require(_expirationTime > 0, "ERR7");

        _blacklist[_botAddress] = _expirationTime;
        blacklistLength = blacklistLength.add(1);

        emit AddBotAddress(_botAddress);
    }
    
    ///@dev internal function to remove address from blacklist.
    function _removeBotAddressToBlackList(address _botAddress) internal {
        require(_blacklist[_botAddress] > 0, "ERR8");

        delete _blacklist[_botAddress];
        blacklistLength = blacklistLength.sub(1);

        emit RemoveBotAddress(_botAddress);
    }

    ///@dev Check if the address is excluded from antibot system.
    function _isNotHolderExcludedFromAntiBot(address _userAddress) internal view returns(bool) {
        return(!_excludedHoldersFromAntiBot[_userAddress]);
    }

    ///@dev Check if the address is excluded from antibot system.
    function _isNotOperatorExcludedFromAntiBot(address _userAddress) internal view returns(bool) {
        return(!_excludedOperatorsFromAntiBot[_userAddress]);
    }

    ///@dev Max user transfer allowed
    function _maxUserTransferAmount() internal view returns (uint256) {
        return totalSupply().mul(maxUserTransferAmountRate).div(10000);
    }

    ///@dev Max user Holding allowed
    function _maxUserHoldAmount() internal view returns (uint256) {
        return totalSupply().mul(maxUserHoldAmountRate).div(10000);
    }

    ///@dev check if the address is in the blacklist or expired
    function _blacklistCheck(address _botAddress) internal view returns(bool) {
        if(_blacklist[_botAddress] > 0)
            return _blacklist[_botAddress] > block.timestamp;
        else 
            return false;
    }

    // PUBLICS
 
    ///@dev Max user transfer allowed
    function maxUserTransferAmount() external view returns (uint256) {
        return _maxUserTransferAmount();
    }

    ///@dev Max user Holding allowed
    function maxUserHoldAmount() external view returns (uint256) {
        return _maxUserHoldAmount();
    }

     ///@dev check if the address is in the blacklist or expired
    function blacklistCheck(address _botAddress) external view returns(bool) {
        return _blacklistCheck(_botAddress);     
    }
    
    ///@dev check if the address is in the blacklist or not
    function blacklistCheckExpirationTime(address _botAddress) external view returns(uint256){
        return _blacklist[_botAddress];
    }


    // EXTERNALS

    ///@dev Update operator address status
    function updateOperatorsFromAntiBot(address _operatorAddress, bool _status) external onlyOwner {
        require(_operatorAddress != address(0), "ERR9");

        emit ExcludedOperatorsUpdated(_operatorAddress, _excludedOperatorsFromAntiBot[_operatorAddress], _status);

        _excludedOperatorsFromAntiBot[_operatorAddress] = _status;
    }

    ///@dev Update operator address status
    function updateHoldersFromAntiBot(address _holderAddress, bool _status) external onlyOwner {
        require(_holderAddress != address(0), "ERR9");

        emit ExcludedHoldersUpdated(_holderAddress, _excludedHoldersFromAntiBot[_holderAddress], _status);

        _excludedHoldersFromAntiBot[_holderAddress] = _status;
    }


    ///@dev Update operator address
    function transferOperator(address newOperator) external onlyOperator {
        require(newOperator != address(0), "ERR9");
        
        emit OperatorTransferred(_operator, newOperator);

        _operator = newOperator;
    }

    function operator() external view returns (address) {
        return _operator;
    }

     ///@dev Updates the max holding amount. 
    function updateMaxUserHoldAmountRate(uint16 _maxUserHoldAmountRate) external onlyOwner {
        require(_maxUserHoldAmountRate >= 500);
        require(_maxUserHoldAmountRate <= 10000);
        
        emit TransferTaxRateUpdated(_msgSender(), maxUserHoldAmountRate, _maxUserHoldAmountRate);

        maxUserHoldAmountRate = _maxUserHoldAmountRate;
    }

    ///@dev Updates the max user transfer amount. 
    function updateMaxUserTransferAmountRate(uint16 _maxUserTransferAmountRate) external onlyOwner {
        require(_maxUserTransferAmountRate >= 50);
        require(_maxUserTransferAmountRate <= 10000);
        
        emit HoldingAmountRateUpdated(_msgSender(), maxUserHoldAmountRate, _maxUserTransferAmountRate);

        maxUserTransferAmountRate = _maxUserTransferAmountRate;
    }

    
    ///@dev Update the antiBotWorking status: ENABLE|DISABLE.
    function updateStatusAntiBotWorking(bool _status) external onlyOwner {
        emit AntiBotWorkingStatus(_msgSender(), antiBotWorking, _status);

        antiBotWorking = _status;
    }

     ///@dev Add an address to the blacklist. Only the owner can add. Owner is the address of the Governance contract.
    function addBotAddress(address _botAddress, uint256 _expirationTime) external onlyOwner {
        _addBotAddressToBlackList(_botAddress, _expirationTime);
    }
    
    ///@dev Remove an address from the blacklist. Only the owner can remove. Owner is the address of the Governance contract.
    function removeBotAddress(address botAddress) external onlyOperator {
        _removeBotAddressToBlackList(botAddress);
    }
    
    ///@dev Add multi address to the blacklist. Only the owner can add. Owner is the address of the Governance contract.
    function addBotAddressBatch(address[] memory _addresses, uint256 _expirationTime) external onlyOwner {
        require(_addresses.length > 0);

        for(uint i=0;i<_addresses.length;i++){
            _addBotAddressToBlackList(_addresses[i], _expirationTime);
        }
    }
    
    ///@dev Remove multi address from the blacklist. Only the owner can remove. Owner is the address of the Governance contract.
    function removeBotAddressBatch(address[] memory _addresses) external onlyOperator {
        require(_addresses.length > 0);

        for(uint i=0;i<_addresses.length;i++){
            _removeBotAddressToBlackList(_addresses[i]);
        }
    }

    ///@dev Check if the address is excluded from antibot system.
    function isExcludedOperatorFromAntiBot(address _userAddress) external view returns(bool) {
        return(_excludedOperatorsFromAntiBot[_userAddress]);
    }

    ///@dev Check if the address is excluded from antibot system.
    function isExcludedHolderFromAntiBot(address _userAddress) external view returns(bool) {
        return(_excludedHoldersFromAntiBot[_userAddress]);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @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");

        (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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @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 a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 11 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract BanksyTokenV3","name":"_banksy","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"address","name":"_treasuryAddress","type":"address"},{"internalType":"uint256","name":"_banksyPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"SetEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetTreasuryAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"SetstartTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"addPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"setPool","type":"event"},{"inputs":[],"name":"MAX_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"banksy","outputs":[{"internalType":"contract BanksyTokenV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"banksyMaximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"banksyPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emmissionEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBanksy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accBanksyPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_banksyPerSecond","type":"uint256"}],"name":"setEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newstartTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260006007557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6009553480156200003a57600080fd5b50604051620040ce380380620040ce8339818101604052810190620000609190620002dd565b6200008062000074620001cc60201b60201c565b620001d460201b60201c565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620000fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000f1906200038c565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816002819055508060088190555050505050506200048d565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620002a9816200043f565b92915050565b600081519050620002c08162000459565b92915050565b600081519050620002d78162000473565b92915050565b600080600080600060a08688031215620002fc57620002fb62000411565b5b60006200030c88828901620002af565b95505060206200031f8882890162000298565b9450506040620003328882890162000298565b93505060606200034588828901620002c6565b92505060806200035888828901620002c6565b9150509295509295909350565b600062000374600883620003ae565b9150620003818262000416565b602082019050919050565b60006020820190508181036000830152620003a78162000365565b9050919050565b600082825260208201905092915050565b6000620003cc82620003e7565b9050919050565b6000620003e082620003bf565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b6200044a81620003bf565b81146200045657600080fd5b50565b6200046481620003d3565b81146200047057600080fd5b50565b6200047e8162000407565b81146200048a57600080fd5b50565b60805160601c613be3620004eb600039600081816105f901528181610b0a01528181610bc301528181610c7101528181610d3101528181610dbe01528181610e85015281816124700152818161252501526125d90152613be36000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a61161010457806393f1a40b116100a2578063d963842211610071578063d9638422146104ea578063dccd9cb114610506578063e2bbb15814610524578063f2fde38b14610540576101cf565b806393f1a40b1461044f578063a1bdb15e14610480578063c5f956af1461049c578063cbd258b5146104ba576101cf565b806384e82a33116100de57806384e82a33146103c95780638705fcd4146103e55780638da5cb5b146104015780638dbb1e3a1461041f576101cf565b8063715018a61461038357806378e979251461038d5780637ba124e4146103ab576101cf565b8063436cc3d6116101715780635312ea8e1161014b5780635312ea8e14610311578063630b5ba11461032d5780636605bfda146103375780636a9003a114610353576101cf565b8063436cc3d6146102bb578063441a3e70146102d957806351eb05a6146102f5576101cf565b806317caf6f1116101ad57806317caf6f1146102455780632134bd37146102635780633e0a322d14610281578063412753581461029d576101cf565b8063081e3eda146101d45780630dbd95d7146101f25780631526fe2714610210575b600080fd5b6101dc61055c565b6040516101e99190613411565b60405180910390f35b6101fa610569565b6040516102079190613411565b60405180910390f35b61022a60048036038101906102259190612c27565b610577565b60405161023c969594939291906131ae565b60405180910390f35b61024d6105f1565b60405161025a9190613411565b60405180910390f35b61026b6105f7565b6040516102789190613193565b60405180910390f35b61029b60048036038101906102969190612c27565b61061b565b005b6102a56107ae565b6040516102b291906130c6565b60405180910390f35b6102c36107d4565b6040516102d09190613411565b60405180910390f35b6102f360048036038101906102ee9190612d28565b6107e0565b005b61030f600480360381019061030a9190612c27565b610a5b565b005b61032b60048036038101906103269190612c27565b610fa7565b005b61033561116a565b005b610351600480360381019061034c9190612ba0565b61119d565b005b61036d60048036038101906103689190612c81565b611327565b60405161037a9190613411565b60405180910390f35b61038b611486565b005b61039561150e565b6040516103a29190613411565b60405180910390f35b6103b3611514565b6040516103c09190613411565b60405180910390f35b6103e360048036038101906103de9190612cc1565b61151a565b005b6103ff60048036038101906103fa9190612ba0565b6118e6565b005b610409611a70565b60405161041691906130c6565b60405180910390f35b61043960048036038101906104349190612d28565b611a99565b6040516104469190613411565b60405180910390f35b61046960048036038101906104649190612c81565b611ae2565b60405161047792919061342c565b60405180910390f35b61049a60048036038101906104959190612c27565b611b13565b005b6104a4611c14565b6040516104b191906130c6565b60405180910390f35b6104d460048036038101906104cf9190612bfa565b611c3a565b6040516104e19190613178565b60405180910390f35b61050460048036038101906104ff9190612d68565b611c5a565b005b61050e611e63565b60405161051b9190613411565b60405180910390f35b61053e60048036038101906105399190612d28565b611e69565b005b61055a60048036038101906105559190612ba0565b61236c565b005b6000600580549050905090565b69d3c21bcecceda100000081565b6005818154811061058757600080fd5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154905086565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000081565b610623612464565b73ffffffffffffffffffffffffffffffffffffffff16610641611a70565b73ffffffffffffffffffffffffffffffffffffffff1614610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068e90613351565b60405180910390fd5b60085442106106db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d290613311565b60405180910390fd5b80421061071d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610714906132b1565b60405180910390fd5b8060088190555060005b600580549050811015610771576008546005828154811061074b5761074a613738565b5b9060005260206000209060060201600201819055508061076a90613691565b9050610727565b507f167bc66a1e7706a2dd2b017a022351573c8ff6190f5ff3289c6b4a74726c23496008546040516107a39190613411565b60405180910390a150565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b670de0b6b3a764000081565b60026001541415610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d906133f1565b60405180910390fd5b600260018190555060006005838154811061084457610843613738565b5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156108ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e690613391565b60405180910390fd5b6108f884610a5b565b60008160010154670de0b6b3a76400008460030154846000015461091c919061350e565b61092691906134dd565b6109309190613568565b9050600081111561094657610945338261246c565b5b60008411156109cf5783826000015461095f9190613568565b82600001819055506109b633858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126cd9092919063ffffffff16565b8383600501546109c69190613568565b83600501819055505b670de0b6b3a7640000836003015483600001546109ec919061350e565b6109f691906134dd565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56886604051610a459190613411565b60405180910390a3505050600180819055505050565b600060058281548110610a7157610a70613738565b5b9060005260206000209060060201905080600201544211610a925750610fa4565b600081600501541480610aa9575060008160010154145b15610abd5742816002018190555050610fa4565b6000610acd826002015442611a99565b90506000600754836001015460025484610ae7919061350e565b610af1919061350e565b610afb91906134dd565b905069d3c21bcecceda10000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6e57600080fd5b505afa158015610b82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba69190612c54565b1115610bb55760009050610d26565b69d3c21bcecceda1000000817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2757600080fd5b505afa158015610c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5f9190612c54565b610c699190613487565b1115610d25577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cd557600080fd5b505afa158015610ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0d9190612c54565b69d3c21bcecceda1000000610d229190613568565b90505b5b6000811115610e78577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401610d8a929190613118565b600060405180830381600087803b158015610da457600080fd5b505af1158015610db8573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a84610e2891906134dd565b6040518363ffffffff1660e01b8152600401610e45929190613118565b600060405180830381600087803b158015610e5f57600080fd5b505af1158015610e73573d6000803e3d6000fd5b505050505b69d3c21bcecceda10000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee957600080fd5b505afa158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f219190612c54565b10158015610f5057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600954145b15610f5d57426009819055505b8260050154670de0b6b3a764000082610f76919061350e565b610f8091906134dd565b8360030154610f8f9190613487565b83600301819055504283600201819055505050505b50565b60026001541415610fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe4906133f1565b60405180910390fd5b600260018190555060006005828154811061100b5761100a613738565b5b9060005260206000209060060201905060006006600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008260000181905550600082600101819055506110db33828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126cd9092919063ffffffff16565b80836005015410611103578083600501546110f69190613568565b836005018190555061110e565b600083600501819055505b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516111559190613411565b60405180910390a35050506001808190555050565b6000600580549050905060005b818110156111995761118881610a5b565b8061119290613691565b9050611177565b5050565b6111a5612464565b73ffffffffffffffffffffffffffffffffffffffff166111c3611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611219576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121090613351565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611280906132d1565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f61885cdba916be748ff3e3f6f15e4206153b8ea3b7acabade9d04b4063a8351060405160405180910390a350565b6000806005848154811061133e5761133d613738565b5b9060005260206000209060060201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000826003015490508260020154421180156113c357506000836005015414155b80156113d157506000600754115b156114495760006113e6846002015442611a99565b90506000600754856001015460025484611400919061350e565b61140a919061350e565b61141491906134dd565b90508460050154670de0b6b3a76400008261142f919061350e565b61143991906134dd565b836114449190613487565b925050505b8160010154670de0b6b3a7640000828460000154611467919061350e565b61147191906134dd565b61147b9190613568565b935050505092915050565b61148e612464565b73ffffffffffffffffffffffffffffffffffffffff166114ac611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613351565b60405180910390fd5b61150c6000612753565b565b60085481565b60095481565b611522612464565b73ffffffffffffffffffffffffffffffffffffffff16611540611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d90613351565b60405180910390fd5b82600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161b906133b1565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161165d91906130c6565b60206040518083038186803b15801561167557600080fd5b505afa158015611689573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ad9190612c54565b506101918361ffff1611156116f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ee90613231565b60405180910390fd5b81156117065761170561116a565b5b600060085442116117195760085461171b565b425b90508560075461172b9190613487565b6007819055506001600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a08201518160050155505060016005805490506118a39190613568565b7faa6642278d4bbef86d8990c37355d5d4dfe365c194106bdf7a65162268606f078688876040516118d693929190613141565b60405180910390a2505050505050565b6118ee612464565b73ffffffffffffffffffffffffffffffffffffffff1661190c611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990613351565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c9906132d1565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600954831115611aae5760009050611adc565b600954821115611acd5782600954611ac69190613568565b9050611adc565b8282611ad99190613568565b90505b92915050565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b611b1b612464565b73ffffffffffffffffffffffffffffffffffffffff16611b39611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8690613351565b60405180910390fd5b60008111611b9c57600080fd5b670de0b6b3a76400008110611bb057600080fd5b611bb861116a565b806002819055503373ffffffffffffffffffffffffffffffffffffffff167f1d6d701a35096c20378cd75889e191ea7805a050284fffba3bc572d9d354644f60025483604051611c0992919061342c565b60405180910390a250565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a6020528060005260406000206000915054906101000a900460ff1681565b611c62612464565b73ffffffffffffffffffffffffffffffffffffffff16611c80611a70565b73ffffffffffffffffffffffffffffffffffffffff1614611cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccd90613351565b60405180910390fd5b6101918261ffff161115611d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d16906132f1565b60405180910390fd5b8015611d2e57611d2d61116a565b5b8260058581548110611d4357611d42613738565b5b906000526020600020906006020160010154600754611d629190613568565b611d6c9190613487565b6007819055508260058581548110611d8757611d86613738565b5b9060005260206000209060060201600101819055508160058581548110611db157611db0613738565b5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f39f0c3d078af018954b4fa56832a05a2b511afaa999b133ea3f1c487c21ed28760058681548110611e1257611e11613738565b5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168585604051611e5593929190613141565b60405180910390a250505050565b60025481565b60026001541415611eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea6906133f1565b60405180910390fd5b6002600181905550600060058381548110611ecd57611ecc613738565b5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611f3a84610a5b565b600081600001541115611f975760008160010154670de0b6b3a764000084600301548460000154611f6b919061350e565b611f7591906134dd565b611f7f9190613568565b90506000811115611f9557611f94338261246c565b5b505b60008311156122e15760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611fff91906130c6565b60206040518083038186803b15801561201757600080fd5b505afa15801561202b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204f9190612c54565b90506120a23330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612817909392919063ffffffff16565b808360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161210091906130c6565b60206040518083038186803b15801561211857600080fd5b505afa15801561212c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121509190612c54565b61215a9190613568565b93506000841161219f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219690613291565b60405180910390fd5b60008360040160009054906101000a900461ffff1661ffff1611156122ae5760006127108460040160009054906101000a900461ffff1661ffff16866121e5919061350e565b6121ef91906134dd565b9050612262600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126cd9092919063ffffffff16565b808584600001546122739190613487565b61227d9190613568565b8360000181905550808585600501546122969190613487565b6122a09190613568565b8460050181905550506122df565b8382600001546122be9190613487565b82600001819055508383600501546122d69190613487565b83600501819055505b505b670de0b6b3a7640000826003015482600001546122fe919061350e565b61230891906134dd565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516123579190613411565b60405180910390a35050600180819055505050565b612374612464565b73ffffffffffffffffffffffffffffffffffffffff16612392611a70565b73ffffffffffffffffffffffffffffffffffffffff16146123e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123df90613351565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f90613251565b60405180910390fd5b61246181612753565b50565b600033905090565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124c791906130c6565b60206040518083038186803b1580156124df57600080fd5b505afa1580156124f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125179190612c54565b90506000818311156125d7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b815260040161257e929190613118565b602060405180830381600087803b15801561259857600080fd5b505af11580156125ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d09190612bcd565b9050612687565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401612632929190613118565b602060405180830381600087803b15801561264c57600080fd5b505af1158015612660573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126849190612bcd565b90505b806126c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126be90613331565b60405180910390fd5b50505050565b61274e8363a9059cbb60e01b84846040516024016126ec929190613118565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128a0565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61289a846323b872dd60e01b858585604051602401612838939291906130e1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128a0565b50505050565b6000612902826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129679092919063ffffffff16565b905060008151111561296257808060200190518101906129229190612bcd565b612961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612958906133d1565b60405180910390fd5b5b505050565b6060612976848460008561297f565b90509392505050565b6060824710156129c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129bb90613271565b60405180910390fd5b6129cd85612a93565b612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0390613371565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a3591906130af565b60006040518083038185875af1925050503d8060008114612a72576040519150601f19603f3d011682016040523d82523d6000602084013e612a77565b606091505b5091509150612a87828286612aa6565b92505050949350505050565b600080823b905060008111915050919050565b60608315612ab657829050612b06565b600083511115612ac95782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afd919061320f565b60405180910390fd5b9392505050565b600081359050612b1c81613b3a565b92915050565b600081359050612b3181613b51565b92915050565b600081519050612b4681613b51565b92915050565b600081359050612b5b81613b68565b92915050565b600081359050612b7081613b7f565b92915050565b600081359050612b8581613b96565b92915050565b600081519050612b9a81613b96565b92915050565b600060208284031215612bb657612bb5613767565b5b6000612bc484828501612b0d565b91505092915050565b600060208284031215612be357612be2613767565b5b6000612bf184828501612b37565b91505092915050565b600060208284031215612c1057612c0f613767565b5b6000612c1e84828501612b4c565b91505092915050565b600060208284031215612c3d57612c3c613767565b5b6000612c4b84828501612b76565b91505092915050565b600060208284031215612c6a57612c69613767565b5b6000612c7884828501612b8b565b91505092915050565b60008060408385031215612c9857612c97613767565b5b6000612ca685828601612b76565b9250506020612cb785828601612b0d565b9150509250929050565b60008060008060808587031215612cdb57612cda613767565b5b6000612ce987828801612b76565b9450506020612cfa87828801612b4c565b9350506040612d0b87828801612b61565b9250506060612d1c87828801612b22565b91505092959194509250565b60008060408385031215612d3f57612d3e613767565b5b6000612d4d85828601612b76565b9250506020612d5e85828601612b76565b9150509250929050565b60008060008060808587031215612d8257612d81613767565b5b6000612d9087828801612b76565b9450506020612da187828801612b76565b9350506040612db287828801612b61565b9250506060612dc387828801612b22565b91505092959194509250565b612dd88161359c565b82525050565b612de7816135ae565b82525050565b6000612df882613455565b612e02818561346b565b9350612e1281856020860161365e565b80840191505092915050565b612e2781613604565b82525050565b612e3681613628565b82525050565b6000612e4782613460565b612e518185613476565b9350612e6181856020860161365e565b612e6a8161376c565b840191505092915050565b6000612e82602583613476565b9150612e8d8261377d565b604082019050919050565b6000612ea5602683613476565b9150612eb0826137cc565b604082019050919050565b6000612ec8602683613476565b9150612ed38261381b565b604082019050919050565b6000612eeb602183613476565b9150612ef68261386a565b604082019050919050565b6000612f0e602183613476565b9150612f19826138b9565b604082019050919050565b6000612f31600883613476565b9150612f3c82613908565b602082019050919050565b6000612f54602583613476565b9150612f5f82613931565b604082019050919050565b6000612f77603683613476565b9150612f8282613980565b604082019050919050565b6000612f9a602383613476565b9150612fa5826139cf565b604082019050919050565b6000612fbd602083613476565b9150612fc882613a1e565b602082019050919050565b6000612fe0601d83613476565b9150612feb82613a47565b602082019050919050565b6000613003601283613476565b915061300e82613a70565b602082019050919050565b6000613026601983613476565b915061303182613a99565b602082019050919050565b6000613049602a83613476565b915061305482613ac2565b604082019050919050565b600061306c601f83613476565b915061307782613b11565b602082019050919050565b61308b816135cc565b82525050565b61309a8161364c565b82525050565b6130a9816135fa565b82525050565b60006130bb8284612ded565b915081905092915050565b60006020820190506130db6000830184612dcf565b92915050565b60006060820190506130f66000830186612dcf565b6131036020830185612dcf565b61311060408301846130a0565b949350505050565b600060408201905061312d6000830185612dcf565b61313a60208301846130a0565b9392505050565b60006060820190506131566000830186612dcf565b61316360208301856130a0565b6131706040830184613091565b949350505050565b600060208201905061318d6000830184612dde565b92915050565b60006020820190506131a86000830184612e1e565b92915050565b600060c0820190506131c36000830189612e2d565b6131d060208301886130a0565b6131dd60408301876130a0565b6131ea60608301866130a0565b6131f76080830185613082565b61320460a08301846130a0565b979650505050505050565b600060208201905081810360008301526132298184612e3c565b905092915050565b6000602082019050818103600083015261324a81612e75565b9050919050565b6000602082019050818103600083015261326a81612e98565b9050919050565b6000602082019050818103600083015261328a81612ebb565b9050919050565b600060208201905081810360008301526132aa81612ede565b9050919050565b600060208201905081810360008301526132ca81612f01565b9050919050565b600060208201905081810360008301526132ea81612f24565b9050919050565b6000602082019050818103600083015261330a81612f47565b9050919050565b6000602082019050818103600083015261332a81612f6a565b9050919050565b6000602082019050818103600083015261334a81612f8d565b9050919050565b6000602082019050818103600083015261336a81612fb0565b9050919050565b6000602082019050818103600083015261338a81612fd3565b9050919050565b600060208201905081810360008301526133aa81612ff6565b9050919050565b600060208201905081810360008301526133ca81613019565b9050919050565b600060208201905081810360008301526133ea8161303c565b9050919050565b6000602082019050818103600083015261340a8161305f565b9050919050565b600060208201905061342660008301846130a0565b92915050565b600060408201905061344160008301856130a0565b61344e60208301846130a0565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000613492826135fa565b915061349d836135fa565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134d2576134d16136da565b5b828201905092915050565b60006134e8826135fa565b91506134f3836135fa565b92508261350357613502613709565b5b828204905092915050565b6000613519826135fa565b9150613524836135fa565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561355d5761355c6136da565b5b828202905092915050565b6000613573826135fa565b915061357e836135fa565b925082821015613591576135906136da565b5b828203905092915050565b60006135a7826135da565b9050919050565b60008115159050919050565b60006135c58261359c565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061360f82613616565b9050919050565b6000613621826135da565b9050919050565b60006136338261363a565b9050919050565b6000613645826135da565b9050919050565b6000613657826135cc565b9050919050565b60005b8381101561367c578082015181840152602081019050613661565b8381111561368b576000848401525b50505050565b600061369c826135fa565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136cf576136ce6136da565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f6164643a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f776520646f6e7420616363657074206465706f73697473206f6620302073697a60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74207365742073746172742074696d6520696e207468652070617360008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b7f7365743a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74206368616e67652073746172742074696d652069662073616c6560008201527f2068617320616c726561647920636f6d6d656e63656400000000000000000000602082015250565b7f7361666542616e6b73795472616e736665723a207472616e736665722066616960008201527f6c65640000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b613b438161359c565b8114613b4e57600080fd5b50565b613b5a816135ae565b8114613b6557600080fd5b50565b613b71816135ba565b8114613b7c57600080fd5b50565b613b88816135cc565b8114613b9357600080fd5b50565b613b9f816135fa565b8114613baa57600080fd5b5056fea26469706673582212204ca6aebac56fa6f396e4e6cd8f0b98eba495abb8214b79fabb948a3508abc78264736f6c6343000806003300000000000000000000000017230a02f23722f5e2afb0fb1f359d6905c7a678000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be8000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be80000000000000000000000000000000000000000000000000369fe0337e3ed600000000000000000000000000000000000000000000000000000000061dd9b70

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

00000000000000000000000017230a02f23722f5e2afb0fb1f359d6905c7a678000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be8000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be80000000000000000000000000000000000000000000000000369fe0337e3ed600000000000000000000000000000000000000000000000000000000061dd9b70

-----Decoded View---------------
Arg [0] : _banksy (address): 0x17230a02f23722f5e2afb0fb1f359d6905c7a678
Arg [1] : _feeAddress (address): 0xa94aa23f43e9f00ce154f3c1c7f971ecb5318be8
Arg [2] : _treasuryAddress (address): 0xa94aa23f43e9f00ce154f3c1c7f971ecb5318be8
Arg [3] : _banksyPerSecond (uint256): 246006944444444000
Arg [4] : _startTime (uint256): 1641913200

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000017230a02f23722f5e2afb0fb1f359d6905c7a678
Arg [1] : 000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be8
Arg [2] : 000000000000000000000000a94aa23f43e9f00ce154f3c1c7f971ecb5318be8
Arg [3] : 0000000000000000000000000000000000000000000000000369fe0337e3ed60
Arg [4] : 0000000000000000000000000000000000000000000000000000000061dd9b70


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.