Contract 0xC47162863a12227E5c3B0860715F9cF721651C0c

 
 
Txn Hash
Method
Block
From
To
Value
0x879d4ef6bf519dd58f9392dfdbac228b45a611c6ab243dcf364a80f2ba7885abGet Reward159018302022-11-05 5:49:1185 days 16 hrs ago0x0039e762ecd8e8f074e93575dc395abfce4ef8b6 IN  Aura: Initial auraBAL Staking0 Ether0.0020847 13.21204191
0x4b17f6ec5002c9909bc7a68ba9059175988a07e6de0e6458861120427e31f621Withdraw159018152022-11-05 5:46:1185 days 16 hrs ago0x0039e762ecd8e8f074e93575dc395abfce4ef8b6 IN  Aura: Initial auraBAL Staking0 Ether0.00125972 12.25772059
0xbcd78d24cbdb3fbac0022e2db7a51abd9fa96db5eda8f46a9381ff9d8390866bGet Reward158503812022-10-29 1:16:2392 days 21 hrs ago0x3a983ffaa79e2d12ef94b50f68346a4b9c653a9a IN  Aura: Initial auraBAL Staking0 Ether0.00069945 10.78669531
0xce35f1b1ee92c089a5bfeda7d134af72e9f5b870a5d462640c1b74b88b2626f0Withdraw158503262022-10-29 1:05:1192 days 21 hrs ago0x3a983ffaa79e2d12ef94b50f68346a4b9c653a9a IN  Aura: Initial auraBAL Staking0 Ether0.00095492 9.29189615
0x3e55268de3de20243ac310f2a314c75eafa1e529a1e62f6387c51fdaed122c17Get Reward156734902022-10-04 8:09:35117 days 14 hrs ago0x03fe6b597fc954a81a88cfea3d448de8a0c03dc2 IN  Aura: Initial auraBAL Staking0 Ether0.00226374 10.95637711
0xd6cac5721635b9c121534921951f23528e1fb7b96e90c5a2d1886f35e9a911d2Withdraw156676992022-10-03 12:42:59118 days 9 hrs ago0x03fe6b597fc954a81a88cfea3d448de8a0c03dc2 IN  Aura: Initial auraBAL Staking0 Ether0.00119024 11.58302063
0xb99390b7e835a278d757b1656d39f5950e682d813b49de27bb5c6a442fdcd5faGet Reward156386642022-09-29 11:20:11122 days 11 hrs ago0x59d2e0a2be0db463c36038a5fd2535f58ab3b38f IN  Aura: Initial auraBAL Staking0 Ether0.00183848 8.89818609
0x037d42a6eed9a6c718494f2fc85ac5e94665ce00d84f73e45cd78b63d2adfdefWithdraw155629722022-09-18 21:01:11133 days 1 hr ago0x385bae68690c1b86e2f1ad75253d080c14fa6e16 IN  Aura: Initial auraBAL Staking0 Ether0.00060012 5.8395068
0xed9a447441c7d1b881a54895e30e686a7ebcfe962078709ff132a4a19e4be052Withdraw154844792022-09-06 13:55:39145 days 8 hrs ago0xb2043afec208f170f6fb8a88284330c879105ff7 IN  Aura: Initial auraBAL Staking0 Ether0.00075677 9.4513785
0xb4deb9e27a87fd00189e483b6b27cd835d858aa181afd0ffc9d099d7705aa55cGet Reward154420392022-08-30 18:57:48152 days 3 hrs ago0xa637cb0292f7c40c677f69b5b202c4e7b362be14 IN  Aura: Initial auraBAL Staking0 Ether0.00392264 16.71898258
0x5a13c4c66a84994eb25e22359c7980800272b2a3dab46a730270dfe44faa6824Get Reward154166542022-08-26 17:23:31156 days 5 hrs agoENS Name caerdydd.eth IN  Aura: Initial auraBAL Staking0 Ether0.00306731 12.30538343
0xa11772541336faebf3f22d96cb0d69ce77c99860106670a1062bfdf64131f2f6Withdraw154017492022-08-24 8:02:49158 days 14 hrs ago0xfe73b5a595405bac396c329c674571a7a3db528c IN  Aura: Initial auraBAL Staking0 Ether0.00098309 12.27604379
0x18b636fec3ff5f6d61b2899384b4c7f28eeee00f808202e23d87418a3fbf7892Get Reward154017482022-08-24 8:02:27158 days 14 hrs ago0xfe73b5a595405bac396c329c674571a7a3db528c IN  Aura: Initial auraBAL Staking0 Ether0.00284668 11.30861458
0x0049a9f822caaf09f8eb6d47a58ed3c52c647ab5b8cbba03a6e4b681c4904670Withdraw153227782022-08-11 20:23:50171 days 2 hrs ago0x3523481702186c04740e50396d0e1c807ce36c57 IN  Aura: Initial auraBAL Staking0 Ether0.00143586 17.93262054
0xddfb2acaaec31e3e5636962403ee106cdb95e4b2c1f3fbcef192bd8999ee6237Withdraw153018432022-08-08 13:31:32174 days 9 hrs ago0x4e9bc74aa9a7c5e4c093edd6f5a2f5378979f3e5 IN  Aura: Initial auraBAL Staking0 Ether0.00140106 13.6345878
0xfc60edbfe5404550a53f3efb31eadd072e18ac23e06985388aafea89309d0933Get Reward152924942022-08-07 2:26:57175 days 20 hrs ago0x4c9f7207be28278b9dca129f2e211acfff48fb01 IN  Aura: Initial auraBAL Staking0 Ether0.00036925 4.35731746
0x03122e7e8dff5fc2b2d5fee6de7125268c18161cc9b74607d727e75f512c1a44Get Reward152866292022-08-06 4:30:46176 days 18 hrs ago0x0bbf7580e036ea5d69abe679cc90117eec2e3dc1 IN  Aura: Initial auraBAL Staking0 Ether0.00082271 5.43099
0x968bf08bd63d7b4a88d20821e99bca7fc21e29175f44643564be50c911174119Withdraw152842632022-08-05 19:41:45177 days 3 hrs ago0xa637cb0292f7c40c677f69b5b202c4e7b362be14 IN  Aura: Initial auraBAL Staking0 Ether0.00217789 21.1919326
0x16ed028ad08c7bdf477de444f0405615cad43f5123a19ca54614f56c3d3981e0Get Reward152819492022-08-05 11:06:34177 days 11 hrs ago0x71506af8e1bc762b4a7745665595ca07548a944d IN  Aura: Initial auraBAL Staking0 Ether0.00031825 4.70479579
0xacf789191279e99ae90857d190a170be87eabfd5aa31dac078aad653f35bf8beWithdraw152811452022-08-05 8:12:03177 days 14 hrs ago0x682dbc3daebd0181796359260afc3c3b9c1490fe IN  Aura: Initial auraBAL Staking0 Ether0.00090844 11.34566856
0x7cf9f6570c3c0eadf6f146518988e3b1920c22946db332fc180a7cd086e47eb7Get Reward152777212022-08-04 19:25:45178 days 3 hrs ago0xb734ec7a75d65406fde5bcf9156cab673ba1e1c5 IN  Aura: Initial auraBAL Staking0 Ether0.00208052 10.06963194
0x063a000c2b687a423ef47e8a3f05102d6b01200c291c13848ac21c6fb208fb88Get Reward152683172022-08-03 7:57:24179 days 14 hrs ago0x45ce90e64c5c7ced28cc5082f77a1ac1d4fd7bab IN  Aura: Initial auraBAL Staking0 Ether0.00141627 6.94883877
0x91c54b892bd1c7a2bc2b457969f123982a01036c788345fc2eff8254b680afb2Get Reward152569662022-08-01 13:39:53181 days 9 hrs agoENS Name youngnudy.eth IN  Aura: Initial auraBAL Staking0 Ether0.00166086 16.30797797
0x45186f64ab57baa9b881d52fe09f7a38f3295794fecc72520815b535a938d94aGet Reward152527322022-07-31 21:46:42182 days 55 mins ago0x682dbc3daebd0181796359260afc3c3b9c1490fe IN  Aura: Initial auraBAL Staking0 Ether0.00229806 12.78919349
0x4d8683b139d9559d7a952254a5d205d13e6bf436788e11d32daf289302ed0089Get Reward152497212022-07-31 10:35:24182 days 12 hrs ago0x39d787fdf7384597c7208644dbb6fda1cca4ebdf IN  Aura: Initial auraBAL Staking0 Ether0.00131201 8.66099776
[ Download CSV Export 

OVERVIEW

Rewards contract for auraBAL stakers for initial 2% AURA rewards.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuraBalRewardPool

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 6 : AuraBalRewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import { AuraMath } from "./AuraMath.sol";
import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol";

import { IAuraLocker } from "./Interfaces.sol";

/**
 * @title   AuraBalRewardPool
 * @author  Synthetix -> ConvexFinance -> adapted
 * @dev     Modifications from convex-platform/contracts/contracts/BaseRewardPool.sol:
 *            - Delayed start (tokens transferred then delay is enforced before notification)
 *            - One time duration of 14 days
 *            - Remove child reward contracts
 *            - Penalty on claim at 20%
 */
contract AuraBalRewardPool {
    using AuraMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public immutable rewardToken;
    IERC20 public immutable stakingToken;
    uint256 public constant duration = 14 days;

    address public immutable rewardManager;

    IAuraLocker public auraLocker;
    address public immutable penaltyForwarder;
    uint256 public pendingPenalty = 0;
    uint256 public immutable startTime;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 private _totalSupply;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;
    mapping(address => uint256) private _balances;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward, bool locked);
    event PenaltyForwarded(uint256 amount);
    event Rescued();

    /**
     * @dev Simple constructoor
     * @param _stakingToken  Pool LP token
     * @param _rewardToken   $AURA
     * @param _rewardManager Depositor
     * @param _auraLocker    $AURA lock contract
     * @param _penaltyForwarder Address to which penalties are sent
     */
    constructor(
        address _stakingToken,
        address _rewardToken,
        address _rewardManager,
        address _auraLocker,
        address _penaltyForwarder,
        uint256 _startDelay
    ) {
        require(_stakingToken != _rewardToken && _stakingToken != address(0), "!tokens");
        stakingToken = IERC20(_stakingToken);
        rewardToken = IERC20(_rewardToken);
        require(_rewardManager != address(0), "!manager");
        rewardManager = _rewardManager;
        require(_auraLocker != address(0), "!locker");
        auraLocker = IAuraLocker(_auraLocker);
        require(_penaltyForwarder != address(0), "!forwarder");
        penaltyForwarder = _penaltyForwarder;

        require(_startDelay > 4 days && _startDelay < 2 weeks, "!delay");
        startTime = block.timestamp + _startDelay;
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return AuraMath.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account).mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(
                rewards[account]
            );
    }

    function stake(uint256 _amount) public updateReward(msg.sender) returns (bool) {
        require(_amount > 0, "RewardPool : Cannot stake 0");

        _totalSupply = _totalSupply.add(_amount);
        _balances[msg.sender] = _balances[msg.sender].add(_amount);

        stakingToken.safeTransferFrom(msg.sender, address(this), _amount);
        emit Staked(msg.sender, _amount);

        return true;
    }

    function stakeAll() external returns (bool) {
        uint256 balance = stakingToken.balanceOf(msg.sender);
        stake(balance);
        return true;
    }

    function stakeFor(address _for, uint256 _amount) public updateReward(_for) returns (bool) {
        require(_amount > 0, "RewardPool : Cannot stake 0");

        //give to _for
        _totalSupply = _totalSupply.add(_amount);
        _balances[_for] = _balances[_for].add(_amount);

        //take away from sender
        stakingToken.safeTransferFrom(msg.sender, address(this), _amount);
        emit Staked(_for, _amount);

        return true;
    }

    function withdraw(
        uint256 amount,
        bool claim,
        bool lock
    ) public updateReward(msg.sender) returns (bool) {
        require(amount > 0, "RewardPool : Cannot withdraw 0");

        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);

        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);

        if (claim) {
            getReward(lock);
        }

        return true;
    }

    /**
     * @dev Gives a staker their rewards
     * @param _lock Lock the rewards? If false, takes a 20% haircut
     */
    function getReward(bool _lock) public updateReward(msg.sender) returns (bool) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            if (_lock) {
                rewardToken.safeIncreaseAllowance(address(auraLocker), reward);
                auraLocker.lock(msg.sender, reward);
            } else {
                uint256 penalty = (reward * 3) / 10;
                pendingPenalty += penalty;
                rewardToken.safeTransfer(msg.sender, reward - penalty);
            }
            emit RewardPaid(msg.sender, reward, _lock);
        }
        return true;
    }

    /**
     * @dev Forwards to the penalty forwarder for distro to Aura Lockers
     */
    function forwardPenalty() public {
        uint256 toForward = pendingPenalty;
        pendingPenalty = 0;
        rewardToken.safeTransfer(penaltyForwarder, toForward);
        emit PenaltyForwarded(toForward);
    }

    /**
     * @dev Rescues the reward token provided it hasn't been initiated yet
     */
    function rescueReward() public {
        require(msg.sender == rewardManager, "!rescuer");
        require(block.timestamp < startTime && rewardRate == 0, "Already started");

        uint256 balance = rewardToken.balanceOf(address(this));
        rewardToken.transfer(rewardManager, balance);

        emit Rescued();
    }

    /**
     * @dev Updates the locker address
     */
    function setLocker(address _newLocker) external {
        require(msg.sender == rewardManager, "!auth");
        auraLocker = IAuraLocker(_newLocker);
    }

    /**
     * @dev Called once to initialise the rewards based on balance of stakeToken
     */
    function initialiseRewards() external returns (bool) {
        require(msg.sender == rewardManager || block.timestamp > startTime, "!authorized");
        require(rewardRate == 0, "!one time");

        uint256 rewardsAvailable = rewardToken.balanceOf(address(this));
        require(rewardsAvailable > 0, "!balance");

        rewardRate = rewardsAvailable.div(duration);

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(duration);

        emit RewardAdded(rewardsAvailable);

        return true;
    }
}

File 2 of 6 : AuraMath.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library AuraMath {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

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

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

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a * b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute.
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }

    function to224(uint256 a) internal pure returns (uint224 c) {
        require(a <= type(uint224).max, "AuraMath: uint224 Overflow");
        c = uint224(a);
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= type(uint128).max, "AuraMath: uint128 Overflow");
        c = uint128(a);
    }

    function to112(uint256 a) internal pure returns (uint112 c) {
        require(a <= type(uint112).max, "AuraMath: uint112 Overflow");
        c = uint112(a);
    }

    function to96(uint256 a) internal pure returns (uint96 c) {
        require(a <= type(uint96).max, "AuraMath: uint96 Overflow");
        c = uint96(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= type(uint32).max, "AuraMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library AuraMath32 {
    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint112.
library AuraMath112 {
    function add(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a + b;
    }

    function sub(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint224.
library AuraMath224 {
    function add(uint224 a, uint224 b) internal pure returns (uint224 c) {
        c = a + b;
    }
}

File 3 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 6 : Interfaces.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IPriceOracle {
    struct OracleAverageQuery {
        Variable variable;
        uint256 secs;
        uint256 ago;
    }
    enum Variable {
        PAIR_PRICE,
        BPT_PRICE,
        INVARIANT
    }

    function getTimeWeightedAverage(OracleAverageQuery[] memory queries)
        external
        view
        returns (uint256[] memory results);
}

interface IVault {
    enum PoolSpecialization {
        GENERAL,
        MINIMAL_SWAP_INFO,
        TWO_TOKEN
    }
    enum JoinKind {
        INIT,
        EXACT_TOKENS_IN_FOR_BPT_OUT,
        TOKEN_IN_FOR_EXACT_BPT_OUT,
        ALL_TOKENS_IN_FOR_EXACT_BPT_OUT
    }

    enum SwapKind {
        GIVEN_IN,
        GIVEN_OUT
    }

    struct SingleSwap {
        bytes32 poolId;
        SwapKind kind;
        IAsset assetIn;
        IAsset assetOut;
        uint256 amount;
        bytes userData;
    }

    struct FundManagement {
        address sender;
        bool fromInternalBalance;
        address payable recipient;
        bool toInternalBalance;
    }

    struct JoinPoolRequest {
        IAsset[] assets;
        uint256[] maxAmountsIn;
        bytes userData;
        bool fromInternalBalance;
    }

    function getPool(bytes32 poolId) external view returns (address, PoolSpecialization);

    function getPoolTokens(bytes32 poolId)
        external
        view
        returns (
            address[] memory tokens,
            uint256[] memory balances,
            uint256 lastChangeBlock
        );

    function joinPool(
        bytes32 poolId,
        address sender,
        address recipient,
        JoinPoolRequest memory request
    ) external payable;

    function swap(
        SingleSwap memory singleSwap,
        FundManagement memory funds,
        uint256 limit,
        uint256 deadline
    ) external returns (uint256 amountCalculated);

    function exitPool(
        bytes32 poolId,
        address sender,
        address payable recipient,
        ExitPoolRequest memory request
    ) external;

    struct ExitPoolRequest {
        IAsset[] assets;
        uint256[] minAmountsOut;
        bytes userData;
        bool toInternalBalance;
    }
    enum ExitKind {
        EXACT_BPT_IN_FOR_ONE_TOKEN_OUT,
        EXACT_BPT_IN_FOR_TOKENS_OUT,
        BPT_IN_FOR_EXACT_TOKENS_OUT,
        MANAGEMENT_FEE_TOKENS_OUT // for ManagedPool
    }
}

interface IAsset {
    // solhint-disable-previous-line no-empty-blocks
}

interface IAuraLocker {
    function lock(address _account, uint256 _amount) external;

    function checkpointEpoch() external;

    function epochCount() external view returns (uint256);

    function balanceAtEpochOf(uint256 _epoch, address _user) external view returns (uint256 amount);

    function totalSupplyAtEpoch(uint256 _epoch) external view returns (uint256 supply);

    function queueNewRewards(address _rewardsToken, uint256 reward) external;

    function getReward(address _account, bool _stake) external;

    function getReward(address _account) external;
}

interface IExtraRewardsDistributor {
    function addReward(address _token, uint256 _amount) external;
}

interface ICrvDepositorWrapper {
    function getMinOut(uint256, uint256) external view returns (uint256);

    function deposit(
        uint256,
        uint256,
        bool,
        address _stakeAddress
    ) external;
}

File 6 of 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_rewardManager","type":"address"},{"internalType":"address","name":"_auraLocker","type":"address"},{"internalType":"address","name":"_penaltyForwarder","type":"address"},{"internalType":"uint256","name":"_startDelay","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PenaltyForwarded","type":"event"},{"anonymous":false,"inputs":[],"name":"Rescued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"bool","name":"locked","type":"bool"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"auraLocker","outputs":[{"internalType":"contract IAuraLocker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forwardPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_lock","type":"bool"}],"name":"getReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialiseRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penaltyForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rescueReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newLocker","type":"address"}],"name":"setLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claim","type":"bool"},{"internalType":"bool","name":"lock","type":"bool"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6101206040526000600155600060025560006003553480156200002157600080fd5b5060405162001bb338038062001bb3833981016040819052620000449162000232565b846001600160a01b0316866001600160a01b0316141580156200006f57506001600160a01b03861615155b620000ab5760405162461bcd60e51b815260206004820152600760248201526621746f6b656e7360c81b60448201526064015b60405180910390fd5b6001600160a01b0380871660a0528581166080528416620000fa5760405162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b6044820152606401620000a2565b6001600160a01b0380851660c0528316620001425760405162461bcd60e51b815260206004820152600760248201526610b637b1b5b2b960c91b6044820152606401620000a2565b600080546001600160a01b0319166001600160a01b038581169190911790915582166200019f5760405162461bcd60e51b815260206004820152600a60248201526910b337b93bb0b93232b960b11b6044820152606401620000a2565b6001600160a01b03821660e0526205460081118015620001c157506212750081105b620001f85760405162461bcd60e51b81526020600482015260066024820152652164656c617960d01b6044820152606401620000a2565b620002048142620002aa565b6101005250620002d1945050505050565b80516001600160a01b03811681146200022d57600080fd5b919050565b60008060008060008060c087890312156200024c57600080fd5b620002578762000215565b9550620002676020880162000215565b9450620002776040880162000215565b9350620002876060880162000215565b9250620002976080880162000215565b915060a087015190509295509295509295565b60008219821115620002cc57634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05160e051610100516118266200038d6000396000818161031b0152818161074d0152610c230152600081816102130152610a22015260008181610252015281816104af015281816106de015281816108680152610bfa0152600081816102f40152818161065e0152818161096b01528181610b6d01526110f6015260008181610403015281816107de0152818161089a01528181610a0001528181610cf901528181610eb90152610f9601526118266000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c80638b876347116100f9578063bd6d285011610097578063d661448711610071578063d6614487146103d9578063df136d65146103ec578063ebe2b12b146103f5578063f7c618c1146103fe57600080fd5b8063bd6d2850146103bf578063c8f33c91146103c8578063cd3daf9d146103d157600080fd5b806392930b45116100d357806392930b451461037e5780639514fb2f14610391578063a4698feb14610399578063a694fc3a146103ac57600080fd5b80638b8763471461034e5780638dcb40611461036e5780638faa85051461037657600080fd5b80632ee409081161016657806372f702f31161014057806372f702f3146102ef57806378e97925146103165780637b0a47ee1461033d57806380faa57d1461034657600080fd5b80632ee409081461029b57806331ae557c146102be57806370a08231146102c657600080fd5b80630f4ef8a6116101a25780630f4ef8a61461024d5780630fb5a6b414610274578063171060ec1461027e57806318160ddd1461029357600080fd5b80628cc262146101c85780630700037d146101ee578063076bbb671461020e575b600080fd5b6101db6101d6366004611614565b610425565b6040519081526020015b60405180910390f35b6101db6101fc366004611614565b60086020526000908152604090205481565b6102357f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e5565b6102357f000000000000000000000000000000000000000000000000000000000000000081565b6101db6212750081565b61029161028c366004611614565b6104a4565b005b6006546101db565b6102ae6102a936600461162f565b61055b565b60405190151581526020016101e5565b6102916106d3565b6101db6102d4366004611614565b6001600160a01b031660009081526009602052604090205490565b6102357f000000000000000000000000000000000000000000000000000000000000000081565b6101db7f000000000000000000000000000000000000000000000000000000000000000081565b6101db60035481565b6101db610936565b6101db61035c366004611614565b60076020526000908152604090205481565b6102ae610949565b6102916109ea565b6102ae61038c36600461166a565b610a7d565b6102ae610bed565b6102ae6103a73660046116ac565b610e1f565b6102ae6103ba3660046116c9565b611006565b6101db60015481565b6101db60045481565b6101db611164565b600054610235906001600160a01b031681565b6101db60055481565b6101db60025481565b6102357f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b038116600090815260086020908152604080832054600790925282205461049e919061049890670de0b6b3a764000090610492906104729061046c611164565b906111b2565b6001600160a01b0388166000908152600960205260409020545b906111c5565b906111d1565b906111dd565b92915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105215760405162461bcd60e51b815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600082610566611164565b600555610571610936565b6004556001600160a01b038116156105b85761058c81610425565b6001600160a01b0382166000908152600860209081526040808320939093556005546007909152919020555b600083116106085760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610518565b60065461061590846111dd565b6006556001600160a01b03841660009081526009602052604090205461063b90846111dd565b6001600160a01b03808616600090815260096020526040902091909155610686907f0000000000000000000000000000000000000000000000000000000000000000163330866111e9565b836001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040516106c191815260200190565b60405180910390a25060019392505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461074b5760405162461bcd60e51b815260206004820152600860248201527f21726573637565720000000000000000000000000000000000000000000000006044820152606401610518565b7f00000000000000000000000000000000000000000000000000000000000000004210801561077a5750600354155b6107c65760405162461bcd60e51b815260206004820152600f60248201527f416c7265616479207374617274656400000000000000000000000000000000006044820152606401610518565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561082d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085191906116e2565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af11580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090991906116fb565b506040517f82c202588180490f67fa4d9346c730a0c94f2b525caf39bd63427fb643f73a6990600090a150565b600061094442600254611287565b905090565b6040516370a0823160e01b815233600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156109b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d691906116e2565b90506109e181611006565b50600191505090565b600180546000909155610a476001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008361129d565b6040518181527f39346cbe10cbb5c94debda36f2afe71c5dbe015ad0b194b6df8498c815137d249060200160405180910390a150565b600033610a88611164565b600555610a93610936565b6004556001600160a01b03811615610ada57610aae81610425565b6001600160a01b0382166000908152600860209081526040808320939093556005546007909152919020555b60008511610b2a5760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f74207769746864726177203000006044820152606401610518565b600654610b3790866111b2565b60065533600090815260096020526040902054610b5490866111b2565b33600081815260096020526040902091909155610b9c907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908761129d565b60405185815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a28315610be257610be083610e1f565b505b506001949350505050565b6000336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610c4557507f000000000000000000000000000000000000000000000000000000000000000042115b610c915760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610518565b60035415610ce15760405162461bcd60e51b815260206004820152600960248201527f216f6e652074696d6500000000000000000000000000000000000000000000006044820152606401610518565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610d48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6c91906116e2565b905060008111610dbe5760405162461bcd60e51b815260206004820152600860248201527f2162616c616e63650000000000000000000000000000000000000000000000006044820152606401610518565b610dcb81621275006111d1565b600355426004819055610de190621275006111dd565b6002556040518181527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1600191505090565b600033610e2a611164565b600555610e35610936565b6004556001600160a01b03811615610e7c57610e5081610425565b6001600160a01b0382166000908152600860209081526040808320939093556005546007909152919020555b336000908152600860205260409020548015610ffc57336000908152600860205260408120558315610f4b57600054610ee2906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836112d2565b60005460405163282d3fdf60e01b8152336004820152602481018390526001600160a01b039091169063282d3fdf90604401600060405180830381600087803b158015610f2e57600080fd5b505af1158015610f42573d6000803e3d6000fd5b50505050610fbf565b6000600a610f5a83600361172e565b610f64919061174d565b90508060016000828254610f78919061176f565b90915550610fbd905033610f8c8385611787565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061129d565b505b60408051828152851515602082015233917f16027d9cd5ffbfabaed8d9c40e1908fdeae11ae44ba883b5eab9c0bcbf1355b0910160405180910390a25b5060019392505050565b600033611011611164565b60055561101c610936565b6004556001600160a01b038116156110635761103781610425565b6001600160a01b0382166000908152600860209081526040808320939093556005546007909152919020555b600083116110b35760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610518565b6006546110c090846111dd565b600655336000908152600960205260409020546110dd90846111dd565b33600081815260096020526040902091909155611126907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169030866111e9565b60405183815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a250600192915050565b600061116f60065490565b61117a575060055490565b6109446111a961118960065490565b610492670de0b6b3a764000061048c60035461048c60045461046c610936565b600554906111dd565b60006111be8284611787565b9392505050565b60006111be828461172e565b60006111be828461174d565b60006111be828461176f565b6040516001600160a01b03808516602483015283166044820152606481018290526112819085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611384565b50505050565b600081831061129657816111be565b5090919050565b6040516001600160a01b0383166024820152604481018290526112cd90849063a9059cbb60e01b9060640161121d565b505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015611323573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134791906116e2565b611351919061176f565b6040516001600160a01b03851660248201526044810182905290915061128190859063095ea7b360e01b9060640161121d565b60006113d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114699092919063ffffffff16565b8051909150156112cd57808060200190518101906113f791906116fb565b6112cd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610518565b60606114788484600085611480565b949350505050565b6060824710156114f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610518565b843b6115465760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610518565b600080866001600160a01b0316858760405161156291906117ca565b60006040518083038185875af1925050503d806000811461159f576040519150601f19603f3d011682016040523d82523d6000602084013e6115a4565b606091505b50915091506115b48282866115bf565b979650505050505050565b606083156115ce5750816111be565b8251156115de5782518084602001fd5b8160405162461bcd60e51b815260040161051891906117e6565b80356001600160a01b038116811461160f57600080fd5b919050565b60006020828403121561162657600080fd5b6111be826115f8565b6000806040838503121561164257600080fd5b61164b836115f8565b946020939093013593505050565b801515811461166757600080fd5b50565b60008060006060848603121561167f57600080fd5b83359250602084013561169181611659565b915060408401356116a181611659565b809150509250925092565b6000602082840312156116be57600080fd5b81356111be81611659565b6000602082840312156116db57600080fd5b5035919050565b6000602082840312156116f457600080fd5b5051919050565b60006020828403121561170d57600080fd5b81516111be81611659565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561174857611748611718565b500290565b60008261176a57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561178257611782611718565b500190565b60008282101561179957611799611718565b500390565b60005b838110156117b95781810151838201526020016117a1565b838111156112815750506000910152565b600082516117dc81846020870161179e565b9190910192915050565b602081526000825180602084015261180581604085016020870161179e565b601f01601f1916919091016040019291505056fea164736f6c634300080b000a000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca90000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac0000000000000000000000004043569200f7a7a1d989abbabc2de2bde1c20d1e0000000000000000000000000000000000000000000000000000000000093a80

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

000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca90000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac0000000000000000000000004043569200f7a7a1d989abbabc2de2bde1c20d1e0000000000000000000000000000000000000000000000000000000000093a80

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x616e8BfA43F920657B3497DBf40D6b1A02D4608d
Arg [1] : _rewardToken (address): 0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF
Arg [2] : _rewardManager (address): 0xfc78f8e1Af80A3bF5A1783BB59eD2d1b10f78cA9
Arg [3] : _auraLocker (address): 0x3Fa73f1E5d8A792C80F426fc8F84FBF7Ce9bBCAC
Arg [4] : _penaltyForwarder (address): 0x4043569200F7a7a1D989AbbaBC2De2Bde1C20D1E
Arg [5] : _startDelay (uint256): 604800

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
Arg [1] : 000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf
Arg [2] : 000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9
Arg [3] : 0000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac
Arg [4] : 0000000000000000000000004043569200f7a7a1d989abbabc2de2bde1c20d1e
Arg [5] : 0000000000000000000000000000000000000000000000000000000000093a80


Block Transaction Difficulty Gas Used Reward
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.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.