Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AutoBriber
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 10000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;
import {IBribe} from "./interfaces/IBribe.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract AutoBriber is Ownable2Step, Pausable, ReentrancyGuard
{
using SafeERC20 for IERC20;
uint internal constant WEEK = 86400 * 7; // allows auto-bribing once per week (reset every Thursday 00:00 UTC)
uint public activePeriod;
struct AutoBribe
{
address token;
address target_bribe;
uint amount_per_period;
uint number_of_periods;
uint periods_remaining;
bool active;
}
AutoBribe[] public bribes;
event AutoBribedSuccessfully(address indexed target_bribe, address indexed token, uint amount, uint current_period);
event AutoBribedFailed(address indexed target_bribe, address indexed token, uint amount, uint current_period, bytes error);
event AutoBribeAdded(address indexed depositor, address target_bribe, address indexed token, uint amount_per_period, uint amount_deposited, uint number_of_periods, uint current_period);
constructor()
{
activePeriod = block.timestamp / WEEK * WEEK;
_transferOwnership(0x0c5D52630c982aE81b78AB2954Ddc9EC2797bB9c); // make team the owner
}
function pause() public onlyOwner
{
_pause();
}
function unpause() public onlyOwner
{
_unpause();
}
function withdrawNative(address beneficiary, uint amount) public onlyOwner
{
(bool sent, ) = beneficiary.call{value: amount}("");
require(sent, 'Unable to withdraw');
}
function withdrawToken(address beneficiary, address token, uint amount) public onlyOwner
{
IERC20(token).transfer(beneficiary, amount);
}
function bribesLength() public view returns (uint)
{
return bribes.length;
}
function removeBribe(uint index) external onlyOwner
{
require(index < bribes.length, 'Invaid auto bribe');
require(!bribes[index].active, 'Auto bribe still active');
bribes[index] = bribes[bribes.length - 1];
bribes.pop();
}
function activateBribe(uint index) external onlyOwner
{
require(index < bribes.length, 'Invaid auto bribe');
AutoBribe storage bribe = bribes[index];
require(!bribe.active, 'Auto bribe is already active');
bribe.active = true;
}
function deactivateBribe(uint index) external onlyOwner
{
require(index < bribes.length, 'Invaid auto bribe');
AutoBribe storage bribe = bribes[index];
require(bribe.active, 'Auto bribe is already inactive');
bribe.active = false;
}
// auto bribe can only be called once per cycle (1 week)
function autoBribe() external whenNotPaused nonReentrant returns (uint)
{
if (block.timestamp >= activePeriod + WEEK) { // only trigger if new week
activePeriod = block.timestamp / WEEK * WEEK;
for(uint i = 0; i < bribes.length; i++) {
AutoBribe storage bribe = bribes[i];
if(bribe.active && bribe.periods_remaining > 0) {
bribe.periods_remaining = bribe.periods_remaining - 1;
if(bribe.periods_remaining == 0) {
bribe.active = false;
}
IERC20(bribe.token).approve(bribe.target_bribe, bribe.amount_per_period);
try IBribe(bribe.target_bribe).notifyRewardAmount(bribe.token, bribe.amount_per_period) {
emit AutoBribedSuccessfully(bribe.target_bribe, bribe.token, bribe.amount_per_period, activePeriod);
} catch Error(string memory reason) {
emit AutoBribedFailed(bribe.target_bribe, bribe.token, bribe.amount_per_period, activePeriod, abi.encode(reason));
return 0;
} catch Panic(uint reason) {
emit AutoBribedFailed(bribe.target_bribe, bribe.token, bribe.amount_per_period, activePeriod, abi.encode(reason));
return 0;
} catch (bytes memory reason) {
emit AutoBribedFailed(bribe.target_bribe, bribe.token, bribe.amount_per_period, activePeriod, reason);
return 0;
}
}
}
}
return activePeriod;
}
function addBribe(address token, address target_bribe, uint amount_per_period, uint number_of_periods) external nonReentrant whenNotPaused
{
require(token != address(0), 'Token cannot be zero address');
require(target_bribe != address(0), 'Target bribe cannot be zero address');
require(amount_per_period > 0, 'Invalid bribe amount');
require(number_of_periods > 0, 'Invalid number of periods');
uint amountToDeposit = amount_per_period * number_of_periods;
IERC20(token).safeTransferFrom(msg.sender, address(this), amountToDeposit);
bribes.push(AutoBribe({ token: token, target_bribe: target_bribe, amount_per_period: amount_per_period, number_of_periods: number_of_periods, periods_remaining: number_of_periods, active: true }));
emit AutoBribeAdded(msg.sender, target_bribe, token, amount_per_period, amountToDeposit, number_of_periods, activePeriod);
}
receive() external payable {}
fallback() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. 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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.0;
import "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../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 {
/**
* @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);
bool private _paused;
/**
* @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 {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @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 v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @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 v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @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);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @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.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @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.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
interface IBribe {
function _deposit(uint amount, uint tokenId) external;
function _withdraw(uint amount, uint tokenId) external;
function getRewardForOwner(uint tokenId, address[] memory tokens) external;
function notifyRewardAmount(address token, uint amount) external;
function left(address token) external view returns (uint);
}{
"evmVersion": "paris",
"optimizer": {
"enabled": true,
"runs": 10000
},
"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"address","name":"target_bribe","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_per_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount_deposited","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"number_of_periods","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"current_period","type":"uint256"}],"name":"AutoBribeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target_bribe","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"current_period","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"AutoBribedFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target_bribe","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"current_period","type":"uint256"}],"name":"AutoBribedSuccessfully","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"activateBribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"target_bribe","type":"address"},{"internalType":"uint256","name":"amount_per_period","type":"uint256"},{"internalType":"uint256","name":"number_of_periods","type":"uint256"}],"name":"addBribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoBribe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bribes","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"target_bribe","type":"address"},{"internalType":"uint256","name":"amount_per_period","type":"uint256"},{"internalType":"uint256","name":"number_of_periods","type":"uint256"},{"internalType":"uint256","name":"periods_remaining","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bribesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"deactivateBribe","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":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeBribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040523480156200001157600080fd5b506200001d3362000071565b6001805460ff60a01b1916815560025562093a806200003d8142620000df565b62000049919062000102565b6003556200006b730c5d52630c982ae81b78ab2954ddc9ec2797bb9c62000071565b6200012e565b600180546001600160a01b03191690556200008c816200008f565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082620000fd57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176200012857634e487b7160e01b600052601160045260246000fd5b92915050565b611e40806200013e6000396000f3fe60806040526004361061011b5760003560e01c806379ba50971161009c5780639c953aa61161006e578063e30c397811610056578063e30c397814610359578063e992b4c014610384578063f2fde38b146103a457005b80639c953aa6146102dd578063a9d46e5b146102f257005b806379ba5097146102475780637f0c89d21461025c5780638456cb591461027c5780638da5cb5b1461029157005b80632eb71e66116100ed5780633f4ba83a116100d55780633f4ba83a146101e25780635c975abb146101f7578063715018a61461023257005b80632eb71e66146101a257806337a64bdd146101c257005b806301e336671461012457806307b18bde146101445780630a441f7b146101645780630fc268731461018d57005b3661012257005b005b34801561013057600080fd5b5061012261013f3660046119e0565b6103c4565b34801561015057600080fd5b5061012261015f366004611a1c565b61046b565b34801561017057600080fd5b5061017a60035481565b6040519081526020015b60405180910390f35b34801561019957600080fd5b5060045461017a565b3480156101ae57600080fd5b506101226101bd366004611a46565b61052d565b3480156101ce57600080fd5b506101226101dd366004611a46565b610610565b3480156101ee57600080fd5b506101226106f7565b34801561020357600080fd5b5060015474010000000000000000000000000000000000000000900460ff166040519015158152602001610184565b34801561023e57600080fd5b50610122610709565b34801561025357600080fd5b5061012261071b565b34801561026857600080fd5b50610122610277366004611a46565b6107b6565b34801561028857600080fd5b50610122610a06565b34801561029d57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610184565b3480156102e957600080fd5b5061017a610a16565b3480156102fe57600080fd5b5061031261030d366004611a46565b610e7d565b6040805173ffffffffffffffffffffffffffffffffffffffff97881681529690951660208701529385019290925260608401526080830152151560a082015260c001610184565b34801561036557600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166102b8565b34801561039057600080fd5b5061012261039f366004611a5f565b610ee0565b3480156103b057600080fd5b506101226103bf366004611aa1565b611297565b6103cc611347565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905283169063a9059cbb906044016020604051808303816000875af1158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611ac3565b50505050565b610473611347565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146104cd576040519150601f19603f3d011682016040523d82523d6000602084013e6104d2565b606091505b50509050806105285760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b610535611347565b60045481106105865760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b60006004828154811061059b5761059b611ae5565b60009182526020909120600690910201600581015490915060ff166106025760405162461bcd60e51b815260206004820152601e60248201527f4175746f20627269626520697320616c726561647920696e6163746976650000604482015260640161051f565b600501805460ff1916905550565b610618611347565b60045481106106695760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b60006004828154811061067e5761067e611ae5565b60009182526020909120600690910201600581015490915060ff16156106e65760405162461bcd60e51b815260206004820152601c60248201527f4175746f20627269626520697320616c72656164792061637469766500000000604482015260640161051f565b600501805460ff1916600117905550565b6106ff611347565b6107076113ae565b565b610711611347565b610707600061142b565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146107aa5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e65720000000000000000000000000000000000000000000000606482015260840161051f565b6107b38161142b565b50565b6107be611347565b600454811061080f5760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b6004818154811061082257610822611ae5565b600091825260209091206005600690920201015460ff16156108865760405162461bcd60e51b815260206004820152601760248201527f4175746f206272696265207374696c6c20616374697665000000000000000000604482015260640161051f565b6004805461089690600190611b43565b815481106108a6576108a6611ae5565b9060005260206000209060060201600482815481106108c7576108c7611ae5565b600091825260209091208254600690920201805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617825560018085015490830180549190941691161790915560028083015490820155600380830154908201556004808301548183015560059283015492909101805460ff191660ff90931615159290921790915580548061097a5761097a611b5c565b60008281526020812060067fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093019283020180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168255600182018054909116905560028101829055600381018290556004810191909155600501805460ff19169055905550565b610a0e611347565b61070761145c565b6000610a206114cb565b610a28611536565b62093a80600354610a399190611b8b565b4210610e6b5762093a80610a4d8142611b9e565b610a579190611bd9565b60035560005b600454811015610e6957600060048281548110610a7c57610a7c611ae5565b60009182526020909120600690910201600581015490915060ff168015610aa7575060008160040154115b15610e605760018160040154610abd9190611b43565b60048201819055600003610ad85760058101805460ff191690555b8054600182015460028301546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190611ac3565b506001810154815460028301546040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481019190915291169063b66503cf90604401600060405180830381600087803b158015610bfc57600080fd5b505af1925050508015610c0d575060015b610df357610c19611bf0565b806308c379a003610ce75750610c2d611c7d565b80610c385750610d65565b81546001830154600284015460035460405173ffffffffffffffffffffffffffffffffffffffff94851694909316927f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c2929190610c99908790602001611d93565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610cd3939291611da6565b60405180910390a360009350505050610e70565b634e487b7103610d6557610cf9611dce565b90610d045750610d65565b815460018301546002840154600354604080516020810187905273ffffffffffffffffffffffffffffffffffffffff95861695909416937f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c293929101610c99565b3d808015610d8f576040519150601f19603f3d011682016040523d82523d6000602084013e610d94565b606091505b5081546001830154600284015460035460405173ffffffffffffffffffffffffffffffffffffffff94851694909316927f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c292610cd39290918790611da6565b80546001820154600283015460035460405173ffffffffffffffffffffffffffffffffffffffff9485169493909316927f0491d66cf085080ebef32ba79d98beedaeeb058afad639aca0f83dbfabae53a392610e5792908252602082015260400190565b60405180910390a35b50600101610a5d565b505b506003545b610e7a6001600255565b90565b60048181548110610e8d57600080fd5b600091825260209091206006909102018054600182015460028301546003840154600485015460059095015473ffffffffffffffffffffffffffffffffffffffff94851696509390921693909260ff1686565b610ee8611536565b610ef06114cb565b73ffffffffffffffffffffffffffffffffffffffff8416610f535760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e2063616e6e6f74206265207a65726f206164647265737300000000604482015260640161051f565b73ffffffffffffffffffffffffffffffffffffffff8316610fdc5760405162461bcd60e51b815260206004820152602360248201527f5461726765742062726962652063616e6e6f74206265207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161051f565b6000821161102c5760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420627269626520616d6f756e74000000000000000000000000604482015260640161051f565b6000811161107c5760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206e756d626572206f6620706572696f647300000000000000604482015260640161051f565b60006110888284611bd9565b90506110ac73ffffffffffffffffffffffffffffffffffffffff861633308461158d565b6040805160c08101825273ffffffffffffffffffffffffffffffffffffffff87811680835287821660208085018281528587018a815260608088018b81526080808a018d8152600160a0808d018281526004805493840181556000529c5160069092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b81018054938e167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905597517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c8901805491909d16921691909117909a5593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d86015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e85015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f84015596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0909201805492151560ff199093169290921790915560035487519384529183018a905295820187905293810187905293840192909252909133917f9b09431115fef56002054e6554cf4ad297aa407976f1f56f30bb481c23f53d1c910160405180910390a3506104656001600255565b61129f611347565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561130260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b6113b6611622565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556107b38161168c565b6114646114cb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114013390565b60015474010000000000000000000000000000000000000000900460ff16156107075760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161051f565b60028054036115875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161051f565b60028055565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610465908590611701565b60015474010000000000000000000000000000000000000000900460ff166107075760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161051f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611763826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117f69092919063ffffffff16565b90508051600014806117845750808060200190518101906117849190611ac3565b6105285760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051f565b6060611805848460008561180d565b949350505050565b6060824710156118855760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161051f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118ae9190611dee565b60006040518083038185875af1925050503d80600081146118eb576040519150601f19603f3d011682016040523d82523d6000602084013e6118f0565b606091505b50915091506119018783838761190c565b979650505050505050565b606083156119885782516000036119815773ffffffffffffffffffffffffffffffffffffffff85163b6119815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051f565b5081611805565b611805838381511561199d5781518083602001fd5b8060405162461bcd60e51b815260040161051f9190611d93565b803573ffffffffffffffffffffffffffffffffffffffff811681146119db57600080fd5b919050565b6000806000606084860312156119f557600080fd5b6119fe846119b7565b9250611a0c602085016119b7565b9150604084013590509250925092565b60008060408385031215611a2f57600080fd5b611a38836119b7565b946020939093013593505050565b600060208284031215611a5857600080fd5b5035919050565b60008060008060808587031215611a7557600080fd5b611a7e856119b7565b9350611a8c602086016119b7565b93969395505050506040820135916060013590565b600060208284031215611ab357600080fd5b611abc826119b7565b9392505050565b600060208284031215611ad557600080fd5b81518015158114611abc57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115611b5657611b56611b14565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b80820180821115611b5657611b56611b14565b600082611bd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082028115828204841417611b5657611b56611b14565b600060033d1115610e7a5760046000803e5060005160e01c90565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715611c76577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040525050565b600060443d1015611c8b5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715611cd957505050505090565b8285019150815181811115611cf15750505050505090565b843d8701016020828501011115611d0b5750505050505090565b611d1a60208286010187611c0b565b509095945050505050565b60005b83811015611d40578181015183820152602001611d28565b50506000910152565b60008151808452611d61816020860160208601611d25565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611abc6020830184611d49565b838152826020820152606060408201526000611dc56060830184611d49565b95945050505050565b60008060233d1115611dea576020600460003e50506000516001905b9091565b60008251611e00818460208701611d25565b919091019291505056fea2646970667358221220599da504225fe816b1b522cd86f2382fdd15d8354d9a296ee1a84f14f6b0f37a64736f6c63430008160033
Deployed Bytecode
0x60806040526004361061011b5760003560e01c806379ba50971161009c5780639c953aa61161006e578063e30c397811610056578063e30c397814610359578063e992b4c014610384578063f2fde38b146103a457005b80639c953aa6146102dd578063a9d46e5b146102f257005b806379ba5097146102475780637f0c89d21461025c5780638456cb591461027c5780638da5cb5b1461029157005b80632eb71e66116100ed5780633f4ba83a116100d55780633f4ba83a146101e25780635c975abb146101f7578063715018a61461023257005b80632eb71e66146101a257806337a64bdd146101c257005b806301e336671461012457806307b18bde146101445780630a441f7b146101645780630fc268731461018d57005b3661012257005b005b34801561013057600080fd5b5061012261013f3660046119e0565b6103c4565b34801561015057600080fd5b5061012261015f366004611a1c565b61046b565b34801561017057600080fd5b5061017a60035481565b6040519081526020015b60405180910390f35b34801561019957600080fd5b5060045461017a565b3480156101ae57600080fd5b506101226101bd366004611a46565b61052d565b3480156101ce57600080fd5b506101226101dd366004611a46565b610610565b3480156101ee57600080fd5b506101226106f7565b34801561020357600080fd5b5060015474010000000000000000000000000000000000000000900460ff166040519015158152602001610184565b34801561023e57600080fd5b50610122610709565b34801561025357600080fd5b5061012261071b565b34801561026857600080fd5b50610122610277366004611a46565b6107b6565b34801561028857600080fd5b50610122610a06565b34801561029d57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610184565b3480156102e957600080fd5b5061017a610a16565b3480156102fe57600080fd5b5061031261030d366004611a46565b610e7d565b6040805173ffffffffffffffffffffffffffffffffffffffff97881681529690951660208701529385019290925260608401526080830152151560a082015260c001610184565b34801561036557600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166102b8565b34801561039057600080fd5b5061012261039f366004611a5f565b610ee0565b3480156103b057600080fd5b506101226103bf366004611aa1565b611297565b6103cc611347565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905283169063a9059cbb906044016020604051808303816000875af1158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611ac3565b50505050565b610473611347565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146104cd576040519150601f19603f3d011682016040523d82523d6000602084013e6104d2565b606091505b50509050806105285760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b610535611347565b60045481106105865760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b60006004828154811061059b5761059b611ae5565b60009182526020909120600690910201600581015490915060ff166106025760405162461bcd60e51b815260206004820152601e60248201527f4175746f20627269626520697320616c726561647920696e6163746976650000604482015260640161051f565b600501805460ff1916905550565b610618611347565b60045481106106695760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b60006004828154811061067e5761067e611ae5565b60009182526020909120600690910201600581015490915060ff16156106e65760405162461bcd60e51b815260206004820152601c60248201527f4175746f20627269626520697320616c72656164792061637469766500000000604482015260640161051f565b600501805460ff1916600117905550565b6106ff611347565b6107076113ae565b565b610711611347565b610707600061142b565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146107aa5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e65720000000000000000000000000000000000000000000000606482015260840161051f565b6107b38161142b565b50565b6107be611347565b600454811061080f5760405162461bcd60e51b815260206004820152601160248201527f496e76616964206175746f206272696265000000000000000000000000000000604482015260640161051f565b6004818154811061082257610822611ae5565b600091825260209091206005600690920201015460ff16156108865760405162461bcd60e51b815260206004820152601760248201527f4175746f206272696265207374696c6c20616374697665000000000000000000604482015260640161051f565b6004805461089690600190611b43565b815481106108a6576108a6611ae5565b9060005260206000209060060201600482815481106108c7576108c7611ae5565b600091825260209091208254600690920201805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617825560018085015490830180549190941691161790915560028083015490820155600380830154908201556004808301548183015560059283015492909101805460ff191660ff90931615159290921790915580548061097a5761097a611b5c565b60008281526020812060067fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093019283020180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168255600182018054909116905560028101829055600381018290556004810191909155600501805460ff19169055905550565b610a0e611347565b61070761145c565b6000610a206114cb565b610a28611536565b62093a80600354610a399190611b8b565b4210610e6b5762093a80610a4d8142611b9e565b610a579190611bd9565b60035560005b600454811015610e6957600060048281548110610a7c57610a7c611ae5565b60009182526020909120600690910201600581015490915060ff168015610aa7575060008160040154115b15610e605760018160040154610abd9190611b43565b60048201819055600003610ad85760058101805460ff191690555b8054600182015460028301546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190611ac3565b506001810154815460028301546040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481019190915291169063b66503cf90604401600060405180830381600087803b158015610bfc57600080fd5b505af1925050508015610c0d575060015b610df357610c19611bf0565b806308c379a003610ce75750610c2d611c7d565b80610c385750610d65565b81546001830154600284015460035460405173ffffffffffffffffffffffffffffffffffffffff94851694909316927f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c2929190610c99908790602001611d93565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610cd3939291611da6565b60405180910390a360009350505050610e70565b634e487b7103610d6557610cf9611dce565b90610d045750610d65565b815460018301546002840154600354604080516020810187905273ffffffffffffffffffffffffffffffffffffffff95861695909416937f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c293929101610c99565b3d808015610d8f576040519150601f19603f3d011682016040523d82523d6000602084013e610d94565b606091505b5081546001830154600284015460035460405173ffffffffffffffffffffffffffffffffffffffff94851694909316927f329453737d7f820d262a40aba5be7f844fa630a3a9b87759bf7e2cf2bde440c292610cd39290918790611da6565b80546001820154600283015460035460405173ffffffffffffffffffffffffffffffffffffffff9485169493909316927f0491d66cf085080ebef32ba79d98beedaeeb058afad639aca0f83dbfabae53a392610e5792908252602082015260400190565b60405180910390a35b50600101610a5d565b505b506003545b610e7a6001600255565b90565b60048181548110610e8d57600080fd5b600091825260209091206006909102018054600182015460028301546003840154600485015460059095015473ffffffffffffffffffffffffffffffffffffffff94851696509390921693909260ff1686565b610ee8611536565b610ef06114cb565b73ffffffffffffffffffffffffffffffffffffffff8416610f535760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e2063616e6e6f74206265207a65726f206164647265737300000000604482015260640161051f565b73ffffffffffffffffffffffffffffffffffffffff8316610fdc5760405162461bcd60e51b815260206004820152602360248201527f5461726765742062726962652063616e6e6f74206265207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161051f565b6000821161102c5760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420627269626520616d6f756e74000000000000000000000000604482015260640161051f565b6000811161107c5760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206e756d626572206f6620706572696f647300000000000000604482015260640161051f565b60006110888284611bd9565b90506110ac73ffffffffffffffffffffffffffffffffffffffff861633308461158d565b6040805160c08101825273ffffffffffffffffffffffffffffffffffffffff87811680835287821660208085018281528587018a815260608088018b81526080808a018d8152600160a0808d018281526004805493840181556000529c5160069092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b81018054938e167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905597517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c8901805491909d16921691909117909a5593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d86015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e85015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f84015596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0909201805492151560ff199093169290921790915560035487519384529183018a905295820187905293810187905293840192909252909133917f9b09431115fef56002054e6554cf4ad297aa407976f1f56f30bb481c23f53d1c910160405180910390a3506104656001600255565b61129f611347565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561130260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b6113b6611622565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556107b38161168c565b6114646114cb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114013390565b60015474010000000000000000000000000000000000000000900460ff16156107075760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161051f565b60028054036115875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161051f565b60028055565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610465908590611701565b60015474010000000000000000000000000000000000000000900460ff166107075760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161051f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611763826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117f69092919063ffffffff16565b90508051600014806117845750808060200190518101906117849190611ac3565b6105285760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051f565b6060611805848460008561180d565b949350505050565b6060824710156118855760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161051f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118ae9190611dee565b60006040518083038185875af1925050503d80600081146118eb576040519150601f19603f3d011682016040523d82523d6000602084013e6118f0565b606091505b50915091506119018783838761190c565b979650505050505050565b606083156119885782516000036119815773ffffffffffffffffffffffffffffffffffffffff85163b6119815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051f565b5081611805565b611805838381511561199d5781518083602001fd5b8060405162461bcd60e51b815260040161051f9190611d93565b803573ffffffffffffffffffffffffffffffffffffffff811681146119db57600080fd5b919050565b6000806000606084860312156119f557600080fd5b6119fe846119b7565b9250611a0c602085016119b7565b9150604084013590509250925092565b60008060408385031215611a2f57600080fd5b611a38836119b7565b946020939093013593505050565b600060208284031215611a5857600080fd5b5035919050565b60008060008060808587031215611a7557600080fd5b611a7e856119b7565b9350611a8c602086016119b7565b93969395505050506040820135916060013590565b600060208284031215611ab357600080fd5b611abc826119b7565b9392505050565b600060208284031215611ad557600080fd5b81518015158114611abc57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115611b5657611b56611b14565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b80820180821115611b5657611b56611b14565b600082611bd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082028115828204841417611b5657611b56611b14565b600060033d1115610e7a5760046000803e5060005160e01c90565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715611c76577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040525050565b600060443d1015611c8b5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715611cd957505050505090565b8285019150815181811115611cf15750505050505090565b843d8701016020828501011115611d0b5750505050505090565b611d1a60208286010187611c0b565b509095945050505050565b60005b83811015611d40578181015183820152602001611d28565b50506000910152565b60008151808452611d61816020860160208601611d25565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611abc6020830184611d49565b838152826020820152606060408201526000611dc56060830184611d49565b95945050505050565b60008060233d1115611dea576020600460003e50506000516001905b9091565b60008251611e00818460208701611d25565b919091019291505056fea2646970667358221220599da504225fe816b1b522cd86f2382fdd15d8354d9a296ee1a84f14f6b0f37a64736f6c63430008160033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Token Allocations
FRAX
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| FRAXTAL | 100.00% | $0.985118 | 0.000000010893 | <$0.000001 |
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.