Contract 0xa509da749745ac07e9ae47e7a092ead2648b47f2 1

 

Contract Overview

Balance:
117 MATIC

MATIC Value:
$105.10 (@ $0.90/MATIC)

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xe4e124876b1272c8ad3d3faea40f6de1569f39eaf306c80676e23f070f56f905Approve429044432023-05-19 18:23:1815 days 2 hrs ago0x5e41f603f24ead60b4d04c29d3c7eca8ae9bdaae IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.003761991706 150.890089302
0x05924b7f91e2436160b89f137ceb4d6af6f6d12f46dd8f63423a9e6fa4e5caa9Approve429044422023-05-19 18:23:1615 days 2 hrs ago0x5e41f603f24ead60b4d04c29d3c7eca8ae9bdaae IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.003693199524 148.130897008
0x53d0ac811739479a1d6295f13684597d338155a6405080f0308b8b258039fa85Approve426684332023-05-13 21:09:2520 days 23 hrs ago0x7f86710856f2971804629667b8c47a3ec11d3951 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.00389863624 156.370778151
0xaa3d8af1bef4f79506e02954e7f681b64996675479ea7607288de45ead316e54Approve426197892023-05-12 16:02:4422 days 4 hrs ago0xe975ea179199189af740631fb41521cf6f7d3f8c IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.005219863966209.364028827
0x9e5dc7e4a057aaeda6265ebae51cac59863c5063e28d14d17db29bdd459f9e4bApprove426197802023-05-12 16:02:2622 days 4 hrs ago0xe975ea179199189af740631fb41521cf6f7d3f8c IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004013365509160.97246549
0x811fc5d7d7f244a0630122ba476f546d198c348af62b0817d795e65c68e1f44eApprove426196512023-05-12 15:57:4822 days 4 hrs ago0xe975ea179199189af740631fb41521cf6f7d3f8c IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004615786603 185.135031433
0xf6c3f8949f48f72397feb0b628159188f2e1653b0dbbd4c959fb4c9af92b2a43Approve426119282023-05-12 11:08:5322 days 9 hrs ago0x00eb1860a20bebea22e0df078d07fa0bab6036dd IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004091552555 164.10847728
0x9d854a924e750eb9b73bf6ffeb3640eac964b2ba87c98a833fa729c8b1881796Approve426119252023-05-12 11:08:4722 days 9 hrs ago0x00eb1860a20bebea22e0df078d07fa0bab6036dd IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004311545668 172.932202326
0x4d34dac5f4f1026ad2c35279185dee96dc004f49047e21e5f8ea2970aa164c50Approve426119212023-05-12 11:08:3922 days 9 hrs ago0x00eb1860a20bebea22e0df078d07fa0bab6036dd IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004288368049 172.002568984
0x48dd807042d5fdefa504f285dc9c7a9abdc700dd616c51addbf0e25c82569ea1Approve422914222023-05-04 10:10:0230 days 10 hrs ago0x268b819eb1a64796c670bdb90752f55ca9eef21f IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.006017158494 241.342792194
0xae8076bf251881bc61053da2a3232e8810404240e883bcc885985a5356a24e46Approve422914192023-05-04 10:09:5630 days 10 hrs ago0x268b819eb1a64796c670bdb90752f55ca9eef21f IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.005818617471 233.379491076
0x1657591e6f3f9f1895aac654f7246c842fe475637cc4bacb08be2275d487f503Approve422373162023-05-03 1:29:0331 days 19 hrs ago0xe853ee163b6226bb3b9fd63fe19d5b74e34e19e5 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.006183901192 248.03069118
0xea03886fe8962f53d76f19bed649681a00385f732cdde9647772a512a908c49cApprove422373142023-05-03 1:28:5931 days 19 hrs ago0xe853ee163b6226bb3b9fd63fe19d5b74e34e19e5 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.005772100567 231.513740079
0xbe3a957b8680bb0ca5419aa7cb8d499dfb796984ea8eb90b0b2aa9d2b8a0b35eApprove422373132023-05-03 1:28:5731 days 19 hrs ago0xe853ee163b6226bb3b9fd63fe19d5b74e34e19e5 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.005895553479 236.46532486
0xeb0d0f1bf36c6c6846b01bf5a169bc61c80e0560314c7457774194fd471d6cf5Approve417517002023-04-20 15:23:5844 days 5 hrs ago0xcce79a4436c6a015ed7a821f57e0911890fbcf51 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.006656844267
0x014bc7ac3a81ab3ec8ff2f6bb7be60777cc111be95f61e3d178f4b56d50bbf83Approve417516782023-04-20 15:23:1044 days 5 hrs ago0xcce79a4436c6a015ed7a821f57e0911890fbcf51 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.00723028290
0x5df7e9a0b12ed7ba19d5d3cf182e6abea899dbe6a3ec931f1bc0e2aab7a2670dApprove416971952023-04-19 4:24:0045 days 16 hrs ago0x45f51421d13987d8859d0aa2fd68642b19694a70 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.006980837291 279.995078261
0x479ab21a088f41e514a34ce0fdcc37c2c25615a6ca38cae025b987c5e31e94d5Approve416971932023-04-19 4:23:5645 days 16 hrs ago0x45f51421d13987d8859d0aa2fd68642b19694a70 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.007312161546 293.284194861
0x9ccf780cee738200bdb9449a42a2b6754534280e362b86ad840e55603eab4fb7Approve416253182023-04-17 6:27:4547 days 14 hrs ago0xcce79a4436c6a015ed7a821f57e0911890fbcf51 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.004388032176
0x77fa64a323283eb682003ae019ae835ddb0dc670b8e18ae648c3defee7e7e1ccApprove414588962023-04-12 21:07:4451 days 23 hrs ago d-olgunchik.wallet  IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.003659505808 146.779472492
0x2eb072f4fd38824ead0b0892d8815c83634870a0a1bdadaa8c21011c2d6459b7Approve413420412023-04-09 20:48:3154 days 23 hrs ago0x91b689c57b4faa77d4cc14029fdca104a4579980 IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.003437081247 137.858224287
0x9de24396d93db355a287326d2f803940a7db37c27edb127c7120857b64dca62bApprove413302482023-04-09 13:36:1755 days 7 hrs ago0x56f322d0dcb001960e62084cadd8fa529d577f6d IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.003747969417 150.327667971
0xb4c1f7bda4087275841b027d04a00e740f329cf86f7695231a17df0839984e0aApprove413302442023-04-09 13:36:0955 days 7 hrs ago0x56f322d0dcb001960e62084cadd8fa529d577f6d IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.00389838412 156.360665844
0x738d89f1e590769b91dcb7761c6f622990d83b6665fed2d1aa4abe37080ae7beApprove413224162023-04-09 8:42:5755 days 11 hrs ago dotsenko.nft  IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.002250282513 90.256799027
0xaa554ca97f1dd5a7cbcfb7af158ebbf939b0b18e0339feec097ab43825f16032Approve413205732023-04-09 7:32:4155 days 13 hrs ago0xa954bc5cee349b24a2db1f69dabd5deca74829ed IN  0xa509da749745ac07e9ae47e7a092ead2648b47f20 MATIC0.002664139869 106.856243763
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MyFriendsToken

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : MyFriendsToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./libs/ERC20.sol";
import "./libs/IERC20.sol";

import "./libs/RHCPToolBox.sol";

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";


// MyFriendsToken
contract MyFriendsToken is ERC20("MYFRIENDS", "MYFRIENDS") {

    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    uint256 public constant usdcSwapThreshold = 20 * (10 ** 6);

    // The operator can only update the transfer tax rate
    address private _operator;

    IERC20 public immutable usdcRewardCurrency;

    uint256 usdcRewardBalance = 0;

    RHCPToolBox arcadiumToolBox;

    IUniswapV2Router02 public arcadiumSwapRouter;

    // Events
    event DistributeMyFriends(address recipient, uint256 myFriendsAmount);
    event DepositFeeConvertedToUSDC(address indexed inputToken, uint256 inputAmount, uint256 usdcOutput);
    event USDCTransferredToUser(address recipient, uint256 usdcAmount);
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event ArcadiumSwapRouterUpdated(address indexed operator, address indexed router);

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    /**
     * @notice Constructs the ArcadiumToken contract.
     */
    constructor(address _usdcCurrency, RHCPToolBox _arcadiumToolBox) public {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);

        arcadiumToolBox = _arcadiumToolBox;
        usdcRewardCurrency = IERC20(_usdcCurrency);

        // Divvy up myFriends supply.
        _mint(0x3a1D1114269d7a786C154FE5278bF5b1e3e20d31, 80 * (10 ** 3) * (10 ** 18));
        _mint(address(this), 20 * (10 ** 3) * (10 ** 18));
    }

    /// @notice Sends `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function distribute(address _to, uint256 _amount) external onlyOwner returns (uint256){
        uint256 sendAmount = _amount;
        if (balanceOf(address(this)) < _amount)
            sendAmount = balanceOf(address(this));

        if (sendAmount > 0) {
            IERC20(address(this)).transfer(_to, sendAmount);
            emit DistributeMyFriends(_to, sendAmount);
        }

        return sendAmount;
    }

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

    // To receive MATIC from arcadiumSwapRouter when swapping
    receive() external payable {}

    /**
     * @dev sell all of a current type of token for usdc.
     * Can only be called by the current operator.
     */
    function convertDepositFeesToUSDC(address token, uint8 tokenType) public onlyOwner returns (uint256) {
        // shouldn't be trying to sell MyFriends
        if (token == address(this))
            return 0;

        // LP tokens aren't destroyed in MyFriends, but this is so MyFriends can process
        // already destroyed LP fees sent to it by the ArcadiumToken contract.
        if (tokenType == 1) {
            return convertDepositFeesToUSDC(IUniswapV2Pair(token).token0(), 0) +
                convertDepositFeesToUSDC(IUniswapV2Pair(token).token1(), 0);
        }

        uint256 totalTokenBalance = IERC20(token).balanceOf(address(this));

        if (token == address(usdcRewardCurrency)) {
            // Incase any usdc has been sent from OTC or otherwise, report that as
            // gained this amount.
            uint256 amountLiquified = totalTokenBalance - usdcRewardBalance;

            usdcRewardBalance = totalTokenBalance;

            return amountLiquified;
        }

        uint256 usdcValue = arcadiumToolBox.getTokenUSDCValue(totalTokenBalance, token, tokenType, false, address(usdcRewardCurrency));

        if (totalTokenBalance == 0)
            return 0;
        if (usdcValue < usdcSwapThreshold)
            return 0;

        // generate the arcadiumSwap pair path of token -> usdc.
        address[] memory path = new address[](2);
        path[0] = token;
        path[1] = address(usdcRewardCurrency);

        uint256 usdcPriorBalance = usdcRewardCurrency.balanceOf(address(this));

        require(IERC20(token).approve(address(arcadiumSwapRouter), totalTokenBalance), 'approval failed');

        // make the swap
        arcadiumSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            totalTokenBalance,
            0, // accept any amount of USDC
            path,
            address(this),
            block.timestamp
        );

        uint256 usdcProfit =  usdcRewardCurrency.balanceOf(address(this)) - usdcPriorBalance;

        usdcRewardBalance = usdcRewardBalance + usdcProfit;

        emit DepositFeeConvertedToUSDC(token, totalTokenBalance, usdcProfit);

        return usdcProfit;
    }

    /**
     * @dev send usdc to a user
     * Can only be called by the current operator.
     */
    function transferUSDCToUser(address recipient, uint256 amount) external onlyOwner {
        require(usdcRewardCurrency.balanceOf(address(this)) >= amount, "accounting error, transfering more usdc out than available");
        require(usdcRewardCurrency.transfer(recipient, amount), "transfer failed!");

        usdcRewardBalance = usdcRewardBalance - amount;

        emit USDCTransferredToUser(recipient, amount);
    }

    /**
     * @dev Update the swap router.
     * Can only be called by the current operator.
     */
    function updateArcadiumSwapRouter(address _router) external onlyOperator {
        require(_router != address(0), "updateArcadiumSwapRouter: new _router is the zero address");
        require(address(arcadiumSwapRouter) == address(0), "router already set!");

        arcadiumSwapRouter = IUniswapV2Router02(_router);
        emit ArcadiumSwapRouterUpdated(msg.sender, address(arcadiumSwapRouter));
    }

    /**
     * @dev Transfers operator of the contract to a new account (`newOperator`).
     * Can only be called by the current operator.
     */
    function transferOperator(address newOperator) external onlyOperator {
        require(newOperator != address(0), "transferOperator: new operator is the zero address");
        _operator = newOperator;

        emit OperatorTransferred(_operator, newOperator);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./IERC20Metadata.sol";

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./ERC20.sol";
import "./IERC20.sol";

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";

contract RHCPToolBox {

    IUniswapV2Router02 public immutable arcadiumSwapRouter;

    uint256 public immutable startBlock;

    /**
     * @notice Constructs the ArcadiumToken contract.
     */
    constructor(uint256 _startBlock, IUniswapV2Router02 _arcadiumSwapRouter) public {
        startBlock = _startBlock;
        arcadiumSwapRouter = _arcadiumSwapRouter;
    }

    function convertToTargetValueFromPair(IUniswapV2Pair pair, uint256 sourceTokenAmount, address targetAddress) public view returns (uint256) {
        require(pair.token0() == targetAddress || pair.token1() == targetAddress, "one of the pairs must be the targetAddress");
        if (sourceTokenAmount == 0)
            return 0;

        (uint256 res0, uint256 res1, ) = pair.getReserves();
        if (res0 == 0 || res1 == 0)
            return 0;

        if (pair.token0() == targetAddress)
            return (res0 * sourceTokenAmount) / res1;
        else
            return (res1 * sourceTokenAmount) / res0;
    }

    function getTokenUSDCValue(uint256 tokenBalance, address token, uint8 tokenType, bool viaMaticUSDC, address usdcAddress) external view returns (uint256) {
        require(tokenType == 0 || tokenType == 1, "invalid token type provided");
        if (token == address(usdcAddress))
            return tokenBalance;

        // lp type
        if (tokenType == 1) {
            IUniswapV2Pair lpToken = IUniswapV2Pair(token);
            if (lpToken.totalSupply() == 0)
                return 0;
            // If lp contains usdc, we can take a short-cut
            if (lpToken.token0() == address(usdcAddress)) {
                return (IERC20(lpToken.token0()).balanceOf(address(lpToken)) * tokenBalance * 2) / lpToken.totalSupply();
            } else if (lpToken.token1() == address(usdcAddress)){
                return (IERC20(lpToken.token1()).balanceOf(address(lpToken)) * tokenBalance * 2) / lpToken.totalSupply();
            }
        }

        // Only used for lp type tokens.
        address lpTokenAddress = token;
        // If token0 or token1 is bnb, use that, else use token0.
        if (tokenType == 1) {
            token = IUniswapV2Pair(token).token0() == arcadiumSwapRouter.WETH() ? arcadiumSwapRouter.WETH() :
                        (IUniswapV2Pair(token).token1() == arcadiumSwapRouter.WETH() ? arcadiumSwapRouter.WETH() : IUniswapV2Pair(token).token0());
        }

        // if it is an LP token we work with all of the reserve in the LP address to scale down later.
        uint256 tokenAmount = (tokenType == 1) ? IERC20(token).balanceOf(lpTokenAddress) : tokenBalance;

        uint256 usdcEquivalentAmount = 0;

        if (viaMaticUSDC) {
            uint256 maticAmount = 0;

            if (token == arcadiumSwapRouter.WETH()) {
                maticAmount = tokenAmount;
            } else {

                // As we arent working with usdc at this point (early return), this is okay.
                IUniswapV2Pair maticPair = IUniswapV2Pair(IUniswapV2Factory(arcadiumSwapRouter.factory()).getPair(arcadiumSwapRouter.WETH(), token));

                if (address(maticPair) == address(0))
                    return 0;

                maticAmount = convertToTargetValueFromPair(maticPair, tokenAmount, arcadiumSwapRouter.WETH());
            }

            // As we arent working with usdc at this point (early return), this is okay.
            IUniswapV2Pair usdcmaticPair = IUniswapV2Pair(IUniswapV2Factory(arcadiumSwapRouter.factory()).getPair(arcadiumSwapRouter.WETH(), address(usdcAddress)));

            if (address(usdcmaticPair) == address(0))
                return 0;

            usdcEquivalentAmount = convertToTargetValueFromPair(usdcmaticPair, maticAmount, usdcAddress);
        } else {
            // As we arent working with usdc at this point (early return), this is okay.
            IUniswapV2Pair usdcPair = IUniswapV2Pair(IUniswapV2Factory(arcadiumSwapRouter.factory()).getPair(address(usdcAddress), token));

            if (address(usdcPair) == address(0))
                return 0;

            usdcEquivalentAmount = convertToTargetValueFromPair(usdcPair, tokenAmount, usdcAddress);
        }

        // for the tokenType == 1 path usdcEquivalentAmount is the USDC value of all the tokens in the parent LP contract.

        if (tokenType == 1)
            return (usdcEquivalentAmount * tokenBalance * 2) / IUniswapV2Pair(lpTokenAddress).totalSupply();
        else
            return usdcEquivalentAmount;
    }

    function getArcadiumEmissionForBlock(uint256 _block, bool isIncreasingGradient, uint256 releaseGradient, uint256 gradientEndBlock, uint256 endEmission) public pure returns (uint256) {
        if (_block >= gradientEndBlock)
            return endEmission;

        if (releaseGradient == 0)
            return endEmission;
        uint256 currentArcadiumEmission = endEmission;
        uint256 deltaHeight = (releaseGradient * (gradientEndBlock - _block)) / 1e24;

        if (isIncreasingGradient) {
            // if there is a logical error, we return 0
            if (endEmission >= deltaHeight)
                currentArcadiumEmission = endEmission - deltaHeight;
            else
                currentArcadiumEmission = 0;
        } else
            currentArcadiumEmission = endEmission + deltaHeight;

        return currentArcadiumEmission;
    }

    function calcEmissionGradient(uint256 _block, uint256 currentEmission, uint256 gradientEndBlock, uint256 endEmission) external pure returns (uint256) {
        uint256 arcadiumReleaseGradient;

        // if the gradient is 0 we interpret that as an unchanging 0 gradient.
        if (currentEmission != endEmission && _block < gradientEndBlock) {
            bool isIncreasingGradient = endEmission > currentEmission;
            if (isIncreasingGradient)
                arcadiumReleaseGradient = ((endEmission - currentEmission) * 1e24) / (gradientEndBlock - _block);
            else
                arcadiumReleaseGradient = ((currentEmission - endEmission) * 1e24) / (gradientEndBlock - _block);
        } else
            arcadiumReleaseGradient = 0;

        return arcadiumReleaseGradient;
    }

    // Return if we are in the normal operation era, no promo
    function isFlatEmission(uint256 _gradientEndBlock, uint256 _blocknum) internal pure returns (bool) {
        return _blocknum >= _gradientEndBlock;
    }

    // Return ARCADIUM reward release over the given _from to _to block.
    function getArcadiumRelease(bool isIncreasingGradient, uint256 releaseGradient, uint256 gradientEndBlock, uint256 endEmission, uint256 _from, uint256 _to) external view returns (uint256) {
        if (_to <= _from || _to <= startBlock)
            return 0;
        uint256 clippedFrom = _from < startBlock ? startBlock : _from;
        uint256 totalWidth = _to - clippedFrom;

        if (releaseGradient == 0 || isFlatEmission(gradientEndBlock, clippedFrom))
            return totalWidth * endEmission;

        if (!isFlatEmission(gradientEndBlock, _to)) {
            uint256 heightDelta = releaseGradient * totalWidth;

            uint256 baseEmission;
            if (isIncreasingGradient)
                baseEmission = getArcadiumEmissionForBlock(_from, isIncreasingGradient, releaseGradient, gradientEndBlock, endEmission);
            else
                baseEmission = getArcadiumEmissionForBlock(_to, isIncreasingGradient, releaseGradient, gradientEndBlock, endEmission);
            return totalWidth * baseEmission + (((totalWidth * heightDelta) / 2) / 1e24);
        }

        // Special case when we are transitioning between promo and normal era.
        if (!isFlatEmission(gradientEndBlock, clippedFrom) && isFlatEmission(gradientEndBlock, _to)) {
            uint256 blocksUntilGradientEnd = gradientEndBlock - clippedFrom;
            uint256 heightDelta = releaseGradient * blocksUntilGradientEnd;

            uint256 baseEmission;
            if (isIncreasingGradient)
                baseEmission = getArcadiumEmissionForBlock(_to, isIncreasingGradient, releaseGradient, gradientEndBlock, endEmission);
            else
                baseEmission = getArcadiumEmissionForBlock(_from, isIncreasingGradient, releaseGradient, gradientEndBlock, endEmission);

            return totalWidth * baseEmission - (((blocksUntilGradientEnd * heightDelta) / 2) / 1e24);
        }

        // huh?
        // shouldnt happen, but also don't want to assert false here either.
        return 0;
    }
}

File 5 of 11 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 6 of 11 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 7 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_usdcCurrency","type":"address"},{"internalType":"contract RHCPToolBox","name":"_arcadiumToolBox","type":"address"}],"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":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"ArcadiumSwapRouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"inputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"inputAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdcOutput","type":"uint256"}],"name":"DepositFeeConvertedToUSDC","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"myFriendsAmount","type":"uint256"}],"name":"DistributeMyFriends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdcAmount","type":"uint256"}],"name":"USDCTransferredToUser","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"arcadiumSwapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","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":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint8","name":"tokenType","type":"uint8"}],"name":"convertDepositFeesToUSDC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"distribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferUSDCToUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"updateArcadiumSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcRewardCurrency","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdcSwapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405260006007553480156200001657600080fd5b5060405162003c0a38038062003c0a83398181016040528101906200003c9190620005c3565b6040518060400160405280600981526020017f4d59465249454e445300000000000000000000000000000000000000000000008152506040518060400160405280600981526020017f4d59465249454e44530000000000000000000000000000000000000000000000815250620000c8620000bc6200029560201b60201c565b6200029d60201b60201c565b8160049080519060200190620000e0929190620004e5565b508060059080519060200190620000f9929190620004e5565b5050506200010c6200029560201b60201c565b600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed60405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505062000271733a1d1114269d7a786c154fe5278bf5b1e3e20d316910f0cf064dd5920000006200036160201b60201c565b6200028d3069043c33c19375648000006200036160201b60201c565b50506200082c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620003d4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003cb906200063c565b60405180910390fd5b620003e860008383620004db60201b60201c565b8060036000828254620003fc91906200068c565b9250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200045491906200068c565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620004bb91906200065e565b60405180910390a3620004d760008383620004e060201b60201c565b5050565b505050565b505050565b828054620004f3906200073b565b90600052602060002090601f01602090048101928262000517576000855562000563565b82601f106200053257805160ff191683800117855562000563565b8280016001018555821562000563579182015b828111156200056257825182559160200191906001019062000545565b5b50905062000572919062000576565b5090565b5b808211156200059157600081600090555060010162000577565b5090565b600081519050620005a681620007f8565b92915050565b600081519050620005bd8162000812565b92915050565b60008060408385031215620005d757600080fd5b6000620005e78582860162000595565b9250506020620005fa85828601620005ac565b9150509250929050565b600062000613601f836200067b565b91506200062082620007cf565b602082019050919050565b620006368162000731565b82525050565b60006020820190508181036000830152620006578162000604565b9050919050565b60006020820190506200067560008301846200062b565b92915050565b600082825260208201905092915050565b6000620006998262000731565b9150620006a68362000731565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620006de57620006dd62000771565b5b828201905092915050565b6000620006f68262000711565b9050919050565b60006200070a82620006e9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200075457607f821691505b602082108114156200076b576200076a620007a0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6200080381620006e9565b81146200080f57600080fd5b50565b6200081d81620006fd565b81146200082957600080fd5b50565b60805160601c61338e6200087c60003960008181610940015281816109fc01528181610ba301528181610c3a01528181610e6c01528181611011015281816110fb0152611abd015261338e6000f3fe60806040526004361061014f5760003560e01c80636b687705116100b6578063a9059cbb1161006f578063a9059cbb146104b3578063d84011aa146104f0578063dd62ed3e1461051b578063f2fde38b14610558578063fb93210814610581578063fccc2813146105be57610156565b80636b687705146103a357806370a08231146103cc578063715018a6146104095780638da5cb5b1461042057806395d89b411461044b578063a457c2d71461047657610156565b806323b872dd1161010857806323b872dd1461027f57806329605e77146102bc578063313ce567146102e55780633284c8b414610310578063395093511461033b578063570ca7351461037857610156565b806306fdde031461015b578063095ea7b3146101865780631234b31c146101c357806318160ddd146101ee5780631fbb1d64146102195780632186ff491461025657610156565b3661015657005b600080fd5b34801561016757600080fd5b506101706105e9565b60405161017d9190612914565b60405180910390f35b34801561019257600080fd5b506101ad60048036038101906101a8919061245e565b61067b565b6040516101ba91906128c3565b60405180910390f35b3480156101cf57600080fd5b506101d8610699565b6040516101e591906128f9565b60405180910390f35b3480156101fa57600080fd5b506102036106bf565b6040516102109190612b36565b60405180910390f35b34801561022557600080fd5b50610240600480360381019061023b919061249a565b6106c9565b60405161024d9190612b36565b60405180910390f35b34801561026257600080fd5b5061027d6004803603810190610278919061245e565b610f92565b005b34801561028b57600080fd5b506102a660048036038101906102a1919061240f565b611236565b6040516102b391906128c3565b60405180910390f35b3480156102c857600080fd5b506102e360048036038101906102de9190612381565b61132e565b005b3480156102f157600080fd5b506102fa6114ee565b6040516103079190612c27565b60405180910390f35b34801561031c57600080fd5b506103256114f7565b6040516103329190612b36565b60405180910390f35b34801561034757600080fd5b50610362600480360381019061035d919061245e565b6114ff565b60405161036f91906128c3565b60405180910390f35b34801561038457600080fd5b5061038d6115ab565b60405161039a919061287f565b60405180910390f35b3480156103af57600080fd5b506103ca60048036038101906103c59190612381565b6115d5565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190612381565b611826565b6040516104009190612b36565b60405180910390f35b34801561041557600080fd5b5061041e61186f565b005b34801561042c57600080fd5b506104356118f7565b604051610442919061287f565b60405180910390f35b34801561045757600080fd5b50610460611920565b60405161046d9190612914565b60405180910390f35b34801561048257600080fd5b5061049d6004803603810190610498919061245e565b6119b2565b6040516104aa91906128c3565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d5919061245e565b611a9d565b6040516104e791906128c3565b60405180910390f35b3480156104fc57600080fd5b50610505611abb565b60405161051291906128de565b60405180910390f35b34801561052757600080fd5b50610542600480360381019061053d91906123d3565b611adf565b60405161054f9190612b36565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a9190612381565b611b66565b005b34801561058d57600080fd5b506105a860048036038101906105a3919061245e565b611c5e565b6040516105b59190612b36565b60405180910390f35b3480156105ca57600080fd5b506105d3611dd8565b6040516105e0919061287f565b60405180910390f35b6060600480546105f890612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461062490612e03565b80156106715780601f1061064657610100808354040283529160200191610671565b820191906000526020600020905b81548152906001019060200180831161065457829003601f168201915b5050505050905090565b600061068f610688611dde565b8484611de6565b6001905092915050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600354905090565b60006106d3611dde565b73ffffffffffffffffffffffffffffffffffffffff166106f16118f7565b73ffffffffffffffffffffffffffffffffffffffff1614610747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073e90612a16565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107845760009050610f8c565b60018260ff1614156108b1576108188373ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d957600080fd5b505afa1580156107ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081191906123aa565b60006106c9565b6108a08473ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561086157600080fd5b505afa158015610875573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089991906123aa565b60006106c9565b6108aa9190612c97565b9050610f8c565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108ec919061287f565b60206040518083038186803b15801561090457600080fd5b505afa158015610918573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093c91906124ff565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156109b5576000600754826109a29190612ced565b9050816007819055508092505050610f8c565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fdb6c9d883878760007f00000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b8152600401610a3b959493929190612b51565b60206040518083038186803b158015610a5357600080fd5b505afa158015610a67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8b91906124ff565b90506000821415610aa157600092505050610f8c565b6301312d00811015610ab857600092505050610f8c565b6000600267ffffffffffffffff811115610afb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b295781602001602082028036833780820191505090505b5090508581600081518110610b67577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610bfc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c91919061287f565b60206040518083038186803b158015610ca957600080fd5b505afa158015610cbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce191906124ff565b90508673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518363ffffffff1660e01b8152600401610d4092919061289a565b602060405180830381600087803b158015610d5a57600080fd5b505af1158015610d6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9291906124d6565b610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890612ad6565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c11d7958560008530426040518663ffffffff1660e01b8152600401610e35959493929190612ba4565b600060405180830381600087803b158015610e4f57600080fd5b505af1158015610e63573d6000803e3d6000fd5b505050506000817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ec3919061287f565b60206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1391906124ff565b610f1d9190612ced565b905080600754610f2d9190612c97565b6007819055508773ffffffffffffffffffffffffffffffffffffffff167fa72cbda558ce5fe5566705d8b2a3585ad9aff2a480c22ba73da502393239ee498683604051610f7b929190612bfe565b60405180910390a280955050505050505b92915050565b610f9a611dde565b73ffffffffffffffffffffffffffffffffffffffff16610fb86118f7565b73ffffffffffffffffffffffffffffffffffffffff161461100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590612a16565b60405180910390fd5b807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611068919061287f565b60206040518083038186803b15801561108057600080fd5b505afa158015611094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b891906124ff565b10156110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f0906129d6565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b815260040161115492919061289a565b602060405180830381600087803b15801561116e57600080fd5b505af1158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a691906124d6565b6111e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dc90612af6565b60405180910390fd5b806007546111f39190612ced565b6007819055507f5cf0cdb13ff266b0acb01cb0c47930ea66f28b38ac2d2e6fbe93338afb78f302828260405161122a92919061289a565b60405180910390a15050565b6000611243848484611fb1565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061128e611dde565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561130e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611305906129f6565b60405180910390fd5b6113228561131a611dde565b858403611de6565b60019150509392505050565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b590612a36565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561142e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142590612a76565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed60405160405180910390a350565b60006012905090565b6301312d0081565b60006115a161150c611dde565b84846002600061151a611dde565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159c9190612c97565b611de6565b6001905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c90612a36565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cc90612956565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d90612ab6565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5194c1ef9ab059995453562ca1eb6b0f0e50dff5c717ca9e270328c1a9124ffa60405160405180910390a350565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611877611dde565b73ffffffffffffffffffffffffffffffffffffffff166118956118f7565b73ffffffffffffffffffffffffffffffffffffffff16146118eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e290612a16565b60405180910390fd5b6118f56000612235565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606005805461192f90612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461195b90612e03565b80156119a85780601f1061197d576101008083540402835291602001916119a8565b820191906000526020600020905b81548152906001019060200180831161198b57829003601f168201915b5050505050905090565b600080600260006119c1611dde565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7590612b16565b60405180910390fd5b611a92611a89611dde565b85858403611de6565b600191505092915050565b6000611ab1611aaa611dde565b8484611fb1565b6001905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611b6e611dde565b73ffffffffffffffffffffffffffffffffffffffff16611b8c6118f7565b73ffffffffffffffffffffffffffffffffffffffff1614611be2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd990612a16565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4990612976565b60405180910390fd5b611c5b81612235565b50565b6000611c68611dde565b73ffffffffffffffffffffffffffffffffffffffff16611c866118f7565b73ffffffffffffffffffffffffffffffffffffffff1614611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd390612a16565b60405180910390fd5b600082905082611ceb30611826565b1015611cfd57611cfa30611826565b90505b6000811115611dce573073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85836040518363ffffffff1660e01b8152600401611d4192919061289a565b602060405180830381600087803b158015611d5b57600080fd5b505af1158015611d6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9391906124d6565b507f4f787887b3c73f0af08218747f1c511fb7178af5883c985710c2cd406e3c27838482604051611dc592919061289a565b60405180910390a15b8091505092915050565b61dead81565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4d90612a96565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebd90612996565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611fa49190612b36565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201890612a56565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612091576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208890612936565b60405180910390fd5b61209c8383836122f9565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211a906129b6565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121b89190612c97565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161221c9190612b36565b60405180910390a361222f8484846122fe565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b600081359050612312816132fc565b92915050565b600081519050612327816132fc565b92915050565b60008151905061233c81613313565b92915050565b6000813590506123518161332a565b92915050565b6000815190506123668161332a565b92915050565b60008135905061237b81613341565b92915050565b60006020828403121561239357600080fd5b60006123a184828501612303565b91505092915050565b6000602082840312156123bc57600080fd5b60006123ca84828501612318565b91505092915050565b600080604083850312156123e657600080fd5b60006123f485828601612303565b925050602061240585828601612303565b9150509250929050565b60008060006060848603121561242457600080fd5b600061243286828701612303565b935050602061244386828701612303565b925050604061245486828701612342565b9150509250925092565b6000806040838503121561247157600080fd5b600061247f85828601612303565b925050602061249085828601612342565b9150509250929050565b600080604083850312156124ad57600080fd5b60006124bb85828601612303565b92505060206124cc8582860161236c565b9150509250929050565b6000602082840312156124e857600080fd5b60006124f68482850161232d565b91505092915050565b60006020828403121561251157600080fd5b600061251f84828501612357565b91505092915050565b60006125348383612540565b60208301905092915050565b61254981612d21565b82525050565b61255881612d21565b82525050565b600061256982612c52565b6125738185612c75565b935061257e83612c42565b8060005b838110156125af5781516125968882612528565b97506125a183612c68565b925050600181019050612582565b5085935050505092915050565b6125c581612d33565b82525050565b6125d481612d76565b82525050565b6125e381612d9a565b82525050565b6125f281612dbe565b82525050565b600061260382612c5d565b61260d8185612c86565b935061261d818560208601612dd0565b61262681612e93565b840191505092915050565b600061263e602383612c86565b915061264982612ea4565b604082019050919050565b6000612661603983612c86565b915061266c82612ef3565b604082019050919050565b6000612684602683612c86565b915061268f82612f42565b604082019050919050565b60006126a7602283612c86565b91506126b282612f91565b604082019050919050565b60006126ca602683612c86565b91506126d582612fe0565b604082019050919050565b60006126ed603a83612c86565b91506126f88261302f565b604082019050919050565b6000612710602883612c86565b915061271b8261307e565b604082019050919050565b6000612733602083612c86565b915061273e826130cd565b602082019050919050565b6000612756602483612c86565b9150612761826130f6565b604082019050919050565b6000612779602583612c86565b915061278482613145565b604082019050919050565b600061279c603283612c86565b91506127a782613194565b604082019050919050565b60006127bf602483612c86565b91506127ca826131e3565b604082019050919050565b60006127e2601383612c86565b91506127ed82613232565b602082019050919050565b6000612805600f83612c86565b91506128108261325b565b602082019050919050565b6000612828601083612c86565b915061283382613284565b602082019050919050565b600061284b602583612c86565b9150612856826132ad565b604082019050919050565b61286a81612d5f565b82525050565b61287981612d69565b82525050565b6000602082019050612894600083018461254f565b92915050565b60006040820190506128af600083018561254f565b6128bc6020830184612861565b9392505050565b60006020820190506128d860008301846125bc565b92915050565b60006020820190506128f360008301846125cb565b92915050565b600060208201905061290e60008301846125da565b92915050565b6000602082019050818103600083015261292e81846125f8565b905092915050565b6000602082019050818103600083015261294f81612631565b9050919050565b6000602082019050818103600083015261296f81612654565b9050919050565b6000602082019050818103600083015261298f81612677565b9050919050565b600060208201905081810360008301526129af8161269a565b9050919050565b600060208201905081810360008301526129cf816126bd565b9050919050565b600060208201905081810360008301526129ef816126e0565b9050919050565b60006020820190508181036000830152612a0f81612703565b9050919050565b60006020820190508181036000830152612a2f81612726565b9050919050565b60006020820190508181036000830152612a4f81612749565b9050919050565b60006020820190508181036000830152612a6f8161276c565b9050919050565b60006020820190508181036000830152612a8f8161278f565b9050919050565b60006020820190508181036000830152612aaf816127b2565b9050919050565b60006020820190508181036000830152612acf816127d5565b9050919050565b60006020820190508181036000830152612aef816127f8565b9050919050565b60006020820190508181036000830152612b0f8161281b565b9050919050565b60006020820190508181036000830152612b2f8161283e565b9050919050565b6000602082019050612b4b6000830184612861565b92915050565b600060a082019050612b666000830188612861565b612b73602083018761254f565b612b806040830186612870565b612b8d60608301856125bc565b612b9a608083018461254f565b9695505050505050565b600060a082019050612bb96000830188612861565b612bc660208301876125e9565b8181036040830152612bd8818661255e565b9050612be7606083018561254f565b612bf46080830184612861565b9695505050505050565b6000604082019050612c136000830185612861565b612c206020830184612861565b9392505050565b6000602082019050612c3c6000830184612870565b92915050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612ca282612d5f565b9150612cad83612d5f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612ce257612ce1612e35565b5b828201905092915050565b6000612cf882612d5f565b9150612d0383612d5f565b925082821015612d1657612d15612e35565b5b828203905092915050565b6000612d2c82612d3f565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612d8182612d88565b9050919050565b6000612d9382612d3f565b9050919050565b6000612da582612dac565b9050919050565b6000612db782612d3f565b9050919050565b6000612dc982612d5f565b9050919050565b60005b83811015612dee578082015181840152602081019050612dd3565b83811115612dfd576000848401525b50505050565b60006002820490506001821680612e1b57607f821691505b60208210811415612e2f57612e2e612e64565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f757064617465417263616469756d53776170526f757465723a206e6577205f7260008201527f6f7574657220697320746865207a65726f206164647265737300000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f6163636f756e74696e67206572726f722c207472616e73666572696e67206d6f60008201527f72652075736463206f7574207468616e20617661696c61626c65000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f7472616e736665724f70657261746f723a206e6577206f70657261746f72206960008201527f7320746865207a65726f20616464726573730000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f726f7574657220616c7265616479207365742100000000000000000000000000600082015250565b7f617070726f76616c206661696c65640000000000000000000000000000000000600082015250565b7f7472616e73666572206661696c65642100000000000000000000000000000000600082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61330581612d21565b811461331057600080fd5b50565b61331c81612d33565b811461332757600080fd5b50565b61333381612d5f565b811461333e57600080fd5b50565b61334a81612d69565b811461335557600080fd5b5056fea2646970667358221220831729405dfc7c488095e4943c56c7a0d565b150109e24bb6f7ce5b63e0255e364736f6c634300080300330000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000add074dd2a2ce3552768fa75152ad53ac2842edc

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

0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000add074dd2a2ce3552768fa75152ad53ac2842edc

-----Decoded View---------------
Arg [0] : _usdcCurrency (address): 0x2791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [1] : _arcadiumToolBox (address): 0xadd074dd2a2ce3552768fa75152ad53ac2842edc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [1] : 000000000000000000000000add074dd2a2ce3552768fa75152ad53ac2842edc


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