Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 29199425 | 55 days ago | 0 FRAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RouterModuleLending
Compiler Version
v0.8.28+commit.7893614a
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.28;
import {RouterModuleBase} from "src/router/modules/RouterModuleBase.sol";
import {IStrategyWrapper} from "src/lending/interfaces/IStrategyWrapper.sol";
/// @title RouterModuleLending
/// @notice A module that allows for the deposit of collateral, the claim of rewards,
/// and the liquidation of positions accross different Stake DAO markets
/// @dev This module is expected to be used in composition with the RouterModuleERC20Manager module.
/// @author Stake DAO
/// @custom:contact [email protected]
contract RouterModuleLending is RouterModuleBase {
string public constant name = type(RouterModuleLending).name;
string public constant version = "1.0.0";
error InvalidData();
/// @notice Deposit shares (Stake DAO Reward Vault shares) into the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to deposit the shares into
/// @param amounts The amounts of shares to deposit for each wrapper
/// @dev The router must own the shares to deposit when this function is called.
/// For doing so, the caller must have signed a permit2 authorization and used it by
/// calling the function `transferFromPermit2AndApprove` of the RouterModuleERC20Manager module
/// in the **SAME TRANSACTION**. The composition ability of the router allows for this.
function depositShares(address[] calldata wrappers, uint256[] calldata amounts) external onlyDelegateCall {
require(wrappers.length == amounts.length, InvalidData());
for (uint256 i; i < wrappers.length; i++) {
IStrategyWrapper(wrappers[i]).depositShares(amounts[i], msg.sender);
}
}
/// @notice Deposit assets (e.g. Curve LP tokens) into the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to deposit the assets into
/// @param amounts The amounts of assets to deposit for each wrapper
/// @dev The router must own the assets to deposit when this function is called.
/// For doing so, the caller must have signed a permit2 authorization and used it by
/// calling the function `transferFromPermit2AndApprove` of the RouterModuleERC20Manager module
/// in the **SAME TRANSACTION**. The composition ability of the router allows for this.
function depositAssets(address[] calldata wrappers, uint256[] calldata amounts) external onlyDelegateCall {
require(wrappers.length == amounts.length, InvalidData());
for (uint256 i; i < wrappers.length; i++) {
IStrategyWrapper(wrappers[i]).depositAssets(amounts[i], msg.sender);
}
}
/// @notice Claim main rewards (e.g. CRV) from the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to claim the main rewards from
/// @return amounts The amounts of main rewards claimed for each wrapper
function claimMainRewards(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[] memory amounts)
{
require(wrappers.length > 0, InvalidData());
amounts = new uint256[](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claim(msg.sender);
}
}
/// @notice Claim main rewards (e.g. CRV) from the strategy wrappers for the router
/// @param wrappers The addresses of the strategy wrappers to claim the main rewards from
/// @return amounts The amounts of main rewards claimed for each wrapper
function claimMainRewardsFor(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[] memory amounts)
{
require(wrappers.length > 0, InvalidData());
amounts = new uint256[](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claim(address(this));
}
}
/// @notice Claim specific extra rewards from the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to claim the extra rewards from
/// @param tokens The addresses of the tokens to claim the extra rewards for
/// @return amounts The amounts of extra rewards claimed for each wrapper for each token
function claimExtraRewards(address[] calldata wrappers, address[] calldata tokens)
external
onlyDelegateCall
returns (uint256[][] memory amounts)
{
require(wrappers.length > 0 && tokens.length > 0, InvalidData());
amounts = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(msg.sender, tokens);
}
}
/// @notice Claim specific extra rewards from the strategy wrappers for the router
/// @param wrappers The addresses of the strategy wrappers to claim the extra rewards from
/// @param tokens The addresses of the tokens to claim the extra rewards for
/// @return amounts The amounts of extra rewards claimed for each wrapper for each token
function claimExtraRewardsFor(address[] calldata wrappers, address[] calldata tokens)
external
onlyDelegateCall
returns (uint256[][] memory amounts)
{
require(wrappers.length > 0 && tokens.length > 0, InvalidData());
amounts = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(address(this), tokens);
}
}
/// @notice Claim all extra rewards from the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to claim the extra rewards from
/// @return amounts The amounts of extra rewards claimed for each wrapper
function claimExtraRewards(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[][] memory amounts)
{
require(wrappers.length > 0, InvalidData());
amounts = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(msg.sender);
}
}
/// @notice Claim all extra rewards from the strategy wrappers for the router
/// @param wrappers The addresses of the strategy wrappers to claim the extra rewards from
/// @return amounts The amounts of extra rewards claimed for each wrapper
function claimExtraRewardsFor(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[][] memory amounts)
{
require(wrappers.length > 0, InvalidData());
amounts = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
amounts[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(address(this));
}
}
/// @notice Claim all main and extra rewards from the strategy wrappers for the caller
/// @param wrappers The addresses of the strategy wrappers to claim the rewards from
/// @return mainRewards The amounts of main rewards claimed for each wrapper
/// @return extraRewards The amounts of extra rewards claimed for each wrapper for each token
function claimAllRewards(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[] memory mainRewards, uint256[][] memory extraRewards)
{
require(wrappers.length > 0, InvalidData());
mainRewards = new uint256[](wrappers.length);
extraRewards = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
mainRewards[i] = IStrategyWrapper(wrappers[i]).claim(msg.sender);
extraRewards[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(msg.sender);
}
}
/// @notice Claim all main and extra rewards from the strategy wrappers for the router
/// @param wrappers The addresses of the strategy wrappers to claim the rewards from
/// @return mainRewards The amounts of main rewards claimed for each wrapper
/// @return extraRewards The amounts of extra rewards claimed for each wrapper for each token
function claimAllRewardsFor(address[] calldata wrappers)
external
onlyDelegateCall
returns (uint256[] memory mainRewards, uint256[][] memory extraRewards)
{
require(wrappers.length > 0, InvalidData());
mainRewards = new uint256[](wrappers.length);
extraRewards = new uint256[][](wrappers.length);
for (uint256 i; i < wrappers.length; i++) {
mainRewards[i] = IStrategyWrapper(wrappers[i]).claim(address(this));
extraRewards[i] = IStrategyWrapper(wrappers[i]).claimExtraRewards(address(this));
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
import {IRouterModule} from "src/router/interfaces/IRouterModule.sol";
/// @title RouterModuleBase
/// @notice An abstract contract that serves as the base for all router modules
/// @dev Exposes the onlyDelegateCall modifier to restrict functions to be called only by delegatecall
abstract contract RouterModuleBase is IRouterModule {
address private immutable THIS;
error OnlyDelegateCall();
constructor() {
THIS = address(this);
}
modifier onlyDelegateCall() {
require(address(this) != THIS, OnlyDelegateCall());
_;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/interfaces/IERC20Metadata.sol";
import {IRewardVault} from "@strategies/src/interfaces/IRewardVault.sol";
interface IStrategyWrapper is IERC20, IERC20Metadata {
function REWARD_VAULT() external view returns (IRewardVault);
function LENDING_PROTOCOL() external view returns (address);
// Deposit
function depositShares(uint256 amount, address receiver) external;
function depositAssets(uint256 amount, address receiver) external;
// Withdraw
function withdrawCollateral(uint256 amount) external;
function withdraw(uint256 amount) external;
// Claim main reward token (e.g. CRV)
function claim(address receiver) external returns (uint256 amount);
function claimExtraRewards(address receiver) external returns (uint256[] memory amounts);
function claimExtraRewards(address receiver, address[] calldata tokens) external returns (uint256[] memory amounts);
// Liquidation
function claimLiquidation(address liquidator, address victim, uint256 liquidatedAmount) external;
// Permissions
function operators(address account) external view returns (address operator);
function setOperator(address operator) external;
/*──────────────────────────────────────────
VIEW HELPERS
──────────────────────────────────────────*/
function getPendingRewards(address user) external view returns (uint256 rewards);
function getPendingExtraRewards(address user) external view returns (uint256[] memory rewards);
function getPendingExtraRewards(address user, address token) external view returns (uint256 rewards);
function lendingMarketId() external view returns (bytes32);
// Owner
function initialize(bytes32 marketId) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
interface IRouterModule {
function name() external view returns (string memory name);
function version() external view returns (string memory version);
}// 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.0.0) (interfaces/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
import {IERC4626} from "@openzeppelin/contracts/interfaces/IERC4626.sol";
import {IAccountant} from "./IAccountant.sol";
import {IProtocolController} from "./IProtocolController.sol";
/// @title IRewardVault
/// @notice Interface for the RewardVault contract
interface IRewardVault is IERC4626 {
function addRewardToken(address rewardsToken, address distributor) external;
function depositRewards(address _rewardsToken, uint128 _amount) external;
function deposit(uint256 assets, address receiver, address referrer) external returns (uint256 shares);
function deposit(address account, address receiver, uint256 assets, address referrer)
external
returns (uint256 shares);
function claim(address[] calldata tokens, address receiver) external returns (uint256[] memory amounts);
function claim(address account, address[] calldata tokens, address receiver)
external
returns (uint256[] memory amounts);
function getRewardsDistributor(address token) external view returns (address);
function getLastUpdateTime(address token) external view returns (uint32);
function getPeriodFinish(address token) external view returns (uint32);
function getRewardRate(address token) external view returns (uint128);
function getRewardPerTokenStored(address token) external view returns (uint128);
function getRewardPerTokenPaid(address token, address account) external view returns (uint128);
function getClaimable(address token, address account) external view returns (uint128);
function getRewardTokens() external view returns (address[] memory);
function lastTimeRewardApplicable(address token) external view returns (uint256);
function rewardPerToken(address token) external view returns (uint128);
function earned(address account, address token) external view returns (uint128);
function isRewardToken(address rewardToken) external view returns (bool);
function resumeVault() external;
function gauge() external view returns (address);
function ACCOUNTANT() external view returns (IAccountant);
function checkpoint(address account) external;
function PROTOCOL_ID() external view returns (bytes4);
function PROTOCOL_CONTROLLER() external view returns (IProtocolController);
}// 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/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4626.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";
/**
* @dev Interface of the ERC-4626 "Tokenized Vault Standard", as defined in
* https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
*/
interface IERC4626 is IERC20, IERC20Metadata {
event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);
event Withdraw(
address indexed sender,
address indexed receiver,
address indexed owner,
uint256 assets,
uint256 shares
);
/**
* @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
*
* - MUST be an ERC-20 token contract.
* - MUST NOT revert.
*/
function asset() external view returns (address assetTokenAddress);
/**
* @dev Returns the total amount of the underlying asset that is “managed” by Vault.
*
* - SHOULD include any compounding that occurs from yield.
* - MUST be inclusive of any fees that are charged against assets in the Vault.
* - MUST NOT revert.
*/
function totalAssets() external view returns (uint256 totalManagedAssets);
/**
* @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
* scenario where all the conditions are met.
*
* - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
* - MUST NOT show any variations depending on the caller.
* - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
* - MUST NOT revert.
*
* NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
* “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
* from.
*/
function convertToShares(uint256 assets) external view returns (uint256 shares);
/**
* @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
* scenario where all the conditions are met.
*
* - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
* - MUST NOT show any variations depending on the caller.
* - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
* - MUST NOT revert.
*
* NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
* “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
* from.
*/
function convertToAssets(uint256 shares) external view returns (uint256 assets);
/**
* @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
* through a deposit call.
*
* - MUST return a limited value if receiver is subject to some deposit limit.
* - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
* - MUST NOT revert.
*/
function maxDeposit(address receiver) external view returns (uint256 maxAssets);
/**
* @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
* current on-chain conditions.
*
* - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
* call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
* in the same transaction.
* - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
* deposit would be accepted, regardless if the user has enough tokens approved, etc.
* - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
* - MUST NOT revert.
*
* NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
* share price or some other type of condition, meaning the depositor will lose assets by depositing.
*/
function previewDeposit(uint256 assets) external view returns (uint256 shares);
/**
* @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
*
* - MUST emit the Deposit event.
* - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
* deposit execution, and are accounted for during deposit.
* - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
* approving enough underlying tokens to the Vault contract, etc).
*
* NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
*/
function deposit(uint256 assets, address receiver) external returns (uint256 shares);
/**
* @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
* - MUST return a limited value if receiver is subject to some mint limit.
* - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
* - MUST NOT revert.
*/
function maxMint(address receiver) external view returns (uint256 maxShares);
/**
* @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
* current on-chain conditions.
*
* - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
* in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
* same transaction.
* - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
* would be accepted, regardless if the user has enough tokens approved, etc.
* - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
* - MUST NOT revert.
*
* NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
* share price or some other type of condition, meaning the depositor will lose assets by minting.
*/
function previewMint(uint256 shares) external view returns (uint256 assets);
/**
* @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
*
* - MUST emit the Deposit event.
* - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
* execution, and are accounted for during mint.
* - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
* approving enough underlying tokens to the Vault contract, etc).
*
* NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
*/
function mint(uint256 shares, address receiver) external returns (uint256 assets);
/**
* @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
* Vault, through a withdraw call.
*
* - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
* - MUST NOT revert.
*/
function maxWithdraw(address owner) external view returns (uint256 maxAssets);
/**
* @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
* given current on-chain conditions.
*
* - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
* call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
* called
* in the same transaction.
* - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
* the withdrawal would be accepted, regardless if the user has enough shares, etc.
* - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
* - MUST NOT revert.
*
* NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
* share price or some other type of condition, meaning the depositor will lose assets by depositing.
*/
function previewWithdraw(uint256 assets) external view returns (uint256 shares);
/**
* @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.
*
* - MUST emit the Withdraw event.
* - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
* withdraw execution, and are accounted for during withdraw.
* - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
* not having enough shares, etc).
*
* Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
* Those methods should be performed separately.
*/
function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);
/**
* @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
* through a redeem call.
*
* - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
* - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
* - MUST NOT revert.
*/
function maxRedeem(address owner) external view returns (uint256 maxShares);
/**
* @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
* given current on-chain conditions.
*
* - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
* in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
* same transaction.
* - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
* redemption would be accepted, regardless if the user has enough shares, etc.
* - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
* - MUST NOT revert.
*
* NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
* share price or some other type of condition, meaning the depositor will lose assets by redeeming.
*/
function previewRedeem(uint256 shares) external view returns (uint256 assets);
/**
* @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.
*
* - MUST emit the Withdraw event.
* - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
* redeem execution, and are accounted for during redeem.
* - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
* not having enough shares, etc).
*
* NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
* Those methods should be performed separately.
*/
function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import {IStrategy} from "@interfaces/stake-dao/IStrategyV2.sol";
interface IAccountant {
function checkpoint(
address gauge,
address from,
address to,
uint128 amount,
IStrategy.PendingRewards calldata pendingRewards,
IStrategy.HarvestPolicy policy
) external;
function checkpoint(
address gauge,
address from,
address to,
uint128 amount,
IStrategy.PendingRewards calldata pendingRewards,
IStrategy.HarvestPolicy policy,
address referrer
) external;
function totalSupply(address asset) external view returns (uint128);
function balanceOf(address asset, address account) external view returns (uint128);
function claim(address[] calldata _gauges, bytes[] calldata harvestData) external;
function claim(address[] calldata _gauges, bytes[] calldata harvestData, address receiver) external;
function claim(address[] calldata _gauges, address account, bytes[] calldata harvestData, address receiver) external;
function claimProtocolFees() external;
function harvest(address[] calldata _gauges, bytes[] calldata _harvestData, address _receiver) external;
function REWARD_TOKEN() external view returns (address);
function getPendingRewards(address vault) external view returns (uint128);
function getPendingRewards(address vault, address account) external view returns (uint256);
function SCALING_FACTOR() external view returns (uint128);
}/// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
interface IProtocolController {
function vault(address) external view returns (address);
function asset(address) external view returns (address);
function rewardReceiver(address) external view returns (address);
function allowed(address, address, bytes4 selector) external view returns (bool);
function permissionSetters(address) external view returns (bool);
function isRegistrar(address) external view returns (bool);
function locker(bytes4 protocolId) external view returns (address);
function gateway(bytes4 protocolId) external view returns (address);
function strategy(bytes4 protocolId) external view returns (address);
function allocator(bytes4 protocolId) external view returns (address);
function accountant(bytes4 protocolId) external view returns (address);
function feeReceiver(bytes4 protocolId) external view returns (address);
function factory(bytes4 protocolId) external view returns (address);
function isPaused(bytes4) external view returns (bool);
function isShutdown(address) external view returns (bool);
function registerVault(address _gauge, address _vault, address _asset, address _rewardReceiver, bytes4 _protocolId)
external;
function setValidAllocationTarget(address _gauge, address _target) external;
function removeValidAllocationTarget(address _gauge, address _target) external;
function isValidAllocationTarget(address _gauge, address _target) external view returns (bool);
function pause(bytes4 protocolId) external;
function unpause(bytes4 protocolId) external;
function shutdown(address _gauge) external;
function unshutdown(address _gauge) external;
function setPermissionSetter(address _setter, bool _allowed) external;
function setPermission(address _contract, address _caller, bytes4 _selector, bool _allowed) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
import {IAllocator} from "./IAllocatorV2.sol";
interface IStrategy {
/// @notice The policy for harvesting rewards.
enum HarvestPolicy {
CHECKPOINT,
HARVEST
}
struct PendingRewards {
uint128 feeSubjectAmount;
uint128 totalAmount;
}
function deposit(IAllocator.Allocation calldata allocation, HarvestPolicy policy)
external
returns (PendingRewards memory pendingRewards);
function withdraw(IAllocator.Allocation calldata allocation, HarvestPolicy policy, address receiver)
external
returns (PendingRewards memory pendingRewards);
function balanceOf(address gauge) external view returns (uint256 balance);
function harvest(address gauge, bytes calldata extraData) external returns (PendingRewards memory pendingRewards);
function flush() external;
function shutdown(address gauge) external;
function rebalance(address gauge) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.28;
interface IAllocator {
struct Allocation {
address asset;
address gauge;
address[] targets;
uint256[] amounts;
}
function getDepositAllocation(address asset, address gauge, uint256 amount)
external
view
returns (Allocation memory);
function getWithdrawalAllocation(address asset, address gauge, uint256 amount)
external
view
returns (Allocation memory);
function getRebalancedAllocation(address asset, address gauge, uint256 amount)
external
view
returns (Allocation memory);
function getAllocationTargets(address gauge) external view returns (address[] memory);
}{
"remappings": [
"forge-std/=node_modules/forge-std/",
"@shared/=node_modules/@stake-dao/shared/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@interfaces/=node_modules/@stake-dao/interfaces/src/interfaces/",
"@address-book/=node_modules/@stake-dao/address-book/",
"@strategies/=node_modules/@stake-dao/strategies/",
"@lockers/=node_modules/@stake-dao/lockers/",
"@safe/=node_modules/@stake-dao/strategies/node_modules/@safe-global/safe-smart-account/"
],
"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":[],"name":"InvalidData","type":"error"},{"inputs":[],"name":"OnlyDelegateCall","type":"error"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimAllRewards","outputs":[{"internalType":"uint256[]","name":"mainRewards","type":"uint256[]"},{"internalType":"uint256[][]","name":"extraRewards","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimAllRewardsFor","outputs":[{"internalType":"uint256[]","name":"mainRewards","type":"uint256[]"},{"internalType":"uint256[][]","name":"extraRewards","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"claimExtraRewards","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimExtraRewards","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimExtraRewardsFor","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"claimExtraRewardsFor","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimMainRewards","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"claimMainRewardsFor","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"depositAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wrappers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"depositShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a060405234801561000f575f5ffd5b503060805260805161161261006b5f395f818161021501528181610394015281816105280152818161069e015281816107c70152818161093301528181610abc01528181610bdf01528181610e510152610fbe01526116125ff3fe608060405234801561000f575f5ffd5b50600436106100b1575f3560e01c8063a173a0e11161006e578063a173a0e11461017c578063ccbc41ca1461019c578063d71cebeb146101af578063e1136e2d146101c2578063f7696f92146101e3578063fb3b5821146101f6575f5ffd5b806306fdde03146100b55780630798e17f146100fd57806329fcddf11461011d5780632d0f9abe14610130578063524a40ee1461014357806354fd4d5014610158575b5f5ffd5b6100e760405180604001604052601381528060200172526f757465724d6f64756c654c656e64696e6760681b81525081565b6040516100f4919061121c565b60405180910390f35b61011061010b366004611298565b610209565b6040516100f49190611358565b61011061012b366004611371565b610388565b61011061013e366004611298565b61051c565b610156610151366004611371565b610694565b005b6100e7604051806040016040528060058152602001640312e302e360dc1b81525081565b61018f61018a366004611298565b6107bb565b6040516100f49190611415565b6101106101aa366004611371565b610927565b6101566101bd366004611371565b610ab2565b6101d56101d0366004611298565b610bd2565b6040516100f4929190611427565b61018f6101f1366004611298565b610e45565b6101d5610204366004611298565b610fb1565b60606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361025457604051633c64f99360e21b815260040160405180910390fd5b8161027257604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561028a5761028a611454565b6040519080825280602002602001820160405280156102bd57816020015b60608152602001906001900390816102a85790505b5090505f5b82811015610381578383828181106102dc576102dc611468565b90506020020160208101906102f19190611497565b60405163a41ba44f60e01b81523060048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610335573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261035c91908101906114b0565b82828151811061036e5761036e611468565b60209081029190910101526001016102c2565b5092915050565b60606001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036103d357604051633c64f99360e21b815260040160405180910390fd5b83158015906103e157508115155b6103fe57604051635cb045db60e01b815260040160405180910390fd5b836001600160401b0381111561041657610416611454565b60405190808252806020026020018201604052801561044957816020015b60608152602001906001900390816104345790505b5090505f5b848110156105135785858281811061046857610468611468565b905060200201602081019061047d9190611497565b6001600160a01b031663d53f99403386866040518463ffffffff1660e01b81526004016104ac93929190611575565b5f604051808303815f875af11580156104c7573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104ee91908101906114b0565b82828151811061050057610500611468565b602090810291909101015260010161044e565b50949350505050565b60606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361056757604051633c64f99360e21b815260040160405180910390fd5b8161058557604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561059d5761059d611454565b6040519080825280602002602001820160405280156105d057816020015b60608152602001906001900390816105bb5790505b5090505f5b82811015610381578383828181106105ef576105ef611468565b90506020020160208101906106049190611497565b60405163a41ba44f60e01b81523360048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610648573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261066f91908101906114b0565b82828151811061068157610681611468565b60209081029190910101526001016105d5565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106dd57604051633c64f99360e21b815260040160405180910390fd5b8281146106fd57604051635cb045db60e01b815260040160405180910390fd5b5f5b838110156107b45784848281811061071957610719611468565b905060200201602081019061072e9190611497565b6001600160a01b03166383602b0384848481811061074e5761074e611468565b6040516001600160e01b031960e086901b168152602090910292909201356004830152503360248201526044015f604051808303815f87803b158015610792575f5ffd5b505af11580156107a4573d5f5f3e3d5ffd5b5050600190920191506106ff9050565b5050505050565b60606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361080657604051633c64f99360e21b815260040160405180910390fd5b8161082457604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561083c5761083c611454565b604051908082528060200260200182016040528015610865578160200160208202803683370190505b5090505f5b828110156103815783838281811061088457610884611468565b90506020020160208101906108999190611497565b604051630f41a04d60e11b81523360048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af11580156108de573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061090291906115c5565b82828151811061091457610914611468565b602090810291909101015260010161086a565b60606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361097257604051633c64f99360e21b815260040160405180910390fd5b831580159061098057508115155b61099d57604051635cb045db60e01b815260040160405180910390fd5b836001600160401b038111156109b5576109b5611454565b6040519080825280602002602001820160405280156109e857816020015b60608152602001906001900390816109d35790505b5090505f5b8481101561051357858582818110610a0757610a07611468565b9050602002016020810190610a1c9190611497565b6001600160a01b031663d53f99403086866040518463ffffffff1660e01b8152600401610a4b93929190611575565b5f604051808303815f875af1158015610a66573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610a8d91908101906114b0565b828281518110610a9f57610a9f611468565b60209081029190910101526001016109ed565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610afb57604051633c64f99360e21b815260040160405180910390fd5b828114610b1b57604051635cb045db60e01b815260040160405180910390fd5b5f5b838110156107b457848482818110610b3757610b37611468565b9050602002016020810190610b4c9190611497565b6001600160a01b0316637d28a2f2848484818110610b6c57610b6c611468565b6040516001600160e01b031960e086901b168152602090910292909201356004830152503360248201526044015f604051808303815f87803b158015610bb0575f5ffd5b505af1158015610bc2573d5f5f3e3d5ffd5b505060019092019150610b1d9050565b6060806001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610c1e57604051633c64f99360e21b815260040160405180910390fd5b82610c3c57604051635cb045db60e01b815260040160405180910390fd5b826001600160401b03811115610c5457610c54611454565b604051908082528060200260200182016040528015610c7d578160200160208202803683370190505b509150826001600160401b03811115610c9857610c98611454565b604051908082528060200260200182016040528015610ccb57816020015b6060815260200190600190039081610cb65790505b5090505f5b83811015610e3d57848482818110610cea57610cea611468565b9050602002016020810190610cff9190611497565b604051630f41a04d60e11b81523360048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015610d44573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d6891906115c5565b838281518110610d7a57610d7a611468565b602002602001018181525050848482818110610d9857610d98611468565b9050602002016020810190610dad9190611497565b60405163a41ba44f60e01b81523360048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610df1573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610e1891908101906114b0565b828281518110610e2a57610e2a611468565b6020908102919091010152600101610cd0565b509250929050565b60606001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610e9057604051633c64f99360e21b815260040160405180910390fd5b81610eae57604051635cb045db60e01b815260040160405180910390fd5b816001600160401b03811115610ec657610ec6611454565b604051908082528060200260200182016040528015610eef578160200160208202803683370190505b5090505f5b8281101561038157838382818110610f0e57610f0e611468565b9050602002016020810190610f239190611497565b604051630f41a04d60e11b81523060048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015610f68573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f8c91906115c5565b828281518110610f9e57610f9e611468565b6020908102919091010152600101610ef4565b6060806001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ffd57604051633c64f99360e21b815260040160405180910390fd5b8261101b57604051635cb045db60e01b815260040160405180910390fd5b826001600160401b0381111561103357611033611454565b60405190808252806020026020018201604052801561105c578160200160208202803683370190505b509150826001600160401b0381111561107757611077611454565b6040519080825280602002602001820160405280156110aa57816020015b60608152602001906001900390816110955790505b5090505f5b83811015610e3d578484828181106110c9576110c9611468565b90506020020160208101906110de9190611497565b604051630f41a04d60e11b81523060048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015611123573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061114791906115c5565b83828151811061115957611159611468565b60200260200101818152505084848281811061117757611177611468565b905060200201602081019061118c9190611497565b60405163a41ba44f60e01b81523060048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af11580156111d0573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526111f791908101906114b0565b82828151811061120957611209611468565b60209081029190910101526001016110af565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112611261575f5ffd5b5081356001600160401b03811115611277575f5ffd5b6020830191508360208260051b8501011115611291575f5ffd5b9250929050565b5f5f602083850312156112a9575f5ffd5b82356001600160401b038111156112be575f5ffd5b6112ca85828601611251565b90969095509350505050565b5f82825180855260208501945060208160051b830101602085015f5b8381101561134c57848303601f19018852815180518085526020918201918501905f5b81811015611333578351835260209384019390920191600101611315565b50506020998a01999094509290920191506001016112f2565b50909695505050505050565b602081525f61136a60208301846112d6565b9392505050565b5f5f5f5f60408587031215611384575f5ffd5b84356001600160401b03811115611399575f5ffd5b6113a587828801611251565b90955093505060208501356001600160401b038111156113c3575f5ffd5b6113cf87828801611251565b95989497509550505050565b5f8151808452602084019350602083015f5b8281101561140b5781518652602095860195909101906001016113ed565b5093949350505050565b602081525f61136a60208301846113db565b604081525f61143960408301856113db565b828103602084015261144b81856112d6565b95945050505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b80356001600160a01b0381168114611492575f5ffd5b919050565b5f602082840312156114a7575f5ffd5b61136a8261147c565b5f602082840312156114c0575f5ffd5b81516001600160401b038111156114d5575f5ffd5b8201601f810184136114e5575f5ffd5b80516001600160401b038111156114fe576114fe611454565b8060051b604051601f19603f83011681018181106001600160401b038211171561152a5761152a611454565b604052918252602081840181019290810187841115611547575f5ffd5b6020850194505b8385101561156a5784518082526020958601959093500161154e565b509695505050505050565b6001600160a01b038416815260406020820181905281018290525f8360608301825b8581101561156a576001600160a01b036115b08461147c565b16825260209283019290910190600101611597565b5f602082840312156115d5575f5ffd5b505191905056fea2646970667358221220a7738e8760f166577f4295c5207ee1a2b31713fd702888cee84ec10260072c9764736f6c634300081c0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b50600436106100b1575f3560e01c8063a173a0e11161006e578063a173a0e11461017c578063ccbc41ca1461019c578063d71cebeb146101af578063e1136e2d146101c2578063f7696f92146101e3578063fb3b5821146101f6575f5ffd5b806306fdde03146100b55780630798e17f146100fd57806329fcddf11461011d5780632d0f9abe14610130578063524a40ee1461014357806354fd4d5014610158575b5f5ffd5b6100e760405180604001604052601381528060200172526f757465724d6f64756c654c656e64696e6760681b81525081565b6040516100f4919061121c565b60405180910390f35b61011061010b366004611298565b610209565b6040516100f49190611358565b61011061012b366004611371565b610388565b61011061013e366004611298565b61051c565b610156610151366004611371565b610694565b005b6100e7604051806040016040528060058152602001640312e302e360dc1b81525081565b61018f61018a366004611298565b6107bb565b6040516100f49190611415565b6101106101aa366004611371565b610927565b6101566101bd366004611371565b610ab2565b6101d56101d0366004611298565b610bd2565b6040516100f4929190611427565b61018f6101f1366004611298565b610e45565b6101d5610204366004611298565b610fb1565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d946662565216300361025457604051633c64f99360e21b815260040160405180910390fd5b8161027257604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561028a5761028a611454565b6040519080825280602002602001820160405280156102bd57816020015b60608152602001906001900390816102a85790505b5090505f5b82811015610381578383828181106102dc576102dc611468565b90506020020160208101906102f19190611497565b60405163a41ba44f60e01b81523060048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610335573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261035c91908101906114b0565b82828151811061036e5761036e611468565b60209081029190910101526001016102c2565b5092915050565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d94666256521630036103d357604051633c64f99360e21b815260040160405180910390fd5b83158015906103e157508115155b6103fe57604051635cb045db60e01b815260040160405180910390fd5b836001600160401b0381111561041657610416611454565b60405190808252806020026020018201604052801561044957816020015b60608152602001906001900390816104345790505b5090505f5b848110156105135785858281811061046857610468611468565b905060200201602081019061047d9190611497565b6001600160a01b031663d53f99403386866040518463ffffffff1660e01b81526004016104ac93929190611575565b5f604051808303815f875af11580156104c7573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104ee91908101906114b0565b82828151811061050057610500611468565b602090810291909101015260010161044e565b50949350505050565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d946662565216300361056757604051633c64f99360e21b815260040160405180910390fd5b8161058557604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561059d5761059d611454565b6040519080825280602002602001820160405280156105d057816020015b60608152602001906001900390816105bb5790505b5090505f5b82811015610381578383828181106105ef576105ef611468565b90506020020160208101906106049190611497565b60405163a41ba44f60e01b81523360048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610648573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261066f91908101906114b0565b82828151811061068157610681611468565b60209081029190910101526001016105d5565b6001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d94666256521630036106dd57604051633c64f99360e21b815260040160405180910390fd5b8281146106fd57604051635cb045db60e01b815260040160405180910390fd5b5f5b838110156107b45784848281811061071957610719611468565b905060200201602081019061072e9190611497565b6001600160a01b03166383602b0384848481811061074e5761074e611468565b6040516001600160e01b031960e086901b168152602090910292909201356004830152503360248201526044015f604051808303815f87803b158015610792575f5ffd5b505af11580156107a4573d5f5f3e3d5ffd5b5050600190920191506106ff9050565b5050505050565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d946662565216300361080657604051633c64f99360e21b815260040160405180910390fd5b8161082457604051635cb045db60e01b815260040160405180910390fd5b816001600160401b0381111561083c5761083c611454565b604051908082528060200260200182016040528015610865578160200160208202803683370190505b5090505f5b828110156103815783838281811061088457610884611468565b90506020020160208101906108999190611497565b604051630f41a04d60e11b81523360048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af11580156108de573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061090291906115c5565b82828151811061091457610914611468565b602090810291909101015260010161086a565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d946662565216300361097257604051633c64f99360e21b815260040160405180910390fd5b831580159061098057508115155b61099d57604051635cb045db60e01b815260040160405180910390fd5b836001600160401b038111156109b5576109b5611454565b6040519080825280602002602001820160405280156109e857816020015b60608152602001906001900390816109d35790505b5090505f5b8481101561051357858582818110610a0757610a07611468565b9050602002016020810190610a1c9190611497565b6001600160a01b031663d53f99403086866040518463ffffffff1660e01b8152600401610a4b93929190611575565b5f604051808303815f875af1158015610a66573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610a8d91908101906114b0565b828281518110610a9f57610a9f611468565b60209081029190910101526001016109ed565b6001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d9466625652163003610afb57604051633c64f99360e21b815260040160405180910390fd5b828114610b1b57604051635cb045db60e01b815260040160405180910390fd5b5f5b838110156107b457848482818110610b3757610b37611468565b9050602002016020810190610b4c9190611497565b6001600160a01b0316637d28a2f2848484818110610b6c57610b6c611468565b6040516001600160e01b031960e086901b168152602090910292909201356004830152503360248201526044015f604051808303815f87803b158015610bb0575f5ffd5b505af1158015610bc2573d5f5f3e3d5ffd5b505060019092019150610b1d9050565b6060806001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d9466625652163003610c1e57604051633c64f99360e21b815260040160405180910390fd5b82610c3c57604051635cb045db60e01b815260040160405180910390fd5b826001600160401b03811115610c5457610c54611454565b604051908082528060200260200182016040528015610c7d578160200160208202803683370190505b509150826001600160401b03811115610c9857610c98611454565b604051908082528060200260200182016040528015610ccb57816020015b6060815260200190600190039081610cb65790505b5090505f5b83811015610e3d57848482818110610cea57610cea611468565b9050602002016020810190610cff9190611497565b604051630f41a04d60e11b81523360048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015610d44573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d6891906115c5565b838281518110610d7a57610d7a611468565b602002602001018181525050848482818110610d9857610d98611468565b9050602002016020810190610dad9190611497565b60405163a41ba44f60e01b81523360048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af1158015610df1573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610e1891908101906114b0565b828281518110610e2a57610e2a611468565b6020908102919091010152600101610cd0565b509250929050565b60606001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d9466625652163003610e9057604051633c64f99360e21b815260040160405180910390fd5b81610eae57604051635cb045db60e01b815260040160405180910390fd5b816001600160401b03811115610ec657610ec6611454565b604051908082528060200260200182016040528015610eef578160200160208202803683370190505b5090505f5b8281101561038157838382818110610f0e57610f0e611468565b9050602002016020810190610f239190611497565b604051630f41a04d60e11b81523060048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015610f68573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f8c91906115c5565b828281518110610f9e57610f9e611468565b6020908102919091010152600101610ef4565b6060806001600160a01b037f000000000000000000000000e44dc036a1726b89651c8b8a56d89d9466625652163003610ffd57604051633c64f99360e21b815260040160405180910390fd5b8261101b57604051635cb045db60e01b815260040160405180910390fd5b826001600160401b0381111561103357611033611454565b60405190808252806020026020018201604052801561105c578160200160208202803683370190505b509150826001600160401b0381111561107757611077611454565b6040519080825280602002602001820160405280156110aa57816020015b60608152602001906001900390816110955790505b5090505f5b83811015610e3d578484828181106110c9576110c9611468565b90506020020160208101906110de9190611497565b604051630f41a04d60e11b81523060048201526001600160a01b039190911690631e83409a906024016020604051808303815f875af1158015611123573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061114791906115c5565b83828151811061115957611159611468565b60200260200101818152505084848281811061117757611177611468565b905060200201602081019061118c9190611497565b60405163a41ba44f60e01b81523060048201526001600160a01b03919091169063a41ba44f906024015f604051808303815f875af11580156111d0573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526111f791908101906114b0565b82828151811061120957611209611468565b60209081029190910101526001016110af565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112611261575f5ffd5b5081356001600160401b03811115611277575f5ffd5b6020830191508360208260051b8501011115611291575f5ffd5b9250929050565b5f5f602083850312156112a9575f5ffd5b82356001600160401b038111156112be575f5ffd5b6112ca85828601611251565b90969095509350505050565b5f82825180855260208501945060208160051b830101602085015f5b8381101561134c57848303601f19018852815180518085526020918201918501905f5b81811015611333578351835260209384019390920191600101611315565b50506020998a01999094509290920191506001016112f2565b50909695505050505050565b602081525f61136a60208301846112d6565b9392505050565b5f5f5f5f60408587031215611384575f5ffd5b84356001600160401b03811115611399575f5ffd5b6113a587828801611251565b90955093505060208501356001600160401b038111156113c3575f5ffd5b6113cf87828801611251565b95989497509550505050565b5f8151808452602084019350602083015f5b8281101561140b5781518652602095860195909101906001016113ed565b5093949350505050565b602081525f61136a60208301846113db565b604081525f61143960408301856113db565b828103602084015261144b81856112d6565b95945050505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b80356001600160a01b0381168114611492575f5ffd5b919050565b5f602082840312156114a7575f5ffd5b61136a8261147c565b5f602082840312156114c0575f5ffd5b81516001600160401b038111156114d5575f5ffd5b8201601f810184136114e5575f5ffd5b80516001600160401b038111156114fe576114fe611454565b8060051b604051601f19603f83011681018181106001600160401b038211171561152a5761152a611454565b604052918252602081840181019290810187841115611547575f5ffd5b6020850194505b8385101561156a5784518082526020958601959093500161154e565b509695505050505050565b6001600160a01b038416815260406020820181905281018290525f8360608301825b8581101561156a576001600160a01b036115b08461147c565b16825260209283019290910190600101611597565b5f602082840312156115d5575f5ffd5b505191905056fea2646970667358221220a7738e8760f166577f4295c5207ee1a2b31713fd702888cee84ec10260072c9764736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 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.