Source Code
Latest 25 from a total of 8,208 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 82083962 | 6 hrs ago | IN | 0 POL | 0.00226422 | ||||
| Withdraw | 82083945 | 6 hrs ago | IN | 0 POL | 0.00298917 | ||||
| Claim | 82060872 | 19 hrs ago | IN | 0 POL | 0.01511572 | ||||
| Claim | 82060871 | 19 hrs ago | IN | 0 POL | 0.01516008 | ||||
| Claim | 82005411 | 2 days ago | IN | 0 POL | 0.01824588 | ||||
| Claim | 81993911 | 2 days ago | IN | 0 POL | 0.02453341 | ||||
| Claim | 81975070 | 2 days ago | IN | 0 POL | 0.04938231 | ||||
| Claim | 81862464 | 5 days ago | IN | 0 POL | 0.00324008 | ||||
| Claim | 81833618 | 6 days ago | IN | 0 POL | 0.05021252 | ||||
| Claim | 81797023 | 6 days ago | IN | 0 POL | 0.0066915 | ||||
| Claim | 81786884 | 7 days ago | IN | 0 POL | 0.00750546 | ||||
| Claim | 81725707 | 8 days ago | IN | 0 POL | 0.03567282 | ||||
| Claim | 81725695 | 8 days ago | IN | 0 POL | 0.0356692 | ||||
| Claim | 81661151 | 10 days ago | IN | 0 POL | 0.04355559 | ||||
| Claim | 81617827 | 11 days ago | IN | 0 POL | 0.05555335 | ||||
| Claim | 81604593 | 11 days ago | IN | 0 POL | 0.05026625 | ||||
| Claim | 81577466 | 12 days ago | IN | 0 POL | 0.04102831 | ||||
| Claim | 81573786 | 12 days ago | IN | 0 POL | 0.0328082 | ||||
| Claim | 81569393 | 12 days ago | IN | 0 POL | 0.01096923 | ||||
| Withdraw | 81569379 | 12 days ago | IN | 0 POL | 0.01255527 | ||||
| Claim | 81546699 | 12 days ago | IN | 0 POL | 0.04058637 | ||||
| Withdraw | 81546669 | 12 days ago | IN | 0 POL | 0.04424687 | ||||
| Claim | 81525673 | 13 days ago | IN | 0 POL | 0.00985274 | ||||
| Claim | 81515825 | 13 days ago | IN | 0 POL | 0.02510662 | ||||
| Withdraw | 81515788 | 13 days ago | IN | 0 POL | 0.02430659 |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xcc39b5c2...DDc84edbC The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Staking
Compiler Version
v0.8.20+commit.a1b79de6
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.20;
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IStaking} from "contracts/interface/IStaking.sol";
/**
* @notice Staking contract that distribute a fixed reward rate per second among
* stakers according to their time-weighted contributions to this pool
* @dev Rewarding rate for staked tokens is per second
* @dev Each contract represents a pool for an ERC20 pair tokens
*/
contract Staking is Ownable, IStaking {
using SafeERC20 for IERC20;
IERC20 public stakingToken;
IERC20 public rewardToken;
uint256 public ratePerSecond;
uint256 public lastRewardTimestamp;
uint256 public accRewardsPerShare;
mapping(address => StakerInfo) public stakerInfo;
uint256 private _totalStaked;
/**
* @param stakingToken_ address of ERC20 underlying token
* @param rewardToken_ address of ERC20 reward token
* @param ratePerSecond_ is reward token rate per second to distribute among stakers
* @param owner_, address of the owner of contract to update rate
*/
constructor(
address stakingToken_,
address rewardToken_,
uint256 ratePerSecond_,
address owner_
) Ownable(owner_) {
stakingToken = IERC20(stakingToken_);
rewardToken = IERC20(rewardToken_);
ratePerSecond = ratePerSecond_;
}
/**
* @dev See {IStaking-stake}.
*/
function stake(uint256 amount) external {
StakerInfo storage staker = stakerInfo[msg.sender];
_updatePool();
if (staker.stakedAmount > 0) {
uint256 pending = ((staker.stakedAmount * accRewardsPerShare) /
1e24) - staker.rewardDebt;
staker.accRewards += pending;
}
_totalStaked += amount;
staker.stakedAmount += amount;
staker.rewardDebt = (staker.stakedAmount * accRewardsPerShare) / 1e24;
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
emit Stake(msg.sender, amount);
}
/**
* @dev See {IStaking-withdraw}.
*/
function withdraw(uint256 amount) external {
StakerInfo storage staker = stakerInfo[msg.sender];
if (staker.stakedAmount < amount) {
revert NotEnoughBalance();
}
_updatePool();
uint256 pending = ((staker.stakedAmount * accRewardsPerShare) / 1e24) -
staker.rewardDebt;
staker.accRewards += pending;
_totalStaked -= amount;
staker.stakedAmount -= amount;
staker.rewardDebt = (staker.stakedAmount * accRewardsPerShare) / 1e24;
_withdraw(amount);
}
/**
* @dev See {IStaking-claim}.
*/
function claim() external returns (uint256 rewards) {
StakerInfo storage staker = stakerInfo[msg.sender];
if (staker.stakedAmount == 0 && staker.accRewards == 0) {
revert NoRewards();
}
_updatePool();
rewards =
((staker.stakedAmount * accRewardsPerShare) / 1e24) +
staker.accRewards -
staker.rewardDebt;
staker.accRewards = 0;
staker.rewardDebt = (staker.stakedAmount * accRewardsPerShare) / 1e24;
_claim(rewards);
}
/**
* @dev See {IStaking-withdrawAll}.
*/
function withdrawAll() external returns (uint256 rewards) {
StakerInfo memory staker = stakerInfo[msg.sender];
if (staker.stakedAmount == 0) {
revert NotEnoughBalance();
}
_updatePool();
rewards =
((staker.stakedAmount * accRewardsPerShare) / 1e24) +
staker.accRewards -
staker.rewardDebt;
_totalStaked -= staker.stakedAmount;
delete stakerInfo[msg.sender];
_claim(rewards);
_withdraw(staker.stakedAmount);
}
/**
* @dev See {IStaking-emergencyWithdraw}.
*/
function emergencyWithdraw() external {
StakerInfo memory staker = stakerInfo[msg.sender];
if (staker.stakedAmount == 0) {
revert NotEnoughBalance();
}
delete stakerInfo[msg.sender];
stakingToken.safeTransfer(msg.sender, staker.stakedAmount);
emit EmergencyWithdraw(msg.sender, staker.stakedAmount);
}
/**
* @dev See {IStaking-updateRate}.
*/
function updateRate(uint256 rate) external onlyOwner {
_updatePool();
emit RateUpdate(ratePerSecond, rate);
ratePerSecond = rate;
}
/**
* @dev See {IStaking-getReward}.
*/
function getReward(address account) external view returns (uint256) {
if (_totalStaked == 0) {
return 0;
}
StakerInfo memory staker = stakerInfo[account];
uint256 reward = (block.timestamp - lastRewardTimestamp) *
ratePerSecond;
uint256 rewardsPerShare = accRewardsPerShare +
(reward * 1e24) /
_totalStaked;
return
((staker.stakedAmount * rewardsPerShare) / 1e24) +
staker.accRewards -
staker.rewardDebt;
}
/**
* @dev See {IStaking-totalStaked}.
*/
function totalStaked() external view returns (uint256) {
return _totalStaked;
}
/**
* @dev See {IStaking-balanceOf}.
*/
function balanceOf(address account) external view returns (uint256) {
return stakerInfo[account].stakedAmount;
}
/**
* @dev Transfer the rewards to `msg.sender` and emits the Claim event
* @param rewards, amount of reward to claim
*/
function _claim(uint256 rewards) private {
rewardToken.safeTransfer(msg.sender, rewards);
emit Claim(msg.sender, rewards);
}
/**
* @dev Transfer the amount to `msg.sender` and emits the Withdraw event
* @param amount, amount of token to withdraw
*/
function _withdraw(uint256 amount) private {
stakingToken.safeTransfer(msg.sender, amount);
emit Withdraw(msg.sender, amount);
}
/**
* @dev Updates pool parameters on Stake, Withdraw and Claim
* @dev only updates timestamp if there is no staked amount
* @dev skip update if called in same updated timestamp
*/
function _updatePool() private {
if (block.timestamp <= lastRewardTimestamp) {
return;
}
if (_totalStaked == 0) {
lastRewardTimestamp = block.timestamp;
return;
}
uint256 reward = (block.timestamp - lastRewardTimestamp) *
ratePerSecond;
accRewardsPerShare += (reward * 1e24) / _totalStaked;
lastRewardTimestamp = block.timestamp;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 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.
*/
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.
*/
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.
*/
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 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);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
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 silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// 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
pragma solidity 0.8.20;
interface IStaking {
struct StakerInfo {
uint256 stakedAmount;
uint256 rewardDebt;
uint256 accRewards;
}
event Stake(address indexed staker, uint256 amount);
event Withdraw(address indexed staker, uint256 amount);
event Claim(address indexed staker, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 amount);
event RateUpdate(uint256 oldRate, uint256 newRate);
error NotEnoughBalance();
error NoRewards();
/**
* @dev Stake the amount of staking token to the pool
* @dev staker should have approved contract to transfer the tokens
* @dev staker should have the amount in staking token balance
* @param amount, number of tokens to stake
*/
function stake(uint256 amount) external;
/**
* @dev Withdraw the staked amount of tokens only for the caller
* @dev staker should have the amount staked before
* @param amount, number of tokens to withdraw
*/
function withdraw(uint256 amount) external;
/**
* @dev Claim the time weighted accumulated rewards for the caller
* @dev staker should have either pending reward or staked an amount
* @dev contract should have enough balance to transfer the rewards
* @return the amount of claimed rewards
*/
function claim() external returns (uint256);
/**
* @dev Withdraws all staked amount with all rewards
* @dev contract should have enough balance to transfer the rewards
* @dev staker should have the amount staked before
* @return the amount of claimed rewards
*/
function withdrawAll() external returns (uint256);
/**
* @dev Transfer the staked amount to the staker without any rewards
* @dev staker should have the amount staked before
*/
function emergencyWithdraw() external;
/**
* @dev Updates rate per second for the rewards
* @param rate new amount of rate
*/
function updateRate(uint256 rate) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @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 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.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @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.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
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 v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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 AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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
* {FailedInnerCall} 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 AddressInsufficientBalance(address(this));
}
(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 {FailedInnerCall}) 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 {FailedInnerCall} 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 {FailedInnerCall}.
*/
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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// 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;
}
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"contracts/=src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"stakingToken_","type":"address"},{"internalType":"address","name":"rewardToken_","type":"address"},{"internalType":"uint256","name":"ratePerSecond_","type":"uint256"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"NoRewards","type":"error"},{"inputs":[],"name":"NotEnoughBalance","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":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"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":"uint256","name":"oldRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RateUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accRewardsPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakerInfo","outputs":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"accRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b50604051610f30380380610f3083398101604081905261002f9161010d565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610067816100a1565b5050600180546001600160a01b039485166001600160a01b031991821617909155600280549390941692169190911790915560035561015a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461010857600080fd5b919050565b6000806000806080858703121561012357600080fd5b61012c856100f1565b935061013a602086016100f1565b92506040850151915061014f606086016100f1565b905092959194509250565b610dc7806101696000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063853828b6116100a2578063c00007b011610071578063c00007b01461024a578063db2e21bc1461025d578063f2fde38b14610265578063f7c618c114610278578063f8077fae1461028b57600080fd5b8063853828b6146102155780638da5cb5b1461021d5780638eff1a981461022e578063a694fc3a1461023757600080fd5b806370a08231116100e957806370a08231146101a8578063715018a6146101d157806372f702f3146101d95780637cbaccd514610204578063817b1cd21461020d57600080fd5b80632e1a7d4d1461011b5780634e71d92d146101305780634e745f1f1461014b57806369ea177114610195575b600080fd5b61012e610129366004610c89565b610294565b005b610138610389565b6040519081526020015b60405180910390f35b61017a610159366004610ca2565b60066020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610142565b61012e6101a3366004610c89565b610452565b6101386101b6366004610ca2565b6001600160a01b031660009081526006602052604090205490565b61012e6104a3565b6001546101ec906001600160a01b031681565b6040516001600160a01b039091168152602001610142565b61013860055481565b600754610138565b6101386104b7565b6000546001600160a01b03166101ec565b61013860035481565b61012e610245366004610c89565b6105a7565b610138610258366004610ca2565b6106c6565b61012e6107b4565b61012e610273366004610ca2565b610882565b6002546101ec906001600160a01b031681565b61013860045481565b33600090815260066020526040902080548211156102c55760405163569d45cf60e11b815260040160405180910390fd5b6102cd6108c5565b6000816001015469d3c21bcecceda100000060055484600001546102f19190610ce1565b6102fb9190610cf8565b6103059190610d1a565b90508082600201600082825461031b9190610d2d565b9250508190555082600760008282546103349190610d1a565b909155505081548390839060009061034d908490610d1a565b9091555050600554825469d3c21bcecceda10000009161036c91610ce1565b6103769190610cf8565b60018301556103848361093e565b505050565b33600090815260066020526040812080541580156103a957506002810154155b156103c757604051630fec21fd60e21b815260040160405180910390fd5b6103cf6108c5565b60018101546002820154600554835469d3c21bcecceda1000000916103f391610ce1565b6103fd9190610cf8565b6104079190610d2d565b6104119190610d1a565b60006002830155600554825491935069d3c21bcecceda1000000916104369190610ce1565b6104409190610cf8565b600182015561044e82610987565b5090565b61045a6109d0565b6104626108c5565b60035460408051918252602082018390527f516c8bdb823996757c901b6b9bd210afa82c6ec8d550f0e57cd3f64896f7319c910160405180910390a1600355565b6104ab6109d0565b6104b560006109fd565b565b336000908152600660209081526040808320815160608101835281548082526001830154948201949094526002909101549181019190915290820361050f5760405163569d45cf60e11b815260040160405180910390fd5b6105176108c5565b60208101516040820151600554835169d3c21bcecceda10000009161053b91610ce1565b6105459190610cf8565b61054f9190610d2d565b6105599190610d1a565b91508060000151600760008282546105719190610d1a565b9091555050336000908152600660205260408120818155600181018290556002015561059c82610987565b805161044e9061093e565b3360009081526006602052604090206105be6108c5565b80541561061a576000816001015469d3c21bcecceda100000060055484600001546105e99190610ce1565b6105f39190610cf8565b6105fd9190610d1a565b9050808260020160008282546106139190610d2d565b9091555050505b816007600082825461062c9190610d2d565b9091555050805482908290600090610645908490610d2d565b9091555050600554815469d3c21bcecceda10000009161066491610ce1565b61066e9190610cf8565b6001808301919091555461068d906001600160a01b0316333085610a4d565b60405182815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a9060200160405180910390a25050565b60006007546000036106da57506000919050565b6001600160a01b038216600090815260066020908152604080832081516060810183528154815260018201549381019390935260020154908201526003546004549192916107289042610d1a565b6107329190610ce1565b905060006007548269d3c21bcecceda100000061074f9190610ce1565b6107599190610cf8565b6005546107669190610d2d565b90508260200151836040015169d3c21bcecceda100000083866000015161078d9190610ce1565b6107979190610cf8565b6107a19190610d2d565b6107ab9190610d1a565b95945050505050565b3360009081526006602090815260408083208151606081018352815480825260018301549482019490945260029091015491810191909152910361080b5760405163569d45cf60e11b815260040160405180910390fd5b336000818152600660205260408120818155600180820183905560029091019190915582519054610847926001600160a01b0390911691610aba565b805160405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695906020015b60405180910390a250565b61088a6109d0565b6001600160a01b0381166108b957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6108c2816109fd565b50565b60045442116108d057565b6007546000036108e05742600455565b6000600354600454426108f39190610d1a565b6108fd9190610ce1565b6007549091506109178269d3c21bcecceda1000000610ce1565b6109219190610cf8565b600560008282546109329190610d2d565b90915550504260045550565b600154610955906001600160a01b03163383610aba565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490602001610877565b60025461099e906001600160a01b03163383610aba565b60405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490602001610877565b6000546001600160a01b031633146104b55760405163118cdaa760e01b81523360048201526024016108b0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038481166024830152838116604483015260648201839052610ab49186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610aeb565b50505050565b6040516001600160a01b0383811660248301526044820183905261038491859182169063a9059cbb90606401610a82565b6000610b006001600160a01b03841683610b4e565b90508051600014158015610b25575080806020019051810190610b239190610d40565b155b1561038457604051635274afe760e01b81526001600160a01b03841660048201526024016108b0565b6060610b5c83836000610b65565b90505b92915050565b606081471015610b8a5760405163cd78605960e01b81523060048201526024016108b0565b600080856001600160a01b03168486604051610ba69190610d62565b60006040518083038185875af1925050503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf8868383610c04565b925050505b9392505050565b606082610c1957610c1482610c60565b610bfd565b8151158015610c3057506001600160a01b0384163b155b15610c5957604051639996b31560e01b81526001600160a01b03851660048201526024016108b0565b5080610bfd565b805115610c705780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610c9b57600080fd5b5035919050565b600060208284031215610cb457600080fd5b81356001600160a01b0381168114610bfd57600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b5f57610b5f610ccb565b600082610d1557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b5f57610b5f610ccb565b80820180821115610b5f57610b5f610ccb565b600060208284031215610d5257600080fd5b81518015158114610bfd57600080fd5b6000825160005b81811015610d835760208186018101518583015201610d69565b50600092019182525091905056fea26469706673582212206d810d7f2a151fa440b8fce6350b53897ff59097b22040978793568f6f4c241164736f6c63430008140033000000000000000000000000692ac1e363ae34b6b489148152b12e2785a3d8d6000000000000000000000000692ac1e363ae34b6b489148152b12e2785a3d8d600000000000000000000000000000000000000000000000000148f483f8040000000000000000000000000008315b8aa6a42094dd03133a152388063763b43ca
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063853828b6116100a2578063c00007b011610071578063c00007b01461024a578063db2e21bc1461025d578063f2fde38b14610265578063f7c618c114610278578063f8077fae1461028b57600080fd5b8063853828b6146102155780638da5cb5b1461021d5780638eff1a981461022e578063a694fc3a1461023757600080fd5b806370a08231116100e957806370a08231146101a8578063715018a6146101d157806372f702f3146101d95780637cbaccd514610204578063817b1cd21461020d57600080fd5b80632e1a7d4d1461011b5780634e71d92d146101305780634e745f1f1461014b57806369ea177114610195575b600080fd5b61012e610129366004610c89565b610294565b005b610138610389565b6040519081526020015b60405180910390f35b61017a610159366004610ca2565b60066020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610142565b61012e6101a3366004610c89565b610452565b6101386101b6366004610ca2565b6001600160a01b031660009081526006602052604090205490565b61012e6104a3565b6001546101ec906001600160a01b031681565b6040516001600160a01b039091168152602001610142565b61013860055481565b600754610138565b6101386104b7565b6000546001600160a01b03166101ec565b61013860035481565b61012e610245366004610c89565b6105a7565b610138610258366004610ca2565b6106c6565b61012e6107b4565b61012e610273366004610ca2565b610882565b6002546101ec906001600160a01b031681565b61013860045481565b33600090815260066020526040902080548211156102c55760405163569d45cf60e11b815260040160405180910390fd5b6102cd6108c5565b6000816001015469d3c21bcecceda100000060055484600001546102f19190610ce1565b6102fb9190610cf8565b6103059190610d1a565b90508082600201600082825461031b9190610d2d565b9250508190555082600760008282546103349190610d1a565b909155505081548390839060009061034d908490610d1a565b9091555050600554825469d3c21bcecceda10000009161036c91610ce1565b6103769190610cf8565b60018301556103848361093e565b505050565b33600090815260066020526040812080541580156103a957506002810154155b156103c757604051630fec21fd60e21b815260040160405180910390fd5b6103cf6108c5565b60018101546002820154600554835469d3c21bcecceda1000000916103f391610ce1565b6103fd9190610cf8565b6104079190610d2d565b6104119190610d1a565b60006002830155600554825491935069d3c21bcecceda1000000916104369190610ce1565b6104409190610cf8565b600182015561044e82610987565b5090565b61045a6109d0565b6104626108c5565b60035460408051918252602082018390527f516c8bdb823996757c901b6b9bd210afa82c6ec8d550f0e57cd3f64896f7319c910160405180910390a1600355565b6104ab6109d0565b6104b560006109fd565b565b336000908152600660209081526040808320815160608101835281548082526001830154948201949094526002909101549181019190915290820361050f5760405163569d45cf60e11b815260040160405180910390fd5b6105176108c5565b60208101516040820151600554835169d3c21bcecceda10000009161053b91610ce1565b6105459190610cf8565b61054f9190610d2d565b6105599190610d1a565b91508060000151600760008282546105719190610d1a565b9091555050336000908152600660205260408120818155600181018290556002015561059c82610987565b805161044e9061093e565b3360009081526006602052604090206105be6108c5565b80541561061a576000816001015469d3c21bcecceda100000060055484600001546105e99190610ce1565b6105f39190610cf8565b6105fd9190610d1a565b9050808260020160008282546106139190610d2d565b9091555050505b816007600082825461062c9190610d2d565b9091555050805482908290600090610645908490610d2d565b9091555050600554815469d3c21bcecceda10000009161066491610ce1565b61066e9190610cf8565b6001808301919091555461068d906001600160a01b0316333085610a4d565b60405182815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a9060200160405180910390a25050565b60006007546000036106da57506000919050565b6001600160a01b038216600090815260066020908152604080832081516060810183528154815260018201549381019390935260020154908201526003546004549192916107289042610d1a565b6107329190610ce1565b905060006007548269d3c21bcecceda100000061074f9190610ce1565b6107599190610cf8565b6005546107669190610d2d565b90508260200151836040015169d3c21bcecceda100000083866000015161078d9190610ce1565b6107979190610cf8565b6107a19190610d2d565b6107ab9190610d1a565b95945050505050565b3360009081526006602090815260408083208151606081018352815480825260018301549482019490945260029091015491810191909152910361080b5760405163569d45cf60e11b815260040160405180910390fd5b336000818152600660205260408120818155600180820183905560029091019190915582519054610847926001600160a01b0390911691610aba565b805160405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695906020015b60405180910390a250565b61088a6109d0565b6001600160a01b0381166108b957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6108c2816109fd565b50565b60045442116108d057565b6007546000036108e05742600455565b6000600354600454426108f39190610d1a565b6108fd9190610ce1565b6007549091506109178269d3c21bcecceda1000000610ce1565b6109219190610cf8565b600560008282546109329190610d2d565b90915550504260045550565b600154610955906001600160a01b03163383610aba565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490602001610877565b60025461099e906001600160a01b03163383610aba565b60405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490602001610877565b6000546001600160a01b031633146104b55760405163118cdaa760e01b81523360048201526024016108b0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038481166024830152838116604483015260648201839052610ab49186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610aeb565b50505050565b6040516001600160a01b0383811660248301526044820183905261038491859182169063a9059cbb90606401610a82565b6000610b006001600160a01b03841683610b4e565b90508051600014158015610b25575080806020019051810190610b239190610d40565b155b1561038457604051635274afe760e01b81526001600160a01b03841660048201526024016108b0565b6060610b5c83836000610b65565b90505b92915050565b606081471015610b8a5760405163cd78605960e01b81523060048201526024016108b0565b600080856001600160a01b03168486604051610ba69190610d62565b60006040518083038185875af1925050503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf8868383610c04565b925050505b9392505050565b606082610c1957610c1482610c60565b610bfd565b8151158015610c3057506001600160a01b0384163b155b15610c5957604051639996b31560e01b81526001600160a01b03851660048201526024016108b0565b5080610bfd565b805115610c705780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610c9b57600080fd5b5035919050565b600060208284031215610cb457600080fd5b81356001600160a01b0381168114610bfd57600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b5f57610b5f610ccb565b600082610d1557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b5f57610b5f610ccb565b80820180821115610b5f57610b5f610ccb565b600060208284031215610d5257600080fd5b81518015158114610bfd57600080fd5b6000825160005b81811015610d835760208186018101518583015201610d69565b50600092019182525091905056fea26469706673582212206d810d7f2a151fa440b8fce6350b53897ff59097b22040978793568f6f4c241164736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$7.10
Net Worth in POL
Token Allocations
TRADE
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.050012 | 141.9241 | $7.1 |
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.