Token staked hLP
Overview ERC20
Price
$0.00 @ 0.000000 ETH
Fully Diluted Market Cap
Total Supply:
1,552,090.611272 shLP
Holders:
24 addresses
Contract:
Decimals:
18
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StakedErc20
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "../interfaces/rewards/IRewardPool.sol"; /* *\ * ,.-"""-., * * / === \ * * / ======= \ * * __| (o) (0) |__ * * / _| .---. |_ \ * * | /.----/ O O \----.\ | * * \/ | | \/ * * | | * * | | * * | | * * _\ -.,_____,.- /_ * * ,.-" "-.,_________,.-" "-., * * / | | ╭-╮ \ * * | l. .l ┃ ┃ | * * | | | ┃ ╰━━╮ | * * l. | | ┃ ╭╮ ┃ .l * * | l. .l ┃ ┃┃ ┃ | \, * * l. | | ╰-╯╰-╯ .l \, * * | | | | \, * * l. | | .l | * * | | | | | * * | |---| | | * * | | | | | * * /"-.,__,.-"\ /"-.,__,.-"\"-.,_,.-"\ * * | \ / | | * * | | | | * * \__|__|__|__/ \__|__|__|__/ \_|__|__/ * \* */ /// @notice A receipt token for an ERC20 stake in the RewardPool. contract StakedErc20 is ERC20, ReentrancyGuard { using SafeERC20 for ERC20; ERC20 public immutable depositToken; IRewardPool public immutable rewardPool; bytes32 public immutable rewardPoolAlias; modifier onlyRewardPool() { require(msg.sender == address(rewardPool), "StakedErc20: unauthorised"); _; } constructor( string memory name_, string memory symbol_, address depositToken_, address rewardPool_, bytes32 rewardPoolAlias_ ) ERC20(name_, symbol_) { require( depositToken_ != address(0) && rewardPool_ != address(0), "StakedErc20: invalid address" ); require(depositToken_ != rewardPool_); require(depositToken_ != address(this)); depositToken = ERC20(depositToken_); rewardPool = IRewardPool(rewardPool_); rewardPoolAlias = rewardPoolAlias_; } function decimals() public view override returns (uint8) { return depositToken.decimals(); } /** * @dev Allows the RewardPool contract to mint tokens for stakers. * @param account The address to mint to. * @param amount The token amount to mint. */ function mint(address account, uint256 amount) external onlyRewardPool { _validateMint(account, amount); _mint(account, amount); } /** * @dev Allows the RewardPool contract to burn tokens for stakers. * @param account The address to burn from. * @param amount The token amount to burn. */ function burn(address account, uint256 amount) external onlyRewardPool { _validateBurn(account, amount); _burn(account, amount); } /** * @dev Overrides the _transfer function, unstaking the underlying * assets from the sender and staking for the recipient. * This ensures that all holders have a balance equal to * their stake amount of the RewardPool contract. * Rather than transferring, tokens are burned from the sender * and minted to the receiver via the RewardPool. * @param sender The address of the token sender. * @param recipient The address of the token recipient. * @param amount The token amount being transferred. */ function _transfer( address sender, address recipient, uint256 amount ) internal override nonReentrant { uint256 poolId = _getRewardPoolId(); // Unstake for the sender. The underlying token is // transferred into this contract. uint256 unstakeError = rewardPool.unstake(sender, amount, poolId); require(unstakeError == 0, "StakedErc20: failed to unstake sender"); // Approve RewardPool to spend the underlying token. depositToken.safeApprove(address(rewardPool), amount); // Stake the underlying token for the receiver. uint256 stakeError = rewardPool.stake(recipient, amount, poolId); require(stakeError == 0, "StakedErc20: failed to stake receiver"); } /** * @dev Validates the mint by checking that the resulting token * balance for the user matches their deposit in RewardPool. * @param account The address to mint to. * @param amount The token amount to mint. */ function _validateMint(address account, uint256 amount) private view { uint256 deposit = _getDepositAmount(account); uint256 futureBalance = balanceOf(account) + amount; require(deposit == futureBalance, "StakedErc20: mint is invalid"); } /** * @dev Validates the burn by checking that the resulting token * balance for the user matches their deposit in RewardPool. * @param account The address to burn from. * @param amount The token amount to burn. */ function _validateBurn(address account, uint256 amount) private view { uint256 deposit = _getDepositAmount(account); uint256 futureBalance = balanceOf(account) - amount; require(deposit == futureBalance, "StakedErc20: burn is invalid"); } /** * @dev Gets the deposit amount from the specified RewardPool. * @param account The user address to get the deposit for. */ function _getDepositAmount(address account) private view returns (uint256) { uint256 poolId = _getRewardPoolId(); return rewardPool.getDeposit(account, poolId).amount; } /** * @dev Gets the reward pool ID from the alias. */ function _getRewardPoolId() private view returns (uint256) { (bool found, uint256 poolId) = rewardPool.getPoolIdByAlias(rewardPoolAlias); require(found, "StakedErc20: reward pool not found"); return poolId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /** * @dev Established pool categories to be used internally by the * protocol for the users. * This enum is used to get the correct pool ID from the pool alias * which consists of an fxToken address and a category number. */ enum RewardPoolCategory {Mint, Deposit, Keeper} interface IRewardPool { /** Reward category e.g. Keepers or Liquidity Providers */ struct Pool { // Pool reward weight. The amount of FOREX allocated to this // category is given by the ratio of this weight to the sum of all // weights for enabled pools. // A category is enabled if the weight is not zero. uint256 weight; // Asset is used for pools that require token staking, // such as LP tokens. Could be e.g. None, ERC20 or ERC721. AssetType assetType; // The address of the StakedErc20 for this pool. // This is the receipt token, not the deposit/underlying asset. // For pools with no token (AssetType.None), this is the zero address. address assetAddress; // If AssetType == None, whitelist with this map from staker address. mapping(address => bool) stakerWhitelist; // Account -> Deposit mapping(address => Deposit) deposits; // Total amount deposited, which may be boosted. uint256 totalDeposits; // Current pool reward ratio over total deposits. uint256 S; // Total real value deposited (excluding boosts). uint256 totalRealDeposits; } /** Reward pool deposit for tracking user contributions */ struct Deposit { // Amount contributed. // e.g. for Keepers, the total amount staked. // for minters, the total amount minted. // for LPs, the total liquidity provided. uint256 amount; // Reward ratio over total deposits during deposit. uint256 S; // The weight (gFOREX balance) by which the boost is // calculated from during claim. uint256 boostWeight; } enum AssetType {None, ERC20, ERC721} event Stake(address indexed account, uint256 poolId, uint256 amount); event Unstake(address indexed account, uint256 poolId, uint256 amount); event CreatePool( uint256 id, AssetType assetType, address asset, uint256 weight ); event SetPoolWeights(uint256[] poolIds, uint256[] weights); event SetFxTokenWeights(address[] fxTokens, uint256[] weights); event ForexDistributed( uint256 duration, uint256 rate, uint256 totalAmount, uint256[] poolIds, uint256[] amounts ); event ForexDistributedDirectly(uint256 poolId, uint256 amount); event SetForexDistributionRate(uint256 ratePerSecond); event Claim( address indexed acount, uint256 amount, uint256[] poolIds, uint256[] amounts ); event WhitelistChanged(address staker, uint256 poolId, bool whitelisted); event PoolAliasChanged(uint256 poolId, bytes32 aliasHash); function stake( address account, uint256 value, uint256 poolId ) external returns (uint256 errorCode); function unstake( address account, uint256 value, uint256 poolId ) external returns (uint256 errorCode); function claim() external; function distribute() external; function distributeDirectlyForPool(uint256 poolId, uint256 amount) external; function createPool( uint256 weight, AssetType assetType, address assetAddress, uint256[] memory poolIds, uint256[] memory weights ) external; function setupPools( AssetType[] memory assetTypes, address[] memory assetAddresses, uint256[] memory weights, bytes32[] memory aliases ) external; // Used to enable and disable pools. // To disable, a weight must be set to zero. // Will emit events accordingly. function setPools(uint256[] memory poolIds, uint256[] memory weights) external; function setWhitelistedStaker( address staker, uint256 poolId, bool isWhitelisted ) external; function setForexDistributionRate(uint256 rate) external; function setPoolAlias(bytes32 hash, uint256 poolId) external; function getPoolsData() external view returns ( uint256[] memory poolRatios, uint256[] memory accruedAmounts, uint256[] memory deltaS ); function getPoolIdByAlias(bytes32 hash) external view returns (bool found, uint256 poolId); function getFxTokenPoolAlias(address token, uint256 category) external pure returns (bytes32); // Return allowed parameters only (no mappings) // because Solidity is a Special Snowflake (tm) function getPool(uint256 poolId) external view returns ( uint256 weight, AssetType assetType, address assetAddress, uint256 totalDeposits, uint256 S, uint256 totalRealDeposits ); function getDeposit(address account, uint256 poolId) external view returns (Deposit memory); function balanceOf(address account) external view returns (uint256 balance); function poolBalanceOf(address account, uint256 poolId) external view returns (uint256 balance); function getUserBoostedStake( uint256 value, uint256 poolId, uint256 boostWeight ) external view returns (uint256); function forex() external view returns (IERC20); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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); }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"depositToken_","type":"address"},{"internalType":"address","name":"rewardPool_","type":"address"},{"internalType":"bytes32","name":"rewardPoolAlias_","type":"bytes32"}],"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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","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":[],"name":"depositToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"contract IRewardPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoolAlias","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"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"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162001a6038038062001a608339810160408190526200003491620002b1565b8451859085906200004d9060039060208501906200013b565b508051620000639060049060208401906200013b565b50506001600555506001600160a01b038316158015906200008c57506001600160a01b03821615155b620000dd5760405162461bcd60e51b815260206004820152601c60248201527f5374616b656445726332303a20696e76616c6964206164647265737300000000604482015260640160405180910390fd5b816001600160a01b0316836001600160a01b03161415620000fd57600080fd5b6001600160a01b0383163014156200011457600080fd5b6001600160601b0319606093841b81166080529190921b1660a05260c052506200039a9050565b828054620001499062000347565b90600052602060002090601f0160209004810192826200016d5760008555620001b8565b82601f106200018857805160ff1916838001178555620001b8565b82800160010185558215620001b8579182015b82811115620001b85782518255916020019190600101906200019b565b50620001c6929150620001ca565b5090565b5b80821115620001c65760008155600101620001cb565b80516001600160a01b0381168114620001f957600080fd5b919050565b600082601f8301126200020f578081fd5b81516001600160401b03808211156200022c576200022c62000384565b604051601f8301601f19908116603f0116810190828211818310171562000257576200025762000384565b8160405283815260209250868385880101111562000273578485fd5b8491505b8382101562000296578582018301518183018401529082019062000277565b83821115620002a757848385830101525b9695505050505050565b600080600080600060a08688031215620002c9578081fd5b85516001600160401b0380821115620002e0578283fd5b620002ee89838a01620001fe565b9650602088015191508082111562000304578283fd5b506200031388828901620001fe565b9450506200032460408701620001e1565b92506200033460608701620001e1565b9150608086015190509295509295909350565b600181811c908216806200035c57607f821691505b602082108114156200037e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05161164a62000416600039600081816102a50152610e050152600081816101b2015281816104ff015281816105b9015281816108960152818161099f015281816109f401528181610e3a015261108f01526000818161024501528181610424015261097d015261164a6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb1461022d578063c89039c514610240578063dd62ed3e14610267578063f0b13eb0146102a057610100565b806370a08231146101ec57806395d89b41146101ff5780639dc29fac14610207578063a457c2d71461021a57610100565b8063313ce567116100d3578063313ce5671461016b578063395093511461018557806340c10f191461019857806366666aa9146101ad57610100565b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102c7565b60405161011a9190611535565b60405180910390f35b61013661013136600461140b565b610359565b604051901515815260200161011a565b6002545b60405190815260200161011a565b6101366101663660046113d0565b61036f565b610173610420565b60405160ff909116815260200161011a565b61013661019336600461140b565b6104b8565b6101ab6101a636600461140b565b6104f4565b005b6101d47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161011a565b61014a6101fa366004611384565b610580565b61010d61059f565b6101ab61021536600461140b565b6105ae565b61013661022836600461140b565b610636565b61013661023b36600461140b565b6106cf565b6101d47f000000000000000000000000000000000000000000000000000000000000000081565b61014a61027536600461139e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61014a7f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546102d6906115c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610302906115c3565b801561034f5780601f106103245761010080835404028352916020019161034f565b820191906000526020600020905b81548152906001019060200180831161033257829003601f168201915b5050505050905090565b60006103663384846106dc565b50600192915050565b600061037c848484610801565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61041385338584036106dc565b60019150505b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b391906114f8565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103669185906104ef908690611568565b6106dc565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105685760405162461bcd60e51b815260206004820152601960248201527814dd185ad959115c98cc8c0e881d5b985d5d1a1bdc9a5cd959603a1b60448201526064016103fd565b6105728282610add565b61057c8282610b57565b5050565b6001600160a01b0381166000908152602081905260409020545b919050565b6060600480546102d6906115c3565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106225760405162461bcd60e51b815260206004820152601960248201527814dd185ad959115c98cc8c0e881d5b985d5d1a1bdc9a5cd959603a1b60448201526064016103fd565b61062c8282610c37565b61057c8282610cab565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156106b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103fd565b6106c533858584036106dc565b5060019392505050565b6000610366338484610801565b6001600160a01b03831661073e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103fd565b6001600160a01b03821661079f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600260055414156108545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b60026005556000610863610df6565b60405163515e335f60e11b81526001600160a01b03868116600483015260248201859052604482018390529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063a2bc66be90606401602060405180830381600087803b1580156108da57600080fd5b505af11580156108ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091291906114e0565b905080156109705760405162461bcd60e51b815260206004820152602560248201527f5374616b656445726332303a206661696c656420746f20756e7374616b65207360448201526432b73232b960d91b60648201526084016103fd565b6109c46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000085610f15565b604051630c51b88f60e01b81526001600160a01b03858116600483015260248201859052604482018490526000917f000000000000000000000000000000000000000000000000000000000000000090911690630c51b88f90606401602060405180830381600087803b158015610a3a57600080fd5b505af1158015610a4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7291906114e0565b90508015610ad05760405162461bcd60e51b815260206004820152602560248201527f5374616b656445726332303a206661696c656420746f207374616b652072656360448201526432b4bb32b960d91b60648201526084016103fd565b5050600160055550505050565b6000610ae88361105b565b9050600082610af685610580565b610b009190611568565b9050808214610b515760405162461bcd60e51b815260206004820152601c60248201527f5374616b656445726332303a206d696e7420697320696e76616c69640000000060448201526064016103fd565b50505050565b6001600160a01b038216610bad5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103fd565b8060026000828254610bbf9190611568565b90915550506001600160a01b03821660009081526020819052604081208054839290610bec908490611568565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361057c565b6000610c428361105b565b9050600082610c5085610580565b610c5a9190611580565b9050808214610b515760405162461bcd60e51b815260206004820152601c60248201527f5374616b656445726332303a206275726e20697320696e76616c69640000000060448201526064016103fd565b6001600160a01b038216610d0b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103fd565b6001600160a01b03821660009081526020819052604090205481811015610d7f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103fd565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dae908490611580565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016107f4565b505050565b60405163db86b79960e01b81527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063db86b79990602401604080518083038186803b158015610e7b57600080fd5b505afa158015610e8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb3919061144e565b9150915081610f0f5760405162461bcd60e51b815260206004820152602260248201527f5374616b656445726332303a2072657761726420706f6f6c206e6f7420666f756044820152611b9960f21b60648201526084016103fd565b91505090565b801580610f9e5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610f6457600080fd5b505afa158015610f78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9c91906114e0565b155b6110095760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016103fd565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610df1908490611113565b600080611066610df6565b6040516313935a8360e11b81526001600160a01b038581166004830152602482018390529192507f000000000000000000000000000000000000000000000000000000000000000090911690632726b5069060440160606040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611479565b519392505050565b6000611168826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111e59092919063ffffffff16565b805190915015610df157808060200190518101906111869190611434565b610df15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103fd565b60606111f484846000856111fc565b949350505050565b60608247101561125d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103fd565b843b6112ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fd565b600080866001600160a01b031685876040516112c79190611519565b60006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b5091509150611319828286611324565b979650505050505050565b60608315611333575081610419565b8251156113435782518084602001fd5b8160405162461bcd60e51b81526004016103fd9190611535565b80356001600160a01b038116811461059a57600080fd5b8051801515811461059a57600080fd5b600060208284031215611395578081fd5b6104198261135d565b600080604083850312156113b0578081fd5b6113b98361135d565b91506113c76020840161135d565b90509250929050565b6000806000606084860312156113e4578081fd5b6113ed8461135d565b92506113fb6020850161135d565b9150604084013590509250925092565b6000806040838503121561141d578182fd5b6114268361135d565b946020939093013593505050565b600060208284031215611445578081fd5b61041982611374565b60008060408385031215611460578182fd5b61146983611374565b9150602083015190509250929050565b60006060828403121561148a578081fd5b6040516060810181811067ffffffffffffffff821117156114b957634e487b7160e01b83526041600452602483fd5b80604052508251815260208301516020820152604083015160408201528091505092915050565b6000602082840312156114f1578081fd5b5051919050565b600060208284031215611509578081fd5b815160ff81168114610419578182fd5b6000825161152b818460208701611597565b9190910192915050565b6000602082528251806020840152611554816040850160208701611597565b601f01601f19169190910160400192915050565b6000821982111561157b5761157b6115fe565b500190565b600082821015611592576115926115fe565b500390565b60005b838110156115b257818101518382015260200161159a565b83811115610b515750506000910152565b600181811c908216806115d757607f821691505b602082108114156115f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220913ea0bf58d0c5d36dbe52366dfad30da7f00467da3538ac427d0b6879cf9ba564736f6c6343000803003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d3000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd0542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b000000000000000000000000000000000000000000000000000000000000000a7374616b656420684c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000473684c5000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb1461022d578063c89039c514610240578063dd62ed3e14610267578063f0b13eb0146102a057610100565b806370a08231146101ec57806395d89b41146101ff5780639dc29fac14610207578063a457c2d71461021a57610100565b8063313ce567116100d3578063313ce5671461016b578063395093511461018557806340c10f191461019857806366666aa9146101ad57610100565b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102c7565b60405161011a9190611535565b60405180910390f35b61013661013136600461140b565b610359565b604051901515815260200161011a565b6002545b60405190815260200161011a565b6101366101663660046113d0565b61036f565b610173610420565b60405160ff909116815260200161011a565b61013661019336600461140b565b6104b8565b6101ab6101a636600461140b565b6104f4565b005b6101d47f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd081565b6040516001600160a01b03909116815260200161011a565b61014a6101fa366004611384565b610580565b61010d61059f565b6101ab61021536600461140b565b6105ae565b61013661022836600461140b565b610636565b61013661023b36600461140b565b6106cf565b6101d47f000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d381565b61014a61027536600461139e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61014a7f542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b81565b6060600380546102d6906115c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610302906115c3565b801561034f5780601f106103245761010080835404028352916020019161034f565b820191906000526020600020905b81548152906001019060200180831161033257829003601f168201915b5050505050905090565b60006103663384846106dc565b50600192915050565b600061037c848484610801565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61041385338584036106dc565b60019150505b9392505050565b60007f000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d36001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b391906114f8565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103669185906104ef908690611568565b6106dc565b336001600160a01b037f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd016146105685760405162461bcd60e51b815260206004820152601960248201527814dd185ad959115c98cc8c0e881d5b985d5d1a1bdc9a5cd959603a1b60448201526064016103fd565b6105728282610add565b61057c8282610b57565b5050565b6001600160a01b0381166000908152602081905260409020545b919050565b6060600480546102d6906115c3565b336001600160a01b037f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd016146106225760405162461bcd60e51b815260206004820152601960248201527814dd185ad959115c98cc8c0e881d5b985d5d1a1bdc9a5cd959603a1b60448201526064016103fd565b61062c8282610c37565b61057c8282610cab565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156106b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103fd565b6106c533858584036106dc565b5060019392505050565b6000610366338484610801565b6001600160a01b03831661073e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103fd565b6001600160a01b03821661079f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600260055414156108545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b60026005556000610863610df6565b60405163515e335f60e11b81526001600160a01b03868116600483015260248201859052604482018390529192506000917f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd0169063a2bc66be90606401602060405180830381600087803b1580156108da57600080fd5b505af11580156108ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091291906114e0565b905080156109705760405162461bcd60e51b815260206004820152602560248201527f5374616b656445726332303a206661696c656420746f20756e7374616b65207360448201526432b73232b960d91b60648201526084016103fd565b6109c46001600160a01b037f000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d3167f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd085610f15565b604051630c51b88f60e01b81526001600160a01b03858116600483015260248201859052604482018490526000917f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd090911690630c51b88f90606401602060405180830381600087803b158015610a3a57600080fd5b505af1158015610a4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7291906114e0565b90508015610ad05760405162461bcd60e51b815260206004820152602560248201527f5374616b656445726332303a206661696c656420746f207374616b652072656360448201526432b4bb32b960d91b60648201526084016103fd565b5050600160055550505050565b6000610ae88361105b565b9050600082610af685610580565b610b009190611568565b9050808214610b515760405162461bcd60e51b815260206004820152601c60248201527f5374616b656445726332303a206d696e7420697320696e76616c69640000000060448201526064016103fd565b50505050565b6001600160a01b038216610bad5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103fd565b8060026000828254610bbf9190611568565b90915550506001600160a01b03821660009081526020819052604081208054839290610bec908490611568565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361057c565b6000610c428361105b565b9050600082610c5085610580565b610c5a9190611580565b9050808214610b515760405162461bcd60e51b815260206004820152601c60248201527f5374616b656445726332303a206275726e20697320696e76616c69640000000060448201526064016103fd565b6001600160a01b038216610d0b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103fd565b6001600160a01b03821660009081526020819052604090205481811015610d7f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103fd565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dae908490611580565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016107f4565b505050565b60405163db86b79960e01b81527f542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b6004820152600090819081906001600160a01b037f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd0169063db86b79990602401604080518083038186803b158015610e7b57600080fd5b505afa158015610e8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb3919061144e565b9150915081610f0f5760405162461bcd60e51b815260206004820152602260248201527f5374616b656445726332303a2072657761726420706f6f6c206e6f7420666f756044820152611b9960f21b60648201526084016103fd565b91505090565b801580610f9e5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610f6457600080fd5b505afa158015610f78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9c91906114e0565b155b6110095760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016103fd565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610df1908490611113565b600080611066610df6565b6040516313935a8360e11b81526001600160a01b038581166004830152602482018390529192507f000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd090911690632726b5069060440160606040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611479565b519392505050565b6000611168826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111e59092919063ffffffff16565b805190915015610df157808060200190518101906111869190611434565b610df15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103fd565b60606111f484846000856111fc565b949350505050565b60608247101561125d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103fd565b843b6112ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fd565b600080866001600160a01b031685876040516112c79190611519565b60006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b5091509150611319828286611324565b979650505050505050565b60608315611333575081610419565b8251156113435782518084602001fd5b8160405162461bcd60e51b81526004016103fd9190611535565b80356001600160a01b038116811461059a57600080fd5b8051801515811461059a57600080fd5b600060208284031215611395578081fd5b6104198261135d565b600080604083850312156113b0578081fd5b6113b98361135d565b91506113c76020840161135d565b90509250929050565b6000806000606084860312156113e4578081fd5b6113ed8461135d565b92506113fb6020850161135d565b9150604084013590509250925092565b6000806040838503121561141d578182fd5b6114268361135d565b946020939093013593505050565b600060208284031215611445578081fd5b61041982611374565b60008060408385031215611460578182fd5b61146983611374565b9150602083015190509250929050565b60006060828403121561148a578081fd5b6040516060810181811067ffffffffffffffff821117156114b957634e487b7160e01b83526041600452602483fd5b80604052508251815260208301516020820152604083015160408201528091505092915050565b6000602082840312156114f1578081fd5b5051919050565b600060208284031215611509578081fd5b815160ff81168114610419578182fd5b6000825161152b818460208701611597565b9190910192915050565b6000602082528251806020840152611554816040850160208701611597565b601f01601f19169190910160400192915050565b6000821982111561157b5761157b6115fe565b500190565b600082821015611592576115926115fe565b500390565b60005b838110156115b257818101518382015260200161159a565b83811115610b515750506000910152565b600181811c908216806115d757607f821691505b602082108114156115f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220913ea0bf58d0c5d36dbe52366dfad30da7f00467da3538ac427d0b6879cf9ba564736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d3000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd0542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b000000000000000000000000000000000000000000000000000000000000000a7374616b656420684c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000473684c5000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): staked hLP
Arg [1] : symbol_ (string): shLP
Arg [2] : depositToken_ (address): 0xB666b08609b2E69A8ba51AA720770053AeC0d2d3
Arg [3] : rewardPool_ (address): 0xDE17Af0E4A6c870762508DcB7dCc20719584CBd0
Arg [4] : rewardPoolAlias_ (bytes32): 0x542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000b666b08609b2e69a8ba51aa720770053aec0d2d3
Arg [3] : 000000000000000000000000de17af0e4a6c870762508dcb7dcc20719584cbd0
Arg [4] : 542f3736406dbf9edfaee0a1cd2dae587fe70a86c466b0bdfd8d814ba14b8d4b
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 7374616b656420684c5000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 73684c5000000000000000000000000000000000000000000000000000000000