CRO Price: $0.09 (-0.99%)

Token

Earn Network (EARN)

Overview

Max Total Supply

132,664,140.48482 EARN

Holders

3,428 ( 0.146%)

Total Transfers

-

Market

Price

$0.00 @ 0.007551 CRO (-2.07%)

Onchain Market Cap

$93,816.56

Circulating Supply Market Cap

$895,209.16

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The end-game dApp for any crypto investments. Community driven marketplace providing 'no-code' solutions to create unique yielding opportunities for any market.

Market

Volume (24H):$28,066.14
Market Capitalization:$895,209.16
Circulating Supply:1,265,897,504.00 EARN
Market Data Source: Coinmarketcap

Contract Source Code Verified (Exact Match)

Contract Name:
EarnBridgeERC20Asset

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 12 runs

Other Settings:
paris EvmVersion, MIT license
File 1 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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.openzeppelin.com/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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 4 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 5 of 12 : 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 12 : 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;
    }
}

File 7 of 12 : EarnBridgeErc20Asset.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import {IEarnBridgeAsset} from "./IEarnBridgeAsset.sol";
import {IEarnStakingManager} from "../v2/EarnStakingManager.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

contract EarnBridgeERC20Asset is IEarnBridgeAsset, ERC20, ERC20Burnable {
    modifier onlyAdmin() {
        require(msg.sender == stakingManager.admin(), "EBA: Only admin");
        _;
    }

    address earnBridge;
    IEarnStakingManager public stakingManager;
    uint256 private dec;

    constructor(address _earnBridge, address _stakingManager, uint8 _decimals, string memory _name, string memory _symbol) ERC20(_name, _symbol) {
        earnBridge = _earnBridge;
        stakingManager = IEarnStakingManager(_stakingManager);
        dec = _decimals;
    }

    function decimals() public view virtual override returns (uint8) {
        return uint8(dec);
    }

    function setBridge(address _earnBridge) external onlyAdmin {
        earnBridge = _earnBridge;
    }

    function mintTo(
        uint256,
        uint256[] memory,
        address to,
        uint256 amount
    ) external {
        require(msg.sender == earnBridge, "EBA: Only bridge");
        _mint(to, amount);
    }

    function burnFrom(
        uint256,
        uint256[] memory,
        uint256 amount
    ) external{
        require(msg.sender == earnBridge, "EBA: Only bridge");
        _burn(msg.sender, amount);
    }
}

File 8 of 12 : IEarnBridgeAsset.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

interface IEarnBridgeAsset {
    function mintTo(
        uint256 erc1155Id,
        uint256[] memory erc721TokenIds,
        address to,
        uint256 amount
    ) external;

    function burnFrom(
        uint256 erc1155Id,
        uint256[] memory erc721TokenIds,
        uint256 amount
    ) external;
}

File 9 of 12 : EarnAssetController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import {Asset, AssetType} from "./EarnAssetTypes.sol";

contract EarnAssetController {
    //asset id => Asset
    mapping(bytes32 => Asset) internal _assets;

    function _getOrCreateAsset(
        bytes32 _assetId,
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) internal returns (Asset memory) {
        Asset memory sa = _assets[_assetId];
        if (sa.assetType == AssetType.UNDEFINED) {
            bytes32 newAssetId = _calculateAssetId(
                _assetAddress,
                _erc1155TokenId,
                _assetType
            );
            if (_assetId != 0) {
                require(newAssetId == _assetId, "EAC: assetId mismatch");
            }
            sa = Asset({
                assetAddress: _assetAddress,
                erc1155TokenId: _erc1155TokenId,
                assetType: _assetType
            });
            _assets[newAssetId] = sa;
        }
        return sa;
    }

    function _calculateAssetId(
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) internal pure returns (bytes32) {
        require(
            _assetType != AssetType.UNDEFINED,
            "EAC: assetType cannot be UNDEFINED"
        );
        return
            keccak256(
                abi.encodePacked(_assetAddress, _erc1155TokenId, _assetType)
            );
    }
}

File 10 of 12 : EarnAssetTypes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

enum AssetType {
    UNDEFINED,
    ERC20,
    ERC721,
    ERC1155,
    NATIVE
}

struct Asset {
    address assetAddress;
    uint256 erc1155TokenId;
    AssetType assetType;
}

File 11 of 12 : EarnStakingManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./IEarnStakingManager.sol";
import "./EarnAssetController.sol";

contract EarnStakingManager is
    Ownable,
    IEarnStakingManager,
    EarnAssetController
{
    // ************ MODIFIERS ************ //

    modifier noAddressZero(address adr) {
        require(adr != address(0), "ESM: Wrong Address");
        _;
    }

    // ************ EVENTS ************ //

    event NewTreasury(address indexed newTreasury);

    event NewSigner(address indexed newSigner);

    event Payed(
        uint256 indexed paymentType,
        address payer,
        address paymentToken,
        uint256 amount,
        uint256 nonce
    );

    event StakePositionUpdate(
        address indexed staker,
        bytes32 indexed assetId,
        uint256 transactionNonce,
        uint256 newUserStakedAmount,
        uint256 newTotalStakedAmount,
        uint256 txIndex,
        uint256 timestamp,
        uint256 newUnstakeTimestamp,
        uint256[] erc721TokenIds,
        bool liquidated
    );

    event RewardExecuted(
        address indexed from,
        uint256 indexed nonce,
        address rewardToken,
        uint256 rewardAmount,
        uint256 erc721TokenId,
        uint256[] erc721TokenIds,
        bool isWithdrawTx
    );

    event NonceProcessed(address indexed addr, uint256 amount, uint256 nonce);

    // ************ VARIABLES ************ //
    mapping(address => bool) internal _paymentContractStatus;
    mapping(address => bool) internal _rewardsContractStatus;
    mapping(address => bool) internal _whitelist;
    address internal _rewardHolderContract;
    address internal _stakingPoolContract;
    address internal _treasury;
    address internal _signer;
    address internal _weth;

    // ************ CONSTRUCTOR ************ //

    constructor(address treasury_, address signer_, address weth_) {
        _treasury = treasury_;
        _signer = signer_;
        _weth = weth_;
    }

    // ************ VIEW FUNCTIONS ************ //

    function stakingPoolContract() external view returns (address) {
        return _stakingPoolContract;
    }

    function whitelisted(address addr) external view returns (bool) {
        return _whitelist[addr];
    }

    function rewardsHolderContract() external view returns (address) {
        return _rewardHolderContract;
    }

    function paymentContractStatus(
        address paymentContract
    ) external view returns (bool) {
        return _paymentContractStatus[paymentContract];
    }

    function rewardsContractStatus(
        address rewardsContract
    ) external view returns (bool) {
        return _rewardsContractStatus[rewardsContract];
    }

    function treasury() external view returns (address) {
        return _treasury;
    }

    function signer() external view returns (address) {
        return _signer;
    }

    function WETH() external view returns (address) {
        return _weth;
    }

    function admin() external view returns (address) {
        return owner();
    }

    // ************ ASSETS FUNCTIONS ************ //
    function getOrCreateAsset(
        bytes32 _assetId,
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) external returns (Asset memory) {
        return
            _getOrCreateAsset(
                _assetId,
                _assetAddress,
                _erc1155TokenId,
                _assetType
            );
    }

    function getAssetId(
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) external pure returns (bytes32) {
        return _calculateAssetId(_assetAddress, _erc1155TokenId, _assetType);
    }

    function getAssetById(
        bytes32 _assetId
    ) external view returns (Asset memory) {
        return _assets[_assetId];
    }

    function assets(
        bytes32 _assetId
    ) external view returns (Asset memory asset) {
        return _assets[_assetId];
    }

    // ************ STAKING FUNCTIONS ************ //

    function stakePositionUpdate(
        address staker,
        bytes32 assetId,
        uint256 transactionNonce,
        uint256 newUserStakedAmount,
        uint256 newTotalStakedAmount,
        uint256 transactionIndex,
        uint256 timestamp,
        uint256 unstakeTimestamp,
        uint256[] memory erc721TokenIds,
        bool liquidated
    ) external {
        require(msg.sender == _stakingPoolContract);
        emit StakePositionUpdate(
            staker,
            assetId,
            transactionNonce,
            newUserStakedAmount,
            newTotalStakedAmount,
            transactionIndex,
            timestamp,
            unstakeTimestamp,
            erc721TokenIds,
            liquidated
        );
    }

    // ************ PAYMENT FUNCTIONS ************ //

    function pay(
        address payer,
        uint256 paymentType,
        address paymentToken,
        uint256 amount,
        uint256 nonce
    ) external {
        require(
            _paymentContractStatus[msg.sender],
            "ESM: Only Payment Contracts"
        );
        emit Payed(paymentType, payer, paymentToken, amount, nonce);
    }

    // ************ REWARD FUNCTIONS ************ //
    function execReward(
        address from,
        uint256 nonce,
        address rewardToken,
        uint256 rewardAmount,
        uint256 erc1155TokenId,
        uint256[] memory erc721TokenIds,
        bool isWithdrawTx
    ) external {
        require(
            msg.sender == _rewardHolderContract ||
                _rewardsContractStatus[msg.sender],
            "ESM: Only Reward Contracts"
        );
        emit RewardExecuted(
            from,
            nonce,
            rewardToken,
            rewardAmount,
            erc1155TokenId,
            erc721TokenIds,
            isWithdrawTx
        );
    }

    // ************ ADMIN FUNCTIONS ************ //
    function setStakingPool(
        address stakingPool
    ) external noAddressZero(stakingPool) onlyOwner {
        require(
            _stakingPoolContract == address(0),
            "ESM: Staking Pool Already Set"
        );
        _stakingPoolContract = stakingPool;
    }

    function setTreasury(
        address newTreasury
    ) external noAddressZero(newTreasury) onlyOwner {
        _treasury = newTreasury;
        emit NewTreasury(newTreasury);
    }

    function setSigner(
        address newSigner
    ) external noAddressZero(newSigner) onlyOwner {
        _signer = newSigner;
        emit NewSigner(newSigner);
    }

    function setPaymentContractStatus(
        address paymentContract,
        bool status
    ) external onlyOwner {
        _paymentContractStatus[paymentContract] = status;
    }

    function setRewardHolderContract(
        address rewardHolderContractAddress
    ) external noAddressZero(rewardHolderContractAddress) onlyOwner {
        _rewardHolderContract = rewardHolderContractAddress;
    }

    function setRewardContractStatus(
        address rewardContract,
        bool status
    ) external onlyOwner {
        _rewardsContractStatus[rewardContract] = status;
    }

    function setWhitelist(address addr, bool status) external onlyOwner {
        _whitelist[addr] = status;
    }

    // ************ OTHER FUNCTIONS ************ //
    function emitNonce(address addr, uint256 amount, uint256 nonce) external {
        require(_whitelist[msg.sender], "ESM: Not Whitelisted");
        emit NonceProcessed(addr, amount, nonce);
    }
}

File 12 of 12 : IEarnStakingManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import {Asset, AssetType} from "./EarnAssetTypes.sol";

interface IEarnStakingManager {
    function treasury() external view returns (address);

    function signer() external view returns (address);

    function rewardsHolderContract() external view returns (address);

    function stakePositionUpdate(
        address staker,
        bytes32 assetId,
        uint256 transactionNonce,
        uint256 newUserStakedAmount,
        uint256 newTotalStakedAmount,
        uint256 transactionIndex,
        uint256 timestamp,
        uint256 unstakeTimestamp,
        uint256[] memory erc721TokenIds,
        bool liquidated
    ) external;

    function pay(
        address payer,
        uint256 paymentType,
        address paymentToken,
        uint256 amount,
        uint256 nonce
    ) external;

    function execReward(
        address from,
        uint256 nonce,
        address rewardToken,
        uint256 rewardAmount,
        uint256 erc1155TokenId,
        uint256[] memory erc721TokenIds,
        bool isWithdrawTx
    ) external;

    function WETH() external view returns (address);

    function getOrCreateAsset(
        bytes32 _assetId,
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) external returns (Asset memory);

    function getAssetById(bytes32 _assetId)
        external
        view
    returns (Asset memory);

    function getAssetId(
        address _assetAddress,
        uint256 _erc1155TokenId,
        AssetType _assetType
    ) external pure returns (bytes32);

    function assets(bytes32 _assetId)
        external
        view
    returns (Asset memory asset);

    function admin() external view returns (address);

    function emitNonce(address addr, uint256 amount, uint256 nonce) external;
}

Settings
{
  "evmVersion": "paris",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 12
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_earnBridge","type":"address"},{"internalType":"address","name":"_stakingManager","type":"address"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","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":[{"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":[{"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_earnBridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingManager","outputs":[{"internalType":"contract IEarnStakingManager","name":"","type":"address"}],"stateMutability":"view","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620011c6380380620011c6833981016040819052620000349162000177565b81816003620000448382620002b0565b506004620000538282620002b0565b5050600580546001600160a01b039788166001600160a01b03199182161790915560068054969097169516949094179094555060ff16600755506200037c9050565b80516001600160a01b0381168114620000ad57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000da57600080fd5b81516001600160401b0380821115620000f757620000f7620000b2565b604051601f8301601f19908116603f01168101908282118183101715620001225762000122620000b2565b816040528381526020925086838588010111156200013f57600080fd5b600091505b8382101562000163578582018301518183018401529082019062000144565b600093810190920192909252949350505050565b600080600080600060a086880312156200019057600080fd5b6200019b8662000095565b9450620001ab6020870162000095565b9350604086015160ff81168114620001c257600080fd5b60608701519093506001600160401b0380821115620001e057600080fd5b620001ee89838a01620000c8565b935060808801519150808211156200020557600080fd5b506200021488828901620000c8565b9150509295509295909350565b600181811c908216806200023657607f821691505b6020821081036200025757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ab57600081815260208120601f850160051c81016020861015620002865750805b601f850160051c820191505b81811015620002a75782815560010162000292565b5050505b505050565b81516001600160401b03811115620002cc57620002cc620000b2565b620002e481620002dd845462000221565b846200025d565b602080601f8311600181146200031c5760008415620003035750858301515b600019600386901b1c1916600185901b178555620002a7565b600085815260208120601f198616915b828110156200034d578886015182559484019460019091019084016200032c565b50858210156200036c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610e3a806200038c6000396000f3fe608060405234801561001057600080fd5b50600436106100db5760003560e01c806306fdde03146100e0578063095ea7b3146100fe57806318160ddd1461012157806322828cc21461013357806323b872dd1461015e578063313ce56714610171578063395093511461018657806342966c681461019957806349445149146101ae57806370a08231146101c157806379cc6790146101ea5780638dd14802146101fd57806395d89b4114610210578063a457c2d714610218578063a9059cbb1461022b578063d84d45031461023e578063dd62ed3e14610251575b600080fd5b6100e8610264565b6040516100f59190610a9d565b60405180910390f35b61011161010c366004610b00565b6102f6565b60405190151581526020016100f5565b6002545b6040519081526020016100f5565b600654610146906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b61011161016c366004610b2c565b610310565b60075460405160ff90911681526020016100f5565b610111610194366004610b00565b610334565b6101ac6101a7366004610b6d565b610356565b005b6101ac6101bc366004610c36565b610363565b6101256101cf366004610c85565b6001600160a01b031660009081526020819052604090205490565b6101ac6101f8366004610b00565b6103a5565b6101ac61020b366004610c85565b6103be565b6100e86104a9565b610111610226366004610b00565b6104b8565b610111610239366004610b00565b610533565b6101ac61024c366004610ca9565b610541565b61012561025f366004610d09565b61057b565b60606003805461027390610d42565b80601f016020809104026020016040519081016040528092919081815260200182805461029f90610d42565b80156102ec5780601f106102c1576101008083540402835291602001916102ec565b820191906000526020600020905b8154815290600101906020018083116102cf57829003601f168201915b5050505050905090565b6000336103048185856105a6565b60019150505b92915050565b60003361031e8582856106ca565b61032985858561073e565b506001949350505050565b600033610304818585610347838361057b565b6103519190610d7c565b6105a6565b61036033826108d0565b50565b6005546001600160a01b031633146103965760405162461bcd60e51b815260040161038d90610d9d565b60405180910390fd5b6103a033826108d0565b505050565b6103b08233836106ca565b6103ba82826108d0565b5050565b600660009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610411573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104359190610dc7565b6001600160a01b0316336001600160a01b0316146104875760405162461bcd60e51b815260206004820152600f60248201526e22a1209d1027b7363c9030b236b4b760891b604482015260640161038d565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461027390610d42565b600033816104c6828661057b565b9050838110156105265760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161038d565b61032982868684036105a6565b60003361030481858561073e565b6005546001600160a01b0316331461056b5760405162461bcd60e51b815260040161038d90610d9d565b61057582826109f0565b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166106085760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161038d565b6001600160a01b0382166106695760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161038d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006106d6848461057b565b9050600019811461057557818110156107315760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161038d565b61057584848484036105a6565b6001600160a01b0383166107a25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161038d565b6001600160a01b0382166108045760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161038d565b6001600160a01b0383166000908152602081905260409020548181101561087c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161038d565b6001600160a01b0384811660008181526020818152604080832087870390559387168083529184902080548701905592518581529092600080516020610de5833981519152910160405180910390a3610575565b6001600160a01b0382166109305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161038d565b6001600160a01b038216600090815260208190526040902054818110156109a45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161038d565b6001600160a01b038316600081815260208181526040808320868603905560028054879003905551858152919291600080516020610de5833981519152910160405180910390a3505050565b6001600160a01b038216610a465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161038d565b8060026000828254610a589190610d7c565b90915550506001600160a01b03821660008181526020818152604080832080548601905551848152600080516020610de5833981519152910160405180910390a35050565b600060208083528351808285015260005b81811015610aca57858101830151858201604001528201610aae565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461036057600080fd5b60008060408385031215610b1357600080fd5b8235610b1e81610aeb565b946020939093013593505050565b600080600060608486031215610b4157600080fd5b8335610b4c81610aeb565b92506020840135610b5c81610aeb565b929592945050506040919091013590565b600060208284031215610b7f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610bad57600080fd5b813560206001600160401b0380831115610bc957610bc9610b86565b8260051b604051601f19603f83011681018181108482111715610bee57610bee610b86565b604052938452858101830193838101925087851115610c0c57600080fd5b83870191505b84821015610c2b57813583529183019190830190610c12565b979650505050505050565b600080600060608486031215610c4b57600080fd5b8335925060208401356001600160401b03811115610c6857600080fd5b610c7486828701610b9c565b925050604084013590509250925092565b600060208284031215610c9757600080fd5b8135610ca281610aeb565b9392505050565b60008060008060808587031215610cbf57600080fd5b8435935060208501356001600160401b03811115610cdc57600080fd5b610ce887828801610b9c565b9350506040850135610cf981610aeb565b9396929550929360600135925050565b60008060408385031215610d1c57600080fd5b8235610d2781610aeb565b91506020830135610d3781610aeb565b809150509250929050565b600181811c90821680610d5657607f821691505b602082108103610d7657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561030a57634e487b7160e01b600052601160045260246000fd5b60208082526010908201526f4542413a204f6e6c792062726964676560801b604082015260600190565b600060208284031215610dd957600080fd5b8151610ca281610aeb56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206f27562ae1545509b552dda6987dab52ef289a238a96bb8a454774952b375c6764736f6c634300081400330000000000000000000000003d1f7e14a13845be4e18fb53bc8fc4e2eaeaae6d0000000000000000000000002a1d63c71db48061d2270b7c7c6d844115574644000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c4561726e204e6574776f726b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044541524e00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100db5760003560e01c806306fdde03146100e0578063095ea7b3146100fe57806318160ddd1461012157806322828cc21461013357806323b872dd1461015e578063313ce56714610171578063395093511461018657806342966c681461019957806349445149146101ae57806370a08231146101c157806379cc6790146101ea5780638dd14802146101fd57806395d89b4114610210578063a457c2d714610218578063a9059cbb1461022b578063d84d45031461023e578063dd62ed3e14610251575b600080fd5b6100e8610264565b6040516100f59190610a9d565b60405180910390f35b61011161010c366004610b00565b6102f6565b60405190151581526020016100f5565b6002545b6040519081526020016100f5565b600654610146906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b61011161016c366004610b2c565b610310565b60075460405160ff90911681526020016100f5565b610111610194366004610b00565b610334565b6101ac6101a7366004610b6d565b610356565b005b6101ac6101bc366004610c36565b610363565b6101256101cf366004610c85565b6001600160a01b031660009081526020819052604090205490565b6101ac6101f8366004610b00565b6103a5565b6101ac61020b366004610c85565b6103be565b6100e86104a9565b610111610226366004610b00565b6104b8565b610111610239366004610b00565b610533565b6101ac61024c366004610ca9565b610541565b61012561025f366004610d09565b61057b565b60606003805461027390610d42565b80601f016020809104026020016040519081016040528092919081815260200182805461029f90610d42565b80156102ec5780601f106102c1576101008083540402835291602001916102ec565b820191906000526020600020905b8154815290600101906020018083116102cf57829003601f168201915b5050505050905090565b6000336103048185856105a6565b60019150505b92915050565b60003361031e8582856106ca565b61032985858561073e565b506001949350505050565b600033610304818585610347838361057b565b6103519190610d7c565b6105a6565b61036033826108d0565b50565b6005546001600160a01b031633146103965760405162461bcd60e51b815260040161038d90610d9d565b60405180910390fd5b6103a033826108d0565b505050565b6103b08233836106ca565b6103ba82826108d0565b5050565b600660009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610411573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104359190610dc7565b6001600160a01b0316336001600160a01b0316146104875760405162461bcd60e51b815260206004820152600f60248201526e22a1209d1027b7363c9030b236b4b760891b604482015260640161038d565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461027390610d42565b600033816104c6828661057b565b9050838110156105265760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161038d565b61032982868684036105a6565b60003361030481858561073e565b6005546001600160a01b0316331461056b5760405162461bcd60e51b815260040161038d90610d9d565b61057582826109f0565b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166106085760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161038d565b6001600160a01b0382166106695760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161038d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006106d6848461057b565b9050600019811461057557818110156107315760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161038d565b61057584848484036105a6565b6001600160a01b0383166107a25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161038d565b6001600160a01b0382166108045760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161038d565b6001600160a01b0383166000908152602081905260409020548181101561087c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161038d565b6001600160a01b0384811660008181526020818152604080832087870390559387168083529184902080548701905592518581529092600080516020610de5833981519152910160405180910390a3610575565b6001600160a01b0382166109305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161038d565b6001600160a01b038216600090815260208190526040902054818110156109a45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161038d565b6001600160a01b038316600081815260208181526040808320868603905560028054879003905551858152919291600080516020610de5833981519152910160405180910390a3505050565b6001600160a01b038216610a465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161038d565b8060026000828254610a589190610d7c565b90915550506001600160a01b03821660008181526020818152604080832080548601905551848152600080516020610de5833981519152910160405180910390a35050565b600060208083528351808285015260005b81811015610aca57858101830151858201604001528201610aae565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461036057600080fd5b60008060408385031215610b1357600080fd5b8235610b1e81610aeb565b946020939093013593505050565b600080600060608486031215610b4157600080fd5b8335610b4c81610aeb565b92506020840135610b5c81610aeb565b929592945050506040919091013590565b600060208284031215610b7f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610bad57600080fd5b813560206001600160401b0380831115610bc957610bc9610b86565b8260051b604051601f19603f83011681018181108482111715610bee57610bee610b86565b604052938452858101830193838101925087851115610c0c57600080fd5b83870191505b84821015610c2b57813583529183019190830190610c12565b979650505050505050565b600080600060608486031215610c4b57600080fd5b8335925060208401356001600160401b03811115610c6857600080fd5b610c7486828701610b9c565b925050604084013590509250925092565b600060208284031215610c9757600080fd5b8135610ca281610aeb565b9392505050565b60008060008060808587031215610cbf57600080fd5b8435935060208501356001600160401b03811115610cdc57600080fd5b610ce887828801610b9c565b9350506040850135610cf981610aeb565b9396929550929360600135925050565b60008060408385031215610d1c57600080fd5b8235610d2781610aeb565b91506020830135610d3781610aeb565b809150509250929050565b600181811c90821680610d5657607f821691505b602082108103610d7657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561030a57634e487b7160e01b600052601160045260246000fd5b60208082526010908201526f4542413a204f6e6c792062726964676560801b604082015260600190565b600060208284031215610dd957600080fd5b8151610ca281610aeb56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206f27562ae1545509b552dda6987dab52ef289a238a96bb8a454774952b375c6764736f6c63430008140033

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

0000000000000000000000003d1f7e14a13845be4e18fb53bc8fc4e2eaeaae6d0000000000000000000000002a1d63c71db48061d2270b7c7c6d844115574644000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c4561726e204e6574776f726b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044541524e00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _earnBridge (address): 0x3d1f7e14A13845Be4E18Fb53bc8Fc4E2EaeAaE6d
Arg [1] : _stakingManager (address): 0x2a1D63c71dB48061d2270b7c7C6D844115574644
Arg [2] : _decimals (uint8): 18
Arg [3] : _name (string): Earn Network
Arg [4] : _symbol (string): EARN

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000003d1f7e14a13845be4e18fb53bc8fc4e2eaeaae6d
Arg [1] : 0000000000000000000000002a1d63c71db48061d2270b7c7c6d844115574644
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 4561726e204e6574776f726b0000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4541524e00000000000000000000000000000000000000000000000000000000


Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.