ERC-20
Overview
Max Total Supply
199,851.746707608687591386 fLlp
Holders
1,958
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
28.370372853837022408 fLlpValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
RewardTracker
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "../libraries/token/IERC20.sol"; import "../libraries/utils/ReentrancyGuard.sol"; import "./interfaces/IRewardDistributor.sol"; import "./interfaces/IRewardTracker.sol"; import "../access/Governable.sol"; import '../libraries/token/SafeERC20.sol'; contract RewardTracker is IERC20, ReentrancyGuard, IRewardTracker, Governable { using SafeERC20 for IERC20; struct Position{ uint stakedAmount; uint entryRewardPerLPToken; } uint8 public constant decimals = 18; bool public isInitialized; string public name; string public symbol; mapping(address => bool) public isDepositToken; mapping(address => mapping(address => uint256)) public override depositBalances; mapping(address => uint256) public totalDepositSupply; uint256 public override totalSupply; mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowances; mapping(address => Position) public positions; mapping(address => bool) public isHandler; address public rewardToken; uint public rewardPrecision = 1000000; address admin; uint public cummulativeRewardPerLPToken = 0; event Claim(address indexed fundingAccount, address indexed receiver, uint256 amount); event Stakellp(address indexed fundingAccount, address indexed receiver, uint256 amount); event Unstakellp(address indexed fundingAccount, address indexed receiver, uint256 amount); constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } function initialize( address[] memory _depositTokens, address _rewardToken, address _admin ) external onlyGov { require(!isInitialized, "RewardTracker: already initialized"); isInitialized = true; for (uint256 i = 0; i < _depositTokens.length; i++) { address depositToken = _depositTokens[i]; isDepositToken[depositToken] = true; } rewardToken = _rewardToken; admin = _admin; } function onlyAdmin() internal view { require( msg.sender == admin, "RewardTracker: forbidden incorrect admin" ); } function setDepositToken( address _depositToken, bool _isDepositToken ) external onlyGov { isDepositToken[_depositToken] = _isDepositToken; } function setRewardPrecision(uint _rewardPrecision) public onlyGov { rewardPrecision = _rewardPrecision; } function setHandler(address _handler, bool _isActive) external onlyGov { isHandler[_handler] = _isActive; } function setCummulativeRewardRate(uint _cummulativeRewardPerLPToken) public onlyGov { cummulativeRewardPerLPToken = _cummulativeRewardPerLPToken; } function withdrawToken( address _token, address _account, uint256 _amount ) external onlyGov { IERC20(_token).safeTransfer(_account, _amount); } function balanceOf( address _account ) external view override returns (uint256) { return balances[_account]; } function transfer( address _recipient, uint256 _amount ) external override returns (bool) { _transfer(msg.sender, _recipient, _amount); return true; } function allowance( address _owner, address _spender ) external view override returns (uint256) { return allowances[_owner][_spender]; } function approve( address _spender, uint256 _amount ) external override returns (bool) { _approve(msg.sender, _spender, _amount); return true; } function transferFrom( address _sender, address _recipient, uint256 _amount ) external override returns (bool) { if (isHandler[msg.sender]) { _transfer(_sender, _recipient, _amount); return true; } uint256 nextAllowance = allowances[_sender][msg.sender] - _amount; _approve(_sender, msg.sender, nextAllowance); _transfer(_sender, _recipient, _amount); return true; } function claimForAccount( address _account, address _receiver ) external override nonReentrant returns (uint256) { _validateHandler(); uint claimedAmount = _claim(_account, _receiver); positions[_account].entryRewardPerLPToken = cummulativeRewardPerLPToken; return claimedAmount; } function claimable( address _account ) public view override returns (uint256) { Position memory position = positions[_account]; return ((cummulativeRewardPerLPToken - position.entryRewardPerLPToken) * position.stakedAmount)/rewardPrecision; } function _claim(address _account, address _receiver) private returns (uint256) { uint tokenAmount = claimable(_account); if (tokenAmount > 0) { IERC20(rewardToken).safeTransfer(_receiver, tokenAmount); emit Claim(_account, _receiver, tokenAmount); } return tokenAmount; } function _mint(address _account, uint256 _amount) internal { require( _account != address(0), "RewardTracker: mint to the zero address" ); totalSupply = totalSupply + _amount; balances[_account] = balances[_account] + _amount; emit Transfer(address(0), _account, _amount); } function _burn(address _account, uint256 _amount) internal { require( _account != address(0), "RewardTracker: burn from the zero address" ); balances[_account] = balances[_account] - _amount; totalSupply = totalSupply - _amount; emit Transfer(_account, address(0), _amount); } function _transfer( address _sender, address _recipient, uint256 _amount ) private { require( _sender != address(0), "RewardTracker: transfer from the zero address" ); require( _recipient != address(0), "RewardTracker: transfer to the zero address" ); balances[_sender] = balances[_sender] - _amount; balances[_recipient] = balances[_recipient] + _amount; emit Transfer(_sender, _recipient, _amount); } function _approve( address _owner, address _spender, uint256 _amount ) private { require( _owner != address(0), "RewardTracker: approve from the zero address" ); require( _spender != address(0), "RewardTracker: approve to the zero address" ); allowances[_owner][_spender] = _amount; emit Approval(_owner, _spender, _amount); } function _validateHandler() private view { require(isHandler[msg.sender], "RewardTracker: forbidden"); } function stakeForAccount( address _fundingAccount, address _account, address _depositToken, uint256 _amount ) external override nonReentrant { _validateHandler(); _stake(_fundingAccount, _account, _depositToken, _amount); } function _stake( address _fundingAccount, address _account, address _depositToken, uint256 _amount ) private { require(_amount > 0, "RewardTracker: invalid _amount"); require( isDepositToken[_depositToken], "RewardTracker: invalid _depositToken" ); IERC20(_depositToken).safeTransferFrom( _fundingAccount, address(this), _amount ); Position memory prevPosition = positions[_account]; if(prevPosition.stakedAmount!=0){ _claim(_account, _account); } Position memory updatedPosition; updatedPosition.stakedAmount = prevPosition.stakedAmount + _amount; updatedPosition.entryRewardPerLPToken = cummulativeRewardPerLPToken; positions[_account] = updatedPosition; depositBalances[_account][_depositToken] = depositBalances[_account][_depositToken] + _amount; totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken] + _amount; _mint(_account, _amount); emit Stakellp(_fundingAccount, _account, _amount); } function unstakeForAccount( address _account, address _depositToken, uint256 _amount, address _receiver ) external override nonReentrant { _validateHandler(); _unstake(_account, _depositToken, _amount, _receiver); } function _unstake( address _account, address _depositToken, uint256 _amount, address _receiver ) private { require(_amount > 0, "RewardTracker: invalid _amount"); require( isDepositToken[_depositToken], "RewardTracker: invalid _depositToken" ); Position memory prevPosition = positions[_account]; require( prevPosition.stakedAmount >= _amount, "RewardTracker: _amount exceeds stakedAmount" ); _claim(_account, _receiver); Position memory updatePosition; updatePosition.stakedAmount = prevPosition.stakedAmount - _amount; updatePosition.entryRewardPerLPToken = cummulativeRewardPerLPToken; positions[_account] = updatePosition; uint256 depositBalance = depositBalances[_account][_depositToken]; require( depositBalance >= _amount, "RewardTracker: _amount exceeds depositBalance" ); depositBalances[_account][_depositToken] = depositBalance - _amount; totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken] - _amount; _burn(_account, _amount); IERC20(_depositToken).safeTransfer(_receiver, _amount); emit Unstakellp(_account, _receiver, _amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.19; /** * @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); function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.19; /** * @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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED if (_status == _ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IRewardDistributor { function rewardToken() external view returns (address); function tokensPerInterval() external view returns (uint256); function pendingRewards() external view returns (uint256); function distribute() external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IRewardTracker { function depositBalances(address _account, address _depositToken) external view returns (uint256); function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external; function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external; function claimForAccount(address _account, address _receiver) external returns (uint256); function claimable(address _account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; contract Governable { address public gov; constructor() { gov = msg.sender; } modifier onlyGov() { require(msg.sender == gov, "Governable: forbidden"); _; } function setGov(address _gov) external onlyGov { gov = _gov; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.19; import "./IERC20.sol"; import "./IERC20Permit.sol"; import "./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' // solhint-disable-next-line max-line-length 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 { uint256 newAllowance = token.allowance(address(this), spender)-(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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.19; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.19; /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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.3._ */ 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.3._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [ "pyth-sdk-solidity/=lib/pyth-sdk-solidity/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "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"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"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":"fundingAccount","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fundingAccount","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stakellp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fundingAccount","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstakellp","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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","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":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimForAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cummulativeRewardPerLPToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"depositBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositTokens","type":"address[]"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"positions","outputs":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"entryRewardPerLPToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPrecision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cummulativeRewardPerLPToken","type":"uint256"}],"name":"setCummulativeRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"bool","name":"_isDepositToken","type":"bool"}],"name":"setDepositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPrecision","type":"uint256"}],"name":"setRewardPrecision","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundingAccount","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDepositSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052620f4240600d556000600f553480156200001d57600080fd5b5060405162001f9c38038062001f9c833981016040819052620000409162000142565b6001600081905580546001600160a01b0319163317905560026200006583826200023b565b5060036200007482826200023b565b50505062000307565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000a557600080fd5b81516001600160401b0380821115620000c257620000c26200007d565b604051601f8301601f19908116603f01168101908282118183101715620000ed57620000ed6200007d565b816040528381526020925086838588010111156200010a57600080fd5b600091505b838210156200012e57858201830151818301840152908201906200010f565b600093810190920192909252949350505050565b600080604083850312156200015657600080fd5b82516001600160401b03808211156200016e57600080fd5b6200017c8683870162000093565b935060208501519150808211156200019357600080fd5b50620001a28582860162000093565b9150509250929050565b600181811c90821680620001c157607f821691505b602082108103620001e257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023657600081815260208120601f850160051c81016020861015620002115750805b601f850160051c820191505b8181101562000232578281556001016200021d565b5050505b505050565b81516001600160401b038111156200025757620002576200007d565b6200026f81620002688454620001ac565b84620001e8565b602080601f831160018114620002a757600084156200028e5750858301515b600019600386901b1c1916600185901b17855562000232565b600085815260208120601f198616915b82811015620002d857888601518255948401946001909101908401620002b7565b5085821015620002f75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611c8580620003176000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635bae96191161010f578063a9059cbb116100a2578063e44b755811610071578063e44b7558146104e2578063f5d9d63e146104f5578063f7c618c114610520578063fff40dd71461053357600080fd5b8063a9059cbb14610460578063b89e45b314610473578063cfad57a214610496578063dd62ed3e146104a957600080fd5b806390482d72116100de57806390482d721461042957806395d89b411461043c5780639cb7de4b14610444578063a1b60ff51461045757600080fd5b80635bae9619146103d157806370a08231146103da578063790b5a6c146104035780638663e5cc1461041657600080fd5b806327e235e31161018757806346ea87af1161015657806346ea87af14610327578063552ce1dc1461034a57806355b6ed5c1461036a57806355f575101461039557600080fd5b806327e235e3146102c6578063313ce567146102e6578063392e53cd14610300578063402914f51461031457600080fd5b806312d43a51116101c357806312d43a511461025e57806313e82e7a1461028957806318160ddd146102aa57806323b872dd146102b357600080fd5b806301e33667146101f557806306fdde031461020a578063095ea7b314610228578063098bf59d1461024b575b600080fd5b6102086102033660046117c4565b610546565b005b610212610592565b60405161021f9190611824565b60405180910390f35b61023b610236366004611857565b610620565b604051901515815260200161021f565b610208610259366004611881565b610637565b600154610271906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b61029c6102973660046118ce565b610663565b60405190815260200161021f565b61029c60075481565b61023b6102c13660046117c4565b6106ad565b61029c6102d4366004611901565b60086020526000908152604090205481565b6102ee601281565b60405160ff909116815260200161021f565b60015461023b90600160a01b900460ff1681565b61029c610322366004611901565b61072c565b61023b610335366004611901565b600b6020526000908152604090205460ff1681565b61029c610358366004611901565b60066020526000908152604090205481565b61029c6103783660046118ce565b600960209081526000928352604080842090915290825290205481565b6103bc6103a3366004611901565b600a602052600090815260409020805460019091015482565b6040805192835260208301919091520161021f565b61029c600d5481565b61029c6103e8366004611901565b6001600160a01b031660009081526008602052604090205490565b61020861041136600461191c565b610788565b610208610424366004611967565b6107a4565b610208610437366004611996565b6107d3565b610212610906565b610208610452366004611a8e565b610913565b61029c600f5481565b61023b61046e366004611857565b610968565b61023b610481366004611901565b60046020526000908152604090205460ff1681565b6102086104a4366004611901565b610975565b61029c6104b73660046118ce565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6102086104f0366004611a8e565b6109c1565b61029c6105033660046118ce565b600560209081526000928352604080842090915290825290205481565b600c54610271906001600160a01b031681565b610208610541366004611967565b610a16565b6001546001600160a01b031633146105795760405162461bcd60e51b815260040161057090611ac5565b60405180910390fd5b61058d6001600160a01b0384168383610a45565b505050565b6002805461059f90611af4565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90611af4565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b505050505081565b600061062d338484610aa8565b5060015b92915050565b61063f610bde565b610647610c08565b61065384848484610c69565b61065d6001600055565b50505050565b600061066d610bde565b610675610c08565b60006106818484610f36565b600f546001600160a01b0386166000908152600a60205260409020600101559150506106316001600055565b336000908152600b602052604081205460ff16156106d8576106d0848484610fb5565b506001610725565b6001600160a01b0384166000908152600960209081526040808320338452909152812054610707908490611b44565b9050610714853383610aa8565b61071f858585610fb5565b60019150505b9392505050565b6001600160a01b0381166000908152600a6020908152604080832081518083019092528054808352600190910154928201839052600d54600f54929390926107749190611b44565b61077e9190611b57565b6107259190611b6e565b610790610bde565b610798610c08565b61065384848484611133565b6001546001600160a01b031633146107ce5760405162461bcd60e51b815260040161057090611ac5565b600d55565b6001546001600160a01b031633146107fd5760405162461bcd60e51b815260040161057090611ac5565b600154600160a01b900460ff16156108625760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b6064820152608401610570565b6001805460ff60a01b1916600160a01b17905560005b83518110156108d657600084828151811061089557610895611b90565b6020908102919091018101516001600160a01b03166000908152600490915260409020805460ff1916600117905550806108ce81611ba6565b915050610878565b50600c80546001600160a01b039384166001600160a01b031991821617909155600e805492909316911617905550565b6003805461059f90611af4565b6001546001600160a01b0316331461093d5760405162461bcd60e51b815260040161057090611ac5565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600061062d338484610fb5565b6001546001600160a01b0316331461099f5760405162461bcd60e51b815260040161057090611ac5565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146109eb5760405162461bcd60e51b815260040161057090611ac5565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6001546001600160a01b03163314610a405760405162461bcd60e51b815260040161057090611ac5565b600f55565b6040516001600160a01b03831660248201526044810182905261058d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261133e565b6001600160a01b038316610b135760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b6064820152608401610570565b6001600160a01b038216610b7c5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b6064820152608401610570565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600260005403610c0157604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b336000908152600b602052604090205460ff16610c675760405162461bcd60e51b815260206004820152601860248201527f526577617264547261636b65723a20666f7262696464656e00000000000000006044820152606401610570565b565b60008211610cb95760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e7400006044820152606401610570565b6001600160a01b03831660009081526004602052604090205460ff16610cf15760405162461bcd60e51b815260040161057090611bbf565b6001600160a01b0384166000908152600a60209081526040918290208251808401909352805480845260019091015491830191909152831115610d8a5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b6064820152608401610570565b610d948583610f36565b5060408051808201909152600080825260208201528151610db6908590611b44565b8152600f5460208083019182526001600160a01b038089166000908152600a835260408082208651815594516001909501949094556005835283812091891681529152205484811015610e615760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b6064820152608401610570565b610e6b8582611b44565b6001600160a01b038089166000908152600560209081526040808320938b168352928152828220939093556006909252902054610ea9908690611b44565b6001600160a01b038716600090815260066020526040902055610ecc8786611410565b610ee06001600160a01b0387168587610a45565b836001600160a01b0316876001600160a01b03167f2aa81182373182dfff2fa4da1dd0aa3bb18f94626d512fa6fd12a66d9f10b08a87604051610f2591815260200190565b60405180910390a350505050505050565b600080610f428461072c565b9050801561072557600c54610f61906001600160a01b03168483610a45565b826001600160a01b0316846001600160a01b03167f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706883604051610fa691815260200190565b60405180910390a39392505050565b6001600160a01b0383166110215760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b6064820152608401610570565b6001600160a01b03821661108b5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b6064820152608401610570565b6001600160a01b0383166000908152600860205260409020546110af908290611b44565b6001600160a01b0380851660009081526008602052604080822093909355908416815220546110df908290611c03565b6001600160a01b0380841660008181526008602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610bd19085815260200190565b600081116111835760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e7400006044820152606401610570565b6001600160a01b03821660009081526004602052604090205460ff166111bb5760405162461bcd60e51b815260040161057090611bbf565b6111d06001600160a01b03831685308461150c565b6001600160a01b0383166000908152600a6020908152604091829020825180840190935280548084526001909101549183019190915215611217576112158485610f36565b505b60408051808201909152600080825260208201528151611238908490611c03565b8152600f5460208083019182526001600160a01b038088166000908152600a8352604080822086518155945160019095019490945560058352838120918816815291522054611288908490611c03565b6001600160a01b03808716600090815260056020908152604080832093891683529281528282209390935560069092529020546112c6908490611c03565b6001600160a01b0385166000908152600660205260409020556112e98584611544565b846001600160a01b0316866001600160a01b03167f7e479a25e52771e97f19e689ae3de90e47ebd801653a8a7d1db6526fb7323cec8560405161132e91815260200190565b60405180910390a3505050505050565b6000611393826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116309092919063ffffffff16565b80519091501561058d57808060200190518101906113b19190611c16565b61058d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610570565b6001600160a01b0382166114785760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b6064820152608401610570565b6001600160a01b03821660009081526008602052604090205461149c908290611b44565b6001600160a01b0383166000908152600860205260409020556007546114c3908290611b44565b6007556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261065d9085906323b872dd60e01b90608401610a71565b6001600160a01b0382166115aa5760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610570565b806007546115b89190611c03565b6007556001600160a01b0382166000908152600860205260409020546115df908290611c03565b6001600160a01b0383166000818152600860205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115009085815260200190565b606061163f8484600085611647565b949350505050565b6060824710156116a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610570565b843b6116f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610570565b600080866001600160a01b031685876040516117129190611c33565b60006040518083038185875af1925050503d806000811461174f576040519150601f19603f3d011682016040523d82523d6000602084013e611754565b606091505b509150915061176482828661176f565b979650505050505050565b6060831561177e575081610725565b82511561178e5782518084602001fd5b8160405162461bcd60e51b81526004016105709190611824565b80356001600160a01b03811681146117bf57600080fd5b919050565b6000806000606084860312156117d957600080fd5b6117e2846117a8565b92506117f0602085016117a8565b9150604084013590509250925092565b60005b8381101561181b578181015183820152602001611803565b50506000910152565b6020815260008251806020840152611843816040850160208701611800565b601f01601f19169190910160400192915050565b6000806040838503121561186a57600080fd5b611873836117a8565b946020939093013593505050565b6000806000806080858703121561189757600080fd5b6118a0856117a8565b93506118ae602086016117a8565b9250604085013591506118c3606086016117a8565b905092959194509250565b600080604083850312156118e157600080fd5b6118ea836117a8565b91506118f8602084016117a8565b90509250929050565b60006020828403121561191357600080fd5b610725826117a8565b6000806000806080858703121561193257600080fd5b61193b856117a8565b9350611949602086016117a8565b9250611957604086016117a8565b9396929550929360600135925050565b60006020828403121561197957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156119ab57600080fd5b833567ffffffffffffffff808211156119c357600080fd5b818601915086601f8301126119d757600080fd5b81356020828211156119eb576119eb611980565b8160051b604051601f19603f83011681018181108682111715611a1057611a10611980565b60405292835281830193508481018201928a841115611a2e57600080fd5b948201945b83861015611a5357611a44866117a8565b85529482019493820193611a33565b9750611a6290508882016117a8565b955050505050611a74604085016117a8565b90509250925092565b8015158114611a8b57600080fd5b50565b60008060408385031215611aa157600080fd5b611aaa836117a8565b91506020830135611aba81611a7d565b809150509250929050565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c90821680611b0857607f821691505b602082108103611b2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561063157610631611b2e565b808202811582820484141761063157610631611b2e565b600082611b8b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201611bb857611bb8611b2e565b5060010190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b8082018082111561063157610631611b2e565b600060208284031215611c2857600080fd5b815161072581611a7d565b60008251611c45818460208701611800565b919091019291505056fea264697066735822122041a4933c55795afc0645168c7d3e7b46eaf89d00ad62e675cb79181039bd484864736f6c63430008130033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000007666565204c4c50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004664c6c7000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80635bae96191161010f578063a9059cbb116100a2578063e44b755811610071578063e44b7558146104e2578063f5d9d63e146104f5578063f7c618c114610520578063fff40dd71461053357600080fd5b8063a9059cbb14610460578063b89e45b314610473578063cfad57a214610496578063dd62ed3e146104a957600080fd5b806390482d72116100de57806390482d721461042957806395d89b411461043c5780639cb7de4b14610444578063a1b60ff51461045757600080fd5b80635bae9619146103d157806370a08231146103da578063790b5a6c146104035780638663e5cc1461041657600080fd5b806327e235e31161018757806346ea87af1161015657806346ea87af14610327578063552ce1dc1461034a57806355b6ed5c1461036a57806355f575101461039557600080fd5b806327e235e3146102c6578063313ce567146102e6578063392e53cd14610300578063402914f51461031457600080fd5b806312d43a51116101c357806312d43a511461025e57806313e82e7a1461028957806318160ddd146102aa57806323b872dd146102b357600080fd5b806301e33667146101f557806306fdde031461020a578063095ea7b314610228578063098bf59d1461024b575b600080fd5b6102086102033660046117c4565b610546565b005b610212610592565b60405161021f9190611824565b60405180910390f35b61023b610236366004611857565b610620565b604051901515815260200161021f565b610208610259366004611881565b610637565b600154610271906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b61029c6102973660046118ce565b610663565b60405190815260200161021f565b61029c60075481565b61023b6102c13660046117c4565b6106ad565b61029c6102d4366004611901565b60086020526000908152604090205481565b6102ee601281565b60405160ff909116815260200161021f565b60015461023b90600160a01b900460ff1681565b61029c610322366004611901565b61072c565b61023b610335366004611901565b600b6020526000908152604090205460ff1681565b61029c610358366004611901565b60066020526000908152604090205481565b61029c6103783660046118ce565b600960209081526000928352604080842090915290825290205481565b6103bc6103a3366004611901565b600a602052600090815260409020805460019091015482565b6040805192835260208301919091520161021f565b61029c600d5481565b61029c6103e8366004611901565b6001600160a01b031660009081526008602052604090205490565b61020861041136600461191c565b610788565b610208610424366004611967565b6107a4565b610208610437366004611996565b6107d3565b610212610906565b610208610452366004611a8e565b610913565b61029c600f5481565b61023b61046e366004611857565b610968565b61023b610481366004611901565b60046020526000908152604090205460ff1681565b6102086104a4366004611901565b610975565b61029c6104b73660046118ce565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6102086104f0366004611a8e565b6109c1565b61029c6105033660046118ce565b600560209081526000928352604080842090915290825290205481565b600c54610271906001600160a01b031681565b610208610541366004611967565b610a16565b6001546001600160a01b031633146105795760405162461bcd60e51b815260040161057090611ac5565b60405180910390fd5b61058d6001600160a01b0384168383610a45565b505050565b6002805461059f90611af4565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90611af4565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b505050505081565b600061062d338484610aa8565b5060015b92915050565b61063f610bde565b610647610c08565b61065384848484610c69565b61065d6001600055565b50505050565b600061066d610bde565b610675610c08565b60006106818484610f36565b600f546001600160a01b0386166000908152600a60205260409020600101559150506106316001600055565b336000908152600b602052604081205460ff16156106d8576106d0848484610fb5565b506001610725565b6001600160a01b0384166000908152600960209081526040808320338452909152812054610707908490611b44565b9050610714853383610aa8565b61071f858585610fb5565b60019150505b9392505050565b6001600160a01b0381166000908152600a6020908152604080832081518083019092528054808352600190910154928201839052600d54600f54929390926107749190611b44565b61077e9190611b57565b6107259190611b6e565b610790610bde565b610798610c08565b61065384848484611133565b6001546001600160a01b031633146107ce5760405162461bcd60e51b815260040161057090611ac5565b600d55565b6001546001600160a01b031633146107fd5760405162461bcd60e51b815260040161057090611ac5565b600154600160a01b900460ff16156108625760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b6064820152608401610570565b6001805460ff60a01b1916600160a01b17905560005b83518110156108d657600084828151811061089557610895611b90565b6020908102919091018101516001600160a01b03166000908152600490915260409020805460ff1916600117905550806108ce81611ba6565b915050610878565b50600c80546001600160a01b039384166001600160a01b031991821617909155600e805492909316911617905550565b6003805461059f90611af4565b6001546001600160a01b0316331461093d5760405162461bcd60e51b815260040161057090611ac5565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600061062d338484610fb5565b6001546001600160a01b0316331461099f5760405162461bcd60e51b815260040161057090611ac5565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146109eb5760405162461bcd60e51b815260040161057090611ac5565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6001546001600160a01b03163314610a405760405162461bcd60e51b815260040161057090611ac5565b600f55565b6040516001600160a01b03831660248201526044810182905261058d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261133e565b6001600160a01b038316610b135760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b6064820152608401610570565b6001600160a01b038216610b7c5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b6064820152608401610570565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600260005403610c0157604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b336000908152600b602052604090205460ff16610c675760405162461bcd60e51b815260206004820152601860248201527f526577617264547261636b65723a20666f7262696464656e00000000000000006044820152606401610570565b565b60008211610cb95760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e7400006044820152606401610570565b6001600160a01b03831660009081526004602052604090205460ff16610cf15760405162461bcd60e51b815260040161057090611bbf565b6001600160a01b0384166000908152600a60209081526040918290208251808401909352805480845260019091015491830191909152831115610d8a5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b6064820152608401610570565b610d948583610f36565b5060408051808201909152600080825260208201528151610db6908590611b44565b8152600f5460208083019182526001600160a01b038089166000908152600a835260408082208651815594516001909501949094556005835283812091891681529152205484811015610e615760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b6064820152608401610570565b610e6b8582611b44565b6001600160a01b038089166000908152600560209081526040808320938b168352928152828220939093556006909252902054610ea9908690611b44565b6001600160a01b038716600090815260066020526040902055610ecc8786611410565b610ee06001600160a01b0387168587610a45565b836001600160a01b0316876001600160a01b03167f2aa81182373182dfff2fa4da1dd0aa3bb18f94626d512fa6fd12a66d9f10b08a87604051610f2591815260200190565b60405180910390a350505050505050565b600080610f428461072c565b9050801561072557600c54610f61906001600160a01b03168483610a45565b826001600160a01b0316846001600160a01b03167f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706883604051610fa691815260200190565b60405180910390a39392505050565b6001600160a01b0383166110215760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b6064820152608401610570565b6001600160a01b03821661108b5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b6064820152608401610570565b6001600160a01b0383166000908152600860205260409020546110af908290611b44565b6001600160a01b0380851660009081526008602052604080822093909355908416815220546110df908290611c03565b6001600160a01b0380841660008181526008602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610bd19085815260200190565b600081116111835760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e7400006044820152606401610570565b6001600160a01b03821660009081526004602052604090205460ff166111bb5760405162461bcd60e51b815260040161057090611bbf565b6111d06001600160a01b03831685308461150c565b6001600160a01b0383166000908152600a6020908152604091829020825180840190935280548084526001909101549183019190915215611217576112158485610f36565b505b60408051808201909152600080825260208201528151611238908490611c03565b8152600f5460208083019182526001600160a01b038088166000908152600a8352604080822086518155945160019095019490945560058352838120918816815291522054611288908490611c03565b6001600160a01b03808716600090815260056020908152604080832093891683529281528282209390935560069092529020546112c6908490611c03565b6001600160a01b0385166000908152600660205260409020556112e98584611544565b846001600160a01b0316866001600160a01b03167f7e479a25e52771e97f19e689ae3de90e47ebd801653a8a7d1db6526fb7323cec8560405161132e91815260200190565b60405180910390a3505050505050565b6000611393826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116309092919063ffffffff16565b80519091501561058d57808060200190518101906113b19190611c16565b61058d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610570565b6001600160a01b0382166114785760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b6064820152608401610570565b6001600160a01b03821660009081526008602052604090205461149c908290611b44565b6001600160a01b0383166000908152600860205260409020556007546114c3908290611b44565b6007556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261065d9085906323b872dd60e01b90608401610a71565b6001600160a01b0382166115aa5760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610570565b806007546115b89190611c03565b6007556001600160a01b0382166000908152600860205260409020546115df908290611c03565b6001600160a01b0383166000818152600860205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115009085815260200190565b606061163f8484600085611647565b949350505050565b6060824710156116a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610570565b843b6116f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610570565b600080866001600160a01b031685876040516117129190611c33565b60006040518083038185875af1925050503d806000811461174f576040519150601f19603f3d011682016040523d82523d6000602084013e611754565b606091505b509150915061176482828661176f565b979650505050505050565b6060831561177e575081610725565b82511561178e5782518084602001fd5b8160405162461bcd60e51b81526004016105709190611824565b80356001600160a01b03811681146117bf57600080fd5b919050565b6000806000606084860312156117d957600080fd5b6117e2846117a8565b92506117f0602085016117a8565b9150604084013590509250925092565b60005b8381101561181b578181015183820152602001611803565b50506000910152565b6020815260008251806020840152611843816040850160208701611800565b601f01601f19169190910160400192915050565b6000806040838503121561186a57600080fd5b611873836117a8565b946020939093013593505050565b6000806000806080858703121561189757600080fd5b6118a0856117a8565b93506118ae602086016117a8565b9250604085013591506118c3606086016117a8565b905092959194509250565b600080604083850312156118e157600080fd5b6118ea836117a8565b91506118f8602084016117a8565b90509250929050565b60006020828403121561191357600080fd5b610725826117a8565b6000806000806080858703121561193257600080fd5b61193b856117a8565b9350611949602086016117a8565b9250611957604086016117a8565b9396929550929360600135925050565b60006020828403121561197957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156119ab57600080fd5b833567ffffffffffffffff808211156119c357600080fd5b818601915086601f8301126119d757600080fd5b81356020828211156119eb576119eb611980565b8160051b604051601f19603f83011681018181108682111715611a1057611a10611980565b60405292835281830193508481018201928a841115611a2e57600080fd5b948201945b83861015611a5357611a44866117a8565b85529482019493820193611a33565b9750611a6290508882016117a8565b955050505050611a74604085016117a8565b90509250925092565b8015158114611a8b57600080fd5b50565b60008060408385031215611aa157600080fd5b611aaa836117a8565b91506020830135611aba81611a7d565b809150509250929050565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c90821680611b0857607f821691505b602082108103611b2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561063157610631611b2e565b808202811582820484141761063157610631611b2e565b600082611b8b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201611bb857611bb8611b2e565b5060010190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b8082018082111561063157610631611b2e565b600060208284031215611c2857600080fd5b815161072581611a7d565b60008251611c45818460208701611800565b919091019291505056fea264697066735822122041a4933c55795afc0645168c7d3e7b46eaf89d00ad62e675cb79181039bd484864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000007666565204c4c50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004664c6c7000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): fee LLP
Arg [1] : _symbol (string): fLlp
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [3] : 666565204c4c5000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 664c6c7000000000000000000000000000000000000000000000000000000000
[ 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.