ArcticArchitectureLens
Was this helpful?
Was this helpful?
Calculates the total assets held in the BoringVault for a given vault and accountant.
Parameters
boringVault
BoringVault
The BoringVault contract.
accountant
AccountantWithRateProviders
The AccountantWithRateProviders contract.
Returns
asset
ERC20
The ERC20 asset, assets
is given in terms of.
assets
uint256
The total assets held in the vault.
Calculates the number of shares that will be received for a given deposit amount in the BoringVault.
Parameters
depositAsset
ERC20
The ERC20 asset being deposited.
depositAmount
uint256
The amount of the asset being deposited.
boringVault
BoringVault
The BoringVault contract.
accountant
AccountantWithRateProviders
The AccountantWithRateProviders contract.
Returns
shares
uint256
The number of shares that will be received.
Retrieves the balance of shares for a given account in the BoringVault.
Parameters
account
address
The address of the account.
boringVault
BoringVault
The BoringVault contract.
Returns
shares
uint256
The balance of shares for the account.
Calculates the balance of a user in terms of asset for a given account in the BoringVault.
Parameters
account
address
The address of the account.
boringVault
BoringVault
The BoringVault contract.
accountant
AccountantWithRateProviders
The AccountantWithRateProviders contract.
Returns
assets
uint256
The balance of assets for the account.
Retrieves the current exchange rate from the AccountantWithRateProviders contract.
Parameters
accountant
AccountantWithRateProviders
The AccountantWithRateProviders contract.
Returns
rate
uint256
The current exchange rate.
Checks if a user's deposit meets certain conditions.
Parameters
account
address
The address of the user.
depositAsset
ERC20
The ERC20 asset being deposited.
depositAmount
uint256
The amount of the asset being deposited.
boringVault
BoringVault
The BoringVault contract.
teller
TellerWithMultiAssetSupport
The TellerWithMultiAssetSupport contract.
Returns
<none>
bool
A boolean indicating if the user's deposit meets the conditions.
Checks if a user's deposit (with permit) meets certain conditions.
Parameters
account
address
The address of the user.
depositAsset
ERC20
The ERC20 asset being deposited.
depositAmount
uint256
The amount of the asset being deposited.
teller
TellerWithMultiAssetSupport
The TellerWithMultiAssetSupport contract.
Returns
<none>
bool
A boolean indicating if the user's deposit meets the conditions.
Retrieves the unlock time for a user's shares in the TellerWithMultiAssetSupport contract.
Parameters
account
address
The address of the user.
teller
TellerWithMultiAssetSupport
The TellerWithMultiAssetSupport contract.
Returns
time
uint256
The unlock time for the user's shares.
Checks if the TellerWithMultiAssetDepositSupport contract is paused.