JAWA CAMP V2 vs BeeNBee

作成日 差分は期限切れになりません
36 削除
391 行
107 追加
464 行
/**
/**
*Submitted for verification at BscScan.com on 2022-11-14
*Submitted for verification at BscScan.com on 2022-09-26
*/
*/


// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT


// _____ _ _____ _________ __ _______ _ _____
// ██████ ███████ ███████ ███ ██ ██████ ███████ ███████
// / / | | / / | / ____/ | / |/ / __ \ | | / /__ \
// ██ ██ ██ ██ ████ ██ ██ ██ ██ ██
// __ / / /| | | /| / / /| | / / / /| | / /|_/ / /_/ / | | / /__/ /
// ██████ █████ █████ ██ ██ ██ ██████ █████ █████
// / /_/ / ___ | |/ |/ / ___ | / /___/ ___ |/ / / / ____/ | |/ // __/
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
// \____/_/ |_|__/|__/_/ |_| \____/_/ |_/_/ /_/_/ |___//____/
// ██████ ███████ ███████ ██ ████ ██████ ███████ ███████
/**
/**
JAWA CAMP V2 (Play-2-Earn) (Fair Fork by Satolas & Terix) A highly improved & sustainable compounding miner game.
BUSD Bee'n'Bee
Hire Jawas, Mine Gold and Sell for BUSD.
Build Hives, Gather Honey, Harvest Honey and Sell for BUSD.
Up to 8% daily Rate
8% daily Rate
2% Referral Bonus, will go directly to referrer's wallet.
8% Referral Bonus, will go directly to referrer wallet.
2% stacking compound bonus every 12 hrs, max of 5 days. (25%)
2% stacking compound bonus every 12 hrs, max of 5 days. (25%)
48 hours cut-off time.
48 hours cut off time.
Withdrawals will reset the daily compound count back to 0.
10 BUSD minimum investment.
Tax will stay in the contract.
10,000 BUSD max deposits per wallet.
80% feedback for withdrawals that will be done not after 10 consecutive compounds.
Withdrawals will reset daily compound count back to 0.
*Tax will stay in the contract.
*/
*/


pragma solidity 0.8.9;
pragma solidity 0.8.9;


interface IToken {
interface IToken {
function totalSupply() external view returns (uint256);
function totalSupply() external view returns (uint256);


function balanceOf(address account) external view returns (uint256);
function balanceOf(address account) external view returns (uint256);


function transfer(address recipient, uint256 amount)
function transfer(address recipient, uint256 amount)
external
external
returns (bool);
returns (bool);


function allowance(address owner, address spender)
function allowance(address owner, address spender)
external
external
view
view
returns (uint256);
returns (uint256);


function approve(address spender, uint256 amount) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);


function transferFrom(
function transferFrom(
address sender,
address sender,
address recipient,
address recipient,
uint256 amount
uint256 amount
) external returns (bool);
) external returns (bool);


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


library SafeMath {
library SafeMath {


function mul(uint256 a, uint256 b) internal pure returns (uint256) {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
if (a == 0) {
return 0;
return 0;
}
}
uint256 c = a * b;
uint256 c = a * b;
assert(c / a == b);
assert(c / a == b);
return c;
return c;
}
}




function div(uint256 a, uint256 b) internal pure returns (uint256) {
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
uint256 c = a / b;
return c;
return c;
}
}


function sub(uint256 a, uint256 b) internal pure returns (uint256) {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
assert(b <= a);
return a - b;
return a - b;
}
}


function add(uint256 a, uint256 b) internal pure returns (uint256) {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
uint256 c = a + b;
assert(c >= a);
assert(c >= a);
return c;
return c;
}
}


function mod(uint256 a, uint256 b) internal pure returns (uint256) {
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
require(b != 0);
return a % b;
return a % b;
}
}
}
}


contract JawaCampV2 {
contract BeeNBee {
using SafeMath for uint256;
using SafeMath for uint256;


IToken public token_BUSD;
IToken public token_BUSD;


uint256 public HONEY_TO_BUILD_A_HIVE = 1080000;
uint256 public HONEY_TO_BUILD_A_HIVE = 1080000;
uint256 public PERCENT_DIVISOR = 1000;
uint256 public PERCENT_DIVISOR = 1000;
uint256 public REFERRAL_REWARD_PERCENT = 20; // 2%
uint256 public REFERRAL_REWARD_PERCENT = 80; // 8%
uint256 public TAX = 50; // 5%
uint256 public TAX = 50; // 5%
uint256 public MARKET_HONEY_DIVISOR = 2; // 50%
uint256 public MARKET_HONEY_DIVISOR = 2; // 50%
uint256 public MARKET_HONEY_DIVISOR_SELL = 1; // 100%
uint256 public MARKET_HONEY_DIVISOR_SELL = 1; // 100%


uint256 public MIN_DEPOSIT = 10 ether; /** 10 BUSD **/
uint256 public MIN_DEPOSIT = 10 ether; /** 10 BUSD **/
uint256 public MAX_DEPOSIT = 10000 ether; /** 10000 BUSD **/
uint256 public MAX_DEPOSIT = 10000 ether; /** 10000 BUSD **/


uint256 public COMPOUND_BONUS_PERCENT = 25; /** 2.5% **/
uint256 public COMPOUND_BONUS_PERCENT = 25; /** 2.5% **/
uint256 public COMPOUND_BONUS_MAX_TIMES = 10; /** 10 times / 5 days. **/
uint256 public COMPOUND_BONUS_MAX_TIMES = 10; /** 10 times / 5 days. **/
uint256 public COMPOUND_INTERVAL = 12 * 60 * 60; /** every 12 hours. **/
uint256 public COMPOUND_INTERVAL = 12 * 60 * 60; /** every 12 hours. **/


uint256 public PENALTY_TAX = 800;
uint256 public PENALTY_TAX = 800;
uint256 public COMPOUNDS_FOR_NO_PENALTY = 10; // compound days, for no tax withdrawal.
uint256 public COMPOUNDS_FOR_NO_PENALTY = 10; // compound days, for no tax withdrawal.