Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
YieldDistributorDeployer
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
import { LightweightOwnable } from "../core/LightweightOwnable.sol";
import { YieldDistributor } from "./YieldDistributor.sol";
/**
* @title Deployer of Yield Distributors
*/
contract YieldDistributorDeployer is LightweightOwnable {
error InvalidVaultAddress();
error InvalidYieldReceiver();
error InvalidVaultType();
error InvalidDistributionIncrement();
event YieldDistributorDeployed(address addr, address deployedBy);
constructor() {
_owner = msg.sender;
}
/**
* @notice Deploys a new Yield Distributor.
* @param vaultAddress The vault address
* @param yieldReceiverAddress The address of the yield receiver
* @param newDistributionIncrement The distribution increment, with 2 decimal places.
* @param vaultType Type type of vault. 1 = Lending Pool, 2 = Tokenized Vault V1, 3 = Tokenized Vault V2.
* @return address The address of the newly deployed yield distributor.
*/
function deploy(
address vaultAddress,
address yieldReceiverAddress,
uint256 newDistributionIncrement,
uint8 vaultType
) external onlyOwner returns (address) {
if (vaultAddress == address(0)) revert InvalidVaultAddress();
if (yieldReceiverAddress == address(0)) revert InvalidYieldReceiver();
if (vaultType == 0 || vaultType > 3) revert InvalidVaultType();
if (newDistributionIncrement > 10000) revert InvalidDistributionIncrement(); // Max 100%
address addr = address(new YieldDistributor(vaultAddress, yieldReceiverAddress, newDistributionIncrement, vaultType));
emit YieldDistributorDeployed(addr, msg.sender);
return addr;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
import "./interfaces/IOwnable.sol";
import {BaseReentrancyGuard} from "../core/BaseReentrancyGuard.sol";
import {BaseOwnable} from "../core/BaseOwnable.sol";
/**
* @title Lightweight version of the ownership contract. This contract has a reentrancy guard.
*/
abstract contract LightweightOwnable is IOwnable, BaseReentrancyGuard, BaseOwnable {
/**
* @notice Transfers ownership of the contract to the account specified.
* @param newOwner The address of the new owner.
*/
function transferOwnership(address newOwner) external virtual nonReentrant onlyOwner {
_transferOwnership(newOwner);
}
/**
* @notice Gets the owner of the contract.
* @return address The address who owns the contract.
*/
function owner() external view virtual returns (address) {
return _owner;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
import { IVault } from "./interfaces/IVault.sol";
import { IYieldDistributorTokenizedVault } from "./interfaces/IYieldDistributorTokenizedVault.sol";
import { IYieldDistributorTokenizedVaultV2 } from "./interfaces/IYieldDistributorTokenizedVaultV2.sol";
import { LightweightOwnable } from "../core/LightweightOwnable.sol";
import { IERC20, SafeERC20 } from "../../lib/open-zeppelin/token/ERC20/utils/SafeERC20.sol";
contract YieldDistributor is LightweightOwnable {
uint8 constant public VAULT_TYPE_POOL = 1;
uint8 constant public VAULT_TYPE_TOKENIZED_ACCOUNT = 2;
uint8 constant public VAULT_TYPE_TOKENIZED_ACCOUNT_v2 = 3;
error OnlyOwnerOrOperator();
error DistributionArePaused();
error InvalidAddress();
error InvalidVaultType();
uint256 public newBalance;
uint256 public distributionIncrement;
address public operator;
address public yieldReceiver;
address immutable public asset;
bool public distributionsPaused;
event OnYieldDistribution(uint256 distributionAmount);
event OnDistributionsPaused();
event OnDistributionsResumed();
event OnDistributionIncrementChanged(uint256 newDistributionIncrement);
event OnOperatorChanged(address newOperator);
event OnYieldReceiverChanged(address newYieldReceiver);
modifier onlyOwnerOrOperator() {
if ((msg.sender != _owner) && (msg.sender != operator)) revert OnlyOwnerOrOperator();
_;
}
modifier ifNotPaused() {
if (distributionsPaused) revert DistributionArePaused();
_;
}
constructor(
address vaultAddress,
address yieldReceiverAddress,
uint256 newDistributionIncrement,
uint8 vaultType
) {
if (yieldReceiverAddress == address(0)) revert InvalidAddress();
yieldReceiver = yieldReceiverAddress;
distributionIncrement = newDistributionIncrement;
if (vaultType == VAULT_TYPE_POOL) {
asset = IVault(vaultAddress).asset();
operator = IVault(vaultAddress).loansOperator();
} else if (vaultType == VAULT_TYPE_TOKENIZED_ACCOUNT) {
asset = IVault(vaultAddress).asset();
operator = IYieldDistributorTokenizedVault(vaultAddress).operator();
} else if (vaultType == VAULT_TYPE_TOKENIZED_ACCOUNT_v2) {
asset = IYieldDistributorTokenizedVaultV2(vaultAddress).asset();
operator = IYieldDistributorTokenizedVaultV2(vaultAddress).operatorAddress();
} else revert InvalidVaultType();
if ((asset == address(0)) || (operator == address(0))) revert InvalidAddress();
_transferOwnership(operator);
}
function changeOperator(address newOperator) external nonReentrant onlyOwnerOrOperator {
if (newOperator == address(0)) revert InvalidAddress();
operator = newOperator;
emit OnOperatorChanged(newOperator);
}
function changeYieldReceiver(address newYieldReceiver) external nonReentrant onlyOwner {
if (newYieldReceiver == address(0)) revert InvalidAddress();
yieldReceiver = newYieldReceiver;
emit OnYieldReceiverChanged(newYieldReceiver);
}
function loadYield(uint256 amount) external nonReentrant {
newBalance = IERC20(asset).balanceOf(address(this)) + amount;
SafeERC20.safeTransferFrom(IERC20(asset), msg.sender, address(this), amount);
}
function distributeYield() external nonReentrant onlyOwnerOrOperator ifNotPaused {
uint256 distributionAmount = (newBalance * distributionIncrement) / 1e4;
SafeERC20.safeTransfer(IERC20(asset), yieldReceiver, distributionAmount);
emit OnYieldDistribution(distributionAmount);
}
function updateDistributionIncrement(
uint256 newDistributionIncrement
) external nonReentrant onlyOwnerOrOperator {
distributionIncrement = newDistributionIncrement;
emit OnDistributionIncrementChanged(newDistributionIncrement);
}
function pauseDistributions() external nonReentrant onlyOwnerOrOperator {
distributionsPaused = true;
emit OnDistributionsPaused();
}
function resumeDistributions() external nonReentrant onlyOwnerOrOperator {
distributionsPaused = false;
emit OnDistributionsResumed();
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
interface IOwnable {
function transferOwnership(address newOwner) external;
function owner() external view returns (address);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
/**
* @title Base reentrancy guard. This is constructor-less implementation for both proxies and standalone contracts.
*/
abstract contract BaseReentrancyGuard {
error ReentrantCall();
uint256 internal constant _REENTRANCY_NOT_ENTERED = 1;
uint256 internal constant _REENTRANCY_ENTERED = 2;
uint256 internal _reentrancyStatus;
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
if (_reentrancyStatus == _REENTRANCY_ENTERED) revert ReentrantCall();
// Any calls to nonReentrant after this point will fail
_reentrancyStatus = _REENTRANCY_ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_reentrancyStatus = _REENTRANCY_NOT_ENTERED;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
abstract contract BaseOwnable {
error OwnerOnly();
address internal _owner;
/**
* @notice Triggers when contract ownership changes.
* @param previousOwner The previous owner of the contract.
* @param newOwner The new owner of the contract.
*/
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
if (msg.sender != _owner) revert OwnerOnly();
_;
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
interface IVault {
function asset() external view returns (address);
function loansOperator() external view returns (address);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
interface IYieldDistributorTokenizedVault {
function asset() external view returns (address);
function operator() external view returns (address);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
interface IYieldDistributorTokenizedVaultV2 {
function asset() external view returns (address);
function operatorAddress() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
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");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 v4.4.1 (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.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(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);
}
}
}{
"remappings": [
"forge-std/=lib/forge-std/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"murky/=lib/murky/",
"open-zeppelin/=lib/open-zeppelin/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidDistributionIncrement","type":"error"},{"inputs":[],"name":"InvalidVaultAddress","type":"error"},{"inputs":[],"name":"InvalidVaultType","type":"error"},{"inputs":[],"name":"InvalidYieldReceiver","type":"error"},{"inputs":[],"name":"OwnerOnly","type":"error"},{"inputs":[],"name":"ReentrantCall","type":"error"},{"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":"addr","type":"address"},{"indexed":false,"internalType":"address","name":"deployedBy","type":"address"}],"name":"YieldDistributorDeployed","type":"event"},{"inputs":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"address","name":"yieldReceiverAddress","type":"address"},{"internalType":"uint256","name":"newDistributionIncrement","type":"uint256"},{"internalType":"uint8","name":"vaultType","type":"uint8"}],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052348015600e575f80fd5b50600180546001600160a01b0319163317905561149a8061002e5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063787d428a146100435780638da5cb5b14610072578063f2fde38b14610083575b5f80fd5b6100566100513660046102ee565b610098565b6040516001600160a01b03909116815260200160405180910390f35b6001546001600160a01b0316610056565b61009661009136600461033f565b610205565b005b6001545f906001600160a01b031633146100c557604051630b2db9b760e31b815260040160405180910390fd5b6001600160a01b0385166100ec57604051630306120160e01b815260040160405180910390fd5b6001600160a01b038416610113576040516348a1d6c960e01b815260040160405180910390fd5b60ff82161580610126575060038260ff16115b156101445760405163031366db60e01b815260040160405180910390fd5b61271083111561016757604051632cfa72ab60e21b815260040160405180910390fd5b5f85858585604051610178906102c6565b6001600160a01b039485168152939092166020840152604083015260ff166060820152608001604051809103905ff0801580156101b7573d5f803e3d5ffd5b50604080516001600160a01b03831681523360208201529192507fd2936617643c13e0d92679c8d73cf2587bae8432ec0c58cd7d488ceac0b2d732910160405180910390a195945050505050565b61020d61024d565b6001546001600160a01b0316331461023857604051630b2db9b760e31b815260040160405180910390fd5b61024181610275565b61024a60015f55565b50565b60025f540361026f576040516306fda65d60e31b815260040160405180910390fd5b60025f55565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6111058061036083390190565b80356001600160a01b03811681146102e9575f80fd5b919050565b5f805f8060808587031215610301575f80fd5b61030a856102d3565b9350610318602086016102d3565b925060408501359150606085013560ff81168114610334575f80fd5b939692955090935050565b5f6020828403121561034f575f80fd5b610358826102d3565b939250505056fe60a060405234801561000f575f80fd5b5060405161110538038061110583398101604081905261002e916103e2565b6001600160a01b0383166100555760405163e6c4247b60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b038516179055600382905560ff81165f190161017e57836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e09190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b03166344caa1226040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101599190610433565b600480546001600160a01b0319166001600160a01b0392909216919091179055610319565b60011960ff82160161023f57836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ea9190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b60021960ff82160161030057836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610287573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ab9190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b031663127effb26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b60405163031366db60e01b815260040160405180910390fd5b6080516001600160a01b0316158061033a57506004546001600160a01b0316155b156103585760405163e6c4247b60e01b815260040160405180910390fd5b60045461036d906001600160a01b0316610376565b50505050610453565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b03811681146103dd575f80fd5b919050565b5f805f80608085870312156103f5575f80fd5b6103fe856103c7565b935061040c602086016103c7565b925060408501519150606085015160ff81168114610428575f80fd5b939692955090935050565b5f60208284031215610443575f80fd5b61044c826103c7565b9392505050565b608051610c856104805f395f818161016501528181610367015281816103ea01526107000152610c855ff3fe608060405234801561000f575f80fd5b5060043610610111575f3560e01c806358523d9b1161009e5780638da5cb5b1161006e5780638da5cb5b1461020f578063bc464ba614610220578063d5a3699514610237578063dd78138c14610240578063f2fde38b14610264575f80fd5b806358523d9b146101e457806367198e66146101ec578063672634be146101f45780638a570a1214610207575f80fd5b806331d9a0bc116100e457806331d9a0bc1461014d57806338d52e0f14610160578063459fcd5f146101a45780634b2050f7146101be578063570ca735146101d1575f80fd5b806306394c9b146101155780630e37c8511461012a578063270292421461013d5780632f184f0d14610145575b5f80fd5b610128610123366004610b27565b610277565b005b610128610138366004610b54565b610348565b61012861041a565b6101286104ac565b61012861015b366004610b27565b610536565b6101877f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6101ac600381565b60405160ff909116815260200161019b565b6101286101cc366004610b54565b6105de565b600454610187906001600160a01b031681565b6101ac600181565b6101ac600281565b600554610187906001600160a01b031681565b61012861065f565b6001546001600160a01b0316610187565b61022960025481565b60405190815260200161019b565b61022960035481565b60055461025490600160a01b900460ff1681565b604051901515815260200161019b565b610128610272366004610b27565b61076c565b61027f6107a8565b6001546001600160a01b031633148015906102a557506004546001600160a01b03163314155b156102c35760405163089b7a0760e41b815260040160405180910390fd5b6001600160a01b0381166102ea5760405163e6c4247b60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f1b0333bd190fc955945f95c8a52dc539db55f708a2e6db2763f05685f5a13685906020015b60405180910390a161034560015f55565b50565b6103506107a8565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156103b4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d89190610b6b565b6103e29190610b96565b6002556104117f00000000000000000000000000000000000000000000000000000000000000003330846107d0565b61034560015f55565b6104226107a8565b6001546001600160a01b0316331480159061044857506004546001600160a01b03163314155b156104665760405163089b7a0760e41b815260040160405180910390fd5b6005805460ff60a01b1916600160a01b1790556040517fbc4dec99aa0bb0e8f55a4b97998a3d39c6d6f3f8e9d16597f621fc675735fc4d905f90a16104aa60015f55565b565b6104b46107a8565b6001546001600160a01b031633148015906104da57506004546001600160a01b03163314155b156104f85760405163089b7a0760e41b815260040160405180910390fd5b6005805460ff60a01b191690556040517f5306ca0b65c014242baf308598fbb9b72ef9cf9f2d2fb5f118b55fdd0841f77e905f90a16104aa60015f55565b61053e6107a8565b6001546001600160a01b0316331461056957604051630b2db9b760e31b815260040160405180910390fd5b6001600160a01b0381166105905760405163e6c4247b60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527fb898e08d5e2f388afcb4bd3b3517746b113aabccbf7908600ec5e38797d32fca90602001610334565b6105e66107a8565b6001546001600160a01b0316331480159061060c57506004546001600160a01b03163314155b1561062a5760405163089b7a0760e41b815260040160405180910390fd5b60038190556040518181527f4578309a6582cd05a56714d48abcb401b3df929481604e3eb88fcf17c8f32fb390602001610334565b6106676107a8565b6001546001600160a01b0316331480159061068d57506004546001600160a01b03163314155b156106ab5760405163089b7a0760e41b815260040160405180910390fd5b600554600160a01b900460ff16156106d65760405163438ca55d60e11b815260040160405180910390fd5b5f6127106003546002546106ea9190610baf565b6106f49190610bc6565b60055490915061072f907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b031683610841565b6040518181527f58840e6732b9b780f2703e816691658d36d64d1812887c81a3ce6720c7667a4a9060200160405180910390a1506104aa60015f55565b6107746107a8565b6001546001600160a01b0316331461079f57604051630b2db9b760e31b815260040160405180910390fd5b61041181610876565b60025f54036107ca576040516306fda65d60e31b815260040160405180910390fd5b60025f55565b6040516001600160a01b038085166024830152831660448201526064810182905261083b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108c7565b50505050565b6040516001600160a01b03831660248201526044810182905261087190849063a9059cbb60e01b90606401610804565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f61091b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661099d9092919063ffffffff16565b80519091501561087157808060200190518101906109399190610be5565b6108715760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b60606109ab84845f856109b3565b949350505050565b606082471015610a145760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610994565b5f80866001600160a01b03168587604051610a2f9190610c04565b5f6040518083038185875af1925050503d805f8114610a69576040519150601f19603f3d011682016040523d82523d5f602084013e610a6e565b606091505b5091509150610a7f87838387610a8a565b979650505050505050565b60608315610af85782515f03610af1576001600160a01b0385163b610af15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610994565b50816109ab565b6109ab8383815115610b0d5781518083602001fd5b8060405162461bcd60e51b81526004016109949190610c1a565b5f60208284031215610b37575f80fd5b81356001600160a01b0381168114610b4d575f80fd5b9392505050565b5f60208284031215610b64575f80fd5b5035919050565b5f60208284031215610b7b575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ba957610ba9610b82565b92915050565b8082028115828204841417610ba957610ba9610b82565b5f82610be057634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610bf5575f80fd5b81518015158114610b4d575f80fd5b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea264697066735822122096fb4be5367fffc92a86538b42fdeec119e3a7d0038d7403251b3e98795f4edd64736f6c634300081a0033a26469706673582212204cb91abbd0978b18d0c33cf67469503d4bf12def17c5a27f870faf2f1f2408b864736f6c634300081a0033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063787d428a146100435780638da5cb5b14610072578063f2fde38b14610083575b5f80fd5b6100566100513660046102ee565b610098565b6040516001600160a01b03909116815260200160405180910390f35b6001546001600160a01b0316610056565b61009661009136600461033f565b610205565b005b6001545f906001600160a01b031633146100c557604051630b2db9b760e31b815260040160405180910390fd5b6001600160a01b0385166100ec57604051630306120160e01b815260040160405180910390fd5b6001600160a01b038416610113576040516348a1d6c960e01b815260040160405180910390fd5b60ff82161580610126575060038260ff16115b156101445760405163031366db60e01b815260040160405180910390fd5b61271083111561016757604051632cfa72ab60e21b815260040160405180910390fd5b5f85858585604051610178906102c6565b6001600160a01b039485168152939092166020840152604083015260ff166060820152608001604051809103905ff0801580156101b7573d5f803e3d5ffd5b50604080516001600160a01b03831681523360208201529192507fd2936617643c13e0d92679c8d73cf2587bae8432ec0c58cd7d488ceac0b2d732910160405180910390a195945050505050565b61020d61024d565b6001546001600160a01b0316331461023857604051630b2db9b760e31b815260040160405180910390fd5b61024181610275565b61024a60015f55565b50565b60025f540361026f576040516306fda65d60e31b815260040160405180910390fd5b60025f55565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6111058061036083390190565b80356001600160a01b03811681146102e9575f80fd5b919050565b5f805f8060808587031215610301575f80fd5b61030a856102d3565b9350610318602086016102d3565b925060408501359150606085013560ff81168114610334575f80fd5b939692955090935050565b5f6020828403121561034f575f80fd5b610358826102d3565b939250505056fe60a060405234801561000f575f80fd5b5060405161110538038061110583398101604081905261002e916103e2565b6001600160a01b0383166100555760405163e6c4247b60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b038516179055600382905560ff81165f190161017e57836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e09190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b03166344caa1226040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101599190610433565b600480546001600160a01b0319166001600160a01b0392909216919091179055610319565b60011960ff82160161023f57836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ea9190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b60021960ff82160161030057836001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610287573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ab9190610433565b6001600160a01b03166080816001600160a01b031681525050836001600160a01b031663127effb26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610135573d5f803e3d5ffd5b60405163031366db60e01b815260040160405180910390fd5b6080516001600160a01b0316158061033a57506004546001600160a01b0316155b156103585760405163e6c4247b60e01b815260040160405180910390fd5b60045461036d906001600160a01b0316610376565b50505050610453565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b03811681146103dd575f80fd5b919050565b5f805f80608085870312156103f5575f80fd5b6103fe856103c7565b935061040c602086016103c7565b925060408501519150606085015160ff81168114610428575f80fd5b939692955090935050565b5f60208284031215610443575f80fd5b61044c826103c7565b9392505050565b608051610c856104805f395f818161016501528181610367015281816103ea01526107000152610c855ff3fe608060405234801561000f575f80fd5b5060043610610111575f3560e01c806358523d9b1161009e5780638da5cb5b1161006e5780638da5cb5b1461020f578063bc464ba614610220578063d5a3699514610237578063dd78138c14610240578063f2fde38b14610264575f80fd5b806358523d9b146101e457806367198e66146101ec578063672634be146101f45780638a570a1214610207575f80fd5b806331d9a0bc116100e457806331d9a0bc1461014d57806338d52e0f14610160578063459fcd5f146101a45780634b2050f7146101be578063570ca735146101d1575f80fd5b806306394c9b146101155780630e37c8511461012a578063270292421461013d5780632f184f0d14610145575b5f80fd5b610128610123366004610b27565b610277565b005b610128610138366004610b54565b610348565b61012861041a565b6101286104ac565b61012861015b366004610b27565b610536565b6101877f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6101ac600381565b60405160ff909116815260200161019b565b6101286101cc366004610b54565b6105de565b600454610187906001600160a01b031681565b6101ac600181565b6101ac600281565b600554610187906001600160a01b031681565b61012861065f565b6001546001600160a01b0316610187565b61022960025481565b60405190815260200161019b565b61022960035481565b60055461025490600160a01b900460ff1681565b604051901515815260200161019b565b610128610272366004610b27565b61076c565b61027f6107a8565b6001546001600160a01b031633148015906102a557506004546001600160a01b03163314155b156102c35760405163089b7a0760e41b815260040160405180910390fd5b6001600160a01b0381166102ea5760405163e6c4247b60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f1b0333bd190fc955945f95c8a52dc539db55f708a2e6db2763f05685f5a13685906020015b60405180910390a161034560015f55565b50565b6103506107a8565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156103b4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d89190610b6b565b6103e29190610b96565b6002556104117f00000000000000000000000000000000000000000000000000000000000000003330846107d0565b61034560015f55565b6104226107a8565b6001546001600160a01b0316331480159061044857506004546001600160a01b03163314155b156104665760405163089b7a0760e41b815260040160405180910390fd5b6005805460ff60a01b1916600160a01b1790556040517fbc4dec99aa0bb0e8f55a4b97998a3d39c6d6f3f8e9d16597f621fc675735fc4d905f90a16104aa60015f55565b565b6104b46107a8565b6001546001600160a01b031633148015906104da57506004546001600160a01b03163314155b156104f85760405163089b7a0760e41b815260040160405180910390fd5b6005805460ff60a01b191690556040517f5306ca0b65c014242baf308598fbb9b72ef9cf9f2d2fb5f118b55fdd0841f77e905f90a16104aa60015f55565b61053e6107a8565b6001546001600160a01b0316331461056957604051630b2db9b760e31b815260040160405180910390fd5b6001600160a01b0381166105905760405163e6c4247b60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527fb898e08d5e2f388afcb4bd3b3517746b113aabccbf7908600ec5e38797d32fca90602001610334565b6105e66107a8565b6001546001600160a01b0316331480159061060c57506004546001600160a01b03163314155b1561062a5760405163089b7a0760e41b815260040160405180910390fd5b60038190556040518181527f4578309a6582cd05a56714d48abcb401b3df929481604e3eb88fcf17c8f32fb390602001610334565b6106676107a8565b6001546001600160a01b0316331480159061068d57506004546001600160a01b03163314155b156106ab5760405163089b7a0760e41b815260040160405180910390fd5b600554600160a01b900460ff16156106d65760405163438ca55d60e11b815260040160405180910390fd5b5f6127106003546002546106ea9190610baf565b6106f49190610bc6565b60055490915061072f907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b031683610841565b6040518181527f58840e6732b9b780f2703e816691658d36d64d1812887c81a3ce6720c7667a4a9060200160405180910390a1506104aa60015f55565b6107746107a8565b6001546001600160a01b0316331461079f57604051630b2db9b760e31b815260040160405180910390fd5b61041181610876565b60025f54036107ca576040516306fda65d60e31b815260040160405180910390fd5b60025f55565b6040516001600160a01b038085166024830152831660448201526064810182905261083b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108c7565b50505050565b6040516001600160a01b03831660248201526044810182905261087190849063a9059cbb60e01b90606401610804565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f61091b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661099d9092919063ffffffff16565b80519091501561087157808060200190518101906109399190610be5565b6108715760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b60606109ab84845f856109b3565b949350505050565b606082471015610a145760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610994565b5f80866001600160a01b03168587604051610a2f9190610c04565b5f6040518083038185875af1925050503d805f8114610a69576040519150601f19603f3d011682016040523d82523d5f602084013e610a6e565b606091505b5091509150610a7f87838387610a8a565b979650505050505050565b60608315610af85782515f03610af1576001600160a01b0385163b610af15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610994565b50816109ab565b6109ab8383815115610b0d5781518083602001fd5b8060405162461bcd60e51b81526004016109949190610c1a565b5f60208284031215610b37575f80fd5b81356001600160a01b0381168114610b4d575f80fd5b9392505050565b5f60208284031215610b64575f80fd5b5035919050565b5f60208284031215610b7b575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ba957610ba9610b82565b92915050565b8082028115828204841417610ba957610ba9610b82565b5f82610be057634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610bf5575f80fd5b81518015158114610b4d575f80fd5b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea264697066735822122096fb4be5367fffc92a86538b42fdeec119e3a7d0038d7403251b3e98795f4edd64736f6c634300081a0033a26469706673582212204cb91abbd0978b18d0c33cf67469503d4bf12def17c5a27f870faf2f1f2408b864736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.