Source Code
Latest 25 from a total of 46 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Inject | 28652974 | 371 days ago | IN | 0 ETH | 0.00000055 | ||||
| Inject | 28636868 | 371 days ago | IN | 0 ETH | 0.00000046 | ||||
| Inject | 28634769 | 371 days ago | IN | 0 ETH | 0.00000045 | ||||
| Inject | 28632347 | 371 days ago | IN | 0 ETH | 0.00000053 | ||||
| Inject | 28629791 | 371 days ago | IN | 0 ETH | 0.0000006 | ||||
| Inject | 28625153 | 371 days ago | IN | 0 ETH | 0.00000477 | ||||
| Inject | 28619799 | 372 days ago | IN | 0 ETH | 0.00000057 | ||||
| Inject | 28617693 | 372 days ago | IN | 0 ETH | 0.00000052 | ||||
| Inject | 28615889 | 372 days ago | IN | 0 ETH | 0.000001 | ||||
| Inject | 28613598 | 372 days ago | IN | 0 ETH | 0.0000046 | ||||
| Inject | 28610445 | 372 days ago | IN | 0 ETH | 0.00000283 | ||||
| Inject | 28603358 | 372 days ago | IN | 0 ETH | 0.00000075 | ||||
| Inject | 28597189 | 372 days ago | IN | 0 ETH | 0.00000049 | ||||
| Inject | 28595199 | 372 days ago | IN | 0 ETH | 0.00000049 | ||||
| Inject | 28592835 | 372 days ago | IN | 0 ETH | 0.00000557 | ||||
| Inject | 28585302 | 372 days ago | IN | 0 ETH | 0.00000053 | ||||
| Inject | 28583089 | 372 days ago | IN | 0 ETH | 0.00000047 | ||||
| Inject | 28581272 | 372 days ago | IN | 0 ETH | 0.00000047 | ||||
| Inject | 28579443 | 372 days ago | IN | 0 ETH | 0.0000005 | ||||
| Inject | 28577617 | 372 days ago | IN | 0 ETH | 0.00000005 | ||||
| Inject | 28577616 | 372 days ago | IN | 0 ETH | 0.00000045 | ||||
| Inject | 28575793 | 373 days ago | IN | 0 ETH | 0.00000005 | ||||
| Inject | 28575790 | 373 days ago | IN | 0 ETH | 0.00000046 | ||||
| Inject | 28573976 | 373 days ago | IN | 0 ETH | 0.00000043 | ||||
| Inject | 28572162 | 373 days ago | IN | 0 ETH | 0.00000044 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
B88Injector
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "./lib/Constants.sol";
/// @title B88 LP Injector Contract
contract B88Injector is Ownable2Step {
using SafeERC20 for IERC20;
// -------------------------- STATE VARIABLES -------------------------- //
address public immutable B88;
/// @notice Basis point incentive fee paid out for calling Inject function.
uint16 public incentiveFeeBps = 3;
/// @notice Cooldown interval for injection calls in seconds.
uint32 public interval = 60 minutes;
/// @notice Timestamp of the last performed injection.
uint256 public lastInjection;
/// @notice Maximum amount of E280 to be swapped and then injected in a single call.
uint256 public capPerCall = 1_000_000_000 ether;
// ------------------------------- EVENTS ------------------------------ //
event Injection();
// ------------------------------- ERRORS ------------------------------ //
error Cooldown();
error Prohibited();
error ZeroAddress();
error InsufficientBalance();
error Unauthorized();
// ------------------------------ MODIFIERS ---------------------------- //
modifier onlyWhitelisted() {
if (!WL_REGISTRY.isWhitelisted(msg.sender)) revert Unauthorized();
_;
}
// ----------------------------- CONSTRUCTOR --------------------------- //
constructor(address _owner, address _b88) Ownable(_owner) {
if (_b88 == address(0)) revert ZeroAddress();
B88 = _b88;
}
// --------------------------- PUBLIC FUNCTIONS ------------------------ //
/// @notice Uses E280 balance to add to the E280/B88 pair.
/// @param minAmountOut Minimum amount of B88 tokens to receive from E280/B88 swap (in WEI).
/// @param amountDesiredE280 Minimum amount of E280 tokens to add to the E280/B88 pair (in WEI).
/// @param amountDesiredB88 Minimum amount of B88 tokens to add to the E280/B88 pair (in WEI).
/// @param deadline Deadline to perform the transaction (in seconds).
function inject(
uint256 minAmountOut,
uint256 amountDesiredE280,
uint256 amountDesiredB88,
uint256 deadline
) external onlyWhitelisted {
if (lastInjection + interval > block.timestamp) revert Cooldown();
IERC20 e280 = IERC20(E280);
uint256 e280Balance = e280.balanceOf(address(this));
uint256 callAmount = e280Balance > capPerCall ? capPerCall : e280Balance;
if (callAmount == 0) revert InsufficientBalance();
lastInjection = block.timestamp;
callAmount = _processIncentiveFee(callAmount);
uint256 half = callAmount / 2;
uint256 e280InjectionAmount = callAmount - half;
_swapFeeToken(E280, B88, half, minAmountOut, deadline);
IERC20 b88 = IERC20(B88);
uint256 b88Balance = b88.balanceOf(address(this));
e280.safeIncreaseAllowance(UNISWAP_V2_ROUTER, e280InjectionAmount);
b88.safeIncreaseAllowance(UNISWAP_V2_ROUTER, b88Balance);
(uint256 e280Used, uint256 b88Used, ) = IUniswapV2Router02(UNISWAP_V2_ROUTER).addLiquidity(
E280,
B88,
e280InjectionAmount,
b88Balance,
amountDesiredE280,
amountDesiredB88,
address(0),
deadline
);
if (e280Used < e280InjectionAmount) {
e280.safeDecreaseAllowance(UNISWAP_V2_ROUTER, e280InjectionAmount - e280Used);
}
if (b88Used < b88Balance) {
b88.safeDecreaseAllowance(UNISWAP_V2_ROUTER, b88Balance - b88Used);
}
emit Injection();
}
// ----------------------- ADMINISTRATIVE FUNCTIONS -------------------- //
/// @notice Sets the cap per call limit applied to E280 balance.
/// @param limit Max amount of E280 tokens to be used in a single injection (in WEI).
function setCapPerCall(uint256 limit) external onlyOwner {
capPerCall = limit;
}
/// @notice Sets a new cooldown interval for injection calls.
/// @param limit Cooldown interval in seconds.
function setInterval(uint32 limit) external onlyOwner {
if (limit == 0) revert Prohibited();
interval = limit;
}
/// @notice Sets a new incentive fee basis points.
/// @param bps Incentive fee in basis points (1% = 100 bps).
function setIncentiveFee(uint16 bps) external onlyOwner {
if (bps < 1 || bps > 10_00) revert Prohibited();
incentiveFeeBps = bps;
}
// ---------------------------- VIEW FUNCTIONS ------------------------- //
/// @notice Returns parameters for the next Injection.
/// @return amount E280 amount used in the next call.
/// @return b88Balance Current B88 balance of the contract.
/// @return nextAvailable Timestamp in seconds when next Injection will be available.
function getInjectionParams() external view returns (uint256 amount, uint256 b88Balance, uint256 nextAvailable) {
uint256 balance = IERC20(E280).balanceOf(address(this));
b88Balance = IERC20(B88).balanceOf(address(this));
amount = balance > capPerCall ? capPerCall : balance;
nextAvailable = lastInjection + interval;
}
// -------------------------- INTERNAL FUNCTIONS ----------------------- //
function _processIncentiveFee(uint256 amount) internal returns (uint256) {
uint256 incentive = (amount * incentiveFeeBps) / BPS_BASE;
IERC20(E280).safeTransfer(msg.sender, incentive);
return amount - incentive;
}
function _swapFeeToken(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 minAmountOut,
uint256 deadline
) internal {
IERC20(tokenIn).safeIncreaseAllowance(UNISWAP_V2_ROUTER, amountIn);
address[] memory path = new address[](2);
path[0] = tokenIn;
path[1] = tokenOut;
IUniswapV2Router02(UNISWAP_V2_ROUTER).swapExactTokensForTokensSupportingFeeOnTransferTokens(
amountIn,
minAmountOut,
path,
address(this),
deadline
);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./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.
*
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
* ownership, where the new owner must call {acceptOwnership} in order to replace the
* old one. This can help prevent common mistakes, such as transfers of ownership to
* incorrect accounts, or to contracts that are unable to interact with the
* permission system.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. 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.
*
* Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
*/
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();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
interface IWhitelistRegistry {
function isWhitelisted(address account) external view returns (bool);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
import { IWhitelistRegistry } from "../interfaces/IWhitelistRegistry.sol";
// ===================== Contract Addresses ======================
address constant E280 = 0x058E7b30200d001130232e8fBfDF900590E0bAA9;
address constant UNISWAP_V2_ROUTER = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24;
IWhitelistRegistry constant WL_REGISTRY = IWhitelistRegistry(0x47E126330f9eF54FC9Ce64A672166C974A17ABDE);
uint16 constant BPS_BASE = 100_00;{
"optimizer": {
"enabled": true,
"runs": 200
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_b88","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Cooldown","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"Prohibited","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"currentAllowance","type":"uint256"},{"internalType":"uint256","name":"requestedDecrease","type":"uint256"}],"name":"SafeERC20FailedDecreaseAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[],"name":"Injection","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"},{"inputs":[],"name":"B88","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"capPerCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInjectionParams","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"b88Balance","type":"uint256"},{"internalType":"uint256","name":"nextAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentiveFeeBps","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"uint256","name":"amountDesiredE280","type":"uint256"},{"internalType":"uint256","name":"amountDesiredB88","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"inject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interval","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastInjection","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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setCapPerCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"bps","type":"uint16"}],"name":"setIncentiveFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"limit","type":"uint32"}],"name":"setInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a03461015157601f61136638819003918201601f19168301916001600160401b0383118484101761015657808492604094855283398101031261015157610052602061004b8361016c565b920161016c565b906001600160a01b0390811690811561013857600154600080546001600160a01b03198116851782556040519491908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001600160d01b031916630e10000360a01b176001556b033b2e3c9fd0803ce800000060035582161561012957506080526040516111e59081610181823960805181818161019b015281816102c801528181610718015281816107fb01528181610872015281816108bc0152818161091901528181610a100152610a590152f35b63d92e233d60e01b8152600490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101515756fe6080604052600436101561001257600080fd5b6000803560e01c806315304b7a14610e085780634f65f50d14610dea57806356a7869614610548578063715018a6146104e2578063726377911461047a57806379ba5097146103f05780638da5cb5b146103c9578063947a36fb146103a2578063b076ad6e1461033a578063bc82e49e1461031c578063d531054e146102f7578063dee98e5a146102b2578063e30c397814610289578063f11658a3146101345763f2fde38b146100c257600080fd5b34610131576020366003190112610131576004356001600160a01b038181169182900361012d576100f1610eaf565b600180546001600160a01b031916831790558254167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b8280fd5b80fd5b50346101315780600319360112610131576040516370a0823160e01b80825230600483015291602090818360248173058e7b30200d001130232e8fbfdf900590e0baa95afa92831561024d57819361025a575b5060405193845230600485015281846024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa92831561024d578193610218575b600354606095509150818111156102105750915b6101ff60025463ffffffff60015460b01c1690610e7f565b916040519384528301526040820152f35b9050916101e7565b92508184813d8311610246575b61022f8183610e5d565b810103126102415760609351926101d3565b600080fd5b503d610225565b50604051903d90823e3d90fd5b9092508181813d8311610282575b6102728183610e5d565b8101031261024157519138610187565b503d610268565b50346101315780600319360112610131576001546040516001600160a01b039091168152602090f35b50346101315780600319360112610131576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5034610131578060031936011261013157602061ffff60015460a01c16604051908152f35b50346101315780600319360112610131576020600254604051908152f35b50346101315760203660031901126101315760043563ffffffff811680820361012d57610365610eaf565b15610390576001805463ffffffff60b01b191660b09290921b63ffffffff60b01b1691909117905580f35b604051632b0039c760e21b8152600490fd5b5034610131578060031936011261013157602063ffffffff60015460b01c16604051908152f35b5034610131578060031936011261013157546040516001600160a01b039091168152602090f35b50346101315780600319360112610131576001546001600160a01b033381831603610462576bffffffffffffffffffffffff60a01b8092166001556000549133908316176000553391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405163118cdaa760e01b8152336004820152602490fd5b50346101315760203660031901126101315760043561ffff811680820361012d576104a3610eaf565b600181109081156104d6575b50610390576001805461ffff60a01b191660a09290921b61ffff60a01b1691909117905580f35b6103e8915011386104af565b50346101315780600319360112610131576104fb610eaf565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461013157608036600319011261013157604051633af32abf60e01b81523360048201526020816024817347e126330f9ef54fc9ce64a672166c974a17abde5afa908115610c9b578291610dab575b5015610d9a576002546105b86001549163ffffffff8360b01c1690610e7f565b4210610d88576040516370a0823160e01b815230600482015260208160248173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610c64578391610d56575b506003549081811115610d4e5750905b8115610d3c574260025560a01c61ffff168181029082820403610d285761271090046020836040518281019063a9059cbb60e01b82523360248201528460448201526044815261065b81610e2b565b51908273058e7b30200d001130232e8fbfdf900590e0baa95af115610c9b5782513d610d1f575073058e7b30200d001130232e8fbfdf900590e0baa93b155b610cf3576106a791610ea2565b906106b58260011c83610ea2565b916106c28160011c610ec3565b6040516060810181811067ffffffffffffffff821117610cdf57604052600281526040366020830137805115610ccb5773058e7b30200d001130232e8fbfdf900590e0baa96020820152805160011015610ccb577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166040820152734752ba5dbc23f44d87826276bf6fd6b1c372ad243b1561012d5790826040518093635c11d79560e01b825260a482019360011c6004830152600435602483015260a060448301528051809452602060c48301910193835b818110610ca6575050819293503060648301526064356084830152038183734752ba5dbc23f44d87826276bf6fd6b1c372ad245af18015610c9b57610c6f575b506040516370a0823160e01b815230600482015290916020826024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa918215610c64578392610c30575b5061083d81610ec3565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad2460248201526020816044817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa8015610af6578391600091610bf9575b506108e9916108ba91610e7f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f65565b6040519062e8e33760e81b825273058e7b30200d001130232e8fbfdf900590e0baa9600483015260018060a01b037f0000000000000000000000000000000000000000000000000000000000000000166024830152806044830152826064830152602435608483015260443560a48301528360c483015260643560e48301526060826101048187734752ba5dbc23f44d87826276bf6fd6b1c372ad245af1918215610bee5784908593610bb0575b50818110610b02575b50508181106109d2575b827fedd24fdada10a181a8758901b1abaef6a667d8b84cf420308dc185f0d6fd3b958180a180f35b6109db91610ea2565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad2460248201526020816044817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115610af657600091610ac4575b50818110610a8d57610a869190037f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f65565b38806109aa565b6064916040519163e570110f60e01b8352734752ba5dbc23f44d87826276bf6fd6b1c372ad24600484015260248301526044820152fd5b906020823d602011610aee575b81610ade60209383610e5d565b8101031261013157505138610a49565b3d9150610ad1565b6040513d6000823e3d90fd5b610b0b91610ea2565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad24602482015260208160448173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610af657600091610b7e575b50818110610a8d5790610b77910361102e565b38806109a0565b906020823d602011610ba8575b81610b9860209383610e5d565b8101031261013157505138610b64565b3d9150610b8b565b9250506060823d606011610be6575b81610bcc60609383610e5d565b81010312610be257602082519201519138610997565b8380fd5b3d9150610bbf565b6040513d86823e3d90fd5b9150506020813d602011610c28575b81610c1560209383610e5d565b81010312610241575182906108e96108ac565b3d9150610c08565b9091506020813d602011610c5c575b81610c4c60209383610e5d565b8101031261024157519038610833565b3d9150610c3f565b6040513d85823e3d90fd5b67ffffffffffffffff8111610c8757604052386107dd565b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b85516001600160a01b031683526020958601958895508794509092019160010161079d565b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b84526041600452602484fd5b604051635274afe760e01b815273058e7b30200d001130232e8fbfdf900590e0baa96004820152602490fd5b6001141561069a565b634e487b7160e01b83526011600452602483fd5b604051631e9acf1760e31b8152600490fd5b90509061060c565b90506020813d602011610d80575b81610d7160209383610e5d565b8101031261012d5751386105fc565b3d9150610d64565b60405163b0782df760e01b8152600490fd5b6040516282b42960e81b8152600490fd5b90506020813d602011610de2575b81610dc660209383610e5d565b81010312610dde57518015158103610dde5738610598565b5080fd5b3d9150610db9565b50346101315780600319360112610131576020600354604051908152f35b503461013157602036600319011261013157610e22610eaf565b60043560035580f35b6080810190811067ffffffffffffffff821117610e4757604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610e4757604052565b91908201809211610e8c57565b634e487b7160e01b600052601160045260246000fd5b91908203918211610e8c57565b6000546001600160a01b0316330361046257565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad24602482015260208160448173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610af657600091610f31575b50610f2f91610f2a91610e7f565b61102e565b565b90506020813d602011610f5d575b81610f4c60209383610e5d565b810103126102415751610f2f610f1c565b3d9150610f3f565b6040519060208201926020600063095ea7b360e01b95868152734752ba5dbc23f44d87826276bf6fd6b1c372ad2493846024880152604487015260448652610fac86610e2b565b85519082865af16000513d82611009575b505015610fcb575b50505050565b61100093610ffb9160405191602083015260248201526000604482015260448152610ff581610e2b565b82611153565b611153565b38808080610fc5565b90915061102657506001600160a01b0382163b15155b3880610fbd565b60011461101f565b604051602081019163095ea7b360e01b92838152734752ba5dbc23f44d87826276bf6fd6b1c372ad249182602485015260448401526044835261107083610e2b565b60206000845173058e7b30200d001130232e8fbfdf900590e0baa99382855af1903d60005190836110d8575b505050156110a957505050565b610f2f926110d391604051916020830152602482015260006044820152604481526110d381610e2b565b6110f7565b919250906110ed57503b15155b38808061109c565b60019150146110e5565b6020600082518273058e7b30200d001130232e8fbfdf900590e0baa9940182855af115610af6576000513d61114a5750803b155b6111325750565b60249060405190635274afe760e01b82526004820152fd5b6001141561112b565b906000602091828151910182855af115610af6576000513d6111a657506001600160a01b0381163b155b6111845750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561117d56fea2646970667358221220c26ac903f20ee25d7db15c37005548f830080fc06ee4a64c4b926cf76b59004064736f6c634300081600330000000000000000000000009b3ba6b585188d5b0510ddbb26681cf7233c96b00000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b
Deployed Bytecode
0x6080604052600436101561001257600080fd5b6000803560e01c806315304b7a14610e085780634f65f50d14610dea57806356a7869614610548578063715018a6146104e2578063726377911461047a57806379ba5097146103f05780638da5cb5b146103c9578063947a36fb146103a2578063b076ad6e1461033a578063bc82e49e1461031c578063d531054e146102f7578063dee98e5a146102b2578063e30c397814610289578063f11658a3146101345763f2fde38b146100c257600080fd5b34610131576020366003190112610131576004356001600160a01b038181169182900361012d576100f1610eaf565b600180546001600160a01b031916831790558254167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b8280fd5b80fd5b50346101315780600319360112610131576040516370a0823160e01b80825230600483015291602090818360248173058e7b30200d001130232e8fbfdf900590e0baa95afa92831561024d57819361025a575b5060405193845230600485015281846024817f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03165afa92831561024d578193610218575b600354606095509150818111156102105750915b6101ff60025463ffffffff60015460b01c1690610e7f565b916040519384528301526040820152f35b9050916101e7565b92508184813d8311610246575b61022f8183610e5d565b810103126102415760609351926101d3565b600080fd5b503d610225565b50604051903d90823e3d90fd5b9092508181813d8311610282575b6102728183610e5d565b8101031261024157519138610187565b503d610268565b50346101315780600319360112610131576001546040516001600160a01b039091168152602090f35b50346101315780600319360112610131576040517f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03168152602090f35b5034610131578060031936011261013157602061ffff60015460a01c16604051908152f35b50346101315780600319360112610131576020600254604051908152f35b50346101315760203660031901126101315760043563ffffffff811680820361012d57610365610eaf565b15610390576001805463ffffffff60b01b191660b09290921b63ffffffff60b01b1691909117905580f35b604051632b0039c760e21b8152600490fd5b5034610131578060031936011261013157602063ffffffff60015460b01c16604051908152f35b5034610131578060031936011261013157546040516001600160a01b039091168152602090f35b50346101315780600319360112610131576001546001600160a01b033381831603610462576bffffffffffffffffffffffff60a01b8092166001556000549133908316176000553391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405163118cdaa760e01b8152336004820152602490fd5b50346101315760203660031901126101315760043561ffff811680820361012d576104a3610eaf565b600181109081156104d6575b50610390576001805461ffff60a01b191660a09290921b61ffff60a01b1691909117905580f35b6103e8915011386104af565b50346101315780600319360112610131576104fb610eaf565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461013157608036600319011261013157604051633af32abf60e01b81523360048201526020816024817347e126330f9ef54fc9ce64a672166c974a17abde5afa908115610c9b578291610dab575b5015610d9a576002546105b86001549163ffffffff8360b01c1690610e7f565b4210610d88576040516370a0823160e01b815230600482015260208160248173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610c64578391610d56575b506003549081811115610d4e5750905b8115610d3c574260025560a01c61ffff168181029082820403610d285761271090046020836040518281019063a9059cbb60e01b82523360248201528460448201526044815261065b81610e2b565b51908273058e7b30200d001130232e8fbfdf900590e0baa95af115610c9b5782513d610d1f575073058e7b30200d001130232e8fbfdf900590e0baa93b155b610cf3576106a791610ea2565b906106b58260011c83610ea2565b916106c28160011c610ec3565b6040516060810181811067ffffffffffffffff821117610cdf57604052600281526040366020830137805115610ccb5773058e7b30200d001130232e8fbfdf900590e0baa96020820152805160011015610ccb577f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03166040820152734752ba5dbc23f44d87826276bf6fd6b1c372ad243b1561012d5790826040518093635c11d79560e01b825260a482019360011c6004830152600435602483015260a060448301528051809452602060c48301910193835b818110610ca6575050819293503060648301526064356084830152038183734752ba5dbc23f44d87826276bf6fd6b1c372ad245af18015610c9b57610c6f575b506040516370a0823160e01b815230600482015290916020826024817f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03165afa918215610c64578392610c30575b5061083d81610ec3565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad2460248201526020816044817f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03165afa8015610af6578391600091610bf9575b506108e9916108ba91610e7f565b7f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b0316610f65565b6040519062e8e33760e81b825273058e7b30200d001130232e8fbfdf900590e0baa9600483015260018060a01b037f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b166024830152806044830152826064830152602435608483015260443560a48301528360c483015260643560e48301526060826101048187734752ba5dbc23f44d87826276bf6fd6b1c372ad245af1918215610bee5784908593610bb0575b50818110610b02575b50508181106109d2575b827fedd24fdada10a181a8758901b1abaef6a667d8b84cf420308dc185f0d6fd3b958180a180f35b6109db91610ea2565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad2460248201526020816044817f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b03165afa908115610af657600091610ac4575b50818110610a8d57610a869190037f0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b6001600160a01b0316610f65565b38806109aa565b6064916040519163e570110f60e01b8352734752ba5dbc23f44d87826276bf6fd6b1c372ad24600484015260248301526044820152fd5b906020823d602011610aee575b81610ade60209383610e5d565b8101031261013157505138610a49565b3d9150610ad1565b6040513d6000823e3d90fd5b610b0b91610ea2565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad24602482015260208160448173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610af657600091610b7e575b50818110610a8d5790610b77910361102e565b38806109a0565b906020823d602011610ba8575b81610b9860209383610e5d565b8101031261013157505138610b64565b3d9150610b8b565b9250506060823d606011610be6575b81610bcc60609383610e5d565b81010312610be257602082519201519138610997565b8380fd5b3d9150610bbf565b6040513d86823e3d90fd5b9150506020813d602011610c28575b81610c1560209383610e5d565b81010312610241575182906108e96108ac565b3d9150610c08565b9091506020813d602011610c5c575b81610c4c60209383610e5d565b8101031261024157519038610833565b3d9150610c3f565b6040513d85823e3d90fd5b67ffffffffffffffff8111610c8757604052386107dd565b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b85516001600160a01b031683526020958601958895508794509092019160010161079d565b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b84526041600452602484fd5b604051635274afe760e01b815273058e7b30200d001130232e8fbfdf900590e0baa96004820152602490fd5b6001141561069a565b634e487b7160e01b83526011600452602483fd5b604051631e9acf1760e31b8152600490fd5b90509061060c565b90506020813d602011610d80575b81610d7160209383610e5d565b8101031261012d5751386105fc565b3d9150610d64565b60405163b0782df760e01b8152600490fd5b6040516282b42960e81b8152600490fd5b90506020813d602011610de2575b81610dc660209383610e5d565b81010312610dde57518015158103610dde5738610598565b5080fd5b3d9150610db9565b50346101315780600319360112610131576020600354604051908152f35b503461013157602036600319011261013157610e22610eaf565b60043560035580f35b6080810190811067ffffffffffffffff821117610e4757604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610e4757604052565b91908201809211610e8c57565b634e487b7160e01b600052601160045260246000fd5b91908203918211610e8c57565b6000546001600160a01b0316330361046257565b604051636eb1769f60e11b8152306004820152734752ba5dbc23f44d87826276bf6fd6b1c372ad24602482015260208160448173058e7b30200d001130232e8fbfdf900590e0baa95afa908115610af657600091610f31575b50610f2f91610f2a91610e7f565b61102e565b565b90506020813d602011610f5d575b81610f4c60209383610e5d565b810103126102415751610f2f610f1c565b3d9150610f3f565b6040519060208201926020600063095ea7b360e01b95868152734752ba5dbc23f44d87826276bf6fd6b1c372ad2493846024880152604487015260448652610fac86610e2b565b85519082865af16000513d82611009575b505015610fcb575b50505050565b61100093610ffb9160405191602083015260248201526000604482015260448152610ff581610e2b565b82611153565b611153565b38808080610fc5565b90915061102657506001600160a01b0382163b15155b3880610fbd565b60011461101f565b604051602081019163095ea7b360e01b92838152734752ba5dbc23f44d87826276bf6fd6b1c372ad249182602485015260448401526044835261107083610e2b565b60206000845173058e7b30200d001130232e8fbfdf900590e0baa99382855af1903d60005190836110d8575b505050156110a957505050565b610f2f926110d391604051916020830152602482015260006044820152604481526110d381610e2b565b6110f7565b919250906110ed57503b15155b38808061109c565b60019150146110e5565b6020600082518273058e7b30200d001130232e8fbfdf900590e0baa9940182855af115610af6576000513d61114a5750803b155b6111325750565b60249060405190635274afe760e01b82526004820152fd5b6001141561112b565b906000602091828151910182855af115610af6576000513d6111a657506001600160a01b0381163b155b6111845750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561117d56fea2646970667358221220c26ac903f20ee25d7db15c37005548f830080fc06ee4a64c4b926cf76b59004064736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009b3ba6b585188d5b0510ddbb26681cf7233c96b00000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b
-----Decoded View---------------
Arg [0] : _owner (address): 0x9B3ba6b585188d5b0510DDbB26681CF7233c96B0
Arg [1] : _b88 (address): 0x0B8B8F19e1ae9bB36DaD0ce13de3E40e81b4621b
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009b3ba6b585188d5b0510ddbb26681cf7233c96b0
Arg [1] : 0000000000000000000000000b8b8f19e1ae9bb36dad0ce13de3e40e81b4621b
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.