Contract 0xf3ca45633b2b2c062282ab38de74ead2b76e8800

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbdd590fe0928da455b7db04d89df68127c46ed21eee4c831f5b646f50cdb27ceEmergency Withdr...109932772021-09-17 12:42:268 days 10 hrs ago0x158db9333e2eabc99367e2e86dd757877e32493b IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000198395
0x8796e2e79033f93c38486f62ac4f26a04383e0aa59d148791ea442efb929721fWithdraw107144172021-09-07 18:54:5018 days 4 hrs ago0x2f6814b61db032a76603db1d675b56976fb319dd IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00071619
0xe3ae0d5b9d4bcb78d431ce93c756e678b4065b13a6cfbdee41954f1dc0ef5d90Deposit107143522021-09-07 18:51:3518 days 4 hrs ago0x2f6814b61db032a76603db1d675b56976fb319dd IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000913335
0x42ecc7c601a24c5c0e0c26bc39b35b25bc2c928e76f71127d0c019ce3510c5f9Withdraw101501392021-08-18 23:47:1437 days 23 hrs ago0xcf85759fc13a1a45dda9954197fe3c66e33bf869 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000563545
0xabaf2feddfa9fcdb84e138bf2769b955ef24aadf1db79c2eb053e3f7dc0369e2Emergency Withdr...100006372021-08-13 18:40:5343 days 4 hrs ago0x92b9396bfcaaf0641bc11db47b3e8b8255cda0b9 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00019774
0x22984549415e4fced4f9f5aca1e9f9db488b529fbee6ce892d9025d635b30303Emergency Withdr...95145302021-07-27 6:10:3460 days 17 hrs ago0x7c1de4decfdff492131670373b7b6a89cdd8d304 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000202845
0x02808cf08547fbabfc3ea1b3c139cb901522b29d3fb03844bbb7c5284f6747c8Withdraw92198922021-07-16 23:20:3771 days 17 mins ago0x3d0432696347b24802951eb1d4f939fc60c51f55 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000563485
0xb3997883365f28e7abddae8dbaadc179c850b105de25f0999cdcadadb85f8713Withdraw92197602021-07-16 23:14:0171 days 24 mins ago0x3d0432696347b24802951eb1d4f939fc60c51f55 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000665935
0x17102105e8eaef8007df792759b4cb22260c150759da9b44f709f6bb17c8f13aDeposit92197232021-07-16 23:12:1071 days 26 mins ago0x3d0432696347b24802951eb1d4f939fc60c51f55 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00079947
0x20798aa8802dfb99892024df8230b71480c02e640b2b86aeea4b996831c7d8e2Emergency Withdr...91747312021-07-15 9:41:5372 days 13 hrs ago0x84eadf49d0e79f493a612cd439617931bf1211c9 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00022
0xf0b4e6fb6d732ce1b4496e0f2304cbef76bed9e3d431a3532187d753ec827b25Withdraw86174462021-06-25 23:16:4192 days 21 mins ago0xea9902073d4364c374121574ac267fc769aa1822 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000563545
0x028fd88b8bdf7e4dfeeecb6c9f1c98b7bc3e387541e52e2833bfbae2072b3028Deposit84048942021-06-18 13:20:4799 days 10 hrs ago0xc062a21dfef8f2f56df5ec73fe994c648de4d947 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00084396
0x1ffadf4727fd125ff9a90ea3697c80a7c49df1371b0718ff6a54109a2ebd3965Emergency Withdr...83771082021-06-17 14:00:15100 days 9 hrs ago0xf722976b5164f23ecf78212a07fa8e4bdc0cd9c3 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000202845
0xbff167a88479d6eccfef9abbb33fc993f03582f3b51dc734689d37443cbec30aEmergency Withdr...83768352021-06-17 13:46:36100 days 9 hrs ago0xf722976b5164f23ecf78212a07fa8e4bdc0cd9c3 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00019774
0x88d7c5d6d256f8974dfcad9546dd35eb7d3df428b93a4768720bf5496155fa05Emergency Withdr...83314462021-06-15 23:37:00102 days 1 min ago0xc9597d247bd73bde09d512eb287d629ffddbe159 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000198395
0xbd80ce9d39a409bc4f3eb99a7a042f2092da6b151b3df5b2f4e9370d11ef58a2Emergency Withdr...83314302021-06-15 23:36:12102 days 2 mins ago0xc9597d247bd73bde09d512eb287d629ffddbe159 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000202845
0x47c90167999cfb16f5e275df80a31e63da25af40592b0202e7087e592e0c5130Withdraw83272042021-06-15 20:03:40102 days 3 hrs ago0x506382918d9951c761212bad1c55496b19335f4a IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000409775
0xf414983afc5931ad55f3678026dddc5cde3cd58107c8c50f8cfccbee4cb0aebfDeposit83259612021-06-15 19:01:14102 days 4 hrs ago0xee58b3d5b481c42da650e9e9acd04fabf38caa5f IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.0008439
0xc696039568fcdf1984da358b78a39e380b356f69450d83a39db84b22a5886426Deposit83214402021-06-15 15:12:25102 days 8 hrs ago0x4448dab7eee7ac5ea8a4bb2db67c606e33d4ef6c IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00084396
0xa154019c491ccb60f7c952f92444987abdda7a43174f106f31021bbd80e3a846Deposit83208862021-06-15 14:44:25102 days 8 hrs ago0x138c1ebcc6733625522da65b72559f483938732d IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000849825
0x5b3eded1b219e0fe55c7f17485e2581ddc47b113e0adf77a3a0be40901cadbe0Deposit83184412021-06-15 12:40:15102 days 10 hrs ago0x7c1de4decfdff492131670373b7b6a89cdd8d304 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00084396
0xd93c1303ac991846f2bfc9f73d45a4911f58f14fcf3cba92d49c8602b3d33d81Deposit83181042021-06-15 12:21:35102 days 11 hrs ago0xf722976b5164f23ecf78212a07fa8e4bdc0cd9c3 IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.0008439
0x61e0c0e44f6203dc8c19684ef7b4d62f665d23b8a1cdc51c1c08793471d4ddb0Deposit83142942021-06-15 9:06:46102 days 14 hrs ago0x138c1ebcc6733625522da65b72559f483938732d IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00084396
0x5c5800803c98109a8fac48afe825ac57ffc27aee3eb6bf6637ad0ba60c94e3c0Deposit83142832021-06-15 9:06:13102 days 14 hrs ago0x138c1ebcc6733625522da65b72559f483938732d IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.00084396
0x39b854f91c69ea07ad3c3806184f228e18814e6b7cd17071140cfa6d62633bf7Deposit83142492021-06-15 9:04:31102 days 14 hrs ago0x138c1ebcc6733625522da65b72559f483938732d IN  0xf3ca45633b2b2c062282ab38de74ead2b76e88000 BNB0.000849825
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterUranium

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MasterUranium.sol
pragma solidity 0.6.12;

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

import "./UraniumBonusAggregator.sol";
import "./libs/UraniumBEP20.sol";

// MasterUranium is the master of RADS and sRADS.
// The Ownership of this contract is going to be transferred to a timelock
contract MasterUranium is Ownable, IMasterBonus {
    using SafeMath for uint256;
    using SafeBEP20 for UraniumBEP20;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 amountWithBonus;
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of RADSs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRadsPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRadsPerShare` (and `lastRewardBlock`) 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 {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 lpSupply;
        uint256 allocPoint;       // How many allocation points assigned to this pool. RADSs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that RADSs distribution occurs.
        uint256 accRadsPerShare; // Accumulated RADSs per share, times 1e12. See below.
        uint256 depositFeeBP;     // deposit Fee
        bool isSRadsRewards;
    }

    UraniumBonusAggregator public bonusAggregator;
    // The RADS TOKEN!
    UraniumBEP20 public rads;
    // The SRADS TOKEN!
    UraniumBEP20 public sRads;
    // Dev address.
    address public devaddr;
    // RADS tokens created per block.
    uint256 public radsPerBlock;
    // Deposit Fee address
    address public feeAddress;

    // 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 block number when RADS mining starts.
    uint256 public immutable startBlock;

    // Initial emission rate: 1 RADS per block.
    uint256 public immutable initialEmissionRate;
    // Minimum emission rate: 0.5 RADS per block.
    uint256 public minimumEmissionRate = 500 finney;
    // Reduce emission every 2,8800 blocks ~ 24 hours.
    uint256 public immutable emissionReductionPeriodBlocks = 28800;
    // Emission reduction rate per period in basis points: 3%.
    uint256 public immutable emissionReductionRatePerPeriod = 300;
    // Last reduction period index
    uint256 public lastReductionPeriodIndex = 0;

    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 EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);

    constructor(
        UraniumBEP20 _rads,
        UraniumBEP20 _srads,
        UraniumBonusAggregator _bonusAggregator,
        address _devaddr,
        address _feeAddress,
        uint256 _radsPerBlock,
        uint256 _startBlock
    ) public {
        rads = _rads;
        sRads = _srads;
        bonusAggregator = _bonusAggregator;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        radsPerBlock = _radsPerBlock;
        startBlock = _startBlock;
        initialEmissionRate = _radsPerBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _rads,
            lpSupply: 0,
            allocPoint: 800,
            lastRewardBlock: _startBlock,
            accRadsPerShare: 0,
            depositFeeBP: 0,
            isSRadsRewards: false
        }));
        totalAllocPoint = 800;
    }

    modifier validatePool(uint256 _pid) {
        require(_pid < poolInfo.length, "validatePool: pool exists?");
        _;
    }

    modifier onlyAggregator() {
        require(msg.sender == address(bonusAggregator), "Ownable: caller is not the owner");
        _;
    }

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

    function userBonus(uint256 _pid, address _user) public view returns (uint256){
        return bonusAggregator.getBonusOnFarmsForUser(_user, _pid);
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from);
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint256 _depositFeeBP, bool _isSRadsRewards, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 400, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            lpSupply: 0,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accRadsPerShare: 0,
            depositFeeBP : _depositFeeBP,
            isSRadsRewards: _isSRadsRewards
        }));
    }

    // Update the given pool's RADS allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint256 _depositFeeBP, bool _isSRadsRewards, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 400, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].isSRadsRewards = _isSRadsRewards;
        if (prevAllocPoint != _allocPoint) {
            totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(_allocPoint);
        }
    }

    // View function to see pending RADSs on frontend.
    function pendingRads(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRadsPerShare = pool.accRadsPerShare;
        uint256 lpSupply = pool.lpSupply;
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 radsReward = multiplier.mul(radsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRadsPerShare = accRadsPerShare.add(radsReward.mul(1e12).div(lpSupply));
        }
        uint256 userRewards = user.amountWithBonus.mul(accRadsPerShare).div(1e12).sub(user.rewardDebt);
        if(!pool.isSRadsRewards){
            // taking account of the 2% auto-burn
            userRewards = userRewards.mul(98).div(100);
        }
        return userRewards; // taking account of the 2% auto burn on rads
    }

    // Reduce emission rate based on configurations
    function updateEmissionRate() internal {
        if(startBlock > 0 && block.number <= startBlock){
            return;
        }
        if(radsPerBlock <= minimumEmissionRate){
            return;
        }

        uint256 currentIndex = block.number.sub(startBlock).div(emissionReductionPeriodBlocks);
        if (currentIndex <= lastReductionPeriodIndex) {
            return;
        }

        uint256 newEmissionRate = radsPerBlock;
        for (uint256 index = lastReductionPeriodIndex; index < currentIndex; ++index) {
            newEmissionRate = newEmissionRate.mul(1e4 - emissionReductionRatePerPeriod).div(1e4);
        }

        newEmissionRate = newEmissionRate < minimumEmissionRate ? minimumEmissionRate : newEmissionRate;
        if (newEmissionRate >= radsPerBlock) {
            return;
        }

        lastReductionPeriodIndex = currentIndex;
        uint256 previousEmissionRate = radsPerBlock;
        radsPerBlock = newEmissionRate;
        emit EmissionRateUpdated(msg.sender, previousEmissionRate, newEmissionRate);
    }

    // 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 validatePool(_pid) {
        updateEmissionRate();
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpSupply;
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 radsReward = multiplier.mul(radsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        uint256 devMintAmount = radsReward.div(10);
        rads.mint(devaddr, devMintAmount);
        if (pool.isSRadsRewards){
            sRads.mint(address(this), radsReward);
        }
        else{
            rads.mint(address(this), radsReward);
        }
        pool.accRadsPerShare = pool.accRadsPerShare.add(radsReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Allow UraniumBonusAggregator to add bonus on a single pool by id to a specific user
    function updateUserBonus(address _user, uint256 _pid, uint256 bonus) external virtual override validatePool(_pid) onlyAggregator{
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                if(pool.isSRadsRewards){
                    safeSRadsTransfer(_user, pending);
                }
                else{
                    safeRadsTransfer(_user, pending);
                }
            }
        }
        pool.lpSupply = pool.lpSupply.sub(user.amountWithBonus);
        user.amountWithBonus =  user.amount.mul(bonus.add(10000)).div(10000);
        pool.lpSupply = pool.lpSupply.add(user.amountWithBonus);
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
    }

    // Deposit LP tokens to MasterUranium for RADS allocation.
    function deposit(uint256 _pid, uint256 _amount) external validatePool(_pid) {
        address _user = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                if(pool.isSRadsRewards){
                    safeSRadsTransfer(_user, pending);
                }
                else{
                    safeRadsTransfer(_user, pending);
                }
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(_user), address(this), _amount);
            if (address(pool.lpToken) == address(rads)) {
                uint256 transferTax = _amount.mul(2).div(100);
                _amount = _amount.sub(transferTax);
            }
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
                uint256 _bonusAmount = _amount.sub(depositFee).mul(userBonus(_pid, _user).add(10000)).div(10000);
                user.amountWithBonus = user.amountWithBonus.add(_bonusAmount);
                pool.lpSupply = pool.lpSupply.add(_bonusAmount);
            } else {
                user.amount = user.amount.add(_amount);
                uint256 _bonusAmount = _amount.mul(userBonus(_pid, _user).add(10000)).div(10000);
                user.amountWithBonus = user.amountWithBonus.add(_bonusAmount);
                pool.lpSupply = pool.lpSupply.add(_bonusAmount);
            }
        }
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
        emit Deposit(_user, _pid, _amount);
    }

    // Withdraw LP tokens from MasterUranium.
    function withdraw(uint256 _pid, uint256 _amount) external validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);
        uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            if(pool.isSRadsRewards){
                safeSRadsTransfer(msg.sender, pending);
            }
            else{
                safeRadsTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            uint256 _bonusAmount = _amount.mul(userBonus(_pid, msg.sender).add(10000)).div(10000);
            user.amountWithBonus = user.amountWithBonus.sub(_bonusAmount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            pool.lpSupply = pool.lpSupply.sub(_bonusAmount);
        }
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

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

    function getPoolInfo(uint256 _pid) external view
    returns(address lpToken, uint256 allocPoint, uint256 lastRewardBlock,
            uint256 accRadsPerShare, uint256 depositFeeBP, bool isSRadsRewards) {
        return (
            address(poolInfo[_pid].lpToken),
            poolInfo[_pid].allocPoint,
            poolInfo[_pid].lastRewardBlock,
            poolInfo[_pid].accRadsPerShare,
            poolInfo[_pid].depositFeeBP,
            poolInfo[_pid].isSRadsRewards
        );
    }

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

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

    // Update dev address by the previous dev.
    function dev(address _devaddr) external {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function setFeeAddress(address _feeAddress) external onlyOwner {
        feeAddress = _feeAddress;
    }

    function updateMinimumEmissionRate(uint256 _minimumEmissionRate) external onlyOwner{
        require(minimumEmissionRate > _minimumEmissionRate, "must be lower");
        minimumEmissionRate = _minimumEmissionRate;
        if(radsPerBlock == minimumEmissionRate){
            lastReductionPeriodIndex = block.number.sub(startBlock).div(emissionReductionPeriodBlocks);
        }
    }

}

File 2 of 11 : UraniumBonusAggregator.sol
pragma solidity 0.6.12;

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

import "./interfaces/IMasterBonus.sol";
import "./interfaces/IBonusAggregator.sol";

/*
The purpose of this contract is to allow us adding bonus to user's reward by adding NFT contracts for example
without updating the masterChef
The owner of this contract will be transferred to a timelock
*/
contract UraniumBonusAggregator is Ownable, IBonusAggregator{
    using SafeMath for uint256;

    IMasterBonus master;

    // pid => address => bonus percent
    mapping(uint256 => mapping(address => uint256)) public userBonusOnFarms;

    mapping (address => bool) public contractBonusSource;

    /**
     * @dev Throws if called by any account other than the verified contracts.
     * Can be an NFT contract for example
     */
    modifier onlyVerifiedContract() {
        require(contractBonusSource[msg.sender], "caller is not in contract list");
        _;
    }
    
    function setupMaster(IMasterBonus _master) external onlyOwner{
        master = _master;
    }

    function addOrRemoveContractBonusSource(address _contract, bool _add) external onlyOwner{
        contractBonusSource[_contract] = _add;
    }

    function addUserBonusOnFarm(address _user, uint256 _percent, uint256 _pid) external onlyVerifiedContract{
        userBonusOnFarms[_pid][_user] = userBonusOnFarms[_pid][_user].add(_percent);
        require(userBonusOnFarms[_pid][_user] < 10000, "Invalid percent");
        master.updateUserBonus(_user, _pid, userBonusOnFarms[_pid][_user]);
    }

    function removeUserBonusOnFarm(address _user, uint256 _percent, uint256 _pid) external onlyVerifiedContract{
        userBonusOnFarms[_pid][_user] = userBonusOnFarms[_pid][_user].sub(_percent);
        master.updateUserBonus(_user, _pid, userBonusOnFarms[_pid][_user]);
    }

    function getBonusOnFarmsForUser(address _user, uint256 _pid) external virtual override view returns (uint256){
        return userBonusOnFarms[_pid][_user];
    }

}

File 3 of 11 : IBonusAggregator.sol
pragma solidity 0.6.12;

interface IBonusAggregator {
    function getBonusOnFarmsForUser(address _user, uint256 _pid) external view returns (uint256);
}

File 4 of 11 : IMasterBonus.sol
pragma solidity 0.6.12;

interface IMasterBonus {
    function updateUserBonus(address _user, uint256 _pid, uint256 bonus) external;
}

File 5 of 11 : UraniumBEP20.sol
pragma solidity 0.6.12;

import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol";
import "@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol";
import "@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol";

/*
 * @dev Implementation of the {IBEP20} interface.
 * This implementation is a copy of @pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol
 * with a burn supply management.
 */
contract UraniumBEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;
    uint256 private _burnSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function burnSupply() public view returns (uint256) {
        return _burnSupply;
    }

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance")
        );
        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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 {BEP20-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 returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")
        );
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function mint(address _to, uint256 _amount) external virtual onlyOwner{
        _mint(_to, _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
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "BEP20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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 {
        require(account != BURN_ADDRESS, "BEP20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        _burnSupply = _burnSupply.add(amount);
        emit Transfer(account, BURN_ADDRESS, amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 {
        require(owner != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller"s allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance")
        );
    }
}

File 6 of 11 : Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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

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

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

File 7 of 11 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity >=0.4.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

File 9 of 11 : IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract UraniumBEP20","name":"_rads","type":"address"},{"internalType":"contract UraniumBEP20","name":"_srads","type":"address"},{"internalType":"contract UraniumBonusAggregator","name":"_bonusAggregator","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_radsPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","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":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","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":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_depositFeeBP","type":"uint256"},{"internalType":"bool","name":"_isSRadsRewards","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusAggregator","outputs":[{"internalType":"contract UraniumBonusAggregator","name":"","type":"address"}],"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":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionReductionPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionReductionRatePerPeriod","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":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"getPoolInfo","outputs":[{"internalType":"address","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRadsPerShare","type":"uint256"},{"internalType":"uint256","name":"depositFeeBP","type":"uint256"},{"internalType":"bool","name":"isSRadsRewards","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastReductionPeriodIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minimumEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pendingRads","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"lpSupply","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRadsPerShare","type":"uint256"},{"internalType":"uint256","name":"depositFeeBP","type":"uint256"},{"internalType":"bool","name":"isSRadsRewards","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rads","outputs":[{"internalType":"contract UraniumBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"radsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sRads","outputs":[{"internalType":"contract UraniumBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_depositFeeBP","type":"uint256"},{"internalType":"bool","name":"_isSRadsRewards","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","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":[{"internalType":"uint256","name":"_minimumEmissionRate","type":"uint256"}],"name":"updateMinimumEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"}],"name":"updateUserBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"userBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"amountWithBonus","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"}]

610100604052600060098190556706f05b59d3b20000600a5561708060c05261012c60e052600b553480156200003457600080fd5b506040516200335e3803806200335e833981810160405260e08110156200005a57600080fd5b508051602082015160408301516060840151608085015160a086015160c0909601519495939492939192909190600062000093620002c7565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b03199081166001600160a01b03998a16908117909255600380548216988a169890981790975560018054881696891696909617865560048054881695891695909517909455600680548716938816939093179092556005819055608082815260a09182526040805160e0810182529485526000602086018181526103209287018381526060880196875293870182815294870182815260c08801838152600780549a8b0181559384905297517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688999093029889018054909a1692909a169190911790975595517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a85015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b840155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68c83015592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68d82015591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68e909201805460ff191692151592909217909155600955620002cb565b3390565b60805160a05160c05160e0516130306200032e600039806108ee52806128a3525080611ffa52806120e6528061282e52508061092e525080610bce52806118205280611847528061201f52806127c152806127ea528061285352506130306000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063715018a61161012a578063bd25adb4116100bd578063e2bbb1581161008c578063ef0e492511610071578063ef0e492514610658578063f2fde38b14610675578063fb9788cb146106a857610226565b8063e2bbb1581461062d578063e401f4391461065057610226565b8063bd25adb414610595578063c60dc8e0146105e4578063d49e77cd146105ec578063e016f71c146105f457610226565b80638da5cb5b116100f95780638da5cb5b146104d45780638dbb1e3a146104dc57806393f1a40b146104ff57806395575eef1461055657610226565b8063715018a61461042d5780638705fcd414610435578063887b4818146104685780638d88a90e146104a157610226565b806341275358116101bd57806351645e281161018c5780635312ea8e116101715780635312ea8e14610400578063630b5ba11461041d5780636a9a76601461042557610226565b806351645e28146103db57806351eb05a6146103e357610226565b8063412753581461039e57806341b1cf15146103a6578063441a3e70146103ae57806348cd4cb1146103d357610226565b806317caf6f1116101f957806317caf6f1146102f45780632f380b35146102fc5780633249af49146103655780633ea69dd71461039657610226565b8063081e3eda1461022b5780630a130c72146102455780631202dfea1461027e5780631526fe2714610286575b600080fd5b6102336106b0565b60408051918252519081900360200190f35b6102336004803603604081101561025b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166106b6565b610233610769565b6102a36004803603602081101561029c57600080fd5b503561076f565b6040805173ffffffffffffffffffffffffffffffffffffffff90981688526020880196909652868601949094526060860192909252608085015260a0840152151560c0830152519081900360e00190f35b6102336107d5565b6103196004803603602081101561031257600080fd5b50356107db565b6040805173ffffffffffffffffffffffffffffffffffffffff909716875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b61036d6108d0565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102336108ec565b61036d610910565b61023361092c565b6103d1600480360360408110156103c457600080fd5b5080359060200135610950565b005b610233610bcc565b61036d610bf0565b6103d1600480360360208110156103f957600080fd5b5035610c0c565b6103d16004803603602081101561041657600080fd5b5035610f22565b6103d1610fed565b61023361100c565b6103d1611012565b6103d16004803603602081101561044b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611112565b6103d1600480360360a081101561047e57600080fd5b5080359060208101359060408101359060608101351515906080013515156111ea565b6103d1600480360360208110156104b757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113c7565b61036d611494565b610233600480360360408110156104f257600080fd5b50803590602001356114b0565b6105386004803603604081101561051557600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166114c3565b60408051938452602084019290925282820152519081900360600190f35b6103d16004803603606081101561056c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602081013590604001356114ef565b6103d1600480360360a08110156105ab57600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff602082013516906040810135906060810135151590608001351515611722565b61036d611a4a565b61036d611a66565b6102336004803603604081101561060a57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611a82565b6103d16004803603604081101561064357600080fd5b5080359060200135611ba7565b610233611edf565b6103d16004803603602081101561066e57600080fd5b5035611ee5565b6103d16004803603602081101561068b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661204a565b6102336120e4565b60075490565b600154604080517fd76d724e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018690529151600093929092169163d76d724e91604480820192602092909190829003018186803b15801561073457600080fd5b505afa158015610748573d6000803e3d6000fd5b505050506040513d602081101561075e57600080fd5b505190505b92915050565b60055481565b6007818154811061077c57fe5b6000918252602090912060079091020180546001820154600283015460038401546004850154600586015460069096015473ffffffffffffffffffffffffffffffffffffffff9095169650929491939092919060ff1687565b60095481565b600080600080600080600787815481106107f157fe5b6000918252602090912060079182020154815473ffffffffffffffffffffffffffffffffffffffff90911691908990811061082857fe5b9060005260206000209060070201600201546007898154811061084757fe5b90600052602060002090600702016003015460078a8154811061086657fe5b90600052602060002090600702016004015460078b8154811061088557fe5b90600052602060002090600702016005015460078c815481106108a457fe5b6000918252602090912060079091020160060154949c939b509199509750955060ff9091169350915050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600754829081106109c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b6000600784815481106109d157fe5b600091825260208083208784526008825260408085203386529092529220805460079092029092019250841115610a6957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610a7285610c0c565b6000610aac8260020154610aa664e8d4a51000610aa08760040154876001015461210890919063ffffffff16565b9061217b565b906121bd565b90508015610ada57600683015460ff1615610ad057610acb33826121ff565b610ada565b610ada338261245e565b8415610b64578154610aec90866121bd565b82556000610b14612710610aa0610b0d82610b078c336106b6565b906126b7565b8990612108565b6001840154909150610b2690826121bd565b60018401558354610b4e9073ffffffffffffffffffffffffffffffffffffffff16338861272b565b6001840154610b5d90826121bd565b6001850155505b610b8864e8d4a51000610aa08560040154856001015461210890919063ffffffff16565b6002830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60075481908110610c7e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b610c866127bd565b600060078381548110610c9557fe5b9060005260206000209060070201905080600301544311610cb65750610f1e565b600181015480610ccd575043600390910155610f1e565b6000610cdd8360030154436114b0565b90506000610d0a600954610aa08660020154610d046005548761210890919063ffffffff16565b90612108565b90506000610d1982600a61217b565b60025460048054604080517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316938101939093526024830185905251939450909116916340c10f199160448082019260009290919082900301818387803b158015610d9c57600080fd5b505af1158015610db0573d6000803e3d6000fd5b50505050600685015460ff1615610e5757600354604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff909216916340c10f199160448082019260009290919082900301818387803b158015610e3a57600080fd5b505af1158015610e4e573d6000803e3d6000fd5b50505050610ee9565b600254604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff909216916340c10f199160448082019260009290919082900301818387803b158015610ed057600080fd5b505af1158015610ee4573d6000803e3d6000fd5b505050505b610f0a610eff85610aa08564e8d4a51000612108565b6004870154906126b7565b600486015550504360039093019290925550505b5050565b600060078281548110610f3157fe5b600091825260208083208584526008825260408085203386529092529220805460018083015460079094029094019384015493945090929091610f7491906121bd565b600180850191909155600080845560028401819055908301558254610fb09073ffffffffffffffffffffffffffffffffffffffff16338361272b565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60075460005b81811015610f1e5761100481610c0c565b600101610ff3565b600b5481565b61101a612946565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146110a357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b61111a612946565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146111a357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6111f2612946565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461127b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6101908311156112d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612fd66025913960400191505060405180910390fd5b80156112e4576112e4610fed565b6000600786815481106112f357fe5b9060005260206000209060070201600201549050846007878154811061131557fe5b906000526020600020906007020160020181905550836007878154811061133857fe5b906000526020600020906007020160050181905550826007878154811061135b57fe5b6000918252602090912060079091020160060180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558481146113bf576113bb85610b07836009546121bd90919063ffffffff16565b6009555b505050505050565b60045473ffffffffffffffffffffffffffffffffffffffff16331461144d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6465763a207775743f0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60006114bc82846121bd565b9392505050565b600860209081526000928352604080842090915290825290208054600182015460029092015490919083565b6007548290811061156157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b60015473ffffffffffffffffffffffffffffffffffffffff1633146115e757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000600784815481106115f657fe5b6000918252602080832087845260088252604080852073ffffffffffffffffffffffffffffffffffffffff8b16865290925292206007909102909101915061163d85610c0c565b8054156116a25760006116728260020154610aa664e8d4a51000610aa08760040154876001015461210890919063ffffffff16565b905080156116a057600683015460ff16156116965761169187826121ff565b6116a0565b6116a0878261245e565b505b600180820154908301546116b5916121bd565b60018301556116d5612710610aa06116cd87836126b7565b845490612108565b60018083018290558301546116e9916126b7565b826001018190555061171564e8d4a51000610aa08460040154846001015461210890919063ffffffff16565b6002909101555050505050565b61172a612946565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146117b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61019083111561180e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612efd6025913960400191505060405180910390fd5b801561181c5761181c610fed565b60007f0000000000000000000000000000000000000000000000000000000000000000431161186b577f000000000000000000000000000000000000000000000000000000000000000061186d565b435b60095490915061187d90876126b7565b6009556040805160e08101825273ffffffffffffffffffffffffffffffffffffffff9687168152600060208201818152928201988952606082019384526080820181815260a0830197885295151560c08301908152600780546001810182559281905292517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889290930291820180547fffffffffffffffffffffffff000000000000000000000000000000000000000016939099169290921790975590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68987015595517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b85015550517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68c830155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68d82015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68e90910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b60008060078481548110611a9257fe5b6000918252602080832087845260088252604080852073ffffffffffffffffffffffffffffffffffffffff891686529092529220600460079092029092019081015460018201546003830154929450909143118015611af057508015155b15611b50576000611b058560030154436114b0565b90506000611b2c600954610aa08860020154610d046005548761210890919063ffffffff16565b9050611b4b611b4484610aa08464e8d4a51000612108565b85906126b7565b935050505b6000611b7a8460020154610aa664e8d4a51000610aa087896001015461210890919063ffffffff16565b600686015490915060ff16611b9c57611b996064610aa0836062612108565b90505b979650505050505050565b60075482908110611c1957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b6000339050600060078581548110611c2d57fe5b6000918252602080832088845260088252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252922060079091029091019150611c7486610c0c565b805415611cd9576000611ca98260020154610aa664e8d4a51000610aa08760040154876001015461210890919063ffffffff16565b90508015611cd757600683015460ff1615611ccd57611cc884826121ff565b611cd7565b611cd7848261245e565b505b8415611e61578154611d039073ffffffffffffffffffffffffffffffffffffffff1684308861294a565b600254825473ffffffffffffffffffffffffffffffffffffffff90811691161415611d4a576000611d3a6064610aa0886002612108565b9050611d4686826121bd565b9550505b600582015415611e0b576000611d73612710610aa085600501548961210890919063ffffffff16565b6006548454919250611d9f9173ffffffffffffffffffffffffffffffffffffffff90811691168361272b565b8154611db1908290610aa690896126b7565b82556000611dd6612710610aa0611dcc82610b078d8b6106b6565b610d048b876121bd565b6001840154909150611de890826126b7565b600180850191909155840154611dfe90826126b7565b600185015550611e619050565b8054611e1790866126b7565b81556000611e32612710610aa0610b0d82610b078c8a6106b6565b6001830154909150611e4490826126b7565b600180840191909155830154611e5a90826126b7565b6001840155505b611e8564e8d4a51000610aa08460040154846001015461210890919063ffffffff16565b6002820155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050505050565b600a5481565b611eed612946565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611f7657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b80600a5411611fe657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d757374206265206c6f77657200000000000000000000000000000000000000604482015290519081900360640190fd5b600a819055600554811415612047576120437f0000000000000000000000000000000000000000000000000000000000000000610aa0437f00000000000000000000000000000000000000000000000000000000000000006121bd565b600b555b50565b612052612946565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146120db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b612047816129df565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008261211757506000610763565b8282028284828161212457fe5b04146114bc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612fb56021913960400191505060405180910390fd5b60006114bc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ad8565b60006114bc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b94565b600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561227057600080fd5b505afa158015612284573d6000803e3d6000fd5b505050506040513d602081101561229a57600080fd5b5051905060008183111561235757600354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561232457600080fd5b505af1158015612338573d6000803e3d6000fd5b505050506040513d602081101561234e57600080fd5b50519050612402565b600354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156123d357600080fd5b505af11580156123e7573d6000803e3d6000fd5b505050506040513d60208110156123fd57600080fd5b505190505b80612458576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612f936022913960400191505060405180910390fd5b50505050565b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156124cf57600080fd5b505afa1580156124e3573d6000803e3d6000fd5b505050506040513d60208110156124f957600080fd5b505190506000818311156125b657600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561258357600080fd5b505af1158015612597573d6000803e3d6000fd5b505050506040513d60208110156125ad57600080fd5b50519050612661565b600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561263257600080fd5b505af1158015612646573d6000803e3d6000fd5b505050506040513d602081101561265c57600080fd5b505190505b80612458576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f726021913960400191505060405180910390fd5b6000828201838110156114bc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526127b8908490612c08565b505050565b60007f000000000000000000000000000000000000000000000000000000000000000011801561280d57507f00000000000000000000000000000000000000000000000000000000000000004311155b1561281757612944565b600a546005541161282757612944565b60006128777f0000000000000000000000000000000000000000000000000000000000000000610aa0437f00000000000000000000000000000000000000000000000000000000000000006121bd565b9050600b5481116128885750612944565b600554600b545b828110156128d3576128c9612710610aa0847f00000000000000000000000000000000000000000000000000000000000000008303612108565b915060010161288f565b50600a5481106128e357806128e7565b600a545b905060055481106128f9575050612944565b600b82905560058054908290556040805182815260208101849052815133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511928290030190a25050505b565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052612458908590612c08565b73ffffffffffffffffffffffffffffffffffffffff8116612a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612f4c6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183612b7e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b43578181015183820152602001612b2b565b50505050905090810190601f168015612b705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612b8a57fe5b0495945050505050565b60008184841115612c00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612b43578181015183820152602001612b2b565b505050900390565b6060612c6a826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612ce09092919063ffffffff16565b8051909150156127b857808060200190516020811015612c8957600080fd5b50516127b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612f22602a913960400191505060405180910390fd5b6060612cef8484600085612cf7565b949350505050565b6060612d0285612ec3565b612d6d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612dd757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612d9a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e39576040519150601f19603f3d011682016040523d82523d6000602084013e612e3e565b606091505b50915091508115612e52579150612cef9050565b805115612e625780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315612b43578181015183820152602001612b2b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612cef57505015159291505056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737373616665526164735472616e736665723a205472616e73666572206661696c65647361666553526164735472616e736665723a205472616e73666572206661696c6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e7473a2646970667358221220f3c553266ff03fc8d33809c1c0eba5ba904a68780a782abde06290540d92956a64736f6c634300060c0033000000000000000000000000670de9f45561a2d02f283248f65cbd26ead861c800000000000000000000000028d2e3bb1ec54a6ee8b3bee612f03a85d3ec0c0c0000000000000000000000000df317718abcf175e3d945d16ac1f42866057a03000000000000000000000000659aab4b03053fe60002778efe104562a390976200000000000000000000000050644f5a0a39dcd083641ffa310db2609e03b32e0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000065170a

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

000000000000000000000000670de9f45561a2d02f283248f65cbd26ead861c800000000000000000000000028d2e3bb1ec54a6ee8b3bee612f03a85d3ec0c0c0000000000000000000000000df317718abcf175e3d945d16ac1f42866057a03000000000000000000000000659aab4b03053fe60002778efe104562a390976200000000000000000000000050644f5a0a39dcd083641ffa310db2609e03b32e0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000065170a

-----Decoded View---------------
Arg [0] : _rads (address): 0x670de9f45561a2d02f283248f65cbd26ead861c8
Arg [1] : _srads (address): 0x28d2e3bb1ec54a6ee8b3bee612f03a85d3ec0c0c
Arg [2] : _bonusAggregator (address): 0x0df317718abcf175e3d945d16ac1f42866057a03
Arg [3] : _devaddr (address): 0x659aab4b03053fe60002778efe104562a3909762
Arg [4] : _feeAddress (address): 0x50644f5a0a39dcd083641ffa310db2609e03b32e
Arg [5] : _radsPerBlock (uint256): 1000000000000000000
Arg [6] : _startBlock (uint256): 6625034

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000670de9f45561a2d02f283248f65cbd26ead861c8
Arg [1] : 00000000000000000000000028d2e3bb1ec54a6ee8b3bee612f03a85d3ec0c0c
Arg [2] : 0000000000000000000000000df317718abcf175e3d945d16ac1f42866057a03
Arg [3] : 000000000000000000000000659aab4b03053fe60002778efe104562a3909762
Arg [4] : 00000000000000000000000050644f5a0a39dcd083641ffa310db2609e03b32e
Arg [5] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [6] : 000000000000000000000000000000000000000000000000000000000065170a


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.