Contract 0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF 3

Aura Finance Token Contract 
 
 
Txn Hash
Method
Block
From
To
Value
0x223857c52082481cd0c27586280e32965f8d41edb76fb461feba1a9d0ed29f93Approve(pending)2023-01-29 1:58:0218 hrs 20 mins ago0x26d863eef3b7302dcfeaeadea3a550bfc1fbf923 IN Aura: AURA Token0 Ether(Pending)(Pending)
0x50a5445902d3b277cb6c7c13a5d33c7577fc70156a9101a5b85ac79f970b8607Approve(pending)2023-01-29 1:58:0218 hrs 20 mins ago0x26d863eef3b7302dcfeaeadea3a550bfc1fbf923 IN Aura: AURA Token0 Ether(Pending)(Pending)
0x44179306bc1cfaa0a7edf5dc8358265dcb0e38fa061e6988e271acc50d905ce7Approve(pending)2023-01-29 1:58:0218 hrs 20 mins ago0x26d863eef3b7302dcfeaeadea3a550bfc1fbf923 IN Aura: AURA Token0 Ether(Pending)(Pending)
0x86540ea0911b07fe699144ee9723e0b526f04c5d7ecdc2a8e64341cc5c6f7047Approve(pending)2023-01-22 23:25:546 days 20 hrs ago0x26d863eef3b7302dcfeaeadea3a550bfc1fbf923 IN Aura: AURA Token0 Ether(Pending)(Pending)
0x5deed8e1fc0ae2fde096b5f86b9ca8f7abe2c4175bf3233b51d65725a8c3c2caTransfer(pending)2023-01-16 12:38:1513 days 7 hrs ago0xabcb2c6bdd9ed426a03f8243f6a1a8193e91943c IN Aura: AURA Token0 Ether(Pending)(Pending)
0x71c3d229c87a37f1c6bf6b06a257f708e9643fbcfd92a95344efd5715db06c7bApprove165147422023-01-29 20:04:1113 mins ago0xc08e2d29f287a4cd0cf93e4622f6a9679bc49ab6 IN  Aura: AURA Token0 Ether0.00112916 24.27267989
0x25db83a2d2a93361d2513a87f5d090ab4c73120a0310e37518e8b31d236a9e82Approve165147402023-01-29 20:03:4714 mins ago0xee88c9b7321cd55f339323df2db0f5cb98161695 IN  Aura: AURA Token0 Ether0.00110096 23.63605807
0x4b54f4818a8264070d4ee9d271241cb55bf3e9a46f7115f44792be6f47d3cdbfApprove165144922023-01-29 19:14:111 hr 3 mins ago0x1c5e9d8d756551f2a0e459ba95a5741c57d71445 IN  Aura: AURA Token0 Ether0.0011821 25.37797666
0xe7bd29c53e608b2d528d099168b966dcdcd06e54a1f10d79098feccb96daac1eApprove165144052023-01-29 18:56:351 hr 21 mins agoENS Name jaers.eth IN  Aura: AURA Token0 Ether0.00110836 23.94295404
0x43247410a008e64989eaa8a86ba335d3744b6009968f2c8e629039b4794b44f9Approve165144022023-01-29 18:55:591 hr 22 mins agoENS Name wer.eth IN  Aura: AURA Token0 Ether0.00099 21.25385886
0x15e8d73e93d0c4b13e7e46eaaf1fad6604fb5e1b7a72289c6ad42eca4be82e18Approve165142932023-01-29 18:34:111 hr 43 mins ago0x3e408ea02e0eaf1f45fc1cf93f245eb186c5c4da IN  Aura: AURA Token0 Ether0.00144754 31.07654605
0x55fb3cddea24240c4a7b3fef85403a754ec9e8e18e6c5ee64e8e407b9c50b972Approve165142792023-01-29 18:31:231 hr 46 mins ago0x311cb5b8c61ac1d160e3d21a0390d9c1fa64688e IN  Aura: AURA Token0 Ether0.00182942 39.27497196
0x0dafcd90d64e235e1b90f2512ecb77b3c74bc2f6a08c1a6671c5c4f8015878a2Approve165141732023-01-29 18:09:592 hrs 8 mins agoENS Name wer.eth IN  Aura: AURA Token0 Ether0.00105291 22.6044754
0xd1de62d19e492240175b8d766be54247ca0a282b2f78a09b07e1f1b084558a9dApprove165137632023-01-29 16:47:353 hrs 30 mins ago0xbf1bc5964f7d035f83f159f00209ff4352bd7394 IN  Aura: AURA Token0 Ether0.00086152 18.49552875
0x5f56c2526b15251c65d3d38ac55c588ccb953bb843167760d52c985fdd604b7bApprove165135442023-01-29 16:03:354 hrs 14 mins ago0x67bcd41adbf12d1ecffd86e17af2b14179b556a3 IN  Aura: AURA Token0 Ether0.00115751 24.85
0xd0772c09b970dc33a29b37b30183b8c8b6bd5f725be01b60aedf11950948f581Approve165127602023-01-29 13:25:116 hrs 52 mins ago0x9a0081f929816d010f357727f5bef6e66aa51881 IN  Aura: AURA Token0 Ether0.00036673 15.09431859
0x497c15b2b8d8495e474a7d0ebad97368941a8f9d9b280e823f4e5af704a8ae4aApprove165126762023-01-29 13:08:237 hrs 9 mins ago0x2f556083bd13f674c7a5838988ef73b79dd689cc IN  Aura: AURA Token0 Ether0.00080253 17.22916827
0xd5837c92e3370c0b4ce6850b444bd176c38ff70b30b570364668114a2e6d88e6Approve165120072023-01-29 10:54:119 hrs 23 mins ago0x9a0081f929816d010f357727f5bef6e66aa51881 IN  Aura: AURA Token0 Ether0.00067479 14.48690027
0xfd617bb7e5af3df549915fca9147fa32207cc50ae422088844c6f34727b8069cApprove165119042023-01-29 10:33:359 hrs 44 mins ago0xbdfa4f4492dd7b7cf211209c4791af8d52bf5c50 IN  Aura: AURA Token0 Ether0.00069041 14.82223002
0x0bb7d5a49cad80eb2dccc6800ebfa49b46f6f7a0b50d7618155d665aa14fceb0Approve165118262023-01-29 10:17:5910 hrs ago0x0cc7cedb0935ceab0b4a6b38ee7dcfd403b19a7b IN  Aura: AURA Token0 Ether0.00065207 14.08243447
0x0d296eebf27743b7f84b01506e65fbb9eb54149a3c0dbbcd0d934377c97d1657Approve165110042023-01-29 7:31:4712 hrs 46 mins agoENS Name veballer.eth IN  Aura: AURA Token0 Ether0.00075952 16.30591423
0x9c39bf48f9b2deb386948cf964c8e189a766bcd6d7f1fa3011095814f1affd07Transfer165109732023-01-29 7:25:3512 hrs 52 mins agoENS Name auraballer.eth IN  Aura: AURA Token0 Ether0.00079607 17
0x7e8f9245cec84f4ecff9bb5562ee0bcc9860f296f74dde500aafe6c2a6413c61Approve165108892023-01-29 7:08:4713 hrs 9 mins ago0xf4b8fb87cbe60608980bf29ca9cdc0129685779c IN  Aura: AURA Token0 Ether0.00065045 13.9642763
0x1de2b4bf3cb5fb99ef2089534034afa48b56e0f7b51fc5b9568a33f8a37e9f28Approve165108082023-01-29 6:52:2313 hrs 25 mins ago0xf4b8fb87cbe60608980bf29ca9cdc0129685779c IN  Aura: AURA Token0 Ether0.00066369 14.24852584
0x70011b89a052e9b1a4e086cdbbbac4a6257d496e77da04c7cd093f129238edaeApprove165106982023-01-29 6:29:5913 hrs 48 mins agoENS Name jlappi.eth IN  Aura: AURA Token0 Ether0.00060909 13.07632523
[ Download CSV Export 

OVERVIEW

Centered around Balancer’s veBAL, Aura coordinates incentives around vote-escrowed tokens to boost yield potential and governance power of DeFi liquidity providers, governance token stakers and voters.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuraToken

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

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

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

interface IStaker {
    function operator() external view returns (address);
}

/**
 * @title   AuraToken
 * @notice  Basically an ERC20 with minting functionality operated by the "operator" of the VoterProxy (Booster).
 * @dev     The minting schedule is based on the amount of CRV earned through staking and is
 *          distirbuted along a supply curve (cliffs etc). Fork of ConvexToken.
 */
contract AuraToken is ERC20 {
    using AuraMath for uint256;

    address public operator;
    address public immutable vecrvProxy;

    uint256 public constant EMISSIONS_MAX_SUPPLY = 5e25; // 50m
    uint256 public constant INIT_MINT_AMOUNT = 5e25; // 50m
    uint256 public constant totalCliffs = 500;
    uint256 public immutable reductionPerCliff;

    address public minter;
    uint256 private minterMinted = type(uint256).max;

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

    event Initialised();
    event OperatorChanged(address indexed previousOperator, address indexed newOperator);

    /**
     * @param _proxy        CVX VoterProxy
     * @param _nameArg      Token name
     * @param _symbolArg    Token symbol
     */
    constructor(
        address _proxy,
        string memory _nameArg,
        string memory _symbolArg
    ) ERC20(_nameArg, _symbolArg) {
        operator = msg.sender;
        vecrvProxy = _proxy;
        reductionPerCliff = EMISSIONS_MAX_SUPPLY.div(totalCliffs);
    }

    /**
     * @dev Initialise and mints initial supply of tokens.
     * @param _to        Target address to mint.
     * @param _minter    The minter address.
     */
    function init(address _to, address _minter) external {
        require(msg.sender == operator, "Only operator");
        require(totalSupply() == 0, "Only once");
        require(_minter != address(0), "Invalid minter");

        _mint(_to, INIT_MINT_AMOUNT);
        updateOperator();
        minter = _minter;
        minterMinted = 0;

        emit Initialised();
    }

    /**
     * @dev This can be called if the operator of the voterProxy somehow changes.
     */
    function updateOperator() public {
        require(totalSupply() != 0, "!init");

        address newOperator = IStaker(vecrvProxy).operator();
        require(newOperator != operator && newOperator != address(0), "!operator");

        emit OperatorChanged(operator, newOperator);
        operator = newOperator;
    }

    /**
     * @dev Mints AURA to a given user based on the BAL supply schedule.
     */
    function mint(address _to, uint256 _amount) external {
        require(totalSupply() != 0, "Not initialised");

        if (msg.sender != operator) {
            // dont error just return. if a shutdown happens, rewards on old system
            // can still be claimed, just wont mint cvx
            return;
        }

        // e.g. emissionsMinted = 6e25 - 5e25 - 0 = 1e25;
        uint256 emissionsMinted = totalSupply() - INIT_MINT_AMOUNT - minterMinted;
        // e.g. reductionPerCliff = 5e25 / 500 = 1e23
        // e.g. cliff = 1e25 / 1e23 = 100
        uint256 cliff = emissionsMinted.div(reductionPerCliff);

        // e.g. 100 < 500
        if (cliff < totalCliffs) {
            // e.g. (new) reduction = (500 - 100) * 2.5 + 700 = 1700;
            // e.g. (new) reduction = (500 - 250) * 2.5 + 700 = 1325;
            // e.g. (new) reduction = (500 - 400) * 2.5 + 700 = 950;
            uint256 reduction = totalCliffs.sub(cliff).mul(5).div(2).add(700);
            // e.g. (new) amount = 1e19 * 1700 / 500 =  34e18;
            // e.g. (new) amount = 1e19 * 1325 / 500 =  26.5e18;
            // e.g. (new) amount = 1e19 * 950 / 500  =  19e17;
            uint256 amount = _amount.mul(reduction).div(totalCliffs);
            // e.g. amtTillMax = 5e25 - 1e25 = 4e25
            uint256 amtTillMax = EMISSIONS_MAX_SUPPLY.sub(emissionsMinted);
            if (amount > amtTillMax) {
                amount = amtTillMax;
            }
            _mint(_to, amount);
        }
    }

    /**
     * @dev Allows minter to mint to a specific address
     */
    function minterMint(address _to, uint256 _amount) external {
        require(msg.sender == minter, "Only minter");
        minterMinted += _amount;
        _mint(_to, _amount);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 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 4 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 5 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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":"_proxy","type":"address"},{"internalType":"string","name":"_nameArg","type":"string"},{"internalType":"string","name":"_symbolArg","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"Initialised","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"EMISSIONS_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INIT_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_minter","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"minterMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reductionPerCliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCliffs","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vecrvProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040526000196007553480156200001757600080fd5b50604051620014a9380380620014a98339810160408190526200003a9162000247565b81518290829062000053906003906020850190620000d4565b50805162000069906004906020840190620000d4565b505060058054336001600160a01b0319909116179055506001600160a01b038316608052620000b26a295be96e640669720000006101f4620000bf602090811b62000af217901c565b60a0525062000331915050565b6000620000cd8284620002d1565b9392505050565b828054620000e290620002f4565b90600052602060002090601f01602090048101928262000106576000855562000151565b82601f106200012157805160ff191683800117855562000151565b8280016001018555821562000151579182015b828111156200015157825182559160200191906001019062000134565b506200015f92915062000163565b5090565b5b808211156200015f576000815560010162000164565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001a257600080fd5b81516001600160401b0380821115620001bf57620001bf6200017a565b604051601f8301601f19908116603f01168101908282118183101715620001ea57620001ea6200017a565b816040528381526020925086838588010111156200020757600080fd5b600091505b838210156200022b57858201830151818301840152908201906200020c565b838211156200023d5760008385830101525b9695505050505050565b6000806000606084860312156200025d57600080fd5b83516001600160a01b03811681146200027557600080fd5b60208501519093506001600160401b03808211156200029357600080fd5b620002a18783880162000190565b93506040860151915080821115620002b857600080fd5b50620002c78682870162000190565b9150509250925092565b600082620002ef57634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200030957607f821691505b602082108114156200032b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161114462000365600039600081816102ec015261064e015260008181610367015261081d01526111446000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80636cd16339116100d8578063aa74e6221161008c578063e6c6700e11610066578063e6c6700e1461027e578063f09a40161461034f578063fca975a11461036257600080fd5b8063aa74e622146102e7578063d5934b761461030e578063dd62ed3e1461031657600080fd5b806395d89b41116100bd57806395d89b41146102b9578063a457c2d7146102c1578063a9059cbb146102d457600080fd5b80636cd163391461027e57806370a082311461029057600080fd5b806321f314ca1161013a5780633950935111610114578063395093511461024557806340c10f1914610258578063570ca7351461026b57600080fd5b806321f314ca1461020e57806323b872dd14610223578063313ce5671461023657600080fd5b8063095ea7b31161016b578063095ea7b3146101d057806318160ddd146101f35780631f96e76f1461020557600080fd5b806306fdde031461018757806307546172146101a5575b600080fd5b61018f610389565b60405161019c9190610f29565b60405180910390f35b6006546101b8906001600160a01b031681565b6040516001600160a01b03909116815260200161019c565b6101e36101de366004610f96565b61041b565b604051901515815260200161019c565b6002545b60405190815260200161019c565b6101f76101f481565b61022161021c366004610f96565b610431565b005b6101e3610231366004610fc2565b6104b6565b6040516012815260200161019c565b6101e3610253366004610f96565b610575565b610221610266366004610f96565b6105b1565b6005546101b8906001600160a01b031681565b6101f76a295be96e6406697200000081565b6101f761029e366004611003565b6001600160a01b031660009081526020819052604090205490565b61018f6106fd565b6101e36102cf366004610f96565b61070c565b6101e36102e2366004610f96565b6107bd565b6101f77f000000000000000000000000000000000000000000000000000000000000000081565b6102216107ca565b6101f7610324366004611020565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022161035d366004611020565b61097b565b6101b87f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461039890611059565b80601f01602080910402602001604051908101604052809291908181526020018280546103c490611059565b80156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b6000610428338484610b05565b50600192915050565b6006546001600160a01b031633146104905760405162461bcd60e51b815260206004820152600b60248201527f4f6e6c79206d696e74657200000000000000000000000000000000000000000060448201526064015b60405180910390fd5b80600760008282546104a291906110aa565b909155506104b290508282610c29565b5050565b60006104c3848484610d08565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561055d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610487565b61056a8533858403610b05565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104289185906105ac9086906110aa565b610b05565b6002546106005760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420696e697469616c6973656400000000000000000000000000000000006044820152606401610487565b6005546001600160a01b03163314610616575050565b60006007546a295be96e6406697200000061063060025490565b61063a91906110c2565b61064491906110c2565b90506000610672827f0000000000000000000000000000000000000000000000000000000000000000610af2565b90506101f48110156106f75760006106ae6102bc6106a860026106a2600561069c6101f489610f05565b90610f11565b90610af2565b90610f1d565b905060006106c26101f46106a28785610f11565b905060006106db6a295be96e6406697200000086610f05565b9050808211156106e9578091505b6106f38783610c29565b5050505b50505050565b60606004805461039890611059565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107a65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610487565b6107b33385858403610b05565b5060019392505050565b6000610428338484610d08565b6002546108195760405162461bcd60e51b815260206004820152600560248201527f21696e69740000000000000000000000000000000000000000000000000000006044820152606401610487565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610879573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089d91906110d9565b6005549091506001600160a01b038083169116148015906108c657506001600160a01b03811615155b6109125760405162461bcd60e51b815260206004820152600960248201527f216f70657261746f7200000000000000000000000000000000000000000000006044820152606401610487565b6005546040516001600160a01b038084169216907fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c90600090a36005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b031633146109d55760405162461bcd60e51b815260206004820152600d60248201527f4f6e6c79206f70657261746f72000000000000000000000000000000000000006044820152606401610487565b60025415610a255760405162461bcd60e51b815260206004820152600960248201527f4f6e6c79206f6e636500000000000000000000000000000000000000000000006044820152606401610487565b6001600160a01b038116610a7b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964206d696e7465720000000000000000000000000000000000006044820152606401610487565b610a90826a295be96e64066972000000610c29565b610a986107ca565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055600060078190556040517f09dfb9099a2610601d58030170fde7ae9db3e1bcb751c3d6800216cbe3b499b59190a15050565b6000610afe82846110f6565b9392505050565b6001600160a01b038316610b675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610487565b6001600160a01b038216610bc85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610487565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216610c7f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610487565b8060026000828254610c9191906110aa565b90915550506001600160a01b03821660009081526020819052604081208054839290610cbe9084906110aa565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316610d845760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610487565b6001600160a01b038216610de65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610487565b6001600160a01b03831660009081526020819052604090205481811015610e755760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610487565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610eac9084906110aa565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ef891815260200190565b60405180910390a36106f7565b6000610afe82846110c2565b6000610afe8284611118565b6000610afe82846110aa565b600060208083528351808285015260005b81811015610f5657858101830151858201604001528201610f3a565b81811115610f68576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610f9357600080fd5b50565b60008060408385031215610fa957600080fd5b8235610fb481610f7e565b946020939093013593505050565b600080600060608486031215610fd757600080fd5b8335610fe281610f7e565b92506020840135610ff281610f7e565b929592945050506040919091013590565b60006020828403121561101557600080fd5b8135610afe81610f7e565b6000806040838503121561103357600080fd5b823561103e81610f7e565b9150602083013561104e81610f7e565b809150509250929050565b600181811c9082168061106d57607f821691505b6020821081141561108e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110bd576110bd611094565b500190565b6000828210156110d4576110d4611094565b500390565b6000602082840312156110eb57600080fd5b8151610afe81610f7e565b60008261111357634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561113257611132611094565b50029056fea164736f6c634300080b000a000000000000000000000000af52695e1bb01a16d33d7194c28c42b10e0dbec2000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000004417572610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155524100000000000000000000000000000000000000000000000000000000

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

000000000000000000000000af52695e1bb01a16d33d7194c28c42b10e0dbec2000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000004417572610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155524100000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _proxy (address): 0xaF52695E1bB01A16D33D7194C28C42b10e0Dbec2
Arg [1] : _nameArg (string): Aura
Arg [2] : _symbolArg (string): AURA

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000af52695e1bb01a16d33d7194c28c42b10e0dbec2
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 4175726100000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4155524100000000000000000000000000000000000000000000000000000000


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.