ArcticArchitectureLens

Git Source

Functions

totalAssets

Calculates the total assets held in the BoringVault for a given vault and accountant.

function totalAssets(
    BoringVault boringVault,
    AccountantWithRateProviders accountant
)
    external
    view
    returns (ERC20 asset, uint256 assets);

Parameters

Returns

previewDeposit

Calculates the number of shares that will be received for a given deposit amount in the BoringVault.

function previewDeposit(
    ERC20 depositAsset,
    uint256 depositAmount,
    BoringVault boringVault,
    AccountantWithRateProviders accountant
)
    external
    view
    returns (uint256 shares);

Parameters

Returns

balanceOf

Retrieves the balance of shares for a given account in the BoringVault.

function balanceOf(address account, BoringVault boringVault) external view returns (uint256 shares);

Parameters

Returns

balanceOfInAssets

Calculates the balance of a user in terms of asset for a given account in the BoringVault.

function balanceOfInAssets(
    address account,
    BoringVault boringVault,
    AccountantWithRateProviders accountant
)
    external
    view
    returns (uint256 assets);

Parameters

Returns

exchangeRate

Retrieves the current exchange rate from the AccountantWithRateProviders contract.

function exchangeRate(AccountantWithRateProviders accountant) external view returns (uint256 rate);

Parameters

Returns

checkUserDeposit

Checks if a user's deposit meets certain conditions.

function checkUserDeposit(
    address account,
    ERC20 depositAsset,
    uint256 depositAmount,
    BoringVault boringVault,
    TellerWithMultiAssetSupport teller
)
    external
    view
    returns (bool);

Parameters

Returns

checkUserDepositWithPermit

Checks if a user's deposit (with permit) meets certain conditions.

function checkUserDepositWithPermit(
    address account,
    ERC20 depositAsset,
    uint256 depositAmount,
    TellerWithMultiAssetSupport teller
)
    external
    view
    returns (bool);

Parameters

Returns

userUnlockTime

Retrieves the unlock time for a user's shares in the TellerWithMultiAssetSupport contract.

function userUnlockTime(address account, TellerWithMultiAssetSupport teller) external view returns (uint256 time);

Parameters

Returns

isTellerPaused

Checks if the TellerWithMultiAssetDepositSupport contract is paused.

function isTellerPaused(TellerWithMultiAssetSupport teller) external view returns (bool);