IPool

Git Source

Inherits: IERC4626

Functions

configurator

Returns the address of the pool configurator

function configurator() external view returns (address configurator_);

Returns

NameTypeDescription

configurator_

address

The address of the pool configurator

depositWithPermit

Deposits assets into the pool with the permit signature

function depositWithPermit(
    uint256 assets,
    address receiver,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
)
    external
    returns (uint256 shares_);

Parameters

NameTypeDescription

assets

uint256

The amount of assets to deposit

receiver

address

The address of the receiver

deadline

uint256

The deadline of the permit signature

v

uint8

The v of the permit signature

r

bytes32

The r of the permit signature

s

bytes32

The s of the permit signature

Returns

NameTypeDescription

shares_

uint256

The corresponding amount of shares minted

mintWithPermit

Mints shares from the pool with the permit signature

function mintWithPermit(
    uint256 shares,
    address receiver,
    uint256 maxAssets,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
)
    external
    returns (uint256 assets_);

Parameters

NameTypeDescription

shares

uint256

The amount of shares to mint

receiver

address

The address of the receiver

maxAssets

uint256

The maximum amount of assets to deposit

deadline

uint256

The deadline of the permit signature

v

uint8

The v of the permit signature

r

bytes32

The r of the permit signature

s

bytes32

The s of the permit signature

Returns

NameTypeDescription

assets_

uint256

The corresponding amount of assets deposited

removeShares

Remove shares from the pool

function removeShares(uint256 shares_, address owner_) external returns (uint256 sharesReturned_);

Parameters

NameTypeDescription

shares_

uint256

The amount of shares to remove

owner_

address

The owner of the shares

Returns

NameTypeDescription

sharesReturned_

uint256

The amount of shares returned

requestRedeem

Request the redemption of shares from the pool

function requestRedeem(uint256 shares_, address owner_) external;

Parameters

NameTypeDescription

shares_

uint256

The amount of shares to redeem

owner_

address

The owner of the shares

balanceOfAssets

Returns of the balance of the account

function balanceOfAssets(address account_) external view returns (uint256 assets_);

Parameters

NameTypeDescription

account_

address

The address of the account

Returns

NameTypeDescription

assets_

uint256

The amount of assets

convertToExitAssets

Returns the amount of assets that can be withdrawn for the amount of shares

function convertToExitAssets(uint256 shares_) external view returns (uint256 assets_);

Parameters

NameTypeDescription

shares_

uint256

The amount of shares

Returns

NameTypeDescription

assets_

uint256

The amount of assets

convertToExitShares

Returns the amount of shares that will be burned to withdraw the amount of assets

function convertToExitShares(uint256 assets_) external view returns (uint256 shares_);

Parameters

NameTypeDescription

assets_

uint256

The amount of assets to withdraw

Returns

NameTypeDescription

shares_

uint256

The amount of shares

unrealizedLosses

Returns the unrealized losses of the pool

function unrealizedLosses() external view returns (uint256 unrealizedLosses_);

Returns

NameTypeDescription

unrealizedLosses_

uint256

The unrealized losses

Last updated