Source Code
Latest 25 from a total of 1,767 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit | 95872033 | 40 hrs ago | IN | 0 XDC | 0.00120473 | ||||
| Claim Reward | 95872020 | 41 hrs ago | IN | 0 XDC | 0.00104087 | ||||
| Withdraw | 95870348 | 41 hrs ago | IN | 0 XDC | 0.00107401 | ||||
| Claim Reward | 95870340 | 41 hrs ago | IN | 0 XDC | 0.00114496 | ||||
| Deposit | 95542437 | 9 days ago | IN | 0 XDC | 0.00144376 | ||||
| Deposit | 95458919 | 11 days ago | IN | 0 XDC | 0.00144568 | ||||
| Claim Reward | 95458909 | 11 days ago | IN | 0 XDC | 0.00124905 | ||||
| Deposit | 95443205 | 12 days ago | IN | 0 XDC | 0.00120473 | ||||
| Claim Reward | 95443200 | 12 days ago | IN | 0 XDC | 0.00104087 | ||||
| Deposit | 95413062 | 12 days ago | IN | 0 XDC | 0.00144472 | ||||
| Deposit | 95313011 | 15 days ago | IN | 0 XDC | 0.00142495 | ||||
| Deposit | 94970871 | 24 days ago | IN | 0 XDC | 0.00144376 | ||||
| Claim Reward | 94941614 | 24 days ago | IN | 0 XDC | 0.00098837 | ||||
| Claim Reward | 94855685 | 27 days ago | IN | 0 XDC | 0.00073837 | ||||
| Claim Reward | 94855669 | 27 days ago | IN | 0 XDC | 0.00089236 | ||||
| Withdraw | 94855663 | 27 days ago | IN | 0 XDC | 0.00107313 | ||||
| Deposit | 94824642 | 27 days ago | IN | 0 XDC | 0.00120473 | ||||
| Claim Reward | 94824640 | 27 days ago | IN | 0 XDC | 0.00085337 | ||||
| Claim Reward | 94789000 | 28 days ago | IN | 0 XDC | 0.00108721 | ||||
| Claim Reward | 94788979 | 28 days ago | IN | 0 XDC | 0.00129346 | ||||
| Deposit | 94738260 | 30 days ago | IN | 0 XDC | 0.00129701 | ||||
| Claim Reward | 94587138 | 34 days ago | IN | 0 XDC | 0.00129346 | ||||
| Deposit | 94566066 | 34 days ago | IN | 0 XDC | 0.00120473 | ||||
| Claim Reward | 94566053 | 34 days ago | IN | 0 XDC | 0.00104087 | ||||
| Withdraw | 94559361 | 34 days ago | IN | 0 XDC | 0.00097797 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LpStake
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity =0.8.23;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
contract LpStake is Ownable, ReentrancyGuard, Pausable {
using SafeERC20 for IERC20;
// Constants
uint256 public constant PRECISION = 1e18; // Precision factor for calculations
// Pool info struct
struct PoolInfo {
IERC20 lpToken; // LP token that users can stake
IERC20 rewardToken; // Token given as reward
uint256 lastRewardBlock; // Last block number rewards were distributed
uint256 accRewardPerShare; // Accumulated rewards per share, multiplied by PRECISION
uint256 totalStaked; // Total amount of LP tokens staked
uint256 rewardPerBlock; // Reward tokens per block for this pool
bool isActive; // Whether this pool is active
uint256 startBlock; // Pool start block
uint256 endBlock; // Pool end block (0 means no end)
}
// User info struct
struct UserInfo {
uint256 amount; // Amount of LP tokens staked
uint256 rewardDebt; // Reward debt, multiplied by PRECISION
uint256 pendingRewards; // Pending rewards
}
// State variables
PoolInfo[] public poolInfo;
mapping(uint256 => mapping(address => UserInfo)) public userInfo; // poolId => user address => UserInfo
// Events
event AddPool(
uint256 indexed pid,
address lpToken,
address rewardToken,
uint256 rewardPerBlock
);
event SetPoolStatus(uint256 indexed pid, bool isActive);
event SetRewardPerBlock(uint256 indexed pid, uint256 rewardPerBlock);
event Deposit(uint256 indexed pid, address indexed user, uint256 amount);
event Withdraw(uint256 indexed pid, address indexed user, uint256 amount);
event ClaimReward(
uint256 indexed pid,
address indexed user,
uint256 amount
);
event EmergencyWithdraw(
uint256 indexed pid,
address indexed user,
uint256 amount
);
// Modifiers
modifier validatePool(uint256 _pid) {
require(_pid < poolInfo.length, "Pool does not exist");
require(poolInfo[_pid].isActive, "Pool is not active");
_;
}
constructor() Ownable(msg.sender) {}
// Pause/Unpause contract
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
// Add a new pool
function addPool(
address _lpToken,
address _rewardToken,
uint256 _rewardPerBlock,
uint256 _blockDuration // Duration in blocks (0 means no end)
) external onlyOwner {
require(_lpToken != address(0), "Invalid LP token address");
require(_rewardToken != address(0), "Invalid reward token address");
require(_rewardPerBlock > 0, "Invalid reward per block");
uint256 startBlock = block.number;
uint256 endBlock = _blockDuration > 0 ? startBlock + _blockDuration : 0;
poolInfo.push(
PoolInfo({
lpToken: IERC20(_lpToken),
rewardToken: IERC20(_rewardToken),
lastRewardBlock: startBlock,
accRewardPerShare: 0,
totalStaked: 0,
rewardPerBlock: _rewardPerBlock,
isActive: true,
startBlock: startBlock,
endBlock: endBlock
})
);
emit AddPool(
poolInfo.length - 1,
_lpToken,
_rewardToken,
_rewardPerBlock
);
}
// Set pool status (active/inactive)
function setPoolStatus(uint256 _pid, bool _isActive) external onlyOwner {
poolInfo[_pid].isActive = _isActive;
emit SetPoolStatus(_pid, _isActive);
}
// Set reward per block for a pool
function setRewardPerBlock(
uint256 _pid,
uint256 _rewardPerBlock
) external onlyOwner {
require(_rewardPerBlock > 0, "Invalid reward per block");
require(_pid < poolInfo.length, "Pool does not exist");
updatePool(_pid);
poolInfo[_pid].rewardPerBlock = _rewardPerBlock;
emit SetRewardPerBlock(_pid, _rewardPerBlock);
}
// Update reward variables for a pool
function updatePool(uint256 _pid) public validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
if (
block.number <= pool.lastRewardBlock ||
block.number < pool.startBlock
) {
return;
}
// If end block is set and current block exceeds it, use end block for calculation
uint256 endBlock = block.number;
if (pool.endBlock > 0 && block.number > pool.endBlock) {
endBlock = pool.endBlock;
}
if (pool.totalStaked == 0) {
pool.lastRewardBlock = endBlock;
return;
}
uint256 multiplier = endBlock - pool.lastRewardBlock;
uint256 reward = multiplier * pool.rewardPerBlock;
pool.accRewardPerShare =
pool.accRewardPerShare +
((reward * PRECISION) / pool.totalStaked);
pool.lastRewardBlock = endBlock;
}
// View function to see pending rewards
function pendingReward(
uint256 _pid,
address _user
) external view validatePool(_pid) returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accRewardPerShare = pool.accRewardPerShare;
if (block.number > pool.lastRewardBlock && pool.totalStaked != 0) {
uint256 endBlock = block.number;
if (pool.endBlock > 0 && block.number > pool.endBlock) {
endBlock = pool.endBlock;
}
uint256 multiplier = endBlock - pool.lastRewardBlock;
uint256 reward = multiplier * pool.rewardPerBlock;
accRewardPerShare =
accRewardPerShare +
((reward * PRECISION) / pool.totalStaked);
}
return
user.pendingRewards +
((user.amount * accRewardPerShare) / PRECISION) -
user.rewardDebt;
}
// Stake LP tokens
function deposit(
uint256 _pid,
uint256 _amount
) external nonReentrant whenNotPaused validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(block.number >= pool.startBlock, "Pool not started");
require(
pool.endBlock == 0 || block.number <= pool.endBlock,
"Pool ended"
);
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = ((user.amount * pool.accRewardPerShare) /
PRECISION) - user.rewardDebt;
if (pending > 0) {
user.pendingRewards = user.pendingRewards + pending;
}
}
if (_amount > 0) {
pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);
user.amount = user.amount + _amount;
pool.totalStaked = pool.totalStaked + _amount;
}
user.rewardDebt = (user.amount * pool.accRewardPerShare) / PRECISION;
emit Deposit(_pid, msg.sender, _amount);
}
// Withdraw LP tokens
function withdraw(
uint256 _pid,
uint256 _amount
) external nonReentrant whenNotPaused validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "Withdraw: insufficient balance");
updatePool(_pid);
uint256 pending = ((user.amount * pool.accRewardPerShare) / PRECISION) -
user.rewardDebt;
if (pending > 0) {
user.pendingRewards = user.pendingRewards + pending;
}
if (_amount > 0) {
user.amount = user.amount - _amount;
pool.totalStaked = pool.totalStaked - _amount;
pool.lpToken.safeTransfer(msg.sender, _amount);
}
user.rewardDebt = (user.amount * pool.accRewardPerShare) / PRECISION;
emit Withdraw(_pid, msg.sender, _amount);
}
// Claim accumulated rewards
function claimReward(
uint256 _pid
) external nonReentrant whenNotPaused validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
uint256 pending = ((user.amount * pool.accRewardPerShare) / PRECISION) -
user.rewardDebt;
if (pending > 0 || user.pendingRewards > 0) {
uint256 totalRewards = pending + user.pendingRewards;
user.pendingRewards = 0;
// Ensure contract has enough reward tokens
require(
pool.rewardToken.balanceOf(address(this)) >= totalRewards,
"Insufficient reward token balance"
);
pool.rewardToken.safeTransfer(msg.sender, totalRewards);
emit ClaimReward(_pid, msg.sender, totalRewards);
}
user.rewardDebt = (user.amount * pool.accRewardPerShare) / PRECISION;
}
// Emergency withdraw without caring about rewards
function emergencyWithdraw(
uint256 _pid
) external nonReentrant validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 amount = user.amount;
require(amount > 0, "No tokens to withdraw");
user.amount = 0;
user.rewardDebt = 0;
user.pendingRewards = 0;
pool.totalStaked = pool.totalStaked - amount;
pool.lpToken.safeTransfer(msg.sender, amount);
emit EmergencyWithdraw(_pid, msg.sender, amount);
}
// View function to get the number of pools
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
// Admin rescue function: withdraw accidentally sent tokens from contract
function rescueTokens(address _token, uint256 _amount) external onlyOwner {
require(_token != address(0), "Invalid token address");
IERC20(_token).safeTransfer(msg.sender, _amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// 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 ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
bool private _paused;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"AddPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SetPoolStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"SetRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_blockDuration","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setPoolStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"pendingRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608080604052346100885733156100725760008054336001600160a01b03198216811783556040519290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001805560ff19600254166002556114ad908161008e8239f35b631e4fbdf760e01b815260006004820152602490fd5b600080fdfe6040608081526004908136101561001557600080fd5b600091823560e01c8063070dac681461100d578063081e3eda14610fee5780631526fe2714610f535780633f4ba83a14610eea578063441a3e7014610d5f57806351eb05a614610d255780635312ea8e14610c225780635737619814610ba55780635c975abb14610b81578063715018a614610b275780638456cb5914610acc5780638da5cb5b14610aa457806393f1a40b14610a4f57806398969e82146108f5578063aaf5eb68146108d2578063ae169a50146106ba578063bbcaf3fe14610640578063c20632ba146103a5578063e2bbb158146101865763f2fde38b146100fd57600080fd5b3461018257602036600319011261018257610116611107565b9061011f611350565b6001600160a01b0391821692831561016c57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b509034610182576101963661109b565b9290916101a161137c565b6101a961139f565b60035483106101b78161117f565b6101d060ff60066101c7876110b6565b500154166111c1565b6101d9846110b6565b508487526020938085528388203389528552838820926007830154431061036f5760088301548015908115610364575b5015610334576102827feaa18152488ce5959073c9c79c88ca90b3d96c00de1f118cfaad664c3dab06b99695949360019361024c670de0b6b3a76400009461117f565b61025c60ff60066101c78d6110b6565b6102658a611265565b8554806102f9575b508a610294575b506003855491015490611202565b04910155519384523393a36001805580f35b815487516323b872dd60e01b8a82015233602482015230604482015260648082018e905281526102d79160a088901b889003166102d2608483611318565b61140f565b6102e28b8754611258565b865581016102f18b8254611258565b905538610274565b8461030c61031792600386015490611202565b04868801549061124b565b801561026d5761032c60028801918254611258565b90553861026d565b845162461bcd60e51b8152808301879052600a602482015269141bdbdb08195b99195960b21b6044820152606490fd5b905043111538610209565b845162461bcd60e51b8152808301879052601060248201526f141bdbdb081b9bdd081cdd185c9d195960821b6044820152606490fd5b5091903461063c57608036600319011261063c576103c1611107565b6103c961111d565b906044356064356103d8611350565b6001600160a01b03838116919082156105f9578086169182156105b657610400851515611133565b80156105ae576104109043611258565b915b875193610120850185811067ffffffffffffffff82111761059b578952845260208401908152878401438152606085018a815260808601908b825260a087019288845260c08801946001865260e08901964388526101008a01988952600354680100000000000000008110156105865780600161049292016003556110b6565b9a909a61057257918a8260089b9a9997959361050099979551166bffffffffffffffffffffffff60a01b80935416178d5560018d01925116908254161790555160028a0155516003890155518d880155516005870155511515600686019060ff801983541691151516179055565b5160078401555191015560035460001981019490851161055f57516001600160a01b03928316815292909116602083015260408201527f75f2196db0bad93b57cf8d17b93c3ed9e44774d0a519bab7f00aa29da8660ede90606090a280f35b634e487b7160e01b865260118752602486fd5b508f8f80602492634e487b7160e01b825252fd5b508f8f6041602492634e487b7160e01b835252fd5b634e487b7160e01b8b5260418c5260248bfd5b508791610412565b875162461bcd60e51b81526020818c0152601c60248201527f496e76616c69642072657761726420746f6b656e2061646472657373000000006044820152606490fd5b865162461bcd60e51b81526020818b0152601860248201527f496e76616c6964204c5020746f6b656e206164647265737300000000000000006044820152606490fd5b5080fd5b503461018257816003193601126101825735906024358015158082036106b6577fe8a086c42c969bc2e434b2f277c2d107b46842719ecb89a705ab603f5464cd90926106ae602093610690611350565b600661069b886110b6565b50019060ff801983541691151516179055565b51908152a280f35b8480fd5b5082903461063c576020806003193601126101825761075e9082356106dd61137c565b6106e561139f565b6003548110906106f48261117f565b61070460ff60066101c7846110b6565b61070d816110b6565b509080875285845287872033885284526107298888209361117f565b61073960ff60066101c7846110b6565b61074281611265565b8254936003830194670de0b6b3a7640000968791875490611202565b0496610770600186019889549061124b565b9384158015906108c5575b61079b575b8989896107918a8a54905490611202565b0490556001805580f35b896107ac6002880196875490611258565b9555600101548a516370a0823160e01b815230838201526001600160a01b0390911691908381602481865afa9081156108bb579086918c91610886575b501061083957509061079196979899610825857fa756e4d8f7509f4ea7c440cd474be2db34f2c8e4a142b5bfbee53cb92124c6df9433906113bd565b519384523393a38594939287808080610780565b8a5162461bcd60e51b8152908101839052602160248201527f496e73756666696369656e742072657761726420746f6b656e2062616c616e636044820152606560f81b6064820152608490fd5b809250858092503d83116108b4575b61089f8183611318565b810103126108b0578590518d6107e9565b8a80fd5b503d610895565b8c513d8d823e3d90fd5b506002860154151561077b565b50503461063c578160031936011261063c5760209051670de0b6b3a76400008152f35b509134610a4c5781600319360112610a4c57823561091161111d565b61091e600354831061117f565b61092e60ff60066101c7856110b6565b610937826110b6565b50918352846020528383209060018060a01b0316835260205282822091600382015491600281015480431180610a40575b6109aa575b6020866109a387600161099a89670de0b6b3a76400006109936002860154928654611202565b0490611258565b9101549061124b565b9051908152f35b6109cb6109d69143600885015480151580610a37575b610a2f575b5061124b565b600583015490611202565b91670de0b6b3a764000092838102938185041490151715610a1c5750610a156109a39493610a0f60019460209961099a9501549061122b565b90611258565b929361096d565b634e487b7160e01b815260118752602490fd5b9050386109c5565b508043116109c0565b50868201541515610968565b80fd5b50346101825781600319360112610182576060928291610a6d61111d565b90803583526020528282209060018060a01b0316825260205220805491600260018301549201549181519384526020840152820152f35b50503461063c578160031936011261063c57905490516001600160a01b039091168152602090f35b50503461063c578160031936011261063c5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610b0a611350565b610b1261139f565b600160ff19600254161760025551338152a180f35b8334610a4c5780600319360112610a4c57610b40611350565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461063c578160031936011261063c5760209060ff6002541690519015158152f35b5034610182578160031936011261018257610bbe611107565b610bc6611350565b6001600160a01b0316918215610be75783610be460243533866113bd565b80f35b906020606492519162461bcd60e51b83528201526015602482015274496e76616c696420746f6b656e206164647265737360581b6044820152fd5b50903461018257602036600319011261018257813590610c4061137c565b610c4d600354831061117f565b610c5d60ff60066101c7856110b6565b610c66826110b6565b5082855283602052818520338652602052818520938454948515610cea579185918760028582610cb9975582600182015501558101610ca683825461124b565b90555433906001600160a01b03166113bd565b519182527f947a9dc0c5e62cc9756634ec0a89afea37eb0305933925040b9bda820044002060203393a36001805580f35b835162461bcd60e51b815260208184015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b6044820152606490fd5b83823461063c57602036600319011261063c57610be49035610d4a600354821061117f565b610d5a60ff60066101c7846110b6565b611265565b503461018257610d6e3661109b565b929091610d7961137c565b610d8161139f565b6003548310610d8f8161117f565b610d9f60ff60066101c7876110b6565b610da8846110b6565b5090848752826020528387203388526020528387209086825410610ea75790610dd3610e379261117f565b610de360ff60066101c7896110b6565b610dec86611265565b805490600384019188670de0b6b3a76400009586610e0b865485611202565b0497610e1d60018601998a549061124b565b80610e90575b5082610e6b575b5050505054905490611202565b049055519182527f9da6493a92039daf47d1f2d7a782299c5994c6323eb1e972f69c432089ec52bf60203393a36001805580f35b610e7883610e879561124b565b85558101610ca683825461124b565b38888180610e2a565b610e9f60028701918254611258565b905538610e23565b845162461bcd60e51b8152602081860152601e60248201527f57697468647261773a20696e73756666696369656e742062616c616e636500006044820152606490fd5b5034610182578260031936011261018257610f03611350565b6002549060ff821615610f45575060ff1916600255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8251638dfc202b60e01b8152fd5b503461018257602036600319011261018257803592600354841015610a4c5750610f7f610120936110b6565b5060018060a01b03928382541693600183015416926002830154906003840154908401549060058501549260ff6006870154169460086007880154970154978151998a5260208a01528801526060870152608086015260a0850152151560c084015260e0830152610100820152f35b50503461063c578160031936011261063c576020906003549051908152f35b50503461063c577f52c807d1e2187528e4d89ed62cff6903bf27704b73db2e397fd8d9d7d954bd6560206110403661109b565b909361104a611350565b611055821515611133565b61106b60035486106110668161117f565b61117f565b61107b60ff60066101c7886110b6565b61108485611265565b816005611090876110b6565b50015551908152a280f35b60409060031901126110b1576004359060243590565b600080fd5b6003548110156110f1576009906003600052027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0190600090565b634e487b7160e01b600052603260045260246000fd5b600435906001600160a01b03821682036110b157565b602435906001600160a01b03821682036110b157565b1561113a57565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207265776172642070657220626c6f636b00000000000000006044820152606490fd5b1561118657565b60405162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606490fd5b156111c857565b60405162461bcd60e51b8152602060048201526012602482015271506f6f6c206973206e6f742061637469766560701b6044820152606490fd5b8181029291811591840414171561121557565b634e487b7160e01b600052601160045260246000fd5b8115611235570490565b634e487b7160e01b600052601260045260246000fd5b9190820391821161121557565b9190820180921161121557565b61126e906110b6565b50600281018054431180159061130b575b6113075743916008810154801515806112fe575b6112f6575b50600481015480156112f15760036112bf6112b485548761124b565b600585015490611202565b920191825490670de0b6b3a764000090818102918183041490151715611215576112ec92610a0f9161122b565b905555565b505055565b925038611298565b50804311611293565b5050565b506007820154431061127f565b90601f8019910116810190811067ffffffffffffffff82111761133a57604052565b634e487b7160e01b600052604160045260246000fd5b6000546001600160a01b0316330361136457565b60405163118cdaa760e01b8152336004820152602490fd5b60026001541461138d576002600155565b604051633ee5aeb560e01b8152600490fd5b60ff600254166113ab57565b60405163d93c066560e01b8152600490fd5b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152608081019167ffffffffffffffff83118284101761133a5761140d9260405261140f565b565b906000602091828151910182855af11561146b576000513d61146257506001600160a01b0381163b155b6114405750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611439565b6040513d6000823e3d90fdfea2646970667358221220b8e2934032c0103cf2871c71f74aa517ef60ff7a27c5de6d644d3eeeaf3ce8d664736f6c63430008170033
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c8063070dac681461100d578063081e3eda14610fee5780631526fe2714610f535780633f4ba83a14610eea578063441a3e7014610d5f57806351eb05a614610d255780635312ea8e14610c225780635737619814610ba55780635c975abb14610b81578063715018a614610b275780638456cb5914610acc5780638da5cb5b14610aa457806393f1a40b14610a4f57806398969e82146108f5578063aaf5eb68146108d2578063ae169a50146106ba578063bbcaf3fe14610640578063c20632ba146103a5578063e2bbb158146101865763f2fde38b146100fd57600080fd5b3461018257602036600319011261018257610116611107565b9061011f611350565b6001600160a01b0391821692831561016c57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b509034610182576101963661109b565b9290916101a161137c565b6101a961139f565b60035483106101b78161117f565b6101d060ff60066101c7876110b6565b500154166111c1565b6101d9846110b6565b508487526020938085528388203389528552838820926007830154431061036f5760088301548015908115610364575b5015610334576102827feaa18152488ce5959073c9c79c88ca90b3d96c00de1f118cfaad664c3dab06b99695949360019361024c670de0b6b3a76400009461117f565b61025c60ff60066101c78d6110b6565b6102658a611265565b8554806102f9575b508a610294575b506003855491015490611202565b04910155519384523393a36001805580f35b815487516323b872dd60e01b8a82015233602482015230604482015260648082018e905281526102d79160a088901b889003166102d2608483611318565b61140f565b6102e28b8754611258565b865581016102f18b8254611258565b905538610274565b8461030c61031792600386015490611202565b04868801549061124b565b801561026d5761032c60028801918254611258565b90553861026d565b845162461bcd60e51b8152808301879052600a602482015269141bdbdb08195b99195960b21b6044820152606490fd5b905043111538610209565b845162461bcd60e51b8152808301879052601060248201526f141bdbdb081b9bdd081cdd185c9d195960821b6044820152606490fd5b5091903461063c57608036600319011261063c576103c1611107565b6103c961111d565b906044356064356103d8611350565b6001600160a01b03838116919082156105f9578086169182156105b657610400851515611133565b80156105ae576104109043611258565b915b875193610120850185811067ffffffffffffffff82111761059b578952845260208401908152878401438152606085018a815260808601908b825260a087019288845260c08801946001865260e08901964388526101008a01988952600354680100000000000000008110156105865780600161049292016003556110b6565b9a909a61057257918a8260089b9a9997959361050099979551166bffffffffffffffffffffffff60a01b80935416178d5560018d01925116908254161790555160028a0155516003890155518d880155516005870155511515600686019060ff801983541691151516179055565b5160078401555191015560035460001981019490851161055f57516001600160a01b03928316815292909116602083015260408201527f75f2196db0bad93b57cf8d17b93c3ed9e44774d0a519bab7f00aa29da8660ede90606090a280f35b634e487b7160e01b865260118752602486fd5b508f8f80602492634e487b7160e01b825252fd5b508f8f6041602492634e487b7160e01b835252fd5b634e487b7160e01b8b5260418c5260248bfd5b508791610412565b875162461bcd60e51b81526020818c0152601c60248201527f496e76616c69642072657761726420746f6b656e2061646472657373000000006044820152606490fd5b865162461bcd60e51b81526020818b0152601860248201527f496e76616c6964204c5020746f6b656e206164647265737300000000000000006044820152606490fd5b5080fd5b503461018257816003193601126101825735906024358015158082036106b6577fe8a086c42c969bc2e434b2f277c2d107b46842719ecb89a705ab603f5464cd90926106ae602093610690611350565b600661069b886110b6565b50019060ff801983541691151516179055565b51908152a280f35b8480fd5b5082903461063c576020806003193601126101825761075e9082356106dd61137c565b6106e561139f565b6003548110906106f48261117f565b61070460ff60066101c7846110b6565b61070d816110b6565b509080875285845287872033885284526107298888209361117f565b61073960ff60066101c7846110b6565b61074281611265565b8254936003830194670de0b6b3a7640000968791875490611202565b0496610770600186019889549061124b565b9384158015906108c5575b61079b575b8989896107918a8a54905490611202565b0490556001805580f35b896107ac6002880196875490611258565b9555600101548a516370a0823160e01b815230838201526001600160a01b0390911691908381602481865afa9081156108bb579086918c91610886575b501061083957509061079196979899610825857fa756e4d8f7509f4ea7c440cd474be2db34f2c8e4a142b5bfbee53cb92124c6df9433906113bd565b519384523393a38594939287808080610780565b8a5162461bcd60e51b8152908101839052602160248201527f496e73756666696369656e742072657761726420746f6b656e2062616c616e636044820152606560f81b6064820152608490fd5b809250858092503d83116108b4575b61089f8183611318565b810103126108b0578590518d6107e9565b8a80fd5b503d610895565b8c513d8d823e3d90fd5b506002860154151561077b565b50503461063c578160031936011261063c5760209051670de0b6b3a76400008152f35b509134610a4c5781600319360112610a4c57823561091161111d565b61091e600354831061117f565b61092e60ff60066101c7856110b6565b610937826110b6565b50918352846020528383209060018060a01b0316835260205282822091600382015491600281015480431180610a40575b6109aa575b6020866109a387600161099a89670de0b6b3a76400006109936002860154928654611202565b0490611258565b9101549061124b565b9051908152f35b6109cb6109d69143600885015480151580610a37575b610a2f575b5061124b565b600583015490611202565b91670de0b6b3a764000092838102938185041490151715610a1c5750610a156109a39493610a0f60019460209961099a9501549061122b565b90611258565b929361096d565b634e487b7160e01b815260118752602490fd5b9050386109c5565b508043116109c0565b50868201541515610968565b80fd5b50346101825781600319360112610182576060928291610a6d61111d565b90803583526020528282209060018060a01b0316825260205220805491600260018301549201549181519384526020840152820152f35b50503461063c578160031936011261063c57905490516001600160a01b039091168152602090f35b50503461063c578160031936011261063c5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610b0a611350565b610b1261139f565b600160ff19600254161760025551338152a180f35b8334610a4c5780600319360112610a4c57610b40611350565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461063c578160031936011261063c5760209060ff6002541690519015158152f35b5034610182578160031936011261018257610bbe611107565b610bc6611350565b6001600160a01b0316918215610be75783610be460243533866113bd565b80f35b906020606492519162461bcd60e51b83528201526015602482015274496e76616c696420746f6b656e206164647265737360581b6044820152fd5b50903461018257602036600319011261018257813590610c4061137c565b610c4d600354831061117f565b610c5d60ff60066101c7856110b6565b610c66826110b6565b5082855283602052818520338652602052818520938454948515610cea579185918760028582610cb9975582600182015501558101610ca683825461124b565b90555433906001600160a01b03166113bd565b519182527f947a9dc0c5e62cc9756634ec0a89afea37eb0305933925040b9bda820044002060203393a36001805580f35b835162461bcd60e51b815260208184015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b6044820152606490fd5b83823461063c57602036600319011261063c57610be49035610d4a600354821061117f565b610d5a60ff60066101c7846110b6565b611265565b503461018257610d6e3661109b565b929091610d7961137c565b610d8161139f565b6003548310610d8f8161117f565b610d9f60ff60066101c7876110b6565b610da8846110b6565b5090848752826020528387203388526020528387209086825410610ea75790610dd3610e379261117f565b610de360ff60066101c7896110b6565b610dec86611265565b805490600384019188670de0b6b3a76400009586610e0b865485611202565b0497610e1d60018601998a549061124b565b80610e90575b5082610e6b575b5050505054905490611202565b049055519182527f9da6493a92039daf47d1f2d7a782299c5994c6323eb1e972f69c432089ec52bf60203393a36001805580f35b610e7883610e879561124b565b85558101610ca683825461124b565b38888180610e2a565b610e9f60028701918254611258565b905538610e23565b845162461bcd60e51b8152602081860152601e60248201527f57697468647261773a20696e73756666696369656e742062616c616e636500006044820152606490fd5b5034610182578260031936011261018257610f03611350565b6002549060ff821615610f45575060ff1916600255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8251638dfc202b60e01b8152fd5b503461018257602036600319011261018257803592600354841015610a4c5750610f7f610120936110b6565b5060018060a01b03928382541693600183015416926002830154906003840154908401549060058501549260ff6006870154169460086007880154970154978151998a5260208a01528801526060870152608086015260a0850152151560c084015260e0830152610100820152f35b50503461063c578160031936011261063c576020906003549051908152f35b50503461063c577f52c807d1e2187528e4d89ed62cff6903bf27704b73db2e397fd8d9d7d954bd6560206110403661109b565b909361104a611350565b611055821515611133565b61106b60035486106110668161117f565b61117f565b61107b60ff60066101c7886110b6565b61108485611265565b816005611090876110b6565b50015551908152a280f35b60409060031901126110b1576004359060243590565b600080fd5b6003548110156110f1576009906003600052027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0190600090565b634e487b7160e01b600052603260045260246000fd5b600435906001600160a01b03821682036110b157565b602435906001600160a01b03821682036110b157565b1561113a57565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207265776172642070657220626c6f636b00000000000000006044820152606490fd5b1561118657565b60405162461bcd60e51b8152602060048201526013602482015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606490fd5b156111c857565b60405162461bcd60e51b8152602060048201526012602482015271506f6f6c206973206e6f742061637469766560701b6044820152606490fd5b8181029291811591840414171561121557565b634e487b7160e01b600052601160045260246000fd5b8115611235570490565b634e487b7160e01b600052601260045260246000fd5b9190820391821161121557565b9190820180921161121557565b61126e906110b6565b50600281018054431180159061130b575b6113075743916008810154801515806112fe575b6112f6575b50600481015480156112f15760036112bf6112b485548761124b565b600585015490611202565b920191825490670de0b6b3a764000090818102918183041490151715611215576112ec92610a0f9161122b565b905555565b505055565b925038611298565b50804311611293565b5050565b506007820154431061127f565b90601f8019910116810190811067ffffffffffffffff82111761133a57604052565b634e487b7160e01b600052604160045260246000fd5b6000546001600160a01b0316330361136457565b60405163118cdaa760e01b8152336004820152602490fd5b60026001541461138d576002600155565b604051633ee5aeb560e01b8152600490fd5b60ff600254166113ab57565b60405163d93c066560e01b8152600490fd5b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152608081019167ffffffffffffffff83118284101761133a5761140d9260405261140f565b565b906000602091828151910182855af11561146b576000513d61146257506001600160a01b0381163b155b6114405750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611439565b6040513d6000823e3d90fdfea2646970667358221220b8e2934032c0103cf2871c71f74aa517ef60ff7a27c5de6d644d3eeeaf3ce8d664736f6c63430008170033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.